/* ===========================================================================
   Rozzo — maps (js/map.js). Rozzo-styled pins, count bubbles, popups and zoom.
   =========================================================================== */
.rzmap { position: relative; width: 100%; height: clamp(420px, 64vh, 720px); border-radius: 22px; overflow: hidden; background: #eceaf8; border: 2px solid #e8e6f2; font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif; isolation: isolate; }
.rzmap-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; color: #646a88; font-weight: 800; font-size: 15px; }
.rzmap-wait.err { color: #9b2328; }
.rzmap .leaflet-container, .rzmap.leaflet-container { font-family: inherit; background: #eceaf8; }
/* calm the street map so Rozzo's pins stand out */
.rzmap .leaflet-tile-pane { filter: saturate(.5) brightness(1.05) contrast(.92); }
/* job pins: a rounded marker with a point; colour = match band, or Direct-on-Rozzo green */
.rzmap-pin.pin-job { background: none; border: 0; }
.rzmap-pin.pin-job span { position: absolute; left: 1px; top: 0; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: #fff; border: 3px solid #2e395f; box-shadow: 0 3px 10px rgba(30,36,66,.28); color: #2e395f; }
.rzmap-pin.pin-job span > * { transform: rotate(45deg); }
.rzmap-pin.pin-job svg { width: 16px; height: 16px; }
.rzmap-pin.pin-job b { font-size: 12.5px; font-weight: 900; letter-spacing: -.02em; }
.rzmap-pin.pin-job.direct span { background: #49a52c; border-color: #37811f; color: #fff; }
.rzmap-pin.pin-job.hi span { background: #49a52c; border-color: #37811f; color: #fff; }
.rzmap-pin.pin-job.mid span { background: #eea235; border-color: #c9831f; color: #2a1a02; }
.rzmap-pin.pin-job.lo span { background: #fff; border-color: #a4a9c0; color: #4a5070; }
/* people: initials in a circle, pinned at their city */
.rzmap-pin.pin-cand { background: none; border: 0; }
.rzmap-pin.pin-cand span { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 13.5px; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(30,36,66,.3); }
/* count bubbles */
.rzmap-cl { background: none; border: 0; }
.rzmap-cl span { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 900; font-size: 14px; color: #fff; background: #49a52c; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 0 0 5px rgba(73,165,44,.28), 0 4px 12px rgba(30,36,66,.25); }
.rzmap-cl.cl-cand span { background: #4f4596; box-shadow: 0 0 0 5px rgba(79,69,150,.25), 0 4px 12px rgba(30,36,66,.25); }
/* you / your office */
.rzmap-you { background: none; border: 0; }
.rzmap-you img { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #eea235; background: #e2dff1; object-fit: cover; object-position: 50% 12%; box-shadow: 0 4px 12px rgba(30,36,66,.3); display: block; }
.rzmap-you em { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #eea235; background: #1e2442; color: #fff; font-style: normal; font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(30,36,66,.3); }
.rzmap-you span { position: absolute; left: 50%; top: 48px; transform: translateX(-50%); white-space: nowrap; background: #1e2442; color: #fff; font-size: 11.5px; font-weight: 900; padding: 3px 8px; border-radius: 999px; }
/* popups */
.rzmap-pop .leaflet-popup-content-wrapper { border-radius: 18px; box-shadow: 0 16px 40px rgba(30,36,66,.22); padding: 0; }
.leaflet-container .rzmap-pop .leaflet-popup-content { margin: 16px 16px 16px; font-family: "Nunito", ui-rounded, system-ui, sans-serif; color: #1e2442; line-height: 1.4; }
.rzmap-pop .leaflet-popup-tip { box-shadow: none; }
/* Leaflet's own stylesheet loads after this one, so these rules need the extra .leaflet-container to win */
.leaflet-container .rzmap-pop a.leaflet-popup-close-button { top: 10px; right: 10px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; font: 400 22px/1 system-ui, sans-serif; color: #646a88; background: transparent; text-decoration: none; }
.leaflet-container .rzmap-pop a.leaflet-popup-close-button:hover { background: #f4f3fa; color: #1e2442; }
.leaflet-container .rzmap-pop a.leaflet-popup-close-button span { display: block; transform: translateY(-1px); }
.rzmap-card { display: flex; flex-direction: column; gap: 6px; }
.rzmap-t { font-size: 15.5px; font-weight: 900; padding-right: 18px; }
.rzmap-meta { font-size: 13px; font-weight: 700; color: #4a5070; }
.rzmap-who { display: flex; gap: 10px; align-items: center; padding-right: 30px; }
.rzmap-who b { display: block; font-size: 15px; font-weight: 900; }
.rzmap-who span { display: block; font-size: 12.5px; font-weight: 700; color: #646a88; }
.rzmap-lg { width: 42px; height: 42px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #e8e6f2; overflow: hidden; flex: 0 0 auto; }
.rzmap-lg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rzmap-av { width: 38px; height: 38px; border-radius: 50%; display: flex !important; align-items: center; justify-content: center; color: #fff !important; font-weight: 900; font-size: 13.5px !important; flex: 0 0 auto; }
.rzmap-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.rzmap-tags span { font-size: 11.5px; font-weight: 800; background: #f4f3fa; color: #4a5070; padding: 2px 8px; border-radius: 999px; }
.rzmap-row { display: flex; flex-wrap: wrap; gap: 6px; }
.rzmap-m { font-size: 11.5px; font-weight: 900; padding: 3px 9px; border-radius: 999px; background: #f4f3fa; color: #4a5070; }
.rzmap-m.hi { background: #e6f4df; color: #2d6a16; }
.rzmap-m.mid { background: #fdf2e1; color: #7d4e0c; }
.rzmap-btn { margin-top: 4px; height: 38px; border: 0; border-radius: 12px; background: #49a52c; color: #fff; font: 800 14px "Nunito", ui-rounded, system-ui, sans-serif; cursor: pointer; box-shadow: 0 3px 0 #37811f; }
.rzmap-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #37811f; }
/* zoom buttons */
.rzmap .leaflet-bar { border: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 8px rgba(30,36,66,.18); }
.rzmap .leaflet-bar a { width: 38px; height: 38px; line-height: 38px; font-size: 20px; color: #1e2442; border-bottom-color: #e8e6f2; }
.rzmap .leaflet-control-attribution { font-size: 10.5px; background: rgba(255,255,255,.8); border-radius: 8px 0 0 0; }
/* the note under a map */
.rzmap-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; font-size: 13px; font-weight: 700; color: #646a88; }
.rzmap-note i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(30,36,66,.2); }
@media (max-width: 600px) { .rzmap { height: 60vh; border-radius: 18px; } }
