/* ═══════════════════════════════════════════════════════════════════════════
   London map: iOS 26 "Liquid Glass" tokens (shared with the budget app) with
   Apple Maps layout patterns: a full-bleed map, a floating detented sheet on
   phones, a floating sidebar card on wide screens, and glass control pills.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --bg: #f5f5f7;
  --surface-1: #ffffff;
  --surface-2: #f2f2f7;
  --surface-3: #e9e9ef;

  --glass-thin: rgba(255, 255, 255, 0.42);
  --glass-regular: rgba(255, 255, 255, 0.56);
  --glass-thick: rgba(250, 250, 252, 0.72);
  --glass-highlight: rgba(255, 255, 255, 0.9);
  --glass-shadow-edge: rgba(0, 0, 0, 0.05);
  --glass-rim: rgba(255, 255, 255, 0.55);

  --border: rgba(60, 60, 67, 0.12);
  --separator: rgba(60, 60, 67, 0.16);

  --ink: #1c1c1e;
  --ink-muted: rgba(60, 60, 67, 0.6);
  --ink-faint: rgba(60, 60, 67, 0.3);
  --ink-on-accent: #ffffff;

  --accent: #0a84ff;
  --accent-press: #0060df;
  --accent-soft: rgba(10, 132, 255, 0.12);
  --negative: #ff3b30;

  /* Overlay layer colours (the map's legend; mirrored in app.js). */
  --l-gla: #1c1c1e;
  --l-boroughs: #0a84ff;
  --l-wards: #5e5ce6;
  --l-pc_areas: #ff9f0a;
  --l-pc_districts: #ff375f;
  --l-pc_sectors: #00a3a3;
  --l-pc_units: #bf5af2;
  --l-msoas: #a2845e;
  --l-lsoas: #28a745;
  --l-oas: #8e8e93;

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 24px;
  --r-lg: 30px;
  --r-xl: 38px;
  --r-full: 9999px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.03);
  --shadow-2: 0 4px 16px -4px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-3: 0 12px 40px -8px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.08);

  --blur-md: blur(16px) saturate(185%);
  --blur-lg: blur(24px) saturate(190%);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.32, 1.2, 0.5, 1);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --gutter: 16px;
  --panel-w: 384px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface-1: #1c1c1e;
  --surface-2: #2c2c2e;
  --surface-3: #3a3a3c;

  --glass-thin: rgba(28, 28, 30, 0.5);
  --glass-regular: rgba(30, 30, 34, 0.6);
  --glass-thick: rgba(30, 30, 34, 0.74);
  --glass-highlight: rgba(255, 255, 255, 0.12);
  --glass-shadow-edge: rgba(0, 0, 0, 0.5);
  --glass-rim: rgba(255, 255, 255, 0.12);

  --border: rgba(255, 255, 255, 0.12);
  --separator: rgba(255, 255, 255, 0.14);

  --ink: #f5f5f7;
  --ink-muted: rgba(235, 235, 245, 0.6);
  --ink-faint: rgba(235, 235, 245, 0.32);

  --accent-press: #409cff;
  --accent-soft: rgba(10, 132, 255, 0.26);
  --negative: #ff453a;

  --l-gla: #f5f5f7;
  --l-boroughs: #409cff;
  --l-wards: #7d7aff;
  --l-pc_areas: #ffb340;
  --l-pc_districts: #ff6482;
  --l-pc_sectors: #2dd4bf;
  --l-pc_units: #da8fff;
  --l-msoas: #c2a888;
  --l-lsoas: #30d158;
  --l-oas: #aeaeb2;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-2: 0 4px 16px -4px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-3: 0 12px 40px -8px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter",
    system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
}
button, a, input, label, [role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
.tnum { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.focus-ring:focus-visible, button:focus-visible, input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 1.5px var(--accent);
}
.pressable { transition: transform 140ms var(--ease-out), background-color 140ms var(--ease-out); }
.pressable:active { transform: scale(0.96); }
.icon { width: 22px; height: 22px; flex: none; display: block; }
.icon-sm { width: 18px; height: 18px; }

/* ── Glass materials ───────────────────────────────────────────────────────── */
.glass, .glass-thick {
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--glass-rim);
  box-shadow: inset 0 1px 1px var(--glass-highlight), inset 0 -1px 1px var(--glass-shadow-edge),
    var(--shadow-3);
}
.glass { background: var(--glass-regular); }
.glass-thick {
  background: var(--glass-thick);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass-thick { background: var(--surface-1); }
}

/* ── Map ───────────────────────────────────────────────────────────────────── */
#map { position: fixed; inset: 0; background: var(--surface-2); }
.maplibregl-ctrl-attrib {
  font-size: 11px;
  background: var(--glass-regular) !important;
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border-radius: var(--r-full) !important;
  color: var(--ink-muted);
}
.maplibregl-ctrl-attrib a { color: var(--ink-muted) !important; }
.maplibregl-ctrl-attrib-button { background-color: transparent !important; }
:root[data-theme="dark"] .maplibregl-ctrl-attrib-button { filter: invert(1); }
.maplibregl-ctrl-scale {
  background: transparent;
  border-color: var(--ink-muted);
  color: var(--ink-muted);
  font-size: 10px;
}

/* ── Floating controls (top right, Apple Maps pill) ─────────────────────────── */
.controls {
  position: fixed;
  top: calc(var(--safe-top) + 12px);
  right: calc(var(--gutter) - 4px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
  align-items: flex-end;
}
.pill {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-full);
  overflow: hidden;
}
.pill button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.pill button + button { border-top: 1px solid var(--separator); }
.pill button[aria-pressed="true"] { color: var(--accent); }
.pill button:active { background: var(--accent-soft); }
.compass {
  width: 46px;
  height: 46px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.compass.is-hidden { opacity: 0; transform: scale(0.6); pointer-events: none; }
.compass svg { transition: transform 60ms linear; }
.zoom-pill { display: none; }

/* ── Sheet (phone: detented bottom sheet; wide: floating sidebar card) ────── */
.sheet {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: calc(100dvh - var(--safe-top) - 10px);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  transform: translate3d(0, var(--sheet-y, 60vh), 0);
  will-change: transform;
  touch-action: none;
}
.sheet.is-animating { transition: transform 420ms var(--ease-spring); }
.sheet-grabber {
  flex: none;
  height: 20px;
  display: grid;
  place-items: center;
  cursor: grab;
}
.sheet-grabber::before {
  content: "";
  width: 38px;
  height: 5px;
  border-radius: var(--r-full);
  background: var(--ink-faint);
}
.sheet-head { flex: none; padding: 0 var(--gutter) 10px; }
.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 var(--gutter) calc(var(--safe-bottom) + 24px);
  -webkit-overflow-scrolling: touch;
}
.sheet:not(.is-full) .sheet-body { overflow-y: hidden; }

@media (min-width: 760px) {
  .sheet {
    left: calc(var(--safe-top) * 0 + 16px);
    right: auto;
    top: 16px;
    bottom: auto;
    width: var(--panel-w);
    height: auto;
    max-height: calc(100dvh - 32px);
    border-radius: var(--r-lg);
    transform: none !important;
    touch-action: auto;
  }
  .sheet-grabber { display: none; }
  .sheet-head { padding-top: 14px; }
  .sheet-body, .sheet:not(.is-full) .sheet-body { overflow-y: auto; }
  .sheet.is-collapsed .sheet-body { display: none; }
  .controls { top: 16px; right: 16px; }
  .zoom-pill { display: flex; }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0; }
  .controls .zoom-pill { margin-top: 2px; }
}

/* ── Search field ──────────────────────────────────────────────────────────── */
.search-row { display: flex; gap: 10px; align-items: center; }
.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  color: var(--ink-muted);
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
}
.search input::placeholder { color: var(--ink-muted); }
.search input:focus-visible { box-shadow: none; }
.search:focus-within { box-shadow: 0 0 0 4px var(--accent-soft); }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear { color: var(--ink-faint); display: grid; place-items: center; }
.cancel { color: var(--accent); font-size: 17px; padding: 0 2px; white-space: nowrap; }

/* ── Content blocks ────────────────────────────────────────────────────────── */
.section { margin-top: 18px; }
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 4px 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.section-title .aside { font-weight: 400; color: var(--accent); font-size: 15px; }
.group {
  background: var(--surface-1);
  border-radius: var(--r-sm);
  overflow: hidden;
}
:root[data-theme="dark"] .group { background: color-mix(in srgb, var(--surface-2) 80%, transparent); }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 14px;
  text-align: left;
  position: relative;
}
.row + .row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 56px;
  right: 0;
  height: 1px;
  background: var(--separator);
}
.row.no-glyph + .row.no-glyph::before { left: 14px; }
button.row:active { background: var(--surface-3); }
.row .glyph {
  width: 30px;
  height: 30px;
  border-radius: var(--r-full);
  flex: none;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--ink-muted);
}
.row .glyph.tinted { color: #fff; }
.row .glyph.tinted.gla { color: var(--surface-1); }
.row .text { flex: 1; min-width: 0; }
.row .title {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .sub {
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .trail { color: var(--ink-faint); font-size: 15px; display: flex; align-items: center; gap: 4px; }
.row .trail.value { color: var(--ink-muted); }
.row.is-active { background: var(--accent-soft); }
.row mark { background: none; color: var(--ink); font-weight: 700; }
.row .sub mark { color: var(--ink-muted); }

/* Layer chips: horizontal rail on the home sheet. */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 2px var(--gutter);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px 0 10px;
  border-radius: var(--r-full);
  background: var(--surface-1);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
  box-shadow: var(--shadow-1);
}
:root[data-theme="dark"] .chip { background: var(--surface-2); }
.chip[aria-pressed="true"] {
  background: color-mix(in srgb, var(--chip-c) 16%, var(--surface-1));
  color: color-mix(in srgb, var(--chip-c) 70%, var(--ink));
}
:root[data-theme="dark"] .chip[aria-pressed="true"] {
  background: color-mix(in srgb, var(--chip-c) 26%, var(--surface-2));
  color: color-mix(in srgb, var(--chip-c) 55%, var(--ink));
}
.chip.small { height: 30px; padding: 0 12px; font-size: 14px; }

/* Layer swatch: a little outlined tile showing the line style, not a dot. */
.swatch {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid var(--sw-c);
  background: color-mix(in srgb, var(--sw-c) 14%, transparent);
  flex: none;
}
.swatch.thin { border-width: 1.25px; }
.swatch.dashed { border-style: dashed; }

/* ── Detail (place card) ───────────────────────────────────────────────────── */
.card-head { display: flex; align-items: flex-start; gap: 12px; }
.card-head .titles { flex: 1; min-width: 0; }
.card-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.card-sub { margin-top: 3px; font-size: 15px; color: var(--ink-muted); }
.close {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink-muted);
}
.actions { display: flex; gap: 8px; margin-top: 14px; }
.action {
  flex: 1;
  min-width: 0;
  height: 58px;
  border-radius: var(--r-sm);
  background: var(--surface-1);
  color: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 12.5px;
  font-weight: 600;
}
.action.primary { background: var(--accent); color: var(--ink-on-accent); }
:root[data-theme="dark"] .action:not(.primary) { background: var(--surface-2); }
/* Flex rather than grid so a short last row stretches instead of leaving gaps. */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--separator);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-top: 14px;
}
.stat { background: var(--surface-1); padding: 10px 12px; flex: 1 1 calc(33% - 1px); min-width: 100px; }
:root[data-theme="dark"] .stat { background: var(--surface-2); }
.stat .label { font-size: 12.5px; color: var(--ink-muted); }
.stat .value { font-size: 19px; font-weight: 650; margin-top: 1px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .value small { font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.note { font-size: 12.5px; color: var(--ink-muted); margin: 18px 4px 0; line-height: 1.45; }
.note a { color: var(--ink-muted); }
.empty { padding: 18px 4px; color: var(--ink-muted); font-size: 15px; }
.skeleton {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* View transition inside the sheet. */
.view-in { animation: view-in 260ms var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }

/* ── Choose-map card ───────────────────────────────────────────────────────── */
.mapcard {
  position: fixed;
  z-index: 40;
  left: 8px;
  right: 8px;
  bottom: calc(8px + var(--safe-bottom));
  border-radius: var(--r-xl);
  padding: 16px var(--gutter) 18px;
  max-height: calc(100dvh - var(--safe-top) - 24px);
  overflow-y: auto;
  transform-origin: bottom center;
  transition: transform 380ms var(--ease-spring), opacity 200ms var(--ease-out);
}
.mapcard.is-hidden { opacity: 0; transform: translateY(40px) scale(0.98); pointer-events: none; }
.mapcard .card-head { align-items: center; }
.mapcard .card-title { font-size: 20px; }
@media (min-width: 760px) {
  .mapcard {
    left: auto;
    right: 72px;
    top: 16px;
    bottom: auto;
    width: 340px;
    border-radius: var(--r-lg);
    transform-origin: top right;
    max-height: calc(100dvh - 32px);
  }
  .mapcard.is-hidden { transform: scale(0.94); }
}
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.style-opt { display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: 13px; font-weight: 500; }
.style-opt .thumb {
  width: 100%;
  aspect-ratio: 1.25;
  border-radius: var(--r-sm);
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  box-shadow: var(--shadow-1);
}
.style-opt[aria-pressed="true"] { color: var(--accent); }
.style-opt[aria-pressed="true"] .thumb { border-color: var(--accent); }
.thumb.explore { background: linear-gradient(135deg, #f2efe9 0 40%, #cfe8c9 40% 55%, #f2efe9 55% 70%, #aad3df 70%); }
.thumb.muted { background: linear-gradient(135deg, #f7f7f5 0 45%, #e3e3e3 45% 52%, #f7f7f5 52% 75%, #d4dadc 75%); }
.thumb.satellite { background: linear-gradient(135deg, #3a4a2c 0 35%, #6b6a4f 35% 55%, #2d3a26 55% 75%, #1f3442 75%); }
:root[data-theme="dark"] .thumb.explore { background: linear-gradient(135deg, #2b2d31 0 40%, #26352a 40% 55%, #2b2d31 55% 70%, #1d2a38 70%); }
:root[data-theme="dark"] .thumb.muted { background: linear-gradient(135deg, #22303b 0 45%, #2e3d49 45% 52%, #22303b 52% 75%, #1a2630 75%); }

/* Switch (iOS). */
.switch {
  position: relative;
  width: 51px;
  height: 31px;
  flex: none;
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--ink) 16%, transparent);
  transition: background-color 220ms var(--ease-in-out);
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: var(--r-full);
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.16);
  transition: transform 260ms var(--ease-spring);
}
[aria-checked="true"] > .switch { background: #34c759; }
[aria-checked="true"] > .switch::after { transform: translateX(20px); }

/* ── Map markers ───────────────────────────────────────────────────────────── */
.pin {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: var(--negative);
  border: 2.5px solid #fff;
  box-shadow: var(--shadow-3);
  display: grid;
  place-items: center;
  animation: pin-drop 420ms var(--ease-spring) both;
}
.pin::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}
@keyframes pin-drop { from { transform: rotate(-45deg) translate(14px, -14px); opacity: 0; } }
.me {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  position: relative;
}
.me::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.18;
  animation: me-pulse 2.4s var(--ease-out) infinite;
}
@keyframes me-pulse { from { transform: scale(0.4); opacity: 0.4; } to { transform: scale(1.4); opacity: 0; } }

/* Hover tooltip (pointer devices). */
.tip {
  position: fixed;
  z-index: 25;
  pointer-events: none;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transform: translate(12px, 12px);
}
.tip span { font-weight: 400; color: var(--ink-muted); }
.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  top: calc(var(--safe-top) + 14px);
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  transition: opacity 200ms var(--ease-out), transform 300ms var(--ease-spring);
}
.toast.is-hidden { opacity: 0; transform: translate(-50%, -12px); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ── Layer groups: dropdown chips and collapsible card sections ────────────── */
.chip .swatches { display: inline-flex; gap: 3px; margin-left: 2px; }
.chip .swatches .swatch { width: 12px; height: 12px; border-radius: 4px; border-width: 1.5px; }
.chip .caret { width: 16px; height: 16px; margin-left: -2px; opacity: 0.55; transition: transform 200ms var(--ease-out); }
.chip[aria-expanded="true"] .caret { transform: rotate(180deg); }
.chips { gap: 8px; }

.menu {
  position: fixed;
  z-index: 45;
  border-radius: var(--r-md);
  padding: 6px;
  animation: menu-in 220ms var(--ease-out) both;
}
.menu[data-side="above"] { transform-origin: bottom left; }
@keyframes menu-in { from { opacity: 0; transform: scale(0.96); } }
.menu-title { font-size: 13px; color: var(--ink-muted); padding: 6px 10px 4px; }
.menu .row { border-radius: var(--r-sm); min-height: 50px; padding: 6px 10px; }
.menu .row + .row::before { left: 52px; right: 10px; }
.menu .row:active { background: var(--accent-soft); }
.check { width: 22px; display: grid; place-items: center; color: var(--accent); flex: none; }

.group-head {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 4px 4px 8px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
.group-head .count { margin-left: auto; font-weight: 400; color: var(--ink-muted); }
.group-head .chev { color: var(--ink-faint); transition: transform 220ms var(--ease-out); }
.group-head[aria-expanded="true"] .chev { transform: rotate(90deg); }
.mapcard .section { margin-top: 14px; }
