:root, [data-theme="neon"] {
  --bg: #0f0d18;
  --bg-2: #1a1624;
  --bg-3: #241e30;
  --ink: #f6f3fb;
  --muted: #b8b0c8;
  --faint: #8a8298;
  --line: rgba(255, 255, 255, 0.1);
  --pink: #ff4ec8;
  --pink-dim: rgba(255, 78, 200, 0.18);
  --teal: #2ee6d6;
  --teal-dim: rgba(46, 230, 214, 0.18);
  --gold: #ff4ec8;
  --danger: #ff8aa0;
  --chrome-bg: rgba(15, 13, 24, 0.92);
  --chip-outline: #fff;
  --radius: 16px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Familjen Grotesk", "Outfit", sans-serif;
  --label-font: "Outfit", sans-serif;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --deal-cocktail: #2ee6d6;
  --deal-beer: #2ee6d6;
  --deal-wine: #2ee6d6;
  --deal-food: #2ee6d6;
  --deal-oyster: #2ee6d6;
  --deal-well: #2ee6d6;
  color-scheme: dark;
}

[data-theme="classic"] {
  --bg: #123528;
  --bg-2: #f3ead4;
  --bg-3: #efe0bf;
  --ink: #123528;
  --muted: #3e5244;
  --faint: #3e5244;
  --on-green: #f3ead4;
  --on-green-muted: #d8cba4;
  --line: rgba(80, 50, 10, 0.16);
  --pink: #123528;
  --pink-dim: rgba(18, 53, 40, 0.1);
  --teal: #123528;
  --teal-dim: rgba(18, 53, 40, 0.1);
  --gold: #c9a227;
  --danger: #123528;
  --chrome-bg: rgba(18, 53, 40, 0.94);
  --chip-outline: #f3ead4;
  --display: "Familjen Grotesk", "Outfit", sans-serif;
  --shadow: 0 16px 32px rgba(10, 30, 20, 0.28);
  --deal-cocktail: #123528;
  --deal-beer: #123528;
  --deal-wine: #123528;
  --deal-food: #123528;
  --deal-oyster: #123528;
  --deal-well: #123528;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  line-height: 1.45;
}

[data-theme="neon"] body { background: var(--bg); }

[data-theme="classic"] body { background: var(--bg); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; background: var(--bg-3); padding: 8px 12px; z-index: 50; }

/* Map-first shell: chrome stays tight, the map fills the rest of the viewport. */
body.view-map {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.view-map #main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
body.view-map #map-view {
  flex: 1;
  min-height: 0;
  position: relative;
}
body.view-map #map {
  height: 100%;
  width: 100%;
  border: 0;
}
body.view-map .crawl {
  display: none;
}

.chrome {
  flex-shrink: 0;
  position: relative;
  z-index: 1600;
  background: var(--chrome-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: calc(var(--safe-top) + 4px) 8px 4px;
}
[data-theme="classic"] .chrome {
  border-bottom: 2px solid var(--gold);
}
.chrome-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.logo-mark {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: var(--teal);
}
.logo-mark svg { width: 36px; height: 36px; display: block; }
.logo-outer { fill: var(--bg-2); stroke: var(--pink); stroke-width: 1.6; }
.logo-inner { fill: var(--bg); stroke: var(--teal); stroke-width: 1.2; }
.logo-mark text { fill: var(--ink); }
[data-theme="classic"] .logo-mark { color: var(--gold); }
[data-theme="classic"] .logo-outer { stroke: var(--gold); fill: #f3ead4; }
[data-theme="classic"] .logo-inner { stroke: #123528; fill: #f3ead4; }
[data-theme="classic"] .logo-mark text { fill: #123528; }

.time-pill,
.chrome-btn,
.icon-btn,
.view-toggle button,
.jumps button,
.chip,
.primary,
.text-btn,
.drawer-close,
.demo-btn {
  font: inherit;
  cursor: pointer;
  border: 0;
}
.time-pill {
  flex: 1 1 128px;
  min-width: 122px;
  max-width: 200px;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.time-pill[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--teal); }
.chrome-btn {
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.chrome-btn.is-on,
.jumps button.is-on,
.time-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}
[data-theme="classic"] .chrome-btn.is-on,
[data-theme="classic"] .time-pill[aria-expanded="true"] {
  color: var(--gold);
  border-color: var(--gold);
}
.now-count {
  margin: 0;
  font-weight: 600;
  font-size: 12px;
  color: var(--teal);
  white-space: nowrap;
  flex-shrink: 0;
}
[data-theme="classic"] .now-count { color: var(--gold); }

.mode-toggle {
  flex: 1 1 auto;
  max-width: 260px;
  justify-content: center;
  margin: 0 auto;
  background: var(--bg-2);
}
.mode-toggle button {
  flex: 1;
  padding: 8px 14px;
  font-size: 14px;
}

.out-bar { padding: 2px 6px 8px; }
.out-clock {
  margin: 0 2px 2px;
  font-size: 12px;
  color: var(--muted);
}
.out-window-label {
  margin: 0 2px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.window-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.window-chips button {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
}
body.mode-out .window-chips button.is-on,
.window-chips button.is-on,
.window-chips button[aria-pressed="true"] {
  background: var(--teal);
  color: #0b0a12;
  border-color: #2ee6d6;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--teal) 70%, transparent);
  font-weight: 700;
}
[data-theme="classic"] body.mode-out .window-chips button.is-on,
[data-theme="classic"] .window-chips button.is-on,
[data-theme="classic"] .window-chips button[aria-pressed="true"] {
  background: var(--gold);
  color: #123528;
  border-color: #c9a227;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 70%, transparent);
}

.plan-bar { padding: 0 4px 6px; }
.plan-day-row {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 0 2px 6px;
  margin: 0 -2px;
}
.plan-day-row::-webkit-scrollbar { display: none; }
.plan-day-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  width: max-content;
  min-height: 28px;
  padding: 0 4px;
}
.plan-day-chip {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
}
.plan-day-chip.is-on {
  background: var(--teal);
  color: #0b0a12;
  border-color: var(--teal);
  font-weight: 700;
}
[data-theme="classic"] .plan-day-chip.is-on {
  background: var(--gold);
  color: #123528;
  border-color: #c9a227;
}
.plan-heading {
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
  padding: 4px 6px 6px;
  border-radius: 10px;
}
.plan-all-chip {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  margin: 0 6px 0 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
}
.plan-all-chip.is-on,
.plan-all-chip[aria-pressed="true"] {
  background: var(--teal);
  color: #0b0a12;
  border-color: #2ee6d6;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--teal) 70%, transparent);
  font-weight: 700;
}
[data-theme="classic"] .plan-all-chip.is-on,
[data-theme="classic"] .plan-all-chip[aria-pressed="true"] {
  background: var(--gold);
  color: #123528;
  border-color: #c9a227;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 70%, transparent);
}
.plan-heading[aria-expanded="true"] {
  box-shadow: inset 0 0 0 1px var(--teal);
}
[data-theme="classic"] .plan-heading[aria-expanded="true"] {
  box-shadow: inset 0 0 0 1px var(--gold);
}

body.mode-out .plan-only,
body.mode-plan .out-only { display: none !important; }
body.mode-plan .happy-near-btn { display: none !important; }
body.mode-out .crawl { display: none !important; }

.chrome-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.icon-btn {
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.icon-btn.is-on { border-color: var(--teal); color: var(--teal); }
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-ico { width: 14px; height: 14px; display: block; flex-shrink: 0; }

.view-dock {
  position: absolute;
  right: 10px;
  z-index: 700;
  /* sits over the map, just under the chrome */
}
body.view-map .view-dock {
  position: absolute;
  top: auto;
}
#map-view .view-dock, body.view-map .view-dock {
  /* chrome is a sibling; dock is in the document after chrome */
}
body.view-map .view-dock {
  position: fixed;
  top: calc(var(--chrome-h, 96px) + 8px);
  right: 10px;
}
body:not(.view-map) .view-dock,
body.view-day .view-dock {
  position: relative;
  top: auto;
  right: auto;
  align-self: flex-end;
  flex: 0 0 auto;
  margin: 8px 16px 8px auto;
  width: max-content;
  z-index: 20;
}

.view-toggle {
  display: flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
}
.view-toggle button {
  background: transparent;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 12px;
}
.view-toggle button.is-on {
  background: var(--bg-3);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.slim-slider { padding: 2px 4px 0; }
#time-slider {
  width: 100%;
  appearance: none;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--teal));
  outline: none;
}
[data-theme="classic"] #time-slider {
  background: linear-gradient(90deg, #123528, var(--gold));
}
#time-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 35%, transparent);
  cursor: pointer;
}
#time-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 0;
  cursor: pointer;
}

.popover {
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc(100% + 4px);
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow);
  z-index: 20;
  max-height: min(70dvh, 520px);
  overflow: auto;
  overscroll-behavior: contain;
}
.popover-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
}
.popover-clock { margin: 2px 0 8px; color: var(--muted); font-size: 13px; }
.popover-note, .modal-note { font-size: 12px; color: var(--faint); margin: 8px 0 0; }

.hint {
  margin: 0;
  padding: 8px 12px;
  background: var(--pink-dim);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  flex-shrink: 0;
}

.chip-row { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }
.chip-label {
  flex: 0 0 64px;
  padding-top: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--bg-3);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
}
.chip.is-on {
  color: var(--bg);
  background: var(--teal);
  border-color: var(--teal);
  font-weight: 600;
}
[data-theme="classic"] .chip.is-on {
  background: var(--gold);
  border-color: var(--gold);
  color: #123528;
}
.segmented {
  display: flex;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  flex-wrap: wrap;
}
.segmented button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}
.segmented button.is-on {
  background: var(--teal);
  color: var(--bg);
}
[data-theme="classic"] .segmented button.is-on {
  background: var(--gold);
  color: #123528;
}
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 8px;
}
.check { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.text-btn { background: transparent; color: var(--pink); padding: 0; }
.primary {
  background: linear-gradient(90deg, var(--pink), color-mix(in srgb, var(--pink) 60%, #fff));
  color: #1a0614;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 16px;
}
[data-theme="classic"] .primary {
  background: linear-gradient(90deg, #123528, #123528);
  color: #fff8e8;
}
.jumps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.jumps button {
  background: var(--bg-3);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

#main { padding: 0 0 24px; }
.view[hidden] { display: none !important; }
#map-view { position: relative; }
#map { height: min(70vh, 640px); width: 100%; background: #1a1a22; }
[data-theme="classic"] #map { background: #d9e0d4; }

.map-placeholder {
  position: absolute;
  inset: 0;
  z-index: 420;
  display: grid;
  place-items: center;
  pointer-events: none;
  background:
    repeating-linear-gradient(-18deg, transparent, transparent 18px, rgba(46, 230, 214, 0.05) 18px, rgba(46, 230, 214, 0.05) 19px),
    #1a1a22;
  transition: opacity 0.28s ease;
}
[data-theme="classic"] .map-placeholder {
  background:
    repeating-linear-gradient(-18deg, transparent, transparent 18px, rgba(201, 162, 39, 0.1) 18px, rgba(201, 162, 39, 0.1) 19px),
    #d9e0d4;
}
.map-placeholder-inner {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.map-placeholder-inner p { margin: 0; }
.map-placeholder-line {
  width: 6px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(46, 230, 214, 0.12), rgba(46, 230, 214, 0.55), rgba(46, 230, 214, 0.12));
  transform: rotate(-18deg);
}
[data-theme="classic"] .map-placeholder-line {
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.65), rgba(201, 162, 39, 0.15));
}
.map-placeholder.is-done { opacity: 0; }
.map-placeholder[hidden] { display: none !important; }

.quiet-bar {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  z-index: 650;
  display: flex;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
  padding: 5px 6px 5px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--chrome-bg) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}
[data-theme="classic"] .quiet-bar {
  background: color-mix(in srgb, #f3ead4 92%, transparent);
  box-shadow: 0 4px 12px rgba(18, 53, 40, 0.16);
}
.quiet-bar[hidden] { display: none !important; }
.quiet-copy {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.quiet-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}
.quiet-link {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  background: var(--teal-dim);
  color: var(--teal);
  border: 0;
  border-radius: 999px;
  padding: 5px 8px;
}
[data-theme="classic"] .quiet-link {
  background: rgba(201, 162, 39, 0.18);
  color: #123528;
}
.quiet-close {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}
.quiet-close:hover,
.quiet-close:focus-visible {
  background: var(--bg-3);
  color: var(--ink);
}
body.view-map.quiet-open .leaflet-control-zoom {
  margin-top: calc(var(--quiet-h, 36px) + 8px);
}
body.view-map.quiet-open .view-dock {
  top: calc(var(--chrome-h, 96px) + var(--quiet-h, 36px) + 8px);
}

.map-legend {
  position: absolute;
  left: 10px;
  bottom: calc(10px + var(--safe-bottom));
  z-index: 500;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 8px;
  background: var(--chrome-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 8px;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--muted);
  max-width: calc(100% - 20px);
  overflow: hidden;
  pointer-events: none;
}
.legend-keys {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  pointer-events: none;
}
.legend-toggle {
  appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2px 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  min-width: 22px;
  min-height: 22px;
  -webkit-tap-highlight-color: transparent;
}
.legend-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}
.legend-toggle-icon { display: block; }
.map-legend:not(.is-collapsed) .legend-toggle-label { display: none; }
.map-legend.is-collapsed {
  padding: 4px 10px;
  gap: 0;
}
.map-legend.is-collapsed .legend-keys { display: none; }
.map-legend.is-collapsed .legend-toggle-icon { display: none; }
.map-legend.is-collapsed .legend-toggle-label { display: inline; }
[data-theme="classic"] .legend-toggle { color: var(--on-green); }
[data-theme="neon"] .legend-toggle { color: var(--muted); }
body.view-map .map-legend {
  max-width: min(382px, calc(100% - 20px));
}
body.view-map.mode-out .map-legend {
  /* Sit just above the Happy hour near me button. The footer strip holds the home-bar inset. */
  bottom: 92px;
}
body.view-map.mode-plan .map-legend {
  /* No near-me button in Plan: sit just above the footer credit strip. */
  bottom: 16px;
}
.legend-ico {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  overflow: hidden;
}
.legend-ico .state-dot,
.legend-ico .state-chip,
.legend-ico .state-chip svg {
  width: 14px !important;
  height: 14px !important;
  transform: none !important;
  margin: 0 !important;
}
body.view-map.mode-out .leaflet-bottom {
  bottom: 92px;
}
body.view-map.mode-plan .leaflet-bottom {
  bottom: 16px;
}
body.view-map .leaflet-control-zoom {
  margin-top: 8px;
}

.vhv-fit-all a.vhv-fit-all-btn {
  width: auto;
  min-width: 26px;
  padding: 0 7px;
  font-family: Outfit, "Trebuchet MS", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 26px;
  white-space: nowrap;
}
.leaflet-touch .vhv-fit-all a.vhv-fit-all-btn {
  line-height: 30px;
  font-size: 11px;
  padding: 0 8px;
}
[data-theme="classic"] .vhv-fit-all a.vhv-fit-all-btn {
  font-family: Outfit, "Trebuchet MS", sans-serif;
}

body.view-map .happy-near-btn {
  /* Footer strip below the map already includes the safe-area inset. */
  bottom: 16px;
}
.happy-near-btn {
  position: absolute;
  left: 50%;
  bottom: calc(16px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 650;
  width: min(calc(100% - 32px), 360px);
  min-height: 58px;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
}
[data-theme="neon"] .happy-near-btn {
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  color: #fff;
  background: #140816;
  border: 2px solid var(--pink);
  box-shadow:
    none;
}
[data-theme="classic"] .happy-near-btn {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #123528;
  background: #f3ead4;
  border: 3px solid #c9a227;
  box-shadow:
    0 0 0 2px #94731a,
    0 0 0 5px #c9a227,
    inset 0 0 0 2px rgba(201, 162, 39, 0.7),
    0 8px 18px rgba(18, 53, 40, 0.35);
}
.happy-near-btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.legend-key, .legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.chip-swatch, .neon-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: 0 0 11px;
  box-sizing: border-box;
}
.chip-swatch.live { background: #123528; border: 1px solid #f3ead4; }
.chip-swatch.soon { background: #94731a; border: 1px solid #f3ead4; }
.chip-swatch.off { background: #e8e4da; border: 1px solid #8d8a82; }
.neon-swatch {
  border-radius: 3px;
  border: 1.5px solid var(--teal);
  background: rgba(10, 8, 16, 0.9);
  box-shadow: none;
}
.neon-swatch.off {
  border-color: #4a4558;
  box-shadow: none;
  background: #1a1720;
}
[data-markers="simple"] .neon-swatch { border-radius: 50%; }
[data-markers="simple"] .neon-swatch.live {
  border-color: #ff4ec8;
  background: #ff4ec8;
  box-shadow: none;
}
[data-markers="simple"] .neon-swatch.soon {
  border-color: #2ee6d6;
  background: rgba(46, 230, 214, 0.35);
  box-shadow: none;
}
[data-markers="simple"] .neon-swatch.off {
  border-color: #4a4558;
  background: #2a2730;
  box-shadow: none;
}
.legend-chip { padding-left: 14px; position: relative; }
.legend-chip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--chip-outline);
}
.legend-chip.cocktail::before { background: var(--deal-cocktail); }
.legend-chip.beer::before { background: var(--deal-beer); }
.legend-chip.wine::before { background: var(--deal-wine); }
.legend-chip.food::before { background: var(--deal-food); }

.leaflet-container { background: inherit; font-family: var(--font); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.leaflet-control-attribution {
  background: color-mix(in srgb, var(--chrome-bg) 70%, transparent) !important;
  color: var(--faint) !important;
  font-size: 10px !important;
  line-height: 1.2;
  opacity: 0.72;
  pointer-events: none;
}
.leaflet-control-attribution a {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none;
  cursor: default;
}
.leaflet-tooltip.chip-tip {
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 7px;
}
.leaflet-tooltip.chip-tip:before { display: none; }

/* Lift the dark map so streets and labels stay readable. */
[data-theme="neon"] .leaflet-tile-pane .leaflet-layer:first-child img.leaflet-tile {
  filter: brightness(1.45) contrast(1.18) saturate(0.9);
}
[data-theme="classic"] .leaflet-tile-pane img.leaflet-tile {
  filter: sepia(0.12) saturate(0.75) brightness(1.04);
}

.lm-label, .zone-label {
  background: none;
  border: 0;
  box-shadow: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.lm-label {
  display: inline-block;
  width: max-content;
  font-family: var(--label-font);
  font-size: 11px;
  color: var(--ink);
}
[data-theme="neon"] .lm-label {
  color: #f6f3fb;
}
[data-theme="classic"] .lm-label {
  color: #123528;
}
[data-landmarks="b"] .lm-label {
  font-weight: 600;
  opacity: 0.55;
}
[data-theme="neon"][data-landmarks="b"] .lm-label {
  color: rgba(247, 244, 255, 0.9);
}
[data-theme="classic"][data-landmarks="b"] .lm-label {
  color: rgba(18, 53, 40, 0.72);
}
[data-landmarks="m"] .lm-label {
  font-weight: 650;
  opacity: 0.775;
}
[data-theme="neon"][data-landmarks="m"] .lm-label {
  color: rgba(247, 244, 255, 0.95);
}
[data-theme="classic"][data-landmarks="m"] .lm-label {
  color: rgba(18, 53, 40, 0.86);
}
.zone-label {
  font-family: var(--label-font);
  font-size: 13px;
  letter-spacing: 0.16em;
  opacity: 0.55;
  color: var(--ink);
}
[data-theme="neon"] .zone-label { color: #c8bed8; opacity: 0.62; }
[data-theme="classic"] .zone-label { color: #123528; opacity: 0.55; }

/* Classic theme: casino chips, colour by live state. */
.chip-pin {
  width: 30px;
  height: 30px;
  position: relative;
}
.chip-face {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.chip-face svg { width: 30px; height: 30px; display: block; }
.chip-pin.sample .chip-face { outline: 1px dashed var(--gold); outline-offset: 1px; }
.chip-pin.state-off { opacity: 0.78; }
.chip-pin.state-live .chip-face { box-shadow: 0 0 0 2px #f3ead4; }
.chip-spin {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  pointer-events: none;
}
.chip-pin.state-live .chip-spin {
  animation: chip-spin 8s linear infinite;
  box-shadow: inset 0 0 0 2px #f3ead4;
  mask: repeating-conic-gradient(#000 0 12deg, transparent 12deg 28deg);
}

/* Neon theme: glowing sign-style pins, colour by deal type. */
.neon-pin { width: 28px; height: 40px; position: relative; }
.neon-pin.deal-cocktail { --glow: var(--deal-cocktail); }
.neon-pin.deal-beer { --glow: var(--deal-beer); }
.neon-pin.deal-wine { --glow: var(--deal-wine); }
.neon-pin.deal-food { --glow: var(--deal-food); }
.neon-pin.deal-oyster { --glow: var(--deal-oyster); }
.neon-pin.deal-well { --glow: var(--deal-well); }
.neon-glow {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
}
.neon-tube {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--glow, var(--teal));
  background: rgba(10, 8, 16, 0.88);
  color: var(--glow, var(--teal));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0;
  box-shadow: var(--teal)), var(--glow, var(--teal)) 70%, transparent);
}
.neon-stem {
  width: 3px;
  height: 10px;
  background: var(--glow, var(--teal));
  box-shadow: var(--teal));
}
.neon-tip {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--glow, var(--teal));
  margin-top: -1px;
}
.neon-pin.live .neon-tube,
.neon-pin.live .neon-stem {
  animation: neon-flicker 2.6s ease-in-out infinite;
}
.neon-pin.live .neon-tube {
  box-shadow: var(--teal)), var(--glow, var(--teal)) 70%, transparent), var(--teal));
}
.neon-pin.soon .neon-tube { opacity: 0.92; }
.neon-pin.off,
.neon-pin.off .neon-tube,
.neon-pin.off .neon-stem,
.neon-pin.off .neon-tip {
  animation: none;
  filter: none;
  box-shadow: none;
  text-shadow: none;
}
.neon-pin.off { opacity: 0.62; }
.neon-pin.off .neon-tube {
  border-color: #4a4558;
  color: #6a6578;
  background: #16131c;
}
.neon-pin.off .neon-stem { background: #4a4558; }
.neon-pin.off .neon-tip { border-top-color: #4a4558; }
.neon-pin.sample .neon-tube { border-style: dashed; }

.pins-compact .chip-pin,
.pins-compact .neon-pin,
.pins-compact .neon-dot,
.pins-compact .neon-dot-stack {
  transform: scale(0.78);
  transform-origin: center bottom;
}
.pins-compact .chip-pin,
.pins-compact .neon-dot,
.pins-compact .neon-dot-stack { transform-origin: center center; }

@keyframes chip-spin { to { transform: rotate(360deg); } }
@keyframes neon-flicker {
  0%, 100% { opacity: 1; filter: brightness(1); }
  46% { opacity: 1; }
  50% { opacity: 0.62; filter: brightness(0.75); }
  54% { opacity: 1; }
  78% { opacity: 0.82; }
  82% { opacity: 1; }
}
/* Simple neon: one signature ring, colour by live state, no letters. */
.neon-dot {
  width: 22px;
  height: 22px;
  position: relative;
}
.neon-dot-ring,
.neon-dot-core {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.neon-dot-ring {
  inset: 0;
  border: 2.5px solid var(--glow, #ff4ec8);
  background: rgba(10, 8, 16, 0.72);
  box-shadow: none;
}
.neon-dot-core {
  inset: 6px;
  background: var(--glow, #ff4ec8);
  box-shadow: none;
}
.neon-dot.live { --glow: #ff4ec8; }
.neon-dot.live .neon-dot-ring,
.neon-dot.live .neon-dot-core {
  animation: neon-flicker 2.6s ease-in-out infinite;
}
.neon-dot.soon { --glow: #2ee6d6; }
.neon-dot.soon .neon-dot-core { opacity: 0.55; }
.neon-dot.soon .neon-dot-ring {
  box-shadow: none;
}
.neon-dot.dim { --glow: #4a4558; }
.neon-dot.dim .neon-dot-ring {
  border-color: #4a4558;
  box-shadow: none;
  background: #16131c;
}
.neon-dot.dim .neon-dot-core {
  background: #2a2730;
  box-shadow: none;
  opacity: 0.9;
}
.neon-dot.sample .neon-dot-ring { border-style: dashed; }
.neon-dot-stack {
  width: 26px;
  height: 26px;
  position: relative;
}
.neon-dot-stack .neon-dot {
  width: 26px;
  height: 26px;
}
.neon-dot-stack .neon-dot-core { inset: 7px; }
.neon-dot-stack .stack-badge { top: -6px; right: -7px; }

@media (prefers-reduced-motion: reduce) {
  .chip-pin.state-live .chip-spin,
  .neon-pin.live .neon-tube,
  .neon-pin.live .neon-stem,
  .neon-dot.live .neon-dot-ring,
  .neon-dot.live .neon-dot-core,
  .state-dot.ending { animation: none !important; }
}

.state-dot {
  width: 22px;
  height: 22px;
  position: relative;
}
.state-dot-core,
.state-dot-glow,
.state-dot-shell,
.state-dot-half,
.state-dot-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.state-dot.live .state-dot-core {
  inset: 3px;
  background: #ff4ec8;
  box-shadow: none;
}
.state-dot.live .state-dot-glow {
  inset: -2px;
  box-shadow: none;
}
.state-dot.ending .state-dot-shell {
  inset: 9%;
  border: 2px solid #ff4ec8;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}
.state-dot.ending .state-dot-half {
  top: 18%;
  bottom: 18%;
  left: 18%;
  width: 32%;
  border-radius: 999px 0 0 999px;
  background: #ff4ec8;
}
.legend-ico .state-dot.ending .state-dot-shell {
  border-width: 1.6px;
}
.legend-ico .state-dot.ending .state-dot-half {
  /* Keep a crisp half at the 14px key size. */
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: 4px;
  border-radius: 8px 0 0 8px;
}
.state-dot.ending {
  animation: state-dim 2.8s ease-in-out infinite;
}
@keyframes state-dim {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.42; }
}
.state-dot.starting .state-dot-ring {
  inset: 2px;
  border: 2.5px solid #2ee6d6;
  background: transparent;
  box-shadow: none;
}
.state-dot.sample .state-dot-ring,
.state-dot.sample .state-dot-shell { border-style: dashed; }

.state-chip {
  width: 28px;
  height: 28px;
  position: relative;
}
.state-chip svg { display: block; width: 28px; height: 28px; }
.stack-pin .state-dot,
.stack-pin .state-chip { margin: 0 auto; }
.state-dot .stack-badge,
.state-chip .stack-badge {
  top: -7px;
  right: -8px;
}
.neon-dot-stack .state-dot { width: 26px; height: 26px; }
.chip-stack .state-chip { width: 36px; height: 36px; }
.chip-stack .state-chip svg { width: 36px; height: 36px; }

.user-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2ee6d6;
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.28);
  transform: translate(-8px, -8px);
}

.venue-list {
  list-style: none;
  margin: 0;
  padding: 12px 16px 0;
  display: grid;
  gap: 12px;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
[data-theme="classic"] .card {
  border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}
.card.is-live { box-shadow: 0 0 0 1px color-mix(in srgb, var(--teal) 50%, transparent); }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.card h3 { margin: 0; font-size: 18px; font-weight: 600; }
[data-theme="classic"] .card h3 { font-family: var(--display); }
.card .meta { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.badge {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge.live { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 40%, var(--line)); background: var(--teal-dim); }
.badge.soon { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 40%, var(--line)); background: var(--teal-dim); }
.badge.sample { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.badge.featured { color: var(--gold); border-color: var(--gold); }

.deal-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}
.deal-icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-3);
  border-radius: 999px;
  padding: 4px 8px;
}
.deal-icon svg { width: 14px; height: 14px; display: block; }
.deal-icon.cocktail { color: var(--deal-cocktail); }
.deal-icon.beer { color: var(--deal-beer); }
.deal-icon.wine { color: var(--deal-wine); }
.deal-icon.food, .deal-icon.oyster, .deal-icon.well { color: inherit; }
.deal-icon.oyster { color: var(--deal-oyster); }
.deal-icon.well { color: var(--deal-well); }

.clock-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--teal) 10%, var(--bg-3));
  border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line));
}
[data-theme="classic"] .clock-panel {
  background: #f3ead4;
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
}
.count-ring { width: 64px; height: 64px; flex: 0 0 64px; }
.count-ring circle { fill: none; stroke-width: 6; }
.count-ring .track { stroke: color-mix(in srgb, var(--ink) 12%, transparent); }
.count-ring .prog {
  stroke: var(--teal);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.4s ease;
}
[data-theme="classic"] .count-ring .prog { stroke: #123528; }
.clock-copy { min-width: 0; }
.clock-copy .countdown {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.clock-copy .slot-line { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.deals { margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; }
.deals li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.deals .price { color: var(--teal); font-weight: 600; white-space: nowrap; }
[data-theme="classic"] .deals .price { color: #123528; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.star, .open-btn, .src-link, .report-btn, .maps-btn {
  font: inherit;
  background: var(--bg-3);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
}
.maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.maps-btn .maps-ico {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.star.is-on { color: var(--gold); border-color: var(--gold); }
.checked { margin: 8px 0 0; font-size: 12px; color: var(--faint); }
.notes {
  background: var(--bg-3);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.day-note {
  margin: 0;
  padding: 10px 16px 4px;
  color: var(--muted);
  font-size: 13px;
}
.day-timeline {
  list-style: none;
  margin: 0;
  padding: 4px 12px 28px;
}
.day-time {
  margin: 14px 4px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--faint);
}
.day-time:first-child { margin-top: 6px; }
.day-item {
  margin: 0 0 8px;
}
.day-item button {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
}
.day-item.is-live button {
  border-color: color-mix(in srgb, var(--teal) 55%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 25%, transparent);
}
.day-item.is-soon button {
  border-color: color-mix(in srgb, var(--pink, #ff4ec8) 40%, var(--line));
}
[data-theme="classic"] .day-item.is-live button {
  border-color: color-mix(in srgb, #123528 50%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #123528 18%, transparent);
}
[data-theme="classic"] .day-item.is-soon button {
  border-color: color-mix(in srgb, #94731a 45%, var(--line));
}
.day-item-name {
  display: block;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
}
.day-item-meta {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}
.day-empty {
  margin: 16px 4px;
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
}
.day-time.is-past {
  color: color-mix(in srgb, var(--faint) 70%, transparent);
}
.day-item.is-past button {
  color: var(--faint);
  background: color-mix(in srgb, var(--bg-3) 55%, var(--bg));
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
}
.day-item.is-past .day-item-name,
.day-item.is-past .day-item-meta {
  color: var(--faint);
}

body.view-day {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.view-day #main {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 24px;
}

/* Drawer: must capture all scroll, never pan the map underneath. */
.drawer, .near-panel, .modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overscroll-behavior: none;
  touch-action: manipulation;
}
.drawer[hidden], .near-panel[hidden], .modal[hidden] { display: none; }
.drawer-card, .near-card, .modal-card {
  background: var(--bg-2);
  color: var(--ink);
  width: min(560px, 100%);
  max-height: 78dvh;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(16px + var(--safe-bottom));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.drawer-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  min-height: 36px;
}
.drawer-chrome:has(#drawer-back[hidden]) { justify-content: flex-end; }
.drawer-close,
.drawer-back {
  float: none;
  background: var(--bg-3);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
  border: 0;
}
.drawer-back { border: 1px solid var(--line); font-weight: 600; }
body.sheet-open { overflow: hidden; }

.near-card { max-height: 86dvh; }
body.view-map .near-card {
  max-height: calc(100dvh - 90px);
  padding-bottom: calc(8px + var(--safe-bottom));
}
.near-card .drawer-chrome {
  align-items: flex-start;
  margin: 0 0 8px;
}
.near-card h2 {
  margin: 0;
  flex: 1;
  font-size: 24px;
  line-height: 1.15;
  font-family: var(--display);
  color: var(--ink);
}
.near-status {
  color: var(--ink);
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.35;
}
.near-heading {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.near-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.demo-btn {
  background: var(--bg-3);
  color: var(--ink);
  border: 1px dashed var(--gold);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 16px;
  min-height: 48px;
}
.near-pick-label {
  margin: 18px 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.near-resorts { display: grid; gap: 12px; }
.near-resort-group h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.near-resort-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.near-resort-group button {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--ink);
  cursor: pointer;
}
.near-list { padding-left: 0; margin: 0; list-style: none; display: grid; gap: 8px; }
.near-list li { margin: 0; }
.near-list .near-row {
  background: var(--bg-3);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 0 0 10px;
}
.near-list button[data-open] {
  font: inherit;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  padding: 12px 14px 6px;
  width: 100%;
}
.near-list .near-row-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.near-list strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
}
.near-resort {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.near-deal {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.near-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 8px;
}
.near-when {
  font-size: 17px;
  font-weight: 700;
  color: var(--teal);
}
[data-theme="classic"] .near-when { color: #123528; }
.near-list .walk-badge { font-size: 14px; padding: 5px 10px; }
.near-list .maps-btn {
  margin: 2px 14px 0;
  width: fit-content;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 15px;
}
.near-more {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  min-height: 48px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-3);
  border: 2px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}
.near-list .leg { color: var(--faint); font-size: 13px; }

.crawl { padding: 8px 16px 24px; }
.crawl-head h2 { margin: 0 0 4px; font-size: 20px; }
.crawl-head p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.crawl-list { padding-left: 20px; }
.crawl-list li { margin: 0 0 10px; }
.crawl-list .leg { color: var(--faint); font-size: 13px; }

.foot {
  padding: 16px 16px calc(28px + var(--safe-bottom));
  color: var(--faint);
  font-size: 12px;
  border-top: 1px solid var(--line);
}
.foot p { margin: 0 0 8px; max-width: 70ch; }

/* In Out Now and map view, hide the long disclaimer but keep the credit
   visible as a compact strip at the bottom. Plan list and day views still
   show the full footer. */
body.mode-out .foot p,
body.view-map .foot p {
  display: none;
}
body.mode-out .foot,
body.view-map .foot {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 16px calc(8px + var(--safe-bottom));
}
body.view-map .foot {
  flex: 0 0 auto;
  background: var(--bg);
}
body.mode-plan:not(.view-map) .foot {
  display: block;
  padding: 16px 16px calc(28px + var(--safe-bottom));
}
body.mode-plan:not(.view-map) .foot p {
  display: block;
}

/* Built by Priest footer credit. Works on light and dark footers
   (inherits the footer's text colour). Breakpoints 700px and 960px.
   Paste once in the site stylesheet, or in a <style> block. */
.bbp-credit {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.25rem 0;
  color: inherit;
  text-decoration: none;
  font-size: 0.75rem;
  line-height: 1.3;
  opacity: 0.85;
}
.bbp-credit:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bbp-credit:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  opacity: 1;
}
.bbp-credit img {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
}
.bbp-credit img.bbp-credit-mark-wide {
  width: 74px;
  height: 24px;
}
@media (max-width: 700px) {
  .bbp-credit {
    justify-content: center;
    text-align: center;
  }
}

.modal { align-items: center; padding: 16px; touch-action: auto; }
.modal-card {
  border-radius: 16px;
  max-height: 86dvh;
  width: min(440px, 100%);
}
.modal-card h2 { margin: 0; }
.modal-sub { color: var(--muted); }
.modal-card label { display: block; margin: 12px 0 4px; font-size: 13px; }
.modal-card textarea,
.modal-card input {
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}
.modal-actions { display: flex; gap: 12px; align-items: center; margin-top: 12px; }

@media (max-width: 720px) {
  .chrome-row { gap: 5px; }
  .now-count { display: none; }
  .btn-text { display: none; }
  .icon-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }
  .chrome-btn { font-size: 12px; padding: 7px 10px; }
  .time-pill { max-width: none; font-size: 13px; padding: 8px 12px; }
  .view-toggle button { padding: 6px 8px; font-size: 12px; }
}

@media (min-width: 900px) {
  .time-pill { max-width: 200px; }
  #list-view .venue-list {
    grid-template-columns: 1fr 1fr;
    padding-left: 28px;
    padding-right: 28px;
  }
  body:not(.view-map) .day-note, body:not(.view-map) .crawl, body:not(.view-map) .foot {
    padding-left: 28px;
    padding-right: 28px;
  }
  .drawer, .near-panel { align-items: center; }
  .drawer-card, .near-card { border-radius: 20px; max-height: 80vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.map-zoomed .zone-label { opacity: 0 !important; }
/* At the new valley-wide zooms the zone names sit on top of each other. */
.map-wide .zone-label { opacity: 0 !important; }
.map-wide .neon-dot-ring {
  box-shadow: none;
}
.map-wide .neon-pin .neon-tube {
  box-shadow: var(--teal)), var(--glow, var(--teal)) 70%, transparent);
}
.lm-label.is-hidden { opacity: 0 !important; visibility: hidden; }

.leaflet-div-icon.lm-div,
.leaflet-div-icon.vhv-chip,
.leaflet-div-icon.vhv-neon {
  background: none !important;
  border: none !important;
  overflow: visible !important;
}
.lm-mark {
  position: relative;
  width: 10px;
  height: 10px;
  pointer-events: none;
}
.lm-mark.is-hidden { opacity: 0 !important; visibility: hidden; }
.lm-ico {
  display: block;
  width: 10px;
  height: 10px;
  color: #9a94ad;
  pointer-events: none;
}
.lm-ico svg { display: block; width: 10px; height: 10px; }
[data-theme="neon"] .lm-ico { color: #9a94ad; opacity: 0.82; }
[data-theme="classic"] .lm-ico { color: #123528; opacity: 0.78; }
.lm-label.lm-right,
.lm-label.lm-left,
.lm-label.lm-above,
.lm-label.lm-below {
  position: absolute;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  white-space: nowrap;
}
.lm-label.lm-right { left: 10px; top: 50%; transform: translate(4px, -50%); text-align: left; }
.lm-label.lm-left { right: 10px; top: 50%; transform: translate(-4px, -50%); text-align: right; }
.lm-label.lm-above { left: 50%; bottom: 10px; transform: translate(-50%, -4px); text-align: center; }
.lm-label.lm-below { left: 50%; top: 10px; transform: translate(-50%, 4px); text-align: center; }
.lm-label.lm-wrap {
  white-space: normal;
  width: 7.4em;
  line-height: 1.05;
}
.lm-label.lm-left.lm-wrap { text-align: right; }
.lm-label.lm-right.lm-wrap { text-align: left; }

.walk-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: color-mix(in srgb, var(--teal) 12%, var(--bg-3));
  border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line));
  border-radius: 999px;
  padding: 3px 8px;
  max-width: 100%;
  line-height: 1.25;
}
[data-theme="classic"] .walk-badge {
  background: #f3ead4;
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
}
.walk-badge.taxi { color: var(--muted); }
.walk-badge.both { color: var(--ink); }
.walk-ico { width: 14px; height: 14px; display: block; flex: 0 0 14px; }

/* Resort stacks and sheet */
.stack-pin { position: relative; }
.stack-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg-2);
  z-index: 3;
}
[data-theme="classic"] .stack-badge {
  background: #123528;
  color: #f3ead4;
  box-shadow: 0 0 0 2px #f3ead4;
}
[data-theme="neon"] .stack-badge {
  background: #f6f3fb;
  color: #0f0d18;
  box-shadow: 0 0 0 2px #1a1624;
}

.chip-stack { width: 36px; height: 36px; }
.chip-stack .chip-back {
  position: absolute;
  width: 26px;
  height: 26px;
  display: block;
  pointer-events: none;
  opacity: 0.9;
}
.chip-stack .chip-back svg { width: 26px; height: 26px; display: block; }
.chip-stack .chip-back.one { left: 8px; top: -4px; }
.chip-stack .chip-back.two { left: 14px; top: 2px; opacity: 0.75; }
.chip-stack .chip-face {
  position: absolute;
  left: 0;
  top: 6px;
  width: 30px;
  height: 30px;
  z-index: 2;
}
.chip-stack.state-live .chip-face { box-shadow: 0 0 0 2px #f3ead4; }

.neon-stack { width: 34px; height: 46px; --glow: var(--teal); }
.neon-stack .neon-glow { width: 34px; align-items: center; }
.neon-stack .neon-tube { width: 24px; height: 24px; font-size: 8px; letter-spacing: 0.04em; }
.neon-stack.live { --glow: var(--teal); }
.neon-stack.soon { --glow: var(--pink); }
.neon-stack.live .neon-tube,
.neon-stack.live .neon-stem { animation: neon-flicker 2.6s ease-in-out infinite; }
.neon-stack.off { opacity: 0.62; }
.neon-stack.off .neon-tube,
.neon-stack.off .neon-stem,
.neon-stack.off .neon-tip { animation: none; filter: none; box-shadow: none; text-shadow: none; }
.neon-stack.off .neon-tube { border-color: #4a4558; color: #6a6578; background: #16131c; }
.neon-stack.off .neon-stem { background: #4a4558; }
.neon-stack.off .neon-tip { border-top-color: #4a4558; }
.stack-pin.sample .chip-face,
.stack-pin.sample .stack-tube { outline: 1px dashed var(--gold); outline-offset: 1px; }

.pins-compact .stack-pin.chip-stack { transform: scale(0.86); transform-origin: center center; }
.pins-compact .stack-pin.neon-stack { transform: scale(0.86); transform-origin: center bottom; }
.pins-compact .stack-pin.neon-dot-stack { transform: scale(0.86); transform-origin: center center; }

.resort-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.resort-list li { margin: 0; }
.resort-list .resort-row {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 0 8px;
}
.resort-list button {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 14px 14px 0 0;
  padding: 10px 12px 6px;
}
.resort-row-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.resort-list strong { display: block; font-size: 16px; }
.resort-list .leg { margin: 6px 0 0; color: var(--faint); font-size: 13px; }
.resort-list .walk-badge { margin-top: 8px; }
.resort-list .deal-icons { margin-top: 8px; }
.resort-list .badges { margin: 0; justify-content: flex-end; }
.resort-list .maps-btn { margin: 0 12px 4px; width: fit-content; }

.leaflet-div-icon.venue-label-div {
  background: none !important;
  border: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: visible !important;
}
.venue-name-label {
  position: absolute;
  left: 0;
  top: 0;
  width: max-content;
  max-width: 180px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #f6f3fb;
  background: rgba(15, 13, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transform: translate(16px, -8px);
}
.venue-name-label.is-left {
  transform: translate(calc(-100% - 16px), -8px);
}
.venue-name-label.is-above {
  transform: translate(-50%, calc(-100% - 14px));
}
.venue-name-label.is-below {
  transform: translate(-50%, 14px);
}
.venue-name-label.is-above.has-more,
.venue-name-label.is-below.has-more {
  align-items: center;
}
[data-theme="classic"] .venue-name-label {
  color: #123528;
  background: rgba(247, 239, 214, 0.94);
  border-color: rgba(80, 50, 10, 0.22);
  box-shadow: 0 1px 3px rgba(18, 53, 40, 0.2);
}
.venue-name-label.is-hidden {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none !important;
}
.venue-name-label.has-more {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.venue-name-label.is-left.has-more {
  align-items: flex-end;
}
.venue-name-label.has-more-inline,
.venue-name-label.is-left.has-more-inline {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}
.label-more {
  appearance: none;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: inherit;
  opacity: 0.62;
  cursor: pointer;
  pointer-events: auto;
  text-shadow: inherit;
  -webkit-tap-highlight-color: transparent;
}
[data-theme="classic"] .label-more {
  opacity: 0.72;
  color: #3e5244;
}
[data-theme="neon"] .label-more {
  opacity: 0.72;
  color: #c8c4d6;
}
.more-label-div {
  background: none !important;
  border: none !important;
  overflow: visible !important;
}
.more-label-div {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.label-more.is-solo {
  position: static;
  transform: none;
  display: inline-block;
  width: max-content;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.15;
  opacity: 1;
  color: rgba(246, 243, 251, 0.82);
  background: rgba(15, 13, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 2px 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  pointer-events: auto;
}
[data-theme="classic"] .label-more.is-solo {
  color: #3e5244;
  background: rgba(247, 239, 214, 0.9);
  border-color: rgba(80, 50, 10, 0.18);
  box-shadow: 0 1px 3px rgba(18, 53, 40, 0.18);
}
.more-pop {
  position: absolute;
  z-index: 700;
  min-width: 148px;
  max-width: 220px;
  max-height: 220px;
  overflow: auto;
  padding: 8px 8px 6px;
  border-radius: 10px;
  background: rgba(15, 13, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  color: #f6f3fb;
  font-family: var(--font);
}
[data-theme="classic"] .more-pop {
  background: rgba(247, 239, 214, 0.96);
  border-color: rgba(80, 50, 10, 0.2);
  color: #123528;
  box-shadow: 0 8px 20px rgba(18, 53, 40, 0.2);
}
.more-pop-title {
  margin: 0 4px 4px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}
.more-pop ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.more-pop li button {
  appearance: none;
  width: 100%;
  text-align: left;
  margin: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}
.more-pop li button:hover,
.more-pop li button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}
[data-theme="classic"] .more-pop li button:hover,
[data-theme="classic"] .more-pop li button:focus-visible {
  background: rgba(18, 53, 40, 0.08);
}

/* Classic contrast: cream text on green surfaces, dark text on cream surfaces.
   All pairings below are audited to WCAG AA 4.5:1. */
[data-theme="classic"] .chrome,
[data-theme="classic"] .plan-heading,
[data-theme="classic"] .out-window-label {
  color: var(--on-green);
}
[data-theme="classic"] .out-clock,
[data-theme="classic"] .map-legend,
[data-theme="classic"] .day-note,
[data-theme="classic"] .day-time,
[data-theme="classic"] .day-time.is-past,
[data-theme="classic"] .crawl,
[data-theme="classic"] .crawl-head p,
[data-theme="classic"] .crawl-list .leg,
[data-theme="classic"] .foot {
  color: var(--on-green-muted);
}
[data-theme="classic"] .crawl-head h2 {
  color: var(--on-green);
}
[data-theme="classic"] .hint {
  color: var(--on-green);
  background: color-mix(in srgb, #123528 28%, var(--bg));
}
[data-theme="classic"] .now-count {
  color: var(--on-green);
}
[data-theme="classic"] .chrome-btn.is-on,
[data-theme="classic"] .time-pill[aria-expanded="true"] {
  color: #123528;
  background: var(--gold);
  border-color: #c9a227;
}
[data-theme="classic"] .badge.sample,
[data-theme="classic"] .badge.featured {
  color: #123528;
  border-color: color-mix(in srgb, #123528 55%, var(--line));
}
[data-theme="classic"] .deal-icon.beer,
[data-theme="classic"] .deal-icon.food {
  color: #123528;
}
[data-theme="classic"] .deal-icon.oyster {
  color: #123528;
}
[data-theme="classic"] .day-item.is-past button {
  color: var(--muted);
  background: #e6d9b8;
  border-color: color-mix(in srgb, var(--line) 80%, #cbb890);
}
[data-theme="classic"] .day-item.is-past .day-item-name,
[data-theme="classic"] .day-item.is-past .day-item-meta {
  color: var(--muted);
}
[data-theme="classic"] .leaflet-control-attribution {
  color: var(--on-green-muted) !important;
  background: color-mix(in srgb, #123528 78%, transparent) !important;
  opacity: 1;
}
[data-theme="classic"] .modal-card textarea,
[data-theme="classic"] .modal-card input {
  background: var(--bg-2);
  color: var(--ink);
}
[data-theme="classic"] .zone-label {
  color: #123528;
  opacity: 0.85;
}

/* ==========================================================================
   Out Now identity layer (20 Nov 2026). Approved by John via Creative
   Director. N1 neon is flat: no glows. Classic: forest, cream, gold; gold
   only on forest; on cream, text is forest and deep gold #94731A is for
   graphics only. Display type (Familjen Grotesk Bold Italic caps) is for
   labels only. Outfit stays for body text.
   ========================================================================== */
@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/FamiljenGrotesk-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
:root, [data-theme="neon"] {
  --bg: #0f0d18;
  --bg-2: #1b1729;
  --bg-3: #241f36;
  --muted: #b8b0c8;
  --faint: #9e96b0;
  --accent-graphic: #ff4ec8;
  --focus: #2ee6d6;
  --pin-disc: #2ee6d6;
  --pin-edge: #0f0d18;
  --pin-arc: #ff4ec8;
  --pin-later-fill: #0f0d18;
  --pin-later-stroke: #2ee6d6;
  --timer-body: #f6f3fb;
  --timer-acc: #ff4ec8;
  --label: "Familjen Grotesk", "Outfit", sans-serif;
}
[data-theme="classic"] {
  --bg: #123528;
  --bg-2: #f3ead4;
  --bg-3: #ebdfc2;
  --ink: #123528;
  --muted: #3e5244;
  --faint: #3e5244;
  --line: rgba(18, 53, 40, 0.16);
  --gold: #c9a227;
  --deep-gold: #94731a;
  --accent-graphic: #94731a;
  --focus: #f3ead4;
  --pin-disc: #123528;
  --pin-edge: #f3ead4;
  --pin-arc: #94731a;
  --pin-later-fill: #f3ead4;
  --pin-later-stroke: #123528;
  --timer-body: #123528;
  --timer-acc: #94731a;
  --chrome-bg: #123528;
  --label: "Familjen Grotesk", "Outfit", sans-serif;
}
[data-theme="neon"] { --chrome-bg: #0f0d18; }
.chrome { backdrop-filter: none; }

/* Display labels */
.disp,
.badge,
.legend-toggle-label,
.happy-near-btn,
.section-marker {
  font-family: var(--label);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Focus rings: teal on neon, cream on classic chrome, forest on cream surfaces */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[data-theme="classic"] .card :focus-visible,
[data-theme="classic"] .drawer-card :focus-visible,
[data-theme="classic"] .near-card :focus-visible,
[data-theme="classic"] .modal-card :focus-visible,
[data-theme="classic"] .popover :focus-visible { outline-color: #123528; }

/* Brand: L1 long logo in the header. City shows at 36px tall and up. */
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 2px 4px 2px 0;
  text-decoration: none;
}
.brand-logo { display: none; height: 40px; width: auto; }
[data-theme="neon"] .brand-neon.brand-city,
[data-theme="classic"] .brand-classic.brand-city { display: block; }
@media (min-width: 900px) {
  .brand-logo { height: 48px; }
}
@media (max-width: 359px) {
  [data-theme="neon"] .brand-neon.brand-city,
  [data-theme="classic"] .brand-classic.brand-city { display: none; }
  [data-theme="neon"] .brand-neon.brand-nocity,
  [data-theme="classic"] .brand-classic.brand-nocity { display: block; height: 30px; }
}
.foot-logo, .loading-cap { display: none; }
[data-theme="neon"] .foot-logo.brand-neon,
[data-theme="classic"] .foot-logo.brand-classic,
[data-theme="neon"] .loading-cap.brand-neon,
[data-theme="classic"] .loading-cap.brand-classic { display: block; }

/* Category chips: All / Food / Drinks */
.cat-row {
  display: flex;
  gap: 8px;
  padding: 2px 4px 6px;
  flex-wrap: wrap;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
}
.cat-chip[data-cat="all"] { padding: 6px 16px; }
[data-theme="neon"] .cat-chip { border: 1.5px solid rgba(46, 230, 214, 0.6); color: #f6f3fb; }
[data-theme="neon"] .cat-chip.is-on { background: #2ee6d6; color: #0f0d18; border-color: #2ee6d6; }
[data-theme="classic"] .cat-chip { border: 1.5px solid rgba(243, 234, 212, 0.55); color: #f3ead4; }
[data-theme="classic"] .cat-chip.is-on { background: #f3ead4; color: #123528; border-color: #f3ead4; }
.cat-ico { display: none; width: 18px; height: 18px; flex: none; }
[data-theme="neon"] .cat-chip:not(.is-on) .ico-neon-off,
[data-theme="neon"] .cat-chip.is-on .ico-neon-on,
[data-theme="classic"] .cat-chip:not(.is-on) .ico-classic-off,
[data-theme="classic"] .cat-chip.is-on .ico-classic-on { display: block; }
@media (max-width: 700px) {
  .cat-row { padding: 0 2px 4px; gap: 6px; }
  .cat-chip { font-size: 13px; padding: 4px 12px 4px 8px; }
}

/* Category icons on cards: once, top right. Teal on neon, forest on cream. */
.card-head { min-width: 0; flex: 1; }
.card-side { display: flex; align-items: center; gap: 8px; flex: none; }
.card-cats, .row-cats { display: inline-flex; gap: 6px; align-items: center; }
.card-cats .cat-ico, .row-cats .cat-ico { width: 24px; height: 24px; }
.row-cats .cat-ico { width: 20px; height: 20px; }
[data-theme="neon"] .card-cats .ico-neon-off,
[data-theme="neon"] .row-cats .ico-neon-off,
[data-theme="classic"] .card-cats .ico-classic-on,
[data-theme="classic"] .row-cats .ico-classic-on { display: block; }
.resort-row-top { align-items: center; }
.deal-icons { display: none; }

/* Cards: flat, hairline deal lines */
.card { box-shadow: none; }
.card.is-live { box-shadow: none; border-color: rgba(46, 230, 214, 0.35); }
[data-theme="classic"] .card,
[data-theme="classic"] .card.is-live {
  border: 1px solid rgba(18, 53, 40, 0.18);
  box-shadow: none;
}
.card h3, [data-theme="classic"] .card h3 { font-family: var(--font); font-weight: 600; }
.deals li { padding: 8px 0; border-top: 1px solid var(--line); }
.deals li:first-child { border-top: 0; }
[data-theme="neon"] .deals .price { color: #2ee6d6; font-weight: 700; }
[data-theme="classic"] .deals .price { color: #123528; font-weight: 700; }

/* Status chips */
.badge { font-size: 11px; letter-spacing: 0.08em; border-radius: 6px; padding: 3px 8px; }
[data-theme="neon"] .badge.live { background: rgba(46, 230, 214, 0.14); color: #2ee6d6; border-color: transparent; }
[data-theme="neon"] .badge.ending { background: rgba(255, 78, 200, 0.14); color: #ff4ec8; border-color: transparent; }
[data-theme="neon"] .badge.soon { background: rgba(255, 255, 255, 0.08); color: #b8b0c8; border-color: transparent; }
[data-theme="neon"] .badge.sample,
[data-theme="neon"] .badge.featured { color: #ff4ec8; border-color: rgba(255, 78, 200, 0.5); background: transparent; }
[data-theme="classic"] .badge.live { background: #123528; color: #f3ead4; border-color: #123528; }
[data-theme="classic"] .badge.ending { background: #123528; color: #c9a227; border-color: #123528; }
[data-theme="classic"] .badge.soon { background: rgba(18, 53, 40, 0.1); color: #123528; border-color: transparent; }
[data-theme="classic"] .badge.sample,
[data-theme="classic"] .badge.featured { color: #123528; border-color: rgba(18, 53, 40, 0.45); background: transparent; }
[data-theme="classic"] .star.is-on { color: #123528; border-color: #123528; background: rgba(18, 53, 40, 0.1); }
[data-theme="neon"] .star.is-on { color: #ff4ec8; border-color: #ff4ec8; }

/* Timer panel: the timer wedge plus plain text. No animation. */
.clock-panel { border-radius: 10px; }
[data-theme="neon"] .clock-panel { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
[data-theme="neon"] .clock-panel.is-ending { background: rgba(255, 78, 200, 0.08); border-color: rgba(255, 78, 200, 0.3); }
[data-theme="classic"] .clock-panel { background: rgba(18, 53, 40, 0.06); border: 1px solid rgba(18, 53, 40, 0.18); }
.timer-ico { width: 40px; height: 40px; flex: 0 0 40px; display: block; }
.timer-body * { fill: var(--timer-body); stroke: none; }
.timer-acc { fill: var(--timer-acc); }

/* Map pins: one neutral flat disc. Only the timer arc varies. */
.on-pin-icon { background: none; border: 0; }
.on-pin {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.on-pin-disc {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pin-disc);
  box-shadow: 0 0 0 2.5px var(--pin-edge);
}
.on-pin.is-stack .on-pin-disc { width: 24px; height: 24px; }
.on-pin.later .on-pin-disc {
  width: 16px;
  height: 16px;
  background: var(--pin-later-fill);
  box-shadow: none;
  border: 2.5px solid var(--pin-later-stroke);
  opacity: 0.75;
}
.on-pin.is-selected .on-pin-disc {
  width: 28px;
  height: 28px;
  box-shadow: 0 0 0 3px var(--pin-edge), 0 0 0 6px var(--pin-disc);
}
.on-pin.sample .on-pin-disc { outline: 1.5px dashed var(--pin-later-stroke); outline-offset: 3px; }
.pin-arc { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pin-arc circle { fill: none; stroke: var(--pin-arc); stroke-width: 3.5; }
.pin-arc-track { stroke-opacity: 0.28; }
.pin-arc-left { stroke-linecap: round; }
.on-pin .stack-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  font: 700 10px/16px var(--font);
  text-align: center;
}
[data-theme="neon"] .on-pin .stack-badge { background: #f6f3fb; color: #0f0d18; box-shadow: 0 0 0 1.5px #0f0d18; }
[data-theme="classic"] .on-pin .stack-badge { background: #123528; color: #f3ead4; box-shadow: 0 0 0 1.5px #f3ead4; }
.legend-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; }
.legend-ico .on-pin { width: 30px; height: 30px; }
.legend-ico .on-pin.ending { width: 30px; height: 30px; }
.legend-ico .on-pin-disc { width: 16px; height: 16px; }
.legend-ico .on-pin.later .on-pin-disc { width: 12px; height: 12px; }

/* Buttons: flat */
[data-theme="neon"] .primary { background: #2ee6d6; color: #0f0d18; }
[data-theme="classic"] .primary { background: #c9a227; color: #123528; }
[data-theme="classic"] .modal-card .primary,
[data-theme="classic"] .drawer-card .primary { background: #123528; color: #f3ead4; }
[data-theme="neon"] .happy-near-btn {
  font-family: var(--label);
  font-weight: 700;
  font-size: 18px;
  color: #0f0d18;
  background: #2ee6d6;
  border: 2px solid #0f0d18;
  box-shadow: none;
}
[data-theme="classic"] .happy-near-btn {
  font-family: var(--label);
  font-weight: 700;
  font-size: 18px;
  color: #f3ead4;
  background: #123528;
  border: 2px solid #c9a227;
  box-shadow: none;
}
.happy-near-btn:focus-visible { outline: 3px solid var(--pin-disc); outline-offset: 3px; }
[data-theme="neon"] .text-btn { color: #2ee6d6; }
[data-theme="classic"] .popover .text-btn,
[data-theme="classic"] .modal-card .text-btn { color: #123528; }

/* Time slider: flat track */
#time-slider { background: #2ee6d6; }
[data-theme="classic"] #time-slider { background: #c9a227; }
#time-slider::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg); }

/* Loading state: "Pouring the deals". Gentle rock only when motion is OK. */
.map-placeholder-inner { display: grid; justify-items: center; gap: 10px; }
.loading-cap { width: 56px; height: 56px; }
@media (prefers-reduced-motion: no-preference) {
  .loading-cap { animation: on-rock 1.6s ease-in-out infinite alternate; }
}
@keyframes on-rock { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.map-placeholder p { font-family: var(--label); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* Hints and quiet bar on classic */
[data-theme="classic"] .hint { background: #0d281e; color: #f3ead4; }
[data-theme="classic"] .quiet-link { background: rgba(18, 53, 40, 0.1); color: #123528; }

/* Footer: L3, links, V1 credit. Dark in both themes. */
.foot { background: var(--bg); color: var(--muted); }
[data-theme="classic"] .foot { color: #d8cba4; background: #123528; }
.foot a { color: inherit; }
.foot-logo { height: 60px; width: auto; margin: 4px 0 12px; }
body.view-map .foot-logo { display: none !important; }
body.mode-out:not(.view-map) .foot {
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
}
body.mode-out:not(.view-map) .foot-logo { height: 48px; margin: 0; }

/* Reduced motion: no transitions on pins, timers or sheets */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Out Now fixes after first review pass */
.legend-ico { width: 26px; height: 26px; flex: 0 0 26px; overflow: visible; }
.legend-ico .on-pin, .legend-ico .on-pin.ending { width: 26px; height: 26px; }
.legend-ico .on-pin-disc { width: 14px; height: 14px; box-shadow: 0 0 0 2px var(--pin-edge); }
.legend-ico .on-pin.later .on-pin-disc { width: 12px; height: 12px; box-shadow: none; }
.map-legend { font-size: 11px; }
[data-theme="classic"] .map-legend { background: #f3ead4; color: #123528; border-color: rgba(18, 53, 40, 0.25); }
[data-theme="classic"] .map-legend .legend-toggle { color: #123528; }
[data-theme="neon"] .map-legend { background: #0f0d18; color: #f6f3fb; }
.mode-toggle button { white-space: nowrap; }
[data-theme="classic"] .mode-toggle { background: rgba(243, 234, 212, 0.08); border-color: rgba(243, 234, 212, 0.25); }
[data-theme="classic"] .mode-toggle button:not(.is-on) { color: #f3ead4; }
@media (max-width: 480px) {
  .mode-toggle button { padding: 8px 10px; font-size: 13px; }
  .brand-logo { height: 38px; }
  .cat-chip { min-height: 40px; }
}
[data-theme="neon"] .happy-near-btn { background: #1b1729; color: #f6f3fb; border: 2px solid #2ee6d6; }

/* Filters in both modes (John, 20 Nov 8:40): one compact button next to
   All / Food / Drinks, a count badge when active, and a sheet with Clear.
   Popover under the chips on wider screens, bottom sheet on phones. */
.cat-row { align-items: center; }
.filters-btn { margin-left: auto; gap: 6px; padding: 6px 14px; }
.filters-btn .btn-ico { width: 14px; height: 14px; }
.filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font: 700 12px/1 var(--font);
}
.filter-count[hidden] { display: none; }
[data-theme="neon"] .filters-btn .filter-count { background: #ff4ec8; color: #0f0d18; }
[data-theme="neon"] .filters-btn[aria-expanded="true"] { background: #2ee6d6; color: #0f0d18; border-color: #2ee6d6; }
[data-theme="neon"] .filters-btn[aria-expanded="true"] .filter-count { background: #0f0d18; color: #2ee6d6; }
[data-theme="classic"] .filters-btn .filter-count { background: #c9a227; color: #123528; }
[data-theme="classic"] .filters-btn[aria-expanded="true"] { background: #f3ead4; color: #123528; border-color: #f3ead4; }
[data-theme="classic"] .filters-btn[aria-expanded="true"] .filter-count { background: #123528; color: #f3ead4; }

.filters-body.popover {
  left: 8px;
  right: auto;
  width: min(460px, calc(100vw - 16px));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  padding: 4px 16px 16px;
}
.sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: -4px;
  margin: 0 -16px 4px;
  padding: 8px 8px 8px 16px;
  background: inherit;
  border-bottom: 1px solid var(--line);
  z-index: 1;
}
.sheet-title {
  margin: 0 auto 0 0;
  font-family: var(--label);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 16px;
}
.sheet-clear, .sheet-done {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
}
.sheet-clear { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
[data-theme="neon"] .sheet-done { background: #2ee6d6; color: #0f0d18; border: 0; }
[data-theme="classic"] .sheet-done { background: #123528; color: #f3ead4; border: 0; }
[data-theme="neon"] .sheet-clear { border-color: rgba(46, 230, 214, 0.6); }
[data-theme="classic"] .sheet-clear { border-color: rgba(18, 53, 40, 0.45); color: #123528; }
.filters-body .chip-row { flex-direction: column; gap: 6px; margin: 12px 0; }
.filters-body .chip-label {
  font-family: var(--label);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  color: var(--muted);
}
.filters-body .chip { min-height: 44px; padding: 8px 14px; font-size: 14px; }
[data-theme="neon"] .filters-body .chip.is-on { background: #2ee6d6; color: #0f0d18; border-color: #2ee6d6; }
[data-theme="classic"] .filters-body .chip { background: transparent; color: #123528; border: 1.5px solid rgba(18, 53, 40, 0.35); }
[data-theme="classic"] .filters-body .chip.is-on { background: #123528; color: #f3ead4; border-color: #123528; }
.filters-body .check { min-height: 44px; font-size: 15px; color: var(--ink); }
.filters-body .check input { width: 20px; height: 20px; accent-color: var(--pin-disc); }
.filters-body .filter-actions { margin-top: 4px; }

@media (max-width: 600px) {
  .filters-body.popover {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    max-height: 72dvh;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    padding-bottom: calc(16px + var(--safe-bottom));
    z-index: 2000;
  }
  .filters-btn { padding: 4px 12px; }
  .cat-row { flex-wrap: nowrap; }
  .cat-chip { padding-right: 10px; }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .filters-body.popover:not([hidden]) { animation: sheet-up 0.18s ease-out; }
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.filters-body .chip-label { display: block; min-height: 0; padding: 0; margin: 0; line-height: 1.2; flex: none; width: auto; }
.filters-body .chip-row .chips { margin: 0; }
@media (min-width: 601px) {
  .filters-body.popover { left: auto; right: 8px; }
}

/* Venue tags (20 Nov 8:58): unverified-deals line and Dine-in only chip */
.deals li.deal-unverified { border-top: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
[data-theme="neon"] .deals li.deal-unverified { background: rgba(255, 78, 200, 0.08); border: 1px solid rgba(255, 78, 200, 0.3); color: #f6f3fb; }
[data-theme="classic"] .deals li.deal-unverified { background: rgba(18, 53, 40, 0.06); border: 1px solid rgba(18, 53, 40, 0.25); color: #123528; }
[data-theme="neon"] .badge.info { color: #f6f3fb; border-color: rgba(246, 243, 251, 0.45); background: transparent; }
[data-theme="classic"] .badge.info { color: #123528; border-color: rgba(18, 53, 40, 0.45); background: transparent; }

/* ==========================================================================
   Map space on phones (John, 20 Nov 9:30: "We've lost too much map here").
   Out now map view on phones: one short header row, slim chips, the status
   line and the key/near-me/credit overlaid on the map. Desktop unchanged.
   ========================================================================== */
.ob-short, .near-short { display: none; }
.near-ico { display: none; width: 20px; height: 20px; flex: none; }
.happy-near-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
[data-theme="neon"] .near-ico.brand-neon,
[data-theme="classic"] .near-ico.brand-classic { display: block; }
html, body { height: 100%; }
body.view-map { height: 100dvh; min-height: 0; }

@media (max-width: 600px) {
  /* Header: logo + mode switch + theme on one 44px row */
  .chrome { padding: calc(var(--safe-top) + 2px) 8px 2px; }
  .chrome-row { min-height: 44px; gap: 6px; }
  .brand { min-height: 44px; padding: 0; }
  .brand-logo { height: 36px; }
  .mode-toggle { max-width: 210px; padding: 2px; }
  .mode-toggle button { min-height: 40px; padding: 4px 10px; font-size: 13px; }
  #theme-toggle { width: 44px; min-width: 44px; height: 44px; }

  /* Slim chip row: 36px visible, 44px tap area */
  .cat-row { padding: 2px 0 6px; gap: 6px; }
  .cat-chip {
    position: relative;
    min-height: 36px;
    padding: 2px 11px 2px 8px;
    font-size: 13px;
  }
  .cat-chip[data-cat="all"] { padding: 2px 14px; }
  .cat-chip::after { content: ""; position: absolute; inset: -4px 0; }
  .cat-chip .cat-ico { width: 16px; height: 16px; }
  .filters-btn { padding: 2px 11px; }

  /* Status: one short line, overlaid at the top of the map */
  body.view-map.mode-out .out-bar {
    position: absolute;
    top: calc(100% + 8px);
    left: 54px;
    max-width: calc(100% - 54px - 112px);
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
  }
  [data-theme="neon"] body.view-map.mode-out .out-bar { background: #0f0d18; border: 1px solid rgba(255, 255, 255, 0.14); color: #f6f3fb; }
  [data-theme="classic"] body.view-map.mode-out .out-bar { background: #f3ead4; border: 1px solid rgba(18, 53, 40, 0.25); color: #123528; }
  body.view-map.mode-out .out-bar .out-clock,
  body.view-map.mode-out .out-bar .out-window-label { margin: 0; font-size: 12px; line-height: 1.2; color: inherit; overflow: hidden; text-overflow: ellipsis; }
  body.view-map.mode-out .out-bar .out-window-label { font-weight: 700; }
  body.view-map.mode-out .out-bar .out-clock::after { content: "\00b7"; margin-left: 6px; font-weight: 700; }
  body.view-map.mode-out .out-bar .ob-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.view-map.mode-out .out-bar .ob-short { display: inline; }
  body.view-map.quiet-open .out-bar { display: none; }

  /* Key: small chip, collapsed by default, bottom left above the credit */
  body.view-map .map-legend,
  body.view-map.mode-out .map-legend,
  body.view-map.mode-plan .map-legend {
    left: 8px;
    bottom: calc(10px + var(--safe-bottom));
    max-width: calc(100% - 16px);
  }
  body.view-map .map-legend.is-collapsed { padding: 0; }
  body.view-map .map-legend.is-collapsed .legend-toggle { min-width: 44px; min-height: 36px; padding: 0 14px; font-size: 12px; }
  body.view-map .map-legend .legend-toggle { min-width: 36px; min-height: 36px; }

  /* Near me: compact floating pill, bottom right */
  body.view-map .happy-near-btn {
    left: auto;
    right: 8px;
    bottom: calc(10px + var(--safe-bottom));
    transform: none;
    width: auto;
    min-height: 44px;
    padding: 6px 16px 6px 12px;
    font-size: 14px;
    border-radius: 999px;
  }
  body.view-map .happy-near-btn .near-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.view-map .happy-near-btn .near-short { display: inline; }
  body.view-map .map-legend:not(.is-collapsed) ~ .happy-near-btn { bottom: calc(56px + var(--safe-bottom)); }

  body.view-map.mode-out .leaflet-bottom,
  body.view-map.mode-plan .leaflet-bottom { bottom: var(--safe-bottom); }
  body.view-map #main { padding-bottom: 0; }
}

/* Main app has no footer strip (John, 20 Nov 9:32): map runs to the bottom edge. */
body.view-map .happy-near-btn { bottom: calc(16px + var(--safe-bottom)); }
body.view-map.mode-out .leaflet-bottom { bottom: calc(92px + var(--safe-bottom)); }
.about-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; padding: 0; text-decoration: none; color: inherit; }
.about-btn .btn-ico { width: 18px; height: 18px; }
.chrome-actions { display: flex; align-items: center; gap: 6px; }
@media (max-width: 600px) {
  body.view-map.mode-out .leaflet-bottom,
  body.view-map.mode-plan .leaflet-bottom { bottom: var(--safe-bottom); }
  body.view-map .happy-near-btn { bottom: calc(10px + var(--safe-bottom)); }
  .chrome-actions { gap: 2px; }
}

/* Header order (John, 9:33): logo, theme icon, mode switch, About. The theme
   icon breaks up the two "Out now"s. One row, no wrapping down to 360px. */
.chrome-row > #theme-toggle { flex: 0 0 auto; }
.mode-wrap > .mode-toggle { margin-left: 0; }
.chrome-row > .chrome-actions { margin-left: auto; }
@media (max-width: 600px) {
  .chrome-row { flex-wrap: nowrap; }
  .chrome-row > #theme-toggle .btn-text { display: none; }
  .mode-wrap > .mode-toggle { flex: 1 1 auto; min-width: 0; max-width: 220px; }
  .mode-wrap > .mode-toggle button { flex: 1 1 auto; white-space: nowrap; padding: 4px 8px; }
}
@media (max-width: 400px) {
  [data-theme="neon"] .brand-neon.brand-city,
  [data-theme="classic"] .brand-classic.brand-city { display: none; }
  [data-theme="neon"] .brand-neon.brand-nocity,
  [data-theme="classic"] .brand-classic.brand-nocity { display: block; height: 30px; }
  .mode-wrap > .mode-toggle button { font-size: 12.5px; padding: 4px 6px; }
}

@media (max-width: 600px) {
  .chrome-row { gap: 4px; }
  .mode-wrap > .mode-toggle { padding: 1px; }
  .mode-wrap > .mode-toggle button { min-height: 44px; }
  body.view-map .map-legend .legend-toggle { position: relative; }
  body.view-map .map-legend .legend-toggle::after { content: ""; position: absolute; inset: -4px 0; }
  body.view-map .map-legend, body.view-map.mode-out .map-legend, body.view-map.mode-plan .map-legend,
  body.view-map .happy-near-btn { bottom: calc(16px + var(--safe-bottom)); }
  body.view-map .map-legend:not(.is-collapsed) ~ .happy-near-btn { bottom: calc(64px + var(--safe-bottom)); }
}
@media (max-width: 400px) {
  .chrome { padding-left: 6px; padding-right: 6px; }
  .mode-wrap > .mode-toggle button { font-size: 12px; padding: 4px 5px; }
  .brand { padding-right: 0; }
}

/* Time window caption attached to the mode switch (John, 9:35). The old
   out-bar line under the chips is gone, so the switch and its window read
   as one control. */
#out-bar { display: none !important; }
.mode-wrap { display: flex; flex-direction: column; align-items: stretch; flex: 0 1 auto; min-width: 0; }
.mode-wrap > .mode-toggle { width: 100%; }
.mode-caption {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 14px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-theme="neon"] .mode-caption { color: #2ee6d6; }
[data-theme="classic"] .mode-caption { color: #f3ead4; }
body.mode-plan .mode-caption { font-weight: 700; }
@media (max-width: 600px) {
  .chrome-row > .mode-wrap { flex: 1 1 auto; max-width: 220px; }
  .mode-wrap > .mode-toggle { max-width: none; }
  .mode-wrap > .mode-toggle button { position: relative; min-height: 38px; }
  .mode-wrap > .mode-toggle button::after { content: ""; position: absolute; inset: -3px 0; }
  .mode-caption { font-size: 11.5px; }
  body.mode-out .cat-row { padding-top: 4px; }
}
[data-theme="classic"] .about-btn { color: #123528; }
[data-theme="neon"] .about-btn { color: #f6f3fb; }
@media (max-width: 600px) {
  body.view-map .map-legend:not(.is-collapsed) { padding-right: 40px; column-gap: 8px; font-size: 11.5px; }
  body.view-map .map-legend:not(.is-collapsed) .legend-key { gap: 4px; }
}
@media (max-width: 600px) {
  body.view-map .map-legend:not(.is-collapsed) { padding-right: 6px; border-radius: 18px; }
  body.view-map .map-legend:not(.is-collapsed) .legend-keys { flex-wrap: wrap; flex: 1 1 auto; row-gap: 4px; }
}
@media (max-width: 600px) {
  body.view-map .map-legend:not(.is-collapsed) ~ .happy-near-btn { bottom: calc(90px + var(--safe-bottom)); }
}

/* Header alignment (John, 9:44: "I hate the buttons not being aligned").
   Phone header row: logo, theme circle, switch pill and About circle are all
   44px tall on one centre line with equal 6px gaps. The time caption hangs
   under the switch out of flow, so it can't shift the row. */
@media (max-width: 600px) {
  .chrome-row { display: flex; align-items: center; height: 44px; min-height: 44px; gap: 6px; margin-bottom: 15px; }
  .chrome-row > * { margin-top: 0; margin-bottom: 0; align-self: center; }
  .chrome-row > .brand { height: 44px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; }
  .chrome-row > #theme-toggle,
  .chrome-actions .about-btn { box-sizing: border-box; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
  .chrome-row > .chrome-actions { height: 44px; display: flex; align-items: center; gap: 0; margin-left: auto; }
  .chrome-row > .mode-wrap { position: relative; height: 44px; display: flex; flex-direction: column; justify-content: center; }
  .mode-wrap > .mode-toggle { box-sizing: border-box; height: 44px; min-height: 44px; padding: 2px; margin: 0; display: flex; align-items: stretch; border-radius: 999px; }
  .mode-wrap > .mode-toggle button { min-height: 0; height: auto; display: inline-flex; align-items: center; justify-content: center; line-height: 1; border-radius: 999px; }
  .mode-wrap > .mode-toggle button::after { inset: -2px 0; }
  .mode-caption { position: absolute; top: calc(100% + 1px); left: 0; right: 0; margin: 0; height: 14px; line-height: 14px; text-align: center; pointer-events: none; }

  /* Chip row: every chip and the Filters button exactly 36px, centred */
  .cat-row { display: flex; align-items: center; }
  body.mode-out .cat-row, .cat-row { padding-top: 0; padding-bottom: 6px; }
  .cat-row .cat-chip { box-sizing: border-box; height: 36px; min-height: 36px; margin: 0; display: inline-flex; align-items: center; line-height: 1; align-self: center; }
  .cat-row .filters-btn .btn-ico { display: block; }
}
@media (max-width: 600px) {
  .cat-row .filters-btn { margin-left: auto; }
}

/* About moved to the bottom-right map corner (John, 9:55). A 44px circle in
   the same overlay style as Near me, sitting to Near me's right. Header is now
   logo, theme, switch; phones get the full VEGAS logo back. */
.map-about {
  position: absolute;
  right: 10px;
  bottom: calc(16px + var(--safe-bottom));
  z-index: 650;
  box-sizing: border-box;
  width: 44px; height: 44px; min-width: 44px; padding: 0;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.map-about .btn-ico { width: 20px; height: 20px; }
[data-theme="neon"] .map-about { background: #1b1729; color: #f6f3fb; border: 2px solid #2ee6d6; }
[data-theme="classic"] .map-about { background: #123528; color: #f3ead4; border: 2px solid #c9a227; }
.map-about:focus-visible { outline: 3px solid var(--pin-disc); outline-offset: 3px; }
body:not(.view-map) .map-about { display: none; }
@media (max-width: 600px) {
  body.view-map .map-about { right: 8px; bottom: calc(16px + var(--safe-bottom)); }
  body.view-map .happy-near-btn { right: 58px; }
  body.view-map .map-legend:not(.is-collapsed) ~ .map-about { bottom: calc(90px + var(--safe-bottom)); }
  .chrome-row > .mode-wrap { max-width: none; }
  .chrome-row > .brand .brand-logo { height: 40px; }
  [data-theme="neon"] .chrome-row .brand-neon.brand-city,
  [data-theme="classic"] .chrome-row .brand-classic.brand-city { display: block; height: 40px; }
  [data-theme="neon"] .chrome-row .brand-neon.brand-nocity,
  [data-theme="classic"] .chrome-row .brand-classic.brand-nocity { display: none; }
}
@media (max-width: 359px) {
  [data-theme="neon"] .chrome-row .brand-neon.brand-city,
  [data-theme="classic"] .chrome-row .brand-classic.brand-city { display: none; }
  [data-theme="neon"] .chrome-row .brand-neon.brand-nocity,
  [data-theme="classic"] .chrome-row .brand-classic.brand-nocity { display: block; height: 30px; }
}
@media (min-width: 601px) {
  .chrome-row { align-items: center; margin-bottom: 15px; }
  .chrome-row > .mode-wrap { position: relative; align-self: center; }
  .chrome-row > #theme-toggle { align-self: center; height: 36px; min-height: 36px; box-sizing: border-box; }
  .mode-caption { position: absolute; top: calc(100% + 2px); left: 0; right: 0; margin: 0; }
}

/* Crawlable "Browse by area" block at the end of the List view, plus the
   no-JavaScript fallback (seo/build_seo.py writes the contents). */
.browse-areas { margin: 8px 16px 24px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.browse-areas h2 { margin: 0 0 6px; font-family: "Familjen Grotesk", Outfit, sans-serif; font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 16px; }
[data-theme="neon"] .browse-areas h2 { color: #2ee6d6; }
[data-theme="classic"] .browse-areas h2 { color: #c9a227; }
.browse-areas p { margin: 0 0 8px; font-size: 14px; }
.browse-areas ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.browse-areas a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: 600; text-underline-offset: 3px; }
.browse-areas li span { font-size: 13px; opacity: 0.8; }
.noscript-guide { padding: 16px; font-family: Outfit, sans-serif; }
.noscript-guide li { padding: 10px 0; }
.noscript-guide a { color: inherit; padding: 12px 0; }

/* Report a change: honeypot hidden off screen, error line */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.report-error { margin: 8px 0 0; font-size: 14px; font-weight: 600; }
[data-theme="neon"] .report-error { color: #ff4ec8; }
[data-theme="classic"] .report-error { color: #f3ead4; text-decoration: underline; }
.modal-note a { color: inherit; }
.check[hidden] { display: none !important; }
