/* DG Self-Guided App
 * Night blue, warm parchment text, gaslight gold for what you tap, ghost teal for "you" and
 * "visited". Instrument Serif for titles, Hanken Grotesk for everything else.
 */

@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/hanken-grotesk.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(../fonts/instrument-serif.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(../fonts/instrument-serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
	--bg: #0b0c10;
	--bg-2: #101219;
	--card: #161922;
	--card-2: #1d2130;
	--line: rgb(255 255 255 / .08);
	--line-2: rgb(255 255 255 / .14);
	--ink: #f5f0e8;
	--ink-2: #cdc7bd;
	--mute: #8e8c97;
	--gold: #f2b544;
	--gold-2: #ffd27a;
	--gold-ink: #1b1306;
	--teal: #67d5c2;
	--red: #ff7a6b;
	--r: 18px;
	--r-lg: 26px;
	--safe-t: env(safe-area-inset-top, 0px);
	--safe-b: env(safe-area-inset-bottom, 0px);
	--tab-h: 64px;
	--ui: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--disp: "Instrument Serif", Georgia, serif;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--ui); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
body.is-app { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: var(--gold-2); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.disp { font-family: var(--disp); font-weight: 400; letter-spacing: .005em; line-height: 1.05; margin: 0; }
.prose { color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--gold-2); }
.prose img { border-radius: 12px; height: auto; }

/* ---------- Red light and Captions ---------- */
html.red #app, html.red .pagewrap { filter: grayscale(1) sepia(1) hue-rotate(-48deg) saturate(5) brightness(.62); }
html.big { font-size: 18px; }
html.big .prose, html.big .tx { font-size: 19px; }

/* ---------- Splash ---------- */
.splash { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: radial-gradient(60% 40% at 50% 38%, #1a1d2a 0%, var(--bg) 70%); }
.splash img { border-radius: 22px; box-shadow: 0 18px 50px -12px #000; animation: breathe 2.4s ease-in-out infinite; }
.splash p { margin: 0; font: 400 26px/1 var(--disp); color: var(--ink-2); }
@keyframes breathe { 50% { transform: scale(1.04); opacity: .85; } }

/* ---------- Screens ---------- */
#app { position: fixed; inset: 0; overflow: hidden; }
.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); background: var(--bg); animation: in .28s cubic-bezier(.2, .8, .2, 1); }
.screen--full { padding-bottom: 0; }
@keyframes in { from { opacity: 0; transform: translateY(10px); } }
.wrap { padding: 0 18px; max-width: 760px; margin: 0 auto; }

/* ---------- Top bars ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; padding: calc(8px + var(--safe-t)) 10px 8px; }
.topbar--solid { background: rgb(11 12 16 / .86); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.topbar__t { margin: 0; text-align: center; font-weight: 650; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__t small { display: block; font-weight: 500; font-size: 12px; color: var(--mute); }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(22 25 34 / .78); color: var(--ink); cursor: pointer; text-decoration: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line-2); }
.iconbtn:active { transform: scale(.94); }

/* ---------- Home ---------- */
.hello { padding: calc(18px + var(--safe-t)) 18px 6px; display: flex; align-items: center; gap: 12px; }
.hello__logo { width: 40px; height: 40px; border-radius: 11px; }
.hello__logo--brand { width: auto; height: 48px; max-width: 160px; border-radius: 0; object-fit: contain; }
.hello__t { flex: 1; min-width: 0; }
.hello__t h1 { font: 400 clamp(22px, 6.4vw, 30px)/1.05 var(--disp); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hello__t p { margin: 2px 0 0; color: var(--mute); font-size: 13px; }
.citypill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600; font-size: 14px; cursor: pointer; }
.citypill svg { width: 16px; height: 16px; color: var(--gold); }
.lead { margin: 18px 0 14px; font: 400 40px/1.02 var(--disp); }
.lead em { color: var(--gold); }
.sub { margin: -6px 0 18px; color: var(--mute); }
.sec { margin: 26px 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sec h2 { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 700; }

.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.citycard { position: relative; aspect-ratio: 4 / 5; border: 0; border-radius: var(--r-lg); overflow: hidden; padding: 0; background: var(--card); cursor: pointer; text-align: left; box-shadow: 0 16px 40px -18px #000, inset 0 0 0 1px var(--line); }
.citycard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.citycard:active img { transform: scale(1.05); }
.citycard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgb(5 6 9 / .92)); }
.citycard span { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; }
.citycard b { display: block; font: 400 26px/1.02 var(--disp); color: var(--ink); }
.citycard small { color: var(--ink-2); font-size: 13px; }

.tours { display: grid; gap: 16px; }
.tourcard { display: block; position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 0 20px 44px -22px #000, inset 0 0 0 1px var(--line); }
.tourcard__img { position: relative; aspect-ratio: 16 / 10; background: var(--card-2); }
.tourcard__img img { width: 100%; height: 100%; object-fit: cover; }
.tourcard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(22 25 34 / .96)); }
.tourcard__tags { position: absolute; z-index: 1; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tourcard__b { padding: 0 16px 16px; margin-top: -34px; position: relative; z-index: 1; }
.tourcard__b h3 { font: 400 28px/1.04 var(--disp); margin: 0 0 6px; }
.tourcard__b p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--mute); font-size: 13px; font-weight: 600; }
.facts span { display: inline-flex; align-items: center; gap: 5px; }
.facts svg { width: 15px; height: 15px; color: var(--gold); }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: rgb(11 12 16 / .7); color: var(--ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line-2); }
.tag svg { width: 13px; height: 13px; }
.tag--gold { background: var(--gold); color: var(--gold-ink); box-shadow: none; }
.tag--teal { background: rgb(103 213 194 / .16); color: var(--teal); box-shadow: inset 0 0 0 1px rgb(103 213 194 / .4); }
.tag--free { background: rgb(103 213 194 / .92); color: #062520; box-shadow: none; }

.empty { margin: 30px 0; padding: 28px 20px; border-radius: var(--r-lg); background: var(--card); text-align: center; color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); }
.empty h3 { color: var(--ink); font: 400 26px/1.1 var(--disp); margin: 0 0 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 16px; background: var(--card-2); color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .12s, filter .2s; }
.btn:active { transform: scale(.97); }
.btn--gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); box-shadow: 0 10px 30px -10px rgb(242 181 68 / .55), inset 0 1px 0 rgb(255 255 255 / .35); }
.btn--ghost { background: transparent; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn svg { width: 20px; height: 20px; }
.linkbtn { border: 0; background: none; padding: 6px 0; color: var(--gold-2); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Tab bar ---------- */
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 6px 12px calc(6px + var(--safe-b)); background: rgb(11 12 16 / .9); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-top: 1px solid var(--line); }
.tabbar a { flex: 1; max-width: 140px; display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: var(--mute); text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.tabbar a.is-on { color: var(--gold); }
.tabbar svg { width: 24px; height: 24px; }

/* ---------- Tour page ---------- */
.hero { position: relative; min-height: 56vh; display: flex; align-items: flex-end; background: var(--card); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 12 16 / .55) 0%, transparent 28%, transparent 45%, var(--bg) 100%); }
.hero .topbar { position: absolute; top: 0; left: 0; right: 0; }
.hero__b { position: relative; z-index: 1; padding: 0 18px 8px; width: 100%; max-width: 760px; margin: 0 auto; }
.hero__b .tag { margin-bottom: 10px; }
.hero__b h1 { font: 400 44px/.98 var(--disp); margin: 0 0 10px; text-shadow: 0 2px 20px rgb(0 0 0 / .5); }
.actions { display: grid; gap: 10px; margin: 18px 0 6px; }
.actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note { margin: 6px 0 0; font-size: 13px; color: var(--mute); text-align: center; }
.minimap { height: 220px; border-radius: var(--r-lg); overflow: hidden; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.stoplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stoplist li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.stoplist img, .stoplist .ph { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--card-2); }
.stoplist b { display: block; font-weight: 650; }
.stoplist small { color: var(--mute); font-size: 13px; }
.stoplist .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); color: var(--gold); font-weight: 800; font-size: 13px; box-shadow: inset 0 0 0 1px var(--line-2); }
.stoplist .n.is-done { background: var(--teal); color: #062520; box-shadow: none; }
.dl { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.dl__t { flex: 1; min-width: 0; }
.dl__t b { display: block; }
.dl__t small { color: var(--mute); }
.dl__bar { height: 4px; border-radius: 4px; background: var(--card-2); margin-top: 8px; overflow: hidden; }
.dl__bar i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .2s; }

/* ---------- Sheets and dialogs ---------- */
.veil { position: fixed; inset: 0; z-index: 80; background: rgb(0 0 0 / .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.dialog { position: fixed; z-index: 81; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; padding: 10px 20px calc(22px + var(--safe-b)); border-radius: 26px 26px 0 0; background: var(--bg-2); box-shadow: 0 -20px 60px -20px #000, inset 0 1px 0 var(--line-2); animation: up .3s cubic-bezier(.2, .8, .2, 1); max-width: 640px; margin: 0 auto; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.dialog::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 5px; background: var(--line-2); margin: 0 auto 14px; }
.dialog h2 { font: 400 32px/1.05 var(--disp); margin: 4px 0 8px; }
.dialog p { color: var(--ink-2); }
.field { display: block; width: 100%; height: 56px; padding: 0 16px; border: 0; border-radius: 16px; background: var(--card); color: var(--ink); font: 700 20px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 0 0 1px var(--line-2); }
.field:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
.field::placeholder { color: var(--mute); letter-spacing: .02em; text-transform: none; font-weight: 500; }
.msg { min-height: 1.5em; margin: 10px 0; font-size: 14px; color: var(--ink-2); }
.msg.is-bad { color: var(--red); }
.msg.is-good { color: var(--teal); }
.choices { display: grid; gap: 8px; margin: 14px 0; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 14px; border: 0; border-radius: 16px; background: var(--card); color: var(--ink); text-align: left; font-weight: 650; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.choice small { display: block; color: var(--mute); font-weight: 500; }
.choice.is-on { box-shadow: inset 0 0 0 2px var(--gold); }
.choice svg { color: var(--gold); }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 120; left: 50%; top: calc(12px + var(--safe-t)); transform: translateX(-50%); width: min(92vw, 440px); padding: 12px 16px; border-radius: 16px; background: var(--card-2); color: var(--ink); font-weight: 600; font-size: 15px; box-shadow: 0 20px 50px -14px #000, inset 0 0 0 1px var(--line-2); display: flex; gap: 10px; align-items: center; animation: drop .3s cubic-bezier(.2, .8, .2, 1); }
.toast svg { color: var(--gold); }
.toast.is-good svg { color: var(--teal); }
@keyframes drop { from { transform: translate(-50%, -20px); opacity: 0; } }

/* ---------- Settings ---------- */
.list { margin: 0; padding: 0; list-style: none; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.list li + li { border-top: 1px solid var(--line); }
.row-set { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 16px; border: 0; background: none; color: var(--ink); text-align: left; text-decoration: none; font-weight: 600; cursor: pointer; }
.row-set > svg:first-child { color: var(--gold); }
.row-set span { flex: 1; min-width: 0; }
.row-set small { display: block; color: var(--mute); font-weight: 500; font-size: 13px; }
.switch { position: relative; width: 50px; height: 30px; flex: none; border-radius: 30px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink-2); transition: transform .2s; }
[aria-checked="true"] > .switch { background: var(--gold); }
[aria-checked="true"] > .switch::after { transform: translateX(20px); background: var(--gold-ink); }
.ver { margin: 22px 0; text-align: center; color: var(--mute); font-size: 12px; }

/* ---------- Player ---------- */
.player { position: absolute; inset: 0; background: var(--bg); }
#map { position: absolute; inset: 0; background: #0e1015; z-index: 0; }
.leaflet-container { background: #0e1015; font-family: var(--ui); }
.tiles-dark { filter: invert(1) hue-rotate(185deg) brightness(.95) contrast(.86) saturate(.42); }
.leaflet-control-attribution { background: rgb(11 12 16 / .6) !important; color: var(--mute) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: var(--ink-2) !important; }
.player .topbar { position: absolute; left: 0; right: 0; z-index: 10; grid-template-columns: 44px minmax(0, 1fr) 44px; pointer-events: none; }
.player .topbar > * { pointer-events: auto; }
.prog { justify-self: center; display: grid; justify-items: center; gap: 4px; padding: 6px 14px 8px; border-radius: 16px; background: rgb(22 25 34 / .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line-2); max-width: 100%; }
.prog b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
.prog__dots { display: flex; gap: 4px; }
.prog__dots i { width: 14px; height: 4px; border-radius: 4px; background: var(--line-2); }
.prog__dots i.is-done { background: var(--teal); }
.prog__dots i.is-on { background: var(--gold); }
.fab { position: absolute; z-index: 9; right: 12px; width: 48px; height: 48px; border: 0; border-radius: 16px; display: grid; place-items: center; background: rgb(22 25 34 / .9); color: var(--ink); box-shadow: 0 10px 26px -10px #000, inset 0 0 0 1px var(--line-2); cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: bottom .3s cubic-bezier(.2, .8, .2, 1); }
.fab.is-on { color: var(--teal); }
.offline { position: absolute; z-index: 9; left: 50%; transform: translateX(-50%); top: calc(70px + var(--safe-t)); }

/* Map markers */
.pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; background: var(--card-2); box-shadow: 0 6px 14px -4px #000, inset 0 0 0 2px var(--gold); }
.pin b { transform: rotate(45deg); color: var(--gold); font: 800 14px/1 var(--ui); }
.pin.is-on { background: var(--gold); box-shadow: 0 0 0 6px rgb(242 181 68 / .25), 0 8px 18px -4px #000; }
.pin.is-on b { color: var(--gold-ink); }
.pin.is-done { background: var(--teal); box-shadow: 0 6px 14px -4px #000; }
.pin.is-done b { color: #062520; }
.me { width: 18px; height: 18px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px #0b0c10, 0 0 0 8px rgb(103 213 194 / .28); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 3px #0b0c10, 0 0 0 18px rgb(103 213 194 / 0); } }

/* Bottom sheet */
.sheet { position: absolute; z-index: 12; left: 0; right: 0; bottom: 0; height: 92dvh; display: flex; flex-direction: column; border-radius: 26px 26px 0 0; background: var(--bg-2); box-shadow: 0 -24px 60px -20px #000, inset 0 1px 0 var(--line-2); transform: translateY(calc(92dvh - var(--peek, 210px))); transition: transform .38s cubic-bezier(.2, .85, .2, 1); will-change: transform; max-width: 760px; margin: 0 auto; }
.sheet.is-drag { transition: none; }
.sheet__grab { flex: none; padding: 9px 0 4px; display: grid; place-items: center; cursor: grab; touch-action: none; border: 0; background: none; width: 100%; }
.sheet__grab::before { content: ""; width: 42px; height: 5px; border-radius: 5px; background: var(--line-2); }
.sheet__head { flex: none; padding: 2px 18px 12px; touch-action: none; }
.sheet__top { display: flex; align-items: center; gap: 12px; }
.sheet__n { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font: 800 17px/1 var(--ui); }
.sheet__n.is-done { background: var(--teal); color: #062520; }
.sheet__tt { flex: 1; min-width: 0; }
.sheet__tt h2 { margin: 0; font: 400 24px/1.05 var(--disp); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sheet__tt p { margin: 2px 0 0; color: var(--mute); font-size: 13px; font-weight: 600; }
.sheet__tt p.is-here { color: var(--teal); }
.go { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--card-2); color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); text-decoration: none; }
.go svg { width: 18px; height: 18px; color: var(--gold); }
.sheet__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 18px calc(110px + var(--safe-b)); }
.sheet__photo { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--card); margin-bottom: 16px; aspect-ratio: 3 / 2; }
.sheet__photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet__photo button { position: absolute; inset: 0; border: 0; background: none; cursor: zoom-in; }

/* The listen card */
.listen { padding: 14px; border-radius: var(--r-lg); background: linear-gradient(160deg, #222637, #171a24); box-shadow: inset 0 0 0 1px var(--line-2); margin-bottom: 18px; }
.listen__row { display: flex; align-items: center; gap: 14px; }
.playbtn { width: 60px; height: 60px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); cursor: pointer; box-shadow: 0 10px 26px -8px rgb(242 181 68 / .6); }
.playbtn svg { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.playbtn.is-locked { background: var(--card-2); color: var(--mute); box-shadow: inset 0 0 0 1px var(--line-2); }
.playbtn.is-locked svg { fill: none; stroke: currentColor; }
.listen__t { flex: 1; min-width: 0; }
.listen__t b { display: block; font-size: 15px; }
.listen__t small { color: var(--mute); font-size: 13px; }
.scrub { position: relative; height: 22px; margin: 12px 0 2px; touch-action: none; cursor: pointer; }
.scrub::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 4px; background: var(--line-2); }
.scrub i { position: absolute; left: 0; top: 9px; height: 4px; border-radius: 4px; background: var(--gold); }
.scrub i::after { content: ""; position: absolute; right: -7px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 2px 6px #000; }
.times { display: flex; justify-content: space-between; color: var(--mute); font-size: 12px; font-variant-numeric: tabular-nums; }
.ctl { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.ctl button { height: 38px; min-width: 52px; padding: 0 10px; border: 0; border-radius: 12px; background: rgb(255 255 255 / .06); color: var(--ink); font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.ctl svg { width: 18px; height: 18px; }
.here { margin-top: 10px; text-align: center; font-size: 13px; color: var(--mute); }
.story { margin: 0 0 18px; }
.tx { margin: 0 0 18px; padding: 0; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tx summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 700; cursor: pointer; }
.tx summary::-webkit-details-marker { display: none; }
.tx summary svg { color: var(--gold); }
.tx .prose { padding: 0 16px 6px; font-size: 16px; }

/* Extras */
.xh { margin: 22px 0 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 800; }
.xgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xcard { position: relative; display: flex; flex-direction: column; border: 0; padding: 0; border-radius: 18px; overflow: hidden; background: var(--card); color: var(--ink); text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.xcard--wide { grid-column: 1 / -1; }
.xcard__img { aspect-ratio: 1; background: var(--card-2); position: relative; }
.xcard__img img { width: 100%; height: 100%; object-fit: cover; }
.xcard__ic { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); }
.xcard__ic svg { width: 34px; height: 34px; }
.xcard .tag { position: absolute; top: 8px; left: 8px; }
.xcard__t { padding: 10px 12px 12px; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.evp { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.evp .playbtn { width: 48px; height: 48px; }
.evp .playbtn svg { width: 20px; height: 20px; }
.evp__t { flex: 1; min-width: 0; }
.evp__t b { display: block; font-size: 14px; }
.evp__t small { color: var(--mute); font-size: 13px; }
.wave { display: flex; align-items: center; gap: 2px; height: 26px; margin-top: 6px; }
.wave i { width: 3px; border-radius: 3px; background: var(--line-2); }
.wave.is-on i { background: var(--teal); animation: wv 1s ease-in-out infinite; }
@keyframes wv { 50% { transform: scaleY(.4); } }

/* Stop pager at the bottom of the sheet */
.pager { position: absolute; z-index: 14; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; padding: 10px 14px calc(10px + var(--safe-b)); background: linear-gradient(180deg, transparent, var(--bg-2) 30%); max-width: 760px; margin: 0 auto; }
.pager button { min-height: 50px; border: 0; border-radius: 16px; background: var(--card-2); color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); }
.pager button[disabled] { opacity: .35; }
.pager .mid { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); box-shadow: none; }
.pager .mid svg { fill: currentColor; stroke: none; }

/* Viewer (photos, documents, video) */
.viewer { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; flex-direction: column; animation: fade .2s; }
.viewer__bar { display: flex; align-items: center; gap: 10px; padding: calc(8px + var(--safe-t)) 10px 8px; }
.viewer__bar p { flex: 1; margin: 0; font-size: 14px; color: var(--ink-2); }
.viewer__stage { flex: 1; overflow: auto; display: grid; place-items: center; touch-action: pan-x pan-y pinch-zoom; }
.viewer__stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .2s; }
.viewer__stage.is-zoom { place-items: start; }
.viewer__stage.is-zoom img { max-width: none; max-height: none; width: 220%; }
.viewer__stage iframe, .viewer__stage video { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.viewer__cap { padding: 12px 18px calc(16px + var(--safe-b)); color: var(--ink-2); font-size: 14px; }

/* Completion */
.done { position: fixed; inset: 0; z-index: 90; overflow-y: auto; background: radial-gradient(80% 50% at 50% 0%, #262a3b 0%, var(--bg) 70%); padding: calc(40px + var(--safe-t)) 22px calc(30px + var(--safe-b)); text-align: center; animation: fade .3s; }
.done__seal { width: 120px; height: 120px; margin: 10px auto 18px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold) 60%, #b07a1c); color: var(--gold-ink); box-shadow: 0 20px 60px -10px rgb(242 181 68 / .5); }
.done__seal svg { width: 54px; height: 54px; stroke-width: 1.6; }
.done h2 { font: 400 46px/1 var(--disp); margin: 0 0 10px; }
.done .prose { max-width: 460px; margin: 0 auto 18px; }
.done .stats { display: flex; justify-content: center; gap: 22px; margin: 0 0 24px; }
.done .stats b { display: block; font: 400 34px/1 var(--disp); color: var(--gold); }
.done .stats small { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.done .choices { max-width: 460px; margin: 0 auto; }

/* Content pages inside the app frame */
.pagewrap { max-width: 720px; margin: 0 auto; padding: 20px 20px calc(40px + var(--safe-b)); }
.pagewrap h1 { font-size: 40px; margin: 10px 0 18px; }
body.is-page { overflow: auto; }

@media (min-width: 900px) {
	.sheet, .pager { left: auto; right: 24px; width: 440px; margin: 0; bottom: 16px; }
	.sheet { border-radius: 26px; height: calc(100dvh - 120px); transform: none !important; }
	/* Only the bar's own height: the buttons sit along the bottom of the panel, not over the card. */
	.pager { height: auto; border-radius: 0 0 26px 26px; }
	.fab { right: 480px; }
	.cities { grid-template-columns: repeat(4, 1fr); }
	.tours { grid-template-columns: 1fr 1fr; }
	.hero { min-height: 60vh; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- languages */
.langs { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--teal); font-size: 12.5px; font-weight: 700; }
.langs svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- photo booth */
.booth { display: grid; gap: 14px; }
.booth__stage { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: #000 radial-gradient(circle at 50% 40%, #1d2130, #050608 70%); border: 1px solid var(--line-2); touch-action: none; }
.booth__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.booth__video.is-on { opacity: 1; }
.booth__video.is-mirror { transform: scaleX(-1); }
.booth__frame, .booth__result { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.booth__result[hidden] { display: none; }
.booth__start { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; background: rgb(5 6 8 / .55); }
.booth__start[hidden] { display: none; }
.booth__ic { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; border: 1px solid rgb(242 181 68 / .5); color: var(--gold); background: rgb(242 181 68 / .08); }
.booth__ic svg { width: 34px; height: 34px; }
.booth__msg { margin: 0; max-width: 30ch; color: var(--ink-2); font-size: 14px; }
.booth__msg:empty { display: none; }
.booth__frames { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.booth__frames::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); font: 700 13.5px var(--ui); cursor: pointer; }
.chip[aria-checked="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.booth__hint { margin: -4px 0 0; color: var(--mute); font-size: 13px; text-align: center; }
.booth__hint[hidden] { display: none; }
.booth__controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.booth__controls[hidden] { display: none; }
.booth__controls > :first-child { justify-self: start; }
.booth__controls > :last-child { justify-self: end; }
.booth__controls--done { display: flex; }
.booth__controls--done[hidden] { display: none; }
.booth__controls--done > * { flex: 1; justify-content: center; }
.booth__controls--done > [hidden] { display: none; }
.booth__pick { cursor: pointer; }
.shutter { width: 76px; height: 76px; border-radius: 50%; border: 4px solid var(--gold); background: transparent; padding: 5px; cursor: pointer; }
.shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--gold); transition: transform .12s; }
.shutter:active span { transform: scale(.88); }
.shutter:disabled { opacity: .35; cursor: default; }
.booth__note { margin: 0; color: var(--mute); font-size: 13px; text-align: center; }
.booth__note b { color: var(--gold); }

/* ---------------------------------------------------------------- passport */
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 14px; }
.pstats span { display: grid; justify-items: center; padding: 14px 6px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.pstats b { font: 400 40px/1 var(--disp); color: var(--gold); }
.pstats small { margin-top: 6px; color: var(--mute); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: center; }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.badge { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); opacity: .55; }
.badge__ic { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card-2); color: var(--mute); }
.badge__ic svg { width: 20px; height: 20px; }
.badge b { align-self: end; font-size: 13.5px; line-height: 1.2; }
.badge small { align-self: start; }
.badge small { color: var(--mute); font-size: 12px; line-height: 1.3; }
.badge.is-got { opacity: 1; border-color: rgb(242 181 68 / .35); background: linear-gradient(160deg, rgb(242 181 68 / .12), var(--card) 60%); }
.badge.is-got .badge__ic { background: var(--gold); color: var(--gold-ink); }
.pcity { margin: 0 0 22px; padding: 16px; border-radius: var(--r-lg); background: #15130f linear-gradient(180deg, rgb(242 181 68 / .06), transparent 40%); border: 1px solid rgb(242 181 68 / .18); }
.pcity__h { margin: 0 0 12px; font: 400 28px/1.1 var(--disp); color: var(--gold); }
.ptour + .ptour { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgb(242 181 68 / .2); }
.ptour__h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--ink); text-decoration: none; margin-bottom: 10px; }
.ptour__h b { font-size: 15px; }
.ptour__h small { flex: none; color: var(--mute); font-size: 12px; }
.stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 8px; }
.stamp { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; }
.stamp svg, .stamp.is-empty::before { width: 72px; height: 72px; }
.stamp svg { transform: rotate(var(--rot, 0deg)); color: var(--stamp); fill: none; stroke: currentColor; stroke-width: 2.5; opacity: .9; }
.stamp svg .in { stroke-width: 1.2; stroke-dasharray: 3 3; }
.stamp svg text { fill: currentColor; stroke: none; font: 800 7px var(--ui); letter-spacing: .12em; }
.stamp { --stamp: var(--gold); }
.stamp__n { position: absolute; top: 18px; left: 0; right: 0; font: 400 30px/1 var(--disp); color: var(--stamp); transform: rotate(var(--rot, 0deg)); }
.stamp__t { font-size: 11px; line-height: 1.25; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stamp.is-empty::before { content: ""; display: block; border-radius: 50%; border: 2px dashed var(--line-2); }
.stamp.is-empty .stamp__n { top: 20px; color: var(--mute); }
.stamp.is-empty .stamp__t { color: var(--mute); }

/* ---------------------------------------------------------------- app languages */
.choices--langs { grid-template-columns: 1fr 1fr; }
.tabbar a span { display: block; max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:lang(ja) body, :lang(zh) body, :lang(ko) body { word-break: normal; line-break: strict; }
:lang(ja) .lead, :lang(zh) .lead, :lang(ko) .lead { font-family: var(--ui); font-weight: 700; letter-spacing: -.01em; }
:lang(ja) .lead em, :lang(zh) .lead em, :lang(ko) .lead em { font-style: normal; }
:lang(ko) .lead, :lang(ko) .sub, :lang(ko) .prose { word-break: keep-all; }

/* ---------------------------------------------------------------- practical layer */
.layers { position: absolute; z-index: 9; left: 0; right: 0; top: calc(66px + var(--safe-t)); display: flex; gap: 6px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; pointer-events: none; }
.layers::-webkit-scrollbar { display: none; }
.layer { pointer-events: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; border: 0; border-radius: 999px; background: rgb(22 25 34 / .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--mute); font: 700 12.5px var(--ui); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; }
.layer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.layer[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--teal); }
.layer--partner[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--gold); }
.player .offline { top: calc(110px + var(--safe-t)); }
.plc { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #1d2130; color: var(--teal); box-shadow: 0 0 0 2px var(--bg), 0 2px 8px rgb(0 0 0 / .5); }
.plc svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.plc--partner { background: var(--gold); color: var(--gold-ink); }
.plc--parking { color: #7fb8ff; }
.hrs { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 13px; font-weight: 650; color: var(--teal); }
.hrs svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.hrs--warn { color: var(--gold); }
.hrs--bad { color: var(--red); }
.stoplist small.hrs { display: block; margin-top: 2px; font-size: 12.5px; }
.visit { list-style: none; margin: 14px 0; padding: 4px 0; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.visit li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; }
.visit li + li { border-top: 1px solid var(--line); }
.visit li > svg, .linkrow > svg { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--mute); }
.visit b { display: block; font-size: 14.5px; font-weight: 650; }
.visit small { display: block; color: var(--mute); font-size: 13px; line-height: 1.4; }
.visit .hrs--ok b { color: var(--teal); } .visit .hrs--warn b { color: var(--gold); } .visit .hrs--bad b { color: var(--red); }
.visit .hrs--warn > svg { color: var(--gold); } .visit .hrs--bad > svg { color: var(--red); }
.visit li:has(.linkrow) { padding: 0; }
.linkrow { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px 14px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.linkrow span { flex: 1; min-width: 0; }
.linkrow > svg:last-child { margin-left: auto; align-self: center; }
.gtk { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gtk li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.gtk svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gtk b { display: block; font-weight: 650; font-size: 14.5px; }
.gtk small { display: block; color: var(--mute); font-size: 13px; margin-top: 2px; }
.pcards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 72%); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.pcards::-webkit-scrollbar { display: none; }
.pcard { scroll-snap-align: start; display: grid; grid-template-rows: 112px auto; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px rgb(242 181 68 / .25); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.pcard img, .pcard__ph { width: 100%; height: 112px; object-fit: cover; display: grid; place-items: center; background: linear-gradient(140deg, #3a2a10, #161922); color: var(--gold); }
.pcard__ph svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pcard__b { display: grid; gap: 2px; padding: 10px 14px 14px; }
.pcard__b small { color: var(--gold); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pcard__b b { font-size: 15.5px; }
.pcard__b em { font-style: normal; color: var(--ink-2); font-size: 13px; }
.done .pcards { max-width: 460px; margin: 0 auto 18px; text-align: left; }
.done__h { margin: 26px auto 10px; max-width: 460px; font: 400 26px/1.1 var(--disp); color: var(--gold); }
.dialog--place .plc-photo { display: block; width: calc(100% + 40px); margin: -10px -20px 14px; height: 170px; object-fit: cover; border-radius: 26px 26px 0 0; }
.plc-kind { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.plc-kind svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.dialog--place h2 { margin-top: 4px; }
.offer { display: grid; gap: 4px; justify-items: center; margin: 14px 0; padding: 16px; border-radius: 18px; text-align: center; background: linear-gradient(160deg, rgb(242 181 68 / .18), rgb(242 181 68 / .04)); box-shadow: inset 0 0 0 1px rgb(242 181 68 / .4); }
.offer small { color: var(--mute); font-size: 12px; }
.offer b { font-size: 17px; }
.offer__code { margin: 6px 0 2px; padding: 6px 16px; border-radius: 12px; background: var(--gold); color: var(--gold-ink); font: 800 24px/1.1 var(--ui); letter-spacing: .12em; }
.dialog--warn h2 { display: flex; align-items: center; gap: 8px; color: var(--gold); }
.dialog--warn h2 svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.sheet__tt .hrs { margin-top: 2px; }

/* ---------------------------------------------------------------- city directory */
.search { position: relative; display: flex; align-items: center; margin: 4px 0 12px; }
.search > svg { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--mute); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; height: 52px; padding: 0 46px 0 44px; border: 0; border-radius: 16px; background: var(--card); color: var(--ink); font: 500 16px var(--ui); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--mute); }
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
.search input::-webkit-search-cancel-button { display: none; }
.search__x { position: absolute; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--card-2); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.search__x[hidden] { display: none; }
.search__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.fchips { display: flex; gap: 8px; margin: 0 0 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--card); color: var(--ink-2); font: 700 13.5px var(--ui); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; }
.fchip[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); box-shadow: none; }
.fchip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.fchip--near { order: -1; }
.fchip--near[aria-pressed="true"] { background: var(--teal); color: #062520; }
.fchip.is-busy svg { animation: dgspin 1s linear infinite; }
@keyframes dgspin { to { transform: rotate(360deg); } }
.rows { display: grid; gap: 8px; }
.cityrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 8px 12px 8px 8px; border: 0; border-radius: 16px; background: var(--card); color: var(--ink); text-align: left; text-decoration: none; font: inherit; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.cityrow:active { background: var(--card-2); }
.cityrow img, .cityrow__ph { flex: none; width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--card-2); display: grid; place-items: center; color: var(--mute); }
.cityrow__ph svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cityrow__t { flex: 1; min-width: 0; }
.cityrow__t b { display: block; font: 400 21px/1.15 var(--disp); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cityrow__t small { display: block; color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cityrow__d { flex: none; color: var(--teal); font-size: 13px; font-weight: 700; }
.cityrow > svg:last-child { flex: none; width: 18px; height: 18px; color: var(--mute); fill: none; stroke: currentColor; stroke-width: 2; }
.dgroup { margin: 0 0 14px; }
.dgroup__h { position: sticky; top: 0; z-index: 2; margin: 0 -18px 8px; padding: 10px 18px 8px; background: rgb(11 12 16 / .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--gold); font: 800 12px var(--ui); letter-spacing: .12em; text-transform: uppercase; }
.citypill { text-decoration: none; }
.citypill__x { margin-left: 4px; padding-left: 8px; border-left: 1px solid var(--line-2); color: var(--mute); font-size: 12px; font-weight: 700; }
.more-cities { margin: 22px 0 8px; text-align: center; }
.more-cities .btn { display: inline-flex; }
@media (min-width: 900px) { .rows { grid-template-columns: 1fr 1fr; } }
.fchips--cc { margin-top: 2px; }
.fchips--cc .fchip { height: 32px; font-size: 12.5px; }
.fchip__n { opacity: .6; font-weight: 600; }
.dcountry { margin: 18px 0 4px; font: 400 30px/1.1 var(--disp); color: var(--ink); }

/* Staff preview (signed-in editors open locked tours without a code) */
.staffnote { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border: 1px dashed var(--gold, #c9a14a); border-radius: 12px; font-size: 13px; line-height: 1.45; }
.staffnote svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--gold, #c9a14a); }

/* Add-to-home-screen sheet */
.nudge { text-align: center; }
.nudge__ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: var(--card-2); margin: 4px auto 10px; }
.nudge__ic img { width: 64px; height: 64px; object-fit: cover; }
.nudge__ic svg { width: 30px; height: 30px; color: var(--gold); }
.nudge__steps { text-align: left; margin: 14px 0 10px; padding: 0 0 0 22px; display: grid; gap: 8px; line-height: 1.45; }
.nudge__steps svg { width: 17px; height: 17px; vertical-align: -3px; color: var(--gold); }
.nudge__note { font-size: 13px; color: var(--mute); text-align: left; }
.nudge__warn { display: flex; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--card-2); }
.nudge__warn svg { flex: none; width: 20px; height: 20px; color: var(--gold); }
.nudge .btn { margin-top: 10px; }
