/* ==========================================================================
   SurfCheck.nz — Map page (full-screen MapLibre + drawer)

   Architecture:
     - Top: page header (eyebrow + title) + filter pills + tile-layer toggle
     - Below: full-width MapLibre map filling remaining viewport
     - On pin click: drawer slides in (right on desktop, bottom on mobile)
     - Drawer = snapshot + 7-day chips, with "View full guide →" to spot page

   Pin colour reflects CURRENT rating tier (epic/good/fair/poor/flat).
   ========================================================================== */

/* ── Page layout ───────────────────────────────────────────────────────── */
/* Grid layout for the map page so the map row gets a deterministic 1fr slot.
   Header + toolbar are auto-sized, map takes the rest. Footer is hidden.

   IMPORTANT: third-party scripts (FareHarbor lightframe, etc.) inject extra
   <div>/<iframe> elements directly into <body>. Without explicit grid-row
   assignment those injected children steal the auto rows and our header
   ends up in the 1fr row, collapsing .map-stage to 0px. The grid-row rules
   below pin our 3 elements to rows 1/2/3 regardless of source order, and
   grid-auto-rows: 0 makes any extra injected siblings size to 0px. */
body.map-page {
  display: grid;
  grid-template-rows: auto auto 1fr;
  grid-auto-rows: 0;
  height: 100dvh;
  overflow: hidden;
}
body.map-page > .site-header { grid-row: 1; }
body.map-page > .map-toolbar { grid-row: 2; }
body.map-page > .map-stage   { grid-row: 3; }
body.map-page .site-footer { display: none; }
/* Inside a grid, .map-stage just needs to be a grid item — no flex juggling */
body.map-page .map-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* ── Toolbar (filter + tile toggle, sticky below header) ───────────────── */
.map-toolbar {
  flex: 0 0 auto;
  background: rgba(6, 18, 31, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: var(--gap-3) var(--gap-5);
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.map-toolbar::-webkit-scrollbar { display: none; }
.map-toolbar-left, .map-toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--gap-2);
  flex-shrink: 0;
}
.map-toolbar-left { flex: 1; }
.map-filter-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 6px;
  white-space: nowrap;
}
.map-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.map-pill:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}
.map-pill.active {
  background: rgba(95,183,255,0.16);
  border-color: rgba(95,183,255,0.5);
  color: var(--accent);
}
.map-pill .pill-icon { font-size: 14px; }
.map-pill .count {
  font-size: 11px;
  opacity: 0.65;
  font-weight: 500;
}

/* Tile layer toggle (right side of toolbar) */
.tile-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.tile-toggle-btn {
  padding: 5px 12px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.tile-toggle-btn:hover { color: var(--text); }
.tile-toggle-btn.active {
  background: var(--accent);
  color: #04101c;
}

/* ── Map area + pins ───────────────────────────────────────────────────── */
.map-stage {
  flex: 1 1 auto;
  position: relative;
  width: 100%;
  min-height: 0;   /* allow flex shrink */
}
#nz-map {
  /* Absolute fill — guarantees a non-zero height regardless of flex math */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-2);
}

/* Hide MapLibre's default attribution dot — we provide our own footer */
#nz-map .maplibregl-ctrl-attrib {
  font-size: 9px;
  background: rgba(0,0,0,0.5) !important;
}
#nz-map .maplibregl-ctrl-attrib a { color: rgba(255,255,255,0.7); }
#nz-map .maplibregl-ctrl-group {
  background: rgba(6, 18, 31, 0.85) !important;
  border: 1px solid var(--border) !important;
}
#nz-map .maplibregl-ctrl-group button { color: var(--text); }

/* Tile-style toggle: dim + desaturate the streets layer for the dark theme.
   Values match the existing app.html map look. Satellite + Topo stay natural. */
/* No CSS filter on streets — ESRI Dark Gray Canvas is already dark + on-theme.
   Satellite + Topo render at their natural brightness. */

/* ── Pins ──────────────────────────────────────────────────────────────── */
.map-pin {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #5f6f86;          /* default: flat / no data */
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.map-pin:hover {
  transform: scale(1.3);
  box-shadow: 0 4px 14px rgba(0,0,0,0.7);
  z-index: 5;
}
.map-pin.good { background: var(--good); }
.map-pin.mint { background: var(--mint); }
.map-pin.grim { background: var(--grim); }
.map-pin.fair { background: var(--fair); }
.map-pin.poor { background: var(--poor); }
/* Epic pins are bigger + glow — instantly distinguishable from Good on a
   busy map. Good = standard blue, Epic = bright cyan with a soft halo. */
.map-pin.epic {
  background: var(--epic);
  width: 20px; height: 20px;
  box-shadow:
    0 0 0 3px rgba(77, 226, 255, 0.28),
    0 2px 10px rgba(0,0,0,0.5);
}

/* Selected pin: blue accent ring + brighter shadow */
.map-pin.selected {
  width: 24px; height: 24px;
  border-width: 3px;
  box-shadow: 0 0 0 4px rgba(95,183,255,0.45), 0 4px 16px rgba(0,0,0,0.7);
  z-index: 10;
}

/* Name label.
   Default (low zoom): only visible on hover or when selected.
   Zoomed in (zoom ≥ 10, JS adds .show-label class): always visible.
   When visible, the label is clickable too — pseudo-element clicks bubble
   to the .map-pin parent which has the selectSpot() handler. */
.map-pin::after {
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 9px;
  background: rgba(6, 18, 31, 0.92);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;     /* hidden state: ignore clicks (no hover label = not clickable) */
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  cursor: pointer;
}
.map-pin:hover::after,
.map-pin.show-label::after,
.map-pin.selected::after { pointer-events: auto; }   /* visible label IS clickable */
.map-pin:hover::after,
.map-pin.show-label::after { opacity: 1; }
.map-pin.selected::after {
  opacity: 1;
  background: var(--accent);
  color: #04101c;
  border-color: var(--accent);
  font-weight: 700;
}

/* "Locate me" button — floats bottom-left of map */
.locate-btn {
  position: absolute;
  /* Sits ABOVE the sitewide feedback button (fixed bottom-left at 18px), so the
     feedback button can align at the bottom like every other page. */
  bottom: calc(var(--gap-4) + 46px); left: var(--gap-4);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(6, 18, 31, 0.9);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  backdrop-filter: blur(8px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.locate-btn:hover { background: rgba(6, 18, 31, 0.98); border-color: var(--accent); }
.locate-btn.locating { color: var(--accent); }

/* When the spot drawer is open it owns the screen, so step the floating feedback
   button aside (it would otherwise overlap the drawer's bottom CTA). */
body:has(#spot-drawer.open) .fbk-btn { display: none; }

/* Map legend — top-left ribbon explaining pin colours (moved off the
   bottom-right so it no longer hides under the floating Ask SurfGuru button) */
.map-legend {
  position: absolute;
  top: var(--gap-4); left: var(--gap-4);
  padding: 10px 14px;
  border-radius: var(--r-2);
  background: rgba(6, 18, 31, 0.9);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  display: flex;
  gap: var(--gap-3);
  font-size: 11.5px;
  font-weight: 600;
  z-index: 5;
}
.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
}
.map-legend-item::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #5f6f86;
}
.map-legend-item.epic::before { background: var(--epic); }
.map-legend-item.good::before { background: var(--good); }
.map-legend-item.mint::before { background: var(--mint); }
.map-legend-item.grim::before { background: var(--grim); }
.map-legend-item.fair::before { background: var(--fair); }
.map-legend-item.poor::before { background: var(--poor); }
.map-legend-item.flat::before { background: var(--flat); }
@media (max-width: 700px) {
  .map-legend { display: none; }
}

/* ── Drawer ────────────────────────────────────────────────────────────── */
.spot-drawer {
  position: fixed;
  top: 0; right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--bg-2);
  border-left: 1px solid var(--border-2);
  box-shadow: -10px 0 40px rgba(0,0,0,0.4);
  z-index: 100;
  overflow: hidden;            /* outer no longer scrolls — .drawer-scroll does */
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.spot-drawer.open { transform: translateX(0); }

/* Mobile: drawer becomes a bottom sheet */
@media (max-width: 720px) {
  .spot-drawer {
    top: auto;
    left: 0; right: 0;
    width: 100vw;
    height: 80vh;
    max-height: 80vh;
    border-left: 0;
    border-top: 1px solid var(--border-2);
    border-radius: var(--r-4) var(--r-4) 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    transform: translateY(100%);
  }
  .spot-drawer.open { transform: translateY(0); }
}

/* Floating close button. Lives OUTSIDE the .drawer-scroll, so it stays
   anchored to the drawer regardless of how far the user has scrolled.
   Same circular shape as the save-star for visual consistency. */
.drawer-close {
  position: absolute;
  top: var(--gap-3); right: var(--gap-3);
  z-index: 10;                        /* above hero overlay + sticky bits */
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: inherit;
  padding: 0;
  transition: background 0.15s, transform 0.05s;
}
.drawer-close:hover { background: rgba(0,0,0,0.85); }
.drawer-close:active { transform: scale(0.94); }
/* Desktop: bump the X further left so it clears the drawer's vertical
   scrollbar (which sits at the drawer's right edge, ~15px wide). Mobile
   doesn't show a scrollbar so it keeps the tight gap-3 offset. */
@media (min-width: 721px) {
  .drawer-close { right: calc(var(--gap-3) + 12px); }
}

/* Scrollable inner — everything below the floating close button.
   Takes the full drawer height; overflows vertically with momentum scroll. */
.drawer-scroll {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Bottom-sheet drag-handle (mobile) — purely visual */
.drawer-handle {
  display: none;
  width: 40px; height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 999px;
  margin: 8px auto 4px;
  position: relative; z-index: 4;
}
@media (max-width: 720px) {
  .drawer-handle { display: block; }
}

/* Drawer hero */
.drawer-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-3);
  overflow: hidden;
}
.drawer-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.drawer-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,18,31,0) 50%, rgba(6,18,31,0.8) 100%);
  pointer-events: none;
}
.drawer-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--gap-4);
  z-index: 2;
}
.drawer-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  margin-bottom: 4px;
}
.drawer-title {
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.05;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 3px 14px rgba(0,0,0,0.6);
}
/* Save-star on drawer hero — match the story modal hero save-star so the
   visual treatment is consistent across all photo-overlay contexts. */
.drawer-hero .save-star {
  top: var(--gap-3);
  /* Close × is now a 40px floating circle; offset enough to clear it + gap */
  right: calc(var(--gap-3) + 48px);
  width: 42px; height: 42px;
  font-size: 19px;
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.25);
}
.drawer-hero .save-star.saved {
  background: rgba(232,184,75,0.28);
}

/* Drawer body */
.drawer-body {
  padding: var(--gap-4);
  display: flex;
  flex-direction: column;
  gap: var(--gap-4);
}

/* Current conditions block */
.drawer-now {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  padding: var(--gap-3) var(--gap-4);
}
.drawer-now-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--gap-2);
}
.drawer-now-label .freshness {
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
  color: var(--text-3);
  font-size: 11px;
}
.drawer-rating-row {
  display: flex;
  align-items: baseline;
  gap: var(--gap-2);
  margin-bottom: 6px;
}
.drawer-rating-label {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.drawer-rating-num {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1;
}
.drawer-rating-num .of10 {
  font-size: 0.6em;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 1px;
}
.drawer-rating-label.epic, .drawer-rating-num.epic { color: var(--epic); }
.drawer-rating-label.good, .drawer-rating-num.good { color: var(--good); }
.drawer-rating-label.mint, .drawer-rating-num.mint { color: var(--mint); }
.drawer-rating-label.grim, .drawer-rating-num.grim { color: var(--grim); }
.drawer-rating-label.fair, .drawer-rating-num.fair { color: var(--fair); }
.drawer-rating-label.poor, .drawer-rating-num.poor { color: var(--poor); }
.drawer-reason {
  font-size: 13px;
  color: var(--text-2);
  margin: 0 0 var(--gap-3);
  line-height: 1.5;
}
.drawer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-2);
  padding-top: var(--gap-3);
  border-top: 1px solid var(--border);
}
.drawer-stat {
  text-align: center;
}
.drawer-stat-num {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.drawer-stat-unit {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 2px;
  font-weight: 500;
}
.drawer-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Facts strip (4 col compact) */
.drawer-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: rgba(255,255,255,0.025);
  overflow: hidden;
}
.drawer-fact {
  padding: 10px 12px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.drawer-fact:nth-child(2n) { border-right: 0; }
.drawer-fact:nth-last-child(-n+2) { border-bottom: 0; }
.drawer-fact-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}
.drawer-fact-value {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* 7-day chips */
.drawer-7day-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}
.drawer-7day {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  min-height: 50px;
}
.drawer-7day-cell {
  text-align: center;
  padding: 5px 0 6px;
  border-radius: var(--r-1);
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
}
.drawer-7day-cell.epic { background: color-mix(in srgb, var(--epic) 12%, transparent); border-color: color-mix(in srgb, var(--epic) 32%, transparent); }
.drawer-7day-cell.good { background: color-mix(in srgb, var(--good) 12%, transparent);  border-color: color-mix(in srgb, var(--good) 32%, transparent); }
.drawer-7day-cell.mint { background: color-mix(in srgb, var(--mint) 12%, transparent);  border-color: color-mix(in srgb, var(--mint) 32%, transparent); }
.drawer-7day-cell.grim { background: color-mix(in srgb, var(--grim) 12%, transparent);  border-color: color-mix(in srgb, var(--grim) 32%, transparent); }
.drawer-7day-cell.fair { background: color-mix(in srgb, var(--fair) 10%, transparent);  border-color: color-mix(in srgb, var(--fair) 28%, transparent); }
.drawer-7day-cell.poor { background: color-mix(in srgb, var(--poor) 10%, transparent); border-color: color-mix(in srgb, var(--poor) 25%, transparent); }
.drawer-7day-dow {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.drawer-7day-num {
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
  color: var(--text);
}
.drawer-7day-cell.epic .drawer-7day-num { color: var(--epic); }
.drawer-7day-cell.good .drawer-7day-num { color: var(--good); }
.drawer-7day-cell.mint .drawer-7day-num { color: var(--mint); }
.drawer-7day-cell.grim .drawer-7day-num { color: var(--grim); }
.drawer-7day-cell.fair .drawer-7day-num { color: var(--fair); }
.drawer-7day-cell.poor .drawer-7day-num { color: var(--poor); }

/* Detailed 7-day grid embedded in the drawer.
   The .fc-* styles come from spot.css. We just space it from the chip strip
   above and let .fc-scroll handle the horizontal overflow. */
.drawer-detailed-section {
  margin-top: var(--gap-5);
}
.drawer-detailed-section .fc-wrap {
  /* Drawer is narrower than the spot page — guarantee scroll behaviour */
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  background: rgba(255,255,255,0.02);
}
.drawer-detailed-section .fc-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* "View full spot forecast" CTA — replaces the old "Full 7-day forecast"
   label, but doubles as a primary in-drawer link to /spots/[id]/ so users
   don't need to scroll to the bottom of the drawer to open the full guide. */
.drawer-detailed-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid rgba(95,183,255,0.35);
  background: linear-gradient(135deg, rgba(95,183,255,0.16) 0%, rgba(95,183,255,0.08) 100%);
  border-radius: var(--r-2);
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.drawer-detailed-cta:hover {
  background: linear-gradient(135deg, rgba(95,183,255,0.24) 0%, rgba(95,183,255,0.14) 100%);
  border-color: var(--accent);
}
.drawer-detailed-cta:active { transform: translateY(1px); }
.drawer-detailed-cta-main {
  grid-column: 1;
  grid-row: 1;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--accent);
}
.drawer-detailed-cta-sub {
  grid-column: 1;
  grid-row: 2;
  font-size: 11px;
  color: var(--text-3);
}
.drawer-detailed-cta-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.15s;
}
.drawer-detailed-cta:hover .drawer-detailed-cta-arrow { transform: translateX(3px); }

/* Tags */
.drawer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* CTA actions */
.drawer-actions {
  display: grid;
  gap: 8px;
  margin-top: var(--gap-2);
}
.drawer-actions .cta-btn {
  padding: 12px 14px;
}

.drawer-loading,
.drawer-error {
  padding: var(--gap-4) 0;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  font-style: italic;
}
.drawer-error { color: var(--poor); font-style: normal; }

/* Spot-quality rating in the drawer hero (number + pip meter), distinct from
   the live "Right now" rating below. */
.drawer-spot-rating { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.drawer-spot-rating .dsr-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.72);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.drawer-spot-rating .dsr-num {
  font-size: 19px; font-weight: 700; line-height: 1; color: var(--accent-2);
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}
.drawer-spot-rating .dsr-bar { display: inline-flex; gap: 2px; }
.drawer-spot-rating .dsr-bar i { width: 9px; height: 4px; border-radius: 2px; display: block; }
.drawer-spot-rating .dsr-bar i.on   { background: var(--accent-2); box-shadow: 0 0 5px rgba(122,200,255,0.5); }
.drawer-spot-rating .dsr-bar i.half { background: rgba(122,200,255,0.55); }
.drawer-spot-rating .dsr-bar i.off  { background: rgba(255,255,255,0.18); }

/* Clear-all-filters control — shown (via JS) only when ≥1 filter is active. */
.filter-clear {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--accent-2, #7ac8ff);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
  white-space: nowrap;
  opacity: 0.9;
}
.filter-clear:hover { opacity: 1; text-decoration: underline; }

/* ── Live cam indicators (Che 2026-06-13) ──────────────────────────────── */
.map-pill .pill-icon.cam { color: #ff5a5a; }
.map-pin .pin-cam-badge {
  position: absolute;
  top: -3px; right: -3px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ff5a5a;
  border: 1.5px solid #06121f;
  pointer-events: none;
}
