:root {
  color-scheme: dark;
  --ink: #07161c;
  --ink-soft: #12313c;
  --foam: #e8f4f2;
  --mist: rgba(232, 244, 242, 0.72);
  --gold: #e6b35a;
  --coral: #ff8b6a;
  --teal: #3ecfc2;
  --on-accent: #062026;
  --panel: rgba(10, 28, 36, 0.88);
  --panel-solid: #102a34;
  --line: rgba(232, 244, 242, 0.14);
  --shadow: 0 18px 50px rgba(4, 16, 22, 0.45);
  --map: #0a242e;
  --veil: rgba(7, 22, 28, 0.55);
  --placeholder: rgba(232, 244, 242, 0.45);
  --card: rgba(16, 42, 52, 0.72);
  --sheet: #0e2731;
  --wash: rgba(255, 255, 255, 0.06);
  --cal: rgba(255, 255, 255, 0.03);
  --tab: rgba(8, 24, 30, 0.94);
  --backdrop: rgba(4, 12, 16, 0.55);
  --ride: rgba(12, 34, 42, 0.96);
  --error-bg: rgba(10, 32, 40, 0.94);
  --handle: rgba(232, 244, 242, 0.28);
  --splash-top: #07161c;
  --splash-bottom: #123845;
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Sora", "Segoe UI", sans-serif;
  --top: 12px;
  --bar: calc(64px + env(safe-area-inset-bottom));
  --safe-top: max(12px, env(safe-area-inset-top));
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ink: #f4f8f7;
    --ink-soft: #e4eeec;
    --foam: #10262e;
    --mist: rgba(16, 38, 46, 0.64);
    --gold: #8a5a12;
    --coral: #c4513a;
    --teal: #0c6e67;
    --on-accent: #f4fffd;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-solid: #ffffff;
    --line: rgba(16, 48, 58, 0.14);
    --shadow: 0 14px 36px rgba(16, 42, 52, 0.12);
    --map: #d5ebe7;
    --veil: rgba(244, 248, 247, 0.62);
    --placeholder: rgba(16, 38, 46, 0.42);
    --card: rgba(255, 255, 255, 0.94);
    --sheet: #f7fbfa;
    --wash: rgba(16, 48, 58, 0.06);
    --cal: rgba(16, 48, 58, 0.05);
    --tab: rgba(255, 255, 255, 0.94);
    --backdrop: rgba(16, 38, 46, 0.35);
    --ride: rgba(255, 255, 255, 0.97);
    --error-bg: #fff8f5;
    --handle: rgba(16, 48, 58, 0.22);
    --splash-top: #e7f4f1;
    --splash-bottom: #f7fbfa;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-ui);
  color: var(--foam);
  background: var(--ink);
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold); }

#map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--map);
}

.atmosphere {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, var(--veil) 0%, transparent 18%, transparent 72%, var(--veil) 100%);
}

.map-error {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  width: min(420px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--error-bg);
  border: 1px solid rgba(255, 139, 106, 0.45);
  line-height: 1.45;
}

.topbar,
.datebar,
.map-actions,
.peek,
.ride,
.tabbar,
.sheet,
.backdrop,
.page,
.toast { z-index: 20; }

.topbar {
  position: absolute;
  z-index: 28;
  top: var(--safe-top);
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--teal), #1a7a8a);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.search-pill {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.search-pill svg { width: 18px; height: 18px; flex: 0 0 auto; opacity: 0.7; }
.search-pill input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 16px;
}
.search-pill input::placeholder { color: var(--placeholder); }
.filter-btn {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: var(--on-accent);
}
.filter-btn svg { width: 18px; height: 18px; }

.icon-btn, .pill-btn, .ghost-btn, .text-btn, .toggle {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.icon-btn {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.icon-btn svg { width: 20px; height: 20px; }

.badge-count[hidden] { display: none; }
.badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--coral);
  color: #2a0d08;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.datebar {
  position: absolute;
  top: calc(var(--safe-top) + 64px);
  left: 12px;
  right: 12px;
  padding: 10px 10px 8px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

body[data-view="map"]:not(.days-open) .span-row,
body[data-view="map"]:not(.days-open) .intent-row,
body[data-view="map"]:not(.days-open) .timeline,
body[data-view="map"]:not(.days-open) .active-filters { display: none; }
body:not([data-view="map"]) #daysToggle { display: none; }

body[data-view="cal"] .datebar,
body[data-view="list"] .peek,
body[data-view="cal"] .peek,
body[data-view="list"] .map-actions,
body[data-view="cal"] .map-actions,
body.riding .map-actions,
body.riding .peek { display: none; }

.when {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 6px 6px;
}
.when strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 550;
}
.when #stats { color: var(--mist); font-size: 0.82rem; }

.span-row, .intent-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 8px;
}
.span-row::-webkit-scrollbar, .intent-row::-webkit-scrollbar { display: none; }
.span-chip, .intent-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--foam);
}
.span-chip.on, .intent-chip.on {
  background: var(--teal);
  color: var(--on-accent);
  border-color: transparent;
}
.intent-chip i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 1px;
}
.intent-chip em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.72;
  margin-left: 4px;
}
.intent-chip.on em { opacity: 0.85; }
.timeline[hidden] { display: none; }
.day-head {
  margin: 14px 4px 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 550;
}
.today-jump, .text-btn {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px;
}

.timeline {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 4px;
  position: relative;
}
.timeline::-webkit-scrollbar { display: none; }

.tick {
  flex: 0 0 46px;
  border: 0;
  background: transparent;
  border-radius: 14px;
  padding: 6px 0 7px;
  text-align: center;
  color: var(--mist);
}
.tick .dow {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tick .num {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--foam);
}
.tick .mark {
  display: block;
  width: 5px;
  height: 5px;
  margin: 5px auto 0;
  border-radius: 50%;
  background: transparent;
}
.tick.has .mark { background: var(--teal); }
.tick.today:not(.active) .num { color: var(--gold); }
.tick.active {
  background: linear-gradient(180deg, rgba(62, 207, 194, 0.28), rgba(62, 207, 194, 0.08));
  color: var(--foam);
}
.tick.empty { opacity: 0.38; }

.active-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px 0;
}
.active-filters:empty { display: none; }
.active-filters::-webkit-scrollbar { display: none; }
.kill {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(230, 179, 90, 0.18);
  color: var(--gold);
  font-size: 0.75rem;
}

.map-actions {
  position: absolute;
  right: 12px;
  bottom: calc(var(--bar) + 16px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
body.has-peek .map-actions { bottom: calc(var(--bar) + 118px); }

.pill-btn, .ghost-btn {
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.pill-btn {
  background: linear-gradient(135deg, var(--teal), #7ee8dc);
  color: var(--on-accent);
  border-color: transparent;
}
.ghost-btn { color: var(--foam); }

.peek, .ride {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(var(--bar) + 10px);
  border-radius: 24px;
  background: var(--ride);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
}

.peek[hidden], .ride[hidden] { display: none !important; }
.peek {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-left: 4px solid var(--teal);
}
.peek-copy { min-width: 0; display: block; }
.shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: var(--ink-soft);
}
.peek .shot {
  width: 72px;
  height: 72px;
  aspect-ratio: 1;
  border-radius: 16px;
  flex: 0 0 auto;
}
.ride .shot { border-radius: 16px; margin: 0 0 10px; }
.peek-kicker {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}
.peek strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 550;
  line-height: 1.2;
}
.peek #peekMeta { display: block; margin-top: 4px; color: var(--mist); font-size: 0.85rem; }

.ride { padding: 12px 16px 16px; }
.ride-bar {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  margin: 2px auto 20px;
  background: var(--handle);
}
.ride-close {
  position: absolute;
  top: 6px;
  right: 12px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.ride-close::before {
  content: "";
  position: absolute;
  inset: -9px;
}
.ride-kicker {
  margin: 0 36px 4px 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cat, var(--teal));
}
.ride h3 {
  margin: 0 36px 6px 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
  line-height: 1.15;
}
.ride .where, .ride .desc {
  margin: 0 0 8px;
  color: var(--mist);
  line-height: 1.4;
}
.ride .price-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--wash);
  font-size: 0.78rem;
}
.ride .price-tag.free { background: rgba(62, 207, 194, 0.16); color: var(--teal); }
.ride-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ride-actions a, .ride-actions button {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--wash);
  padding: 10px 12px;
  text-decoration: none;
  color: var(--foam);
  font-size: 0.82rem;
  font-weight: 600;
}
.ride-actions .go {
  background: var(--teal);
  color: var(--on-accent);
  border-color: transparent;
}
.ride-actions .book {
  background: #f0a06a;
  color: #1c140f;
  border-color: transparent;
}

.page {
  position: absolute;
  inset: 0;
  z-index: 15;
  overflow: auto;
  background:
    radial-gradient(800px 320px at 10% -10%, rgba(62, 207, 194, 0.14), transparent 55%),
    var(--ink);
  padding: var(--list-top, calc(var(--safe-top) + 190px)) 14px calc(var(--bar) + 28px);
  overflow-x: hidden;
}
body[data-view="cal"] .page { padding-top: calc(var(--safe-top) + 72px); }
.page-inner { max-width: 760px; margin: 0 auto; min-width: 0; }
.page-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 12px;
  min-width: 0;
}
.page-tools p { margin: 0; flex: 1 1 180px; color: var(--mist); }
.page-tools .pill-btn { flex: 0 0 auto; }

.list { display: grid; gap: 10px; }
.card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  padding: 0 0 12px;
  overflow: hidden;
  border-left: 4px solid var(--cat, var(--teal));
}
.card-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 14px 0 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.card.active { border-color: rgba(62, 207, 194, 0.65); }
.card-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; min-width: 0; }
.card h3, .card .meta { overflow-wrap: anywhere; }
.card .time { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .badge { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cat, var(--teal)); }
.card .time { font-size: 0.8rem; color: var(--mist); }
.card h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.12rem; font-weight: 550; line-height: 1.2; }
.card .meta { margin: 0; color: var(--mist); font-size: 0.86rem; }
.card .row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; padding: 0 14px 0 16px; }
.card:not(:has(.shot)) .card-open { padding-top: 14px; }
.price {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.75rem;
  background: var(--wash);
}
.price.free { color: var(--teal); background: rgba(62, 207, 194, 0.16); }
.rating {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--gold);
}
.rating span { margin-left: 1px; font-size: 0.72em; font-weight: 500; }
.rating-line { margin: 0 0 8px; color: var(--mist); }
.empty { padding: 28px 8px; text-align: center; color: var(--mist); line-height: 1.5; }

.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal-nav h2 { margin: 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 550; text-transform: capitalize; }
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-weekdays { margin-bottom: 4px; color: var(--mist); font-size: 0.72rem; text-align: center; }
.cal-cell {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--cal);
  color: var(--foam);
  padding: 6px 2px;
}
.cal-cell .n { display: block; font-family: var(--font-display); font-size: 0.95rem; }
.cal-cell .dots { display: flex; gap: 3px; justify-content: center; min-height: 6px; margin-top: 4px; }
.cal-cell .dots i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.cal-cell.out { opacity: 0.28; }
.cal-cell.today { box-shadow: inset 0 0 0 1px var(--gold); }
.cal-cell.on { background: rgba(62, 207, 194, 0.22); }
.cal-cell:disabled { opacity: 0.2; }

.tabbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: max(10px, env(safe-area-inset-bottom));
  height: 62px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 22px;
  background: var(--tab);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  z-index: 30;
}
.tabbar button {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--mist);
}
.tabbar svg { width: 22px; height: 22px; }
.tabbar button.on { color: var(--teal); }

.backdrop {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: var(--backdrop);
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  max-height: min(82dvh, 720px);
  overflow: auto;
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: var(--sheet);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  margin: 6px auto 10px;
  background: var(--handle);
}
.sheet-head, .sheet-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet h2 { margin: 0; font-family: var(--font-display); font-weight: 550; }
.sheet h3 { margin: 16px 0 8px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist); font-weight: 600; }
.toggle {
  width: 100%;
  margin-top: 12px;
  border-radius: 14px;
  padding: 14px;
  text-align: left;
  font-weight: 600;
}
.toggle.on { background: rgba(230, 179, 90, 0.2); border-color: rgba(230, 179, 90, 0.55); color: var(--gold); }
.city-rail, .filters { display: flex; flex-wrap: wrap; gap: 8px; }
.city-chip, .chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 0.85rem;
}
.city-chip.active, .chip.active { background: rgba(62, 207, 194, 0.18); border-color: rgba(62, 207, 194, 0.55); }
.chip.dim { opacity: 0.4; }
.sheet-actions { margin-top: 18px; }
.sheet-foot { color: var(--mist); font-size: 0.75rem; line-height: 1.45; }
.sheet-foot a { color: var(--gold); }

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--bar) + 18px);
  transform: translateX(-50%);
  z-index: 60;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--foam);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.splash {
  position: absolute;
  inset: 0;
  z-index: 50;
  overflow: auto;
  background: #f4efe6;
  color: #1c2421;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.45s ease, visibility 0.45s; }
.splash-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  box-sizing: border-box;
  min-height: 100%;
  width: min(520px, 100%);
  margin: 0 auto;
  padding:
    max(36px, env(safe-area-inset-top))
    28px
    max(28px, env(safe-area-inset-bottom));
}
.splash-kicker,
.splash-season,
.splash-when {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.splash-kicker { color: #8a5a12; }
.splash-season { margin-top: 10px; color: #5e6b67; }
.splash h1 {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(4.4rem, 18vw, 7rem);
  letter-spacing: -0.045em;
  line-height: 0.84;
  color: #14211e;
}
.splash-line {
  max-width: 16em;
  margin: 22px 0 0;
  font-size: 1.08rem;
  line-height: 1.45;
  color: #3c4945;
}
.splash-bill ul { list-style: none; margin: 8px 0 0; padding: 0; }
.splash-bill li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid rgba(20, 33, 30, 0.14);
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.2;
}
.splash-bill li span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.splash-bill .where {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7672;
}
.splash-btn {
  width: 100%;
  margin-top: 22px;
  border: 0;
  border-radius: 3px;
  padding: 16px 18px;
  background: #14211e;
  color: #f4efe6;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .splash { background: #07161c; color: #f4efe6; }
  .splash-season { color: rgba(244, 239, 230, 0.55); }
  .splash h1 { color: #f7f2e8; }
  .splash-line { color: rgba(244, 239, 230, 0.78); }
  .splash-bill li { border-top-color: rgba(244, 239, 230, 0.16); }
  .splash-bill .where { color: rgba(244, 239, 230, 0.55); }
  .splash-btn { background: #f4efe6; color: #14211e; }
}

.gmap-popup { display: none; }
.gm-style .gm-style-cc { z-index: 6; }

@media (max-width: 859px) {
  body[data-view="map"] .gm-style .gm-style-cc {
    bottom: calc(var(--bar) + 6px) !important;
  }
}

@media (min-width: 980px) {
  .topbar, .datebar { left: 24px; right: auto; width: min(460px, calc(100vw - 48px)); }
  .datebar { top: calc(var(--safe-top) + 70px); }
  .page {
    left: auto;
    width: min(460px, calc(100vw - 48px));
    right: 24px;
    top: 24px;
    bottom: 24px;
    border-radius: 28px;
    border: 1px solid var(--line);
    padding: 22px 18px 22px;
  }
  body[data-view="cal"] .page,
  body[data-view="list"] .page { padding-top: 22px; }
  .peek, .ride {
    left: 24px;
    right: auto;
    top: var(--panel-bottom, calc(var(--safe-top) + 240px));
    bottom: auto;
    width: min(420px, calc(100vw - 520px));
    max-height: min(460px, calc(100vh - 280px));
    overflow: auto;
  }
  body.has-peek .map-actions,
  .map-actions { right: auto; left: 96px; bottom: 16px; flex-direction: row; }
  body[data-view="list"] .map-actions,
  body[data-view="cal"] .map-actions { display: none; }
  .tabbar {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash.hide { transition: none; }
}
