:root {
  --bg: #e9e8e2; --text: #1c1c1e; --sub: #636366; --faint: #8e8e93; --line: rgba(60,60,67,.14);
  --fill: rgba(120,120,128,.12); --fill2: rgba(120,120,128,.2); --accent: #0d6b7a; --on-accent: #fff;
  --mat: rgba(250,250,248,.84); --solid: #fbfbf9; --shadow: 0 8px 32px rgba(0,0,0,.16), 0 1px 3px rgba(0,0,0,.1);
  --ok: #1f8a43; --warn: #b25f00; --stop: #d70015;
  --r: 1rem; --tab: 3.5rem; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #17181a; --text: #f5f5f7; --sub: #aeaeb2; --faint: #8e8e93; --line: rgba(235,235,245,.15);
  --fill: rgba(120,120,128,.24); --fill2: rgba(120,120,128,.36); --accent: #5cc4d2; --on-accent: #06181c;
  --mat: rgba(36,36,38,.84); --solid: #242426; --shadow: 0 8px 32px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.4);
  --ok: #4cd964; --warn: #ffb340; --stop: #ff6961; color-scheme: dark;
} }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; background: var(--bg); color: var(--text); }
body { font: 400 1rem/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
svg { display: block; fill: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#map { position: fixed; inset: 0; width: 100%; height: 100%; touch-action: none; outline: none; cursor: grab; }
#map.drag { cursor: grabbing; } #map.hot { cursor: pointer; }

/* panel */
.panel { position: fixed; z-index: 10; left: 1rem; top: calc(1rem + var(--safe-t)); bottom: calc(1rem + var(--tab) + .5rem + var(--safe-b)); width: 24rem; max-width: calc(100vw - 2rem); display: flex; flex-direction: column; background: var(--mat); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border-radius: 1.25rem; box-shadow: var(--shadow); overflow: hidden; }
.grab { display: none; }
.scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1.25rem 1rem 1rem; -webkit-overflow-scrolling: touch; }
.loading { padding: 2rem 0; text-align: center; color: var(--sub); }

/* tab bar */
.tabs { position: fixed; z-index: 20; left: 1rem; bottom: calc(1rem + var(--safe-b)); width: 24rem; max-width: calc(100vw - 2rem); height: var(--tab); display: grid; grid-template-columns: 1fr 1fr; padding: .25rem; gap: .25rem; background: var(--mat); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border-radius: 1.25rem; box-shadow: var(--shadow); }
.tabs a { position: relative; display: flex; align-items: center; justify-content: center; gap: .4rem; border-radius: 1rem; color: var(--sub); font-size: .875rem; font-weight: 600; transition: background .15s, color .15s; }
.tabs a i { width: 1.25rem; height: 1.25rem; } .tabs a[aria-current=page] { color: var(--accent); background: var(--fill); }
.tabs b { min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; border-radius: .7rem; background: var(--accent); color: var(--on-accent); font-size: .75rem; line-height: 1.25rem; text-align: center; }

/* type */
h1 { margin: 0; font-size: 1.75rem; line-height: 1.12; font-weight: 700; letter-spacing: -.022em; }
h2 { margin: 0; font-size: 1.125rem; line-height: 1.25; font-weight: 700; letter-spacing: -.012em; }
.lede { margin: .35rem 0 0; color: var(--sub); font-size: .9375rem; }
.foot { margin: 1.5rem 0 .25rem; color: var(--sub); font-size: .75rem; line-height: 1.4; }
.foot a { color: inherit; text-decoration: underline; }

/* search */
.search { position: relative; margin: 1rem 0 .75rem; }
.search > span svg { position: absolute; left: .7rem; top: .82rem; width: 1.1rem; height: 1.1rem; color: var(--sub); pointer-events: none; }
.search input { width: 100%; height: 2.75rem; padding: 0 2.5rem 0 2.35rem; border: 0; border-radius: .75rem; background: var(--fill); font-size: 1.0625rem; outline: none; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--sub); } .search input::-webkit-search-cancel-button { display: none; }
.search input:focus { box-shadow: 0 0 0 2px var(--accent); }
.search button { position: absolute; right: .25rem; top: .25rem; width: 2.25rem; height: 2.25rem; display: none; place-items: center; color: var(--sub); }
.search button svg { width: .9rem; height: .9rem; } .search.has button { display: grid; }

/* rows */
.list { margin: 0; padding: 0; list-style: none; }
.row { min-height: 3.5rem; display: flex; align-items: center; gap: .75rem; padding: .45rem .5rem; margin: 0 -.5rem; width: calc(100% + 1rem); border-radius: .75rem; text-align: left; color: inherit; transition: background .12s, transform .1s; }
.row:hover, .row.on { background: var(--fill); } .row:active { background: var(--fill2); transform: scale(.985); }
.row .tx { flex: 1; min-width: 0; }
.row strong { display: block; font-weight: 600; font-size: 1rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row small { display: block; color: var(--sub); font-size: .8125rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { width: .5rem; height: .85rem; color: var(--faint); flex: none; }
.ic { flex: none; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--c, var(--faint)); }
.ic svg { width: 1.25rem; height: 1.25rem; } .ic.plain { background: var(--fill); color: var(--accent); }
.min { flex: none; color: var(--sub); font-size: .8125rem; font-variant-numeric: tabular-nums; }

/* nav header */
.back { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; margin: -.7rem 0 0 -.25rem; padding: 0 .25rem; color: var(--accent); font-size: 1rem; }
.back svg { width: .55rem; height: .95rem; transform: scaleX(-1); }
.close { position: absolute; right: .75rem; top: .75rem; z-index: 2; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--fill); color: var(--sub); }
.close::after { content: ""; position: absolute; inset: -.4rem; } .close svg { width: .8rem; height: .8rem; }

/* chips and time */
.chips { display: flex; gap: .4rem; margin: .9rem -1rem 0; padding: 0 1rem .15rem; overflow-x: auto; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 2.25rem; padding: 0 .85rem; display: inline-flex; align-items: center; border-radius: 1.125rem; background: var(--fill); font-size: .875rem; font-weight: 500; white-space: nowrap; transition: background .12s, transform .1s; position: relative; }
.chip::after { content: ""; position: absolute; inset: -.25rem 0; } .chip:active { transform: scale(.96); }
.chip[aria-pressed=true] { background: var(--text); color: var(--solid); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: .6rem; padding: 2px; border-radius: .6rem; background: var(--fill); }
.seg button { height: 2rem; border-radius: .5rem; font-size: .8125rem; font-weight: 500; position: relative; } .seg button::after { content: ""; position: absolute; inset: -.4rem 0; }
.seg button[aria-pressed=true] { background: var(--solid); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.16); }
.shelf { margin-top: 1.35rem; }
.shelf > header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .2rem; }
.shelf > header button { color: var(--accent); font-size: .9375rem; min-height: 2rem; padding-left: .75rem; }
.empty { padding: 2rem 1rem; text-align: center; color: var(--sub); }
.empty h2 { color: var(--text); margin-bottom: .3rem; }
.more { display: block; width: 100%; height: 2.75rem; margin-top: .5rem; border-radius: .75rem; background: var(--fill); color: var(--accent); font-weight: 600; text-align: center; }

/* place */
.place-h { display: flex; gap: .85rem; align-items: flex-start; padding-right: 2.25rem; }
.place-h .ic { width: 3.25rem; height: 3.25rem; } .place-h .ic svg { width: 1.75rem; height: 1.75rem; }
.place-h h1 { font-size: 1.5rem; }
.place-h p { margin: .2rem 0 0; color: var(--sub); font-size: .9375rem; }
.actions { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: .5rem; margin-top: 1rem; } .actions.two { grid-template-columns: 1.4fr 1fr; }
.act { min-height: 3.25rem; padding: .35rem .25rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; border-radius: .85rem; background: var(--fill); color: var(--accent); font-size: .75rem; font-weight: 600; transition: transform .1s, background .12s; }
.act svg { width: 1.25rem; height: 1.25rem; } .act:active { transform: scale(.96); }
.act.pri { background: var(--accent); color: var(--on-accent); } .act.pri.in { background: var(--fill); color: var(--ok); }
.sec { margin-top: 1.35rem; } .sec > h2 { margin-bottom: .4rem; }
.card { background: var(--fill); border-radius: .85rem; overflow: hidden; }
.know { display: flex; gap: .65rem; padding: .7rem .8rem; font-size: .9rem; line-height: 1.35; }
.know + .know { border-top: 1px solid var(--line); }
.know i { flex: none; width: .55rem; height: .55rem; margin-top: .4rem; border-radius: 50%; background: var(--faint); }
.know.ok i { background: var(--ok); } .know.warn i { background: var(--warn); } .know.stop i { background: var(--stop); }
.know b { font-weight: 600; } .know span { color: var(--sub); } .know a { text-decoration: underline; }
.story { margin: 0; font-size: .9375rem; line-height: 1.5; }
.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.link { color: var(--accent); font-size: .9375rem; min-height: 2.25rem; }
.linkrow { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 2.75rem; padding: .3rem .8rem; color: var(--text); font-size: .9375rem; }
.linkrow + .linkrow { border-top: 1px solid var(--line); } .linkrow:hover { background: var(--fill); }
details.more-d { margin-top: 1.1rem; border-top: 1px solid var(--line); }
details.more-d summary { display: flex; justify-content: space-between; align-items: center; min-height: 2.75rem; font-weight: 600; cursor: pointer; list-style: none; }
details.more-d summary::-webkit-details-marker { display: none; }
details.more-d summary svg { transition: transform .18s; } details[open].more-d summary svg { transform: rotate(90deg); }
dl { margin: 0 0 .5rem; font-size: .875rem; } dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; } dt { color: var(--sub); flex: none; } dd { margin: 0; text-align: right; }

/* trip */
.stop { display: flex; align-items: center; gap: .6rem; min-height: 3.5rem; padding: .35rem 0; }
.stop .num { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--c, var(--accent)); color: #fff; font-size: .8125rem; font-weight: 700; }
.stop .tx { flex: 1; min-width: 0; text-align: left; }
.stop strong { display: block; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .stop small { color: var(--sub); font-size: .8125rem; }
.mini { flex: none; width: 2rem; height: 2.75rem; display: grid; place-items: center; color: var(--sub); border-radius: .5rem; } .mini:hover { background: var(--fill); } .mini:disabled { opacity: .25; } .mini svg { width: 1rem; height: 1rem; }
.legline { margin-left: .85rem; padding: .1rem 0 .1rem 1.5rem; border-left: 2px dotted var(--faint); color: var(--sub); font-size: .8125rem; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .6rem; }
.total b { font-size: 1.375rem; letter-spacing: -.015em; }

/* map chrome */
.mapctl { position: fixed; z-index: 5; right: 1rem; top: calc(1rem + var(--safe-t)); display: flex; flex-direction: column; background: var(--mat); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-radius: .75rem; box-shadow: var(--shadow); overflow: hidden; }
.mapctl button { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; color: var(--text); } .mapctl button + button { border-top: 1px solid var(--line); }
.mapctl button:hover { background: var(--fill); } .mapctl svg { width: 1.2rem; height: 1.2rem; }
.popover { position: fixed; z-index: 30; right: 4.25rem; top: calc(1rem + var(--safe-t)); width: 15rem; padding: .35rem; background: var(--solid); border-radius: .85rem; box-shadow: var(--shadow); transform-origin: top right; animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.opt { width: 100%; min-height: 2.75rem; display: flex; align-items: center; justify-content: space-between; padding: 0 .65rem; border-radius: .55rem; font-size: .9375rem; } .opt:hover { background: var(--fill); }
.opt svg { width: 1rem; height: 1rem; color: var(--accent); visibility: hidden; } .opt[aria-checked=true] svg { visibility: visible; }
.popover p { margin: .35rem .65rem .45rem; color: var(--sub); font-size: .75rem; line-height: 1.35; }
.here { position: fixed; z-index: 6; top: calc(1rem + var(--safe-t)); left: calc(50% + 12.5rem); transform: translateX(-50%); height: 2.5rem; padding: 0 1.1rem; border-radius: 1.25rem; background: var(--solid); color: var(--accent); font-size: .9375rem; font-weight: 600; box-shadow: var(--shadow); white-space: nowrap; }
.toast { position: fixed; z-index: 40; left: calc(50% + 12.5rem); bottom: calc(1.5rem + var(--safe-b)); transform: translateX(-50%); padding: .6rem 1.05rem; border-radius: 1.25rem; background: var(--text); color: var(--solid); font-size: .9375rem; font-weight: 500; box-shadow: var(--shadow); max-width: calc(100vw - 2rem); }

/* phone: bottom sheet */
@media (max-width: 760px) {
  .panel { left: 0; right: 0; width: auto; max-width: none; top: calc(.5rem + var(--safe-t)); bottom: 0; border-radius: 1.25rem 1.25rem 0 0; will-change: transform; }
  .grab { display: flex; flex: none; justify-content: center; align-items: center; height: 1.5rem; touch-action: none; cursor: grab; }
  .grab span { width: 2.25rem; height: .3rem; border-radius: .15rem; background: var(--fill2); }
  .scroll { flex: none; padding-top: .25rem; }
  .tabs { left: 0; right: 0; width: auto; max-width: none; bottom: 0; height: calc(var(--tab) + var(--safe-b)); padding: .25rem .75rem var(--safe-b); border-radius: 0; box-shadow: 0 -1px 0 var(--line); background: var(--solid); }
  .tabs a { flex-direction: column; gap: 0; font-size: .6875rem; } .tabs a[aria-current=page] { background: none; }
  .tabs b { position: absolute; top: .1rem; left: calc(50% + .55rem); min-width: 1.05rem; height: 1.05rem; padding: 0 .2rem; line-height: 1.05rem; font-size: .65rem; }
  .mapctl { right: .6rem; top: calc(.6rem + var(--safe-t)); } .mapctl #zin, .mapctl #zout { display: none; } .mapctl #layers { border: 0; }
  .popover { right: .6rem; top: calc(3.9rem + var(--safe-t)); }
  .here { left: 50%; top: calc(.6rem + var(--safe-t)); } .toast { left: 50%; bottom: calc(var(--tab) + 1rem + var(--safe-b)); }
  h1 { font-size: 1.625rem; } .close { top: .25rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: opacity .15s !important; } .row:active, .chip:active, .act:active { transform: none; } }
@media (prefers-reduced-transparency: reduce) { .panel, .tabs, .mapctl { background: var(--solid); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { :root { --line: rgba(128,128,128,.6); --sub: var(--text); } .panel, .tabs, .mapctl { background: var(--solid); -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid var(--text); } }

/* photos */
.thumb { flex: none; width: 3.25rem; height: 3.25rem; border-radius: .65rem; object-fit: cover; background: var(--fill); }
.hero { margin: -1.25rem -1rem 1rem; background: var(--fill); }
.hero img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero figcaption { padding: .35rem 1rem; color: var(--sub); font-size: .6875rem; line-height: 1.35; overflow-wrap: anywhere; }
.hero figcaption a { color: inherit; text-decoration: underline; }
.hero ~ .close, .close:has(+ .hero) { background: rgba(0,0,0,.55); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (max-width: 760px) { .hero { margin-top: -.25rem; } }

/* plan my day */
.plancta { display: flex; align-items: center; gap: .75rem; min-height: 4rem; margin-top: .9rem; padding: .6rem .8rem; border-radius: .85rem; background: var(--accent); color: var(--on-accent); }
.plancta:active { transform: scale(.985); } .plancta .ic { background: rgba(255,255,255,.18); color: inherit; } .plancta .tx { flex: 1; min-width: 0; }
.plancta strong { display: block; font-size: 1.0625rem; font-weight: 650; line-height: 1.25; } .plancta small { display: block; font-size: .8125rem; opacity: .86; } .plancta .chev { color: inherit; opacity: .7; }
.ask { margin-top: 1.35rem; } .ask h2 { margin-bottom: .45rem; } .seg.three { grid-template-columns: repeat(3, 1fr); } .seg.two { grid-template-columns: repeat(2, 1fr); } .ask .seg button { height: 2.75rem; font-size: .9375rem; }
.act.go { width: 100%; margin-top: 1.35rem; font-size: 1.0625rem; font-weight: 650; }
.nofit { display: grid; gap: .5rem; margin-top: 1rem; } .nofit .act { color: var(--text); text-decoration: none; font-weight: 600; padding-inline: 1rem; }
.nofit .act:first-child { background: var(--accent); color: var(--on-accent); }
.split { margin: .1rem 0 0; color: var(--sub); font-size: .875rem; } .timeline { margin-top: 1rem; }
.planb { flex: none; min-height: 2.75rem; padding: 0 .7rem; border-radius: .6rem; background: var(--fill); color: var(--accent); font-size: .8125rem; font-weight: 600; } .planb:hover, .planb[aria-expanded=true] { background: var(--fill2); }
.stopfire { margin: 0 0 .35rem 2.35rem; color: var(--stop, #c8372d); font-size: .8125rem; font-weight: 600; }
.stop.end .num { background: var(--fill2); color: var(--text); } .stop.end .num svg { width: .9rem; height: .9rem; }
.alts { margin: .15rem 0 .6rem; padding: .65rem .7rem; border-radius: .85rem; background: var(--fill); font-size: .875rem; } .alts > b { display: block; margin-bottom: .25rem; } .alts p { margin: .25rem 0; color: var(--sub); }
.alt { display: flex; width: 100%; align-items: center; gap: .65rem; min-height: 3.5rem; padding: .3rem; border-radius: .6rem; text-align: left; } .alt:hover { background: var(--fill2); } .alt .tx { flex: 1; min-width: 0; } .alt strong { display: block; font-weight: 600; font-size: .9375rem; } .alt small { display: block; color: var(--sub); font-size: .8125rem; } .alt .thumb, .alt .ic { width: 2.75rem; height: 2.75rem; }
#planNew { display: flex; align-items: center; justify-content: center; gap: .45rem; } #planNew svg { width: 1.05rem; height: 1.05rem; }
.saveask { margin-top: .6rem; padding: .65rem .7rem; border-radius: .85rem; background: var(--fill); } .saveask p { margin: 0; font-size: .875rem; } .saveask .actions { margin-top: .5rem; } .saveask .act { min-height: 2.75rem; background: var(--solid); }

/* offline trip */
.offcard { display: flex; flex-direction: column; gap: .6rem; margin-top: .9rem; padding: .75rem .8rem; border-radius: .85rem; background: var(--fill); font-size: .875rem; }
.offcard b { font-size: .9375rem; font-weight: 650; } .offcard p { margin: .1rem 0 0; color: var(--sub); line-height: 1.35; } .offcard.ready { box-shadow: inset 3px 0 0 var(--ok); } .offcard.changed { box-shadow: inset 3px 0 0 var(--warn); } .offcard.busy { box-shadow: inset 3px 0 0 var(--accent); }
.offcard .offerr { color: var(--stop); font-weight: 600; } .offbtns { display: flex; gap: .5rem; } .offbtns .act { flex: 1; min-height: 2.75rem; flex-direction: row; gap: .4rem; background: var(--solid); font-weight: 600; } .offbtns .act.pri { background: var(--accent); }
.act:disabled { opacity: .55; cursor: default; }
.netbar { position: fixed; z-index: 25; left: calc(50% + 12.5rem); top: calc(.75rem + var(--safe-t)); transform: translateX(-50%); max-width: calc(100vw - 2rem); padding: .45rem .9rem; border-radius: 1.2rem; background: var(--text); color: var(--solid); font-size: .8125rem; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow); }

/* help */
.helpsec { display: flex; gap: .75rem; margin-top: 1.15rem; } .helpsec h2 { margin: 0 0 .15rem; font-size: 1rem; } .helpsec p { margin: 0; color: var(--sub); font-size: .9063rem; line-height: 1.42; } .helpsec p b { color: var(--text); font-weight: 600; }

/* walkthrough */
.tour { position: fixed; inset: 0; z-index: 60; } .tour-spot { position: fixed; border-radius: .85rem; box-shadow: 0 0 0 200vmax rgba(0,0,0,.62), 0 0 0 2px var(--accent); pointer-events: none; opacity: 0; transition: opacity .18s; }
.tour-card { position: fixed; left: 0; top: 0; width: min(22rem, calc(100vw - 1.5rem)); padding: 1rem; border-radius: 1rem; background: var(--solid); color: var(--text); box-shadow: var(--shadow); opacity: 0; transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .15s; }
.tour-n { margin: 0 0 .2rem; color: var(--sub); font-size: .75rem; font-weight: 600; } .tour-card h2 { margin: 0 0 .3rem; font-size: 1.125rem; line-height: 1.25; outline: 0; } .tour-card > p:not(.tour-n) { margin: 0; color: var(--sub); font-size: .9375rem; line-height: 1.4; }
.tour-btns { display: flex; align-items: center; gap: .4rem; margin-top: .85rem; } .tour-btns span { flex: 1; } .tour-btns button { min-height: 2.75rem; min-width: 2.75rem; padding: 0 .8rem; border-radius: .6rem; font-size: .9375rem; font-weight: 600; color: var(--accent); } .tour-btns #tourSkip { color: var(--sub); padding-left: .25rem; font-weight: 500; } .tour-btns button:disabled { visibility: hidden; } .tour-btns .pri { background: var(--accent); color: var(--on-accent); }
@media (max-width: 760px) { .netbar { left: 50%; top: auto; bottom: calc(var(--tab) + .5rem + var(--safe-b)); width: max-content; max-width: calc(100vw - 2rem); white-space: normal; text-align: center; transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tour-card, .tour-spot { transition: none !important; } }
.mapparts { margin-top: .5rem; overflow: hidden; } .mapparts p { margin: 0; padding: .65rem .8rem; color: var(--sub); font-size: .875rem; } .mapparts p + .linkrow { border-top: 1px solid var(--line); }
.mapnote { margin: .5rem .15rem 0; color: var(--sub); font-size: .8125rem; line-height: 1.35; }
.toast { width: max-content; max-width: min(calc(100vw - 2rem), 30rem); text-align: center; } /* long messages use the full width instead of a narrow column */
@media (min-width: 761px) { .toast { max-width: min(calc(100vw - 27rem), 30rem); } } /* stays inside the map area beside the sidebar */

/* front page: shown on arrival at the plain address, over a softened view of the map loading behind it */
.front { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; overflow-y: auto; padding: calc(1.5rem + var(--safe-t)) 1.25rem calc(1.5rem + var(--safe-b));
  background: radial-gradient(120% 80% at 50% 40%, color-mix(in srgb, var(--bg) 62%, transparent), color-mix(in srgb, var(--bg) 92%, transparent));
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  animation: fin .3s .08s both; transition: opacity .26s ease, transform .26s ease; }
.front.leaving { opacity: 0; transform: scale(1.04); pointer-events: none; }
@keyframes fin { from { opacity: 0; } }
.fwrap { width: 100%; max-width: 30rem; text-align: center; }
.fkick { margin: 0 0 .35rem; color: var(--accent); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.front h1 { font-size: clamp(2.5rem, 11vw, 3.75rem); line-height: 1.02; letter-spacing: -.035em; }
.flede { margin: .75rem auto 0; max-width: 22rem; color: var(--sub); font-size: 1.0625rem; line-height: 1.45; text-wrap: balance; }
.fnav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; margin: 2.5rem 0 2.25rem; }
.fbtn { display: flex; flex-direction: column; align-items: center; gap: .55rem; color: var(--text); font-weight: 600; border-radius: 1.25rem; padding: .25rem; transition: transform .1s ease-out; }
.fbtn:active { transform: scale(.96); }
.fic { display: grid; place-items: center; border-radius: 50%; transition: transform .2s ease, box-shadow .2s ease; }
.fic svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fbtn.side .fic { width: 4.25rem; height: 4.25rem; background: var(--solid); color: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.08), inset 0 0 0 1px var(--line); }
.fbtn.side .fic svg { width: 1.75rem; height: 1.75rem; }
.fbtn.side .flab { color: var(--sub); font-size: .9375rem; }
.fbtn.main .fic { width: 8.5rem; height: 8.5rem; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 38%, transparent), 0 2px 6px rgba(0,0,0,.12); }
.fbtn.main .fic svg { width: 3.4rem; height: 3.4rem; stroke-width: 1.6; }
.fbtn.main .flab { color: var(--accent); font-size: 1.125rem; letter-spacing: -.01em; }
@media (hover: hover) { .fbtn:hover .fic { transform: translateY(-2px); } .fbtn.main:hover .fic { box-shadow: 0 14px 36px color-mix(in srgb, var(--accent) 45%, transparent), 0 2px 6px rgba(0,0,0,.12); } }
.ffoot { margin: 0; color: var(--faint); font-size: .8125rem; text-wrap: balance; }
.fronting :is(.panel, .tabs, .mapctl, .here, .netbar, .toast, .popover) { visibility: hidden; }
@media (max-width: 360px) { .fbtn.main .fic { width: 7.25rem; height: 7.25rem; } .fbtn.side .fic { width: 3.75rem; height: 3.75rem; } .fnav { gap: .4rem; } }
@media (prefers-reduced-motion: reduce) { .front.leaving { transform: none; } }
@media (prefers-reduced-transparency: reduce) { .front { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Opening fly-through (first visit). The video fills the screen; its last frame matches the map, which takes over as it fades. */
.intro { position: fixed; inset: 0; z-index: 70; opacity: 0; transition: opacity .35s ease; cursor: pointer; }
.intro.on { opacity: 1; }
.intro.out { opacity: 0; transition-duration: .6s; pointer-events: none; }
.intro video { display: block; width: 100%; height: 100%; object-fit: cover; }
.intro .iskip, .intro .icap { position: absolute; bottom: calc(1rem + var(--safe-b)); margin: 0; color: #fff; background: rgba(20,22,24,.42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 999px; }
.intro .iskip { right: calc(1rem + env(safe-area-inset-right, 0px)); border: 1px solid rgba(255,255,255,.28); font: 600 .9375rem/1 system-ui, sans-serif; padding: .7rem 1.1rem; min-height: 44px; cursor: pointer; }
.intro .iskip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.intro .icap { left: calc(1rem + env(safe-area-inset-left, 0px)); font: 500 .75rem/1.2 system-ui, sans-serif; padding: .45rem .75rem; max-width: calc(100% - 9rem); }
@media (prefers-reduced-transparency: reduce) { .intro .iskip, .intro .icap { background: rgba(20,22,24,.85); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Trip safety notice */
.safety { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 30rem; max-height: min(85vh, 40rem); overflow: auto; background: var(--solid); color: var(--text); border-radius: 1.25rem 1.25rem 0 0; box-shadow: var(--shadow); animation: safeUp .32s cubic-bezier(.2,.8,.2,1); }
.safety::backdrop { background: rgba(0,0,0,.38); animation: safeFade .25s ease; }
.safein { padding: 1.25rem 1rem 0; }
.safety h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.01em; } .safety p { margin: .25rem 0 .85rem; color: var(--sub); font-size: .9rem; }
.safebtns { position: sticky; bottom: 0; display: flex; gap: .5rem; margin: .4rem -1rem 0; padding: .6rem 1rem calc(.6rem + var(--safe-b)); background: var(--solid); } .safebtns .act { flex: 1; min-height: 2.9rem; font-size: .9375rem; } .safebtns .act.pri { background: var(--accent); color: var(--on-accent); }
@media (min-width: 640px) { .safety { margin: auto; border-radius: 1.25rem; } }
@keyframes safeUp { from { transform: translateY(1.5rem); opacity: 0; } }
@keyframes safeFade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .safety { animation: safeFade .2s ease; } }
