/* /map — full-bleed seat-map hero (SEAT_MAP_SPEC refinements). Geo status classes live in styles.css §22. */
.leaflet-tooltip{font:inherit;font-size:12px;font-weight:600}
.leaflet-container a{color:var(--accent)}
.leaflet-control-attribution{font-size:10px}

.map-intro{padding-top:8px}
.map-intro .display{margin:6px 0 8px}
.map-intro .sub{max-width:64ch}

/* full-bleed hero — the map is the star */
/* Q211 — a MUTED street basemap sits under the districts, HARD-CLIPPED to the DC boundary in JS (addDCClip):
   streets show inside DC, nothing outside (the clean diamond). The Leaflet container background stays paper so
   the clipped-away area reads as the page ground (no MD/VA/metro). */
.map-hero{position:relative;width:100%;height:min(80vh,760px);margin:18px 0 30px;background:var(--paper)}
.map-hero .geomap{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;background:var(--paper)}
.map-hero .leaflet-container{background:var(--paper)}
/* Q211 — desaturate the basemap toward paper/ink so the colored SMD fills still pop; the whole tile pane is
   clipped to DC (clip-path set in addDCClip), so this filter only ever touches in-DC streets. */
.map-hero .leaflet-tile-pane{filter:grayscale(.62) contrast(.9) brightness(1.06) sepia(.08) opacity(.92)}

/* floated controls ON the map */
/* Q182 — wider search so the address/SMD help text fits on one line; status pill pushed clear below it. */
.map-search{position:absolute;top:14px;left:14px;z-index:500;display:flex;flex-wrap:nowrap;gap:8px;background:var(--surface);
  border:2px solid var(--ink);border-radius:var(--r);padding:8px;box-shadow:var(--shadow-pop-sm);max-width:min(92vw,460px)}
.map-search input{flex:1;min-width:190px;font-size:16px;padding:9px 11px;border:1.5px solid var(--seat-line);border-radius:var(--r-sm);background:#fff}
.map-status{position:absolute;top:84px;left:14px;z-index:500;margin:0;font-size:12.5px;color:var(--ink-2);
  background:var(--surface);border-radius:var(--r-pill);padding:4px 12px;box-shadow:var(--shadow-pop-sm);max-width:min(88vw,420px)}
.map-status.is-warn{color:var(--secondary-strong,#C4145A)}
.map-legend{position:absolute;bottom:14px;left:14px;z-index:500;margin:0;background:var(--surface);
  border:2px solid var(--ink);border-radius:var(--r);padding:10px 14px;box-shadow:var(--shadow-pop-sm);
  flex-direction:column;gap:6px;align-items:flex-start;max-width:min(88vw,260px)}

/* Zoom control top-right (Q142) — clear of the top-left search; a11y ≥44px touch targets. */
.map-hero .leaflet-control-zoom{border:2px solid var(--ink);border-radius:var(--r-sm);overflow:hidden;box-shadow:var(--shadow-pop-sm)}
.map-hero .leaflet-control-zoom a{width:44px;height:44px;line-height:44px;font-size:20px}

/* slide-in side panel (the seat detail) — sits ABOVE Leaflet's controls (z 1000) so it cleanly covers
   the top-right zoom when open (no control floating over the panel). */
.map-panel{position:absolute;top:0;right:0;z-index:1100;width:min(92vw,360px);height:100%;
  border:0;border-left:2px solid var(--ink);border-radius:0;overflow:auto;
  transform:translateX(100%);transition:transform .22s ease;box-shadow:none}
.map-panel.is-open{transform:translateX(0)}
.map-panel__close{position:absolute;top:10px;right:12px;background:none;border:0;font-size:26px;line-height:1;
  color:var(--ink-2);cursor:pointer;padding:2px 6px}
.map-panel__close:hover{color:var(--ink)}
@media(prefers-reduced-motion:reduce){.map-panel{transition:none}}

/* the list is demoted to a collapsible "browse all" — kept as the a11y-complete equivalent */
/* Q490 — the SMD browse list uses the canonical `details.disclosure` (frame/chevron/marker from styles.css);
   `.smd-browse` keeps only its outer margin + the display-face summary type + the list padding hook. */
.smd-browse{margin:8px 0 34px}
.smd-browse > summary{font-family:var(--font-display);font-size:16px}
.smd-browse .smdlist-wrap{padding:0 4px 4px;margin-top:0}

@media(max-width:560px){
  .map-hero{height:72vh}
  .map-legend{font-size:12px;padding:8px 10px}
  .map-search{max-width:calc(100vw - 92px)}   /* reserve the top-right corner for the zoom control (Q142) */
  .map-status{max-width:calc(100vw - 92px)}   /* Q182 — same corner reserve so the pill never reaches the zoom */
  .map-panel{width:100%}
}

/* Q198 — the paper-box overlay mask is retired; the districts render on the paper ground directly. */

/* "Back to all of DC" reset — appears after you zoom into a district */
.map-reset{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);z-index:550;font:inherit;font-size:13px;
  font-weight:600;background:var(--surface);border:2px solid var(--ink);border-radius:var(--r-pill);padding:8px 16px;
  cursor:pointer;box-shadow:var(--shadow-pop-sm)}
.map-reset:hover{background:var(--paper)}

/* QL1 district finder head (tokens only) */
.finder{margin:0 0 16px}
.finder-label{display:block;font-weight:600;font-size:14px;margin:0 0 6px;color:var(--ink)}
.finder > .field{width:100%;box-sizing:border-box;margin:0 0 10px}
.finder-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px}
.finder-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.finder-grouplbl{font-size:13px;font-weight:600;color:var(--ink-2)}
.finder .chipbtn{min-height:44px}
.finder .chipbtn.sm{min-height:44px;min-width:44px;padding:6px 12px}
.finder .chipbtn .smd-dot{margin-right:5px}
.finder-sort{width:auto;min-height:40px}
.finder-count{font-size:13px;color:var(--ink-2);margin:8px 0 0;font-weight:600}
/* Q311 — the one-line explainer under the winnable-and-empty chip. */
.finder-opp-note{font-size:12.5px;margin:0 0 8px;line-height:1.4}
