/* ─────────────────────────────────────────────────────────────────
   CampingSpirit design system
   Display: Big Shoulders Display (signage)   UI/Body: Overpass (Highway Gothic lineage)
   Data: Overpass Mono. Palette: highway-sign green, interstate blue, centre-line yellow.
   ───────────────────────────────────────────────────────────────── */
:root {
  --bg: #F2F4F1;
  --surface: #FFFFFF;
  --surface-2: #E6EBE5;
  --surface-3: #D9E0D8;
  --ink: #142019;
  --ink-2: #4B5B51;
  --ink-3: #6F7F75;
  --line: #D0D8D0;
  --sign: #0A6B47;
  --sign-2: #085A3B;
  --sign-ink: #FFFFFF;
  --shield: #1E4FA0;
  --stripe: #F2B400;
  --stripe-ink: #1A1A12;
  --flare: #D4471B;
  --ok: #1F7A4A;
  --warn: #B7791F;
  --bad: #C0392B;
  --asphalt: #1A221E;
  --asphalt-2: #26302B;
  --asphalt-ink: #DCE4DE;

  --map-water: #D5E3E6;
  --map-land: #E9EDE4;
  --map-land-2: #E1E7DB;
  --map-border: #C3CDC1;
  --map-coast: #9FB0A5;
  --map-route: #0A6B47;
  --map-route-center: #F2B400;
  --map-shade: rgba(10, 107, 71, 0.13);

  --c-nature: #2E7D4F;
  --c-view: #2563A8;
  --c-oddity: #D4471B;
  --c-history: #7A4E9C;
  --c-food: #C2362F;
  --c-stays: #0F7C86;
  --c-camping: #8A6A2E;

  --f-display: "Big Shoulders Display", "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-body: "Overpass", "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "Overpass Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(20, 32, 25, .06), 0 6px 20px rgba(20, 32, 25, .08);
  --shadow-lg: 0 10px 40px rgba(20, 32, 25, .22);
  --header-h: 60px;
  --tabbar-h: 0px;
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0F1512; --surface: #161F1A; --surface-2: #1D2822; --surface-3: #25322B;
    --ink: #E6EEE9; --ink-2: #A3B5AA; --ink-3: #7F9287; --line: #2A3830;
    --sign: #1F8F62; --sign-2: #19774F; --shield: #5B8BE0; --stripe: #F5C02E; --flare: #F06A3F;
    --asphalt: #0B100D; --asphalt-2: #151D18;
    --map-water: #11202A; --map-land: #1B2520; --map-land-2: #1F2A24; --map-border: #34443A; --map-coast: #4B5E52;
    --map-route: #34B27E; --map-shade: rgba(52, 178, 126, 0.16);
    --c-nature: #4CB37A; --c-view: #5B9BE0; --c-oddity: #F06A3F; --c-history: #B08AD6; --c-food: #EA6A5F; --c-stays: #3BB3BD; --c-camping: #C49A4E;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.35); --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1512; --surface: #161F1A; --surface-2: #1D2822; --surface-3: #25322B;
  --ink: #E6EEE9; --ink-2: #A3B5AA; --ink-3: #7F9287; --line: #2A3830;
  --sign: #1F8F62; --sign-2: #19774F; --shield: #5B8BE0; --stripe: #F5C02E; --flare: #F06A3F;
  --asphalt: #0B100D; --asphalt-2: #151D18;
  --map-water: #11202A; --map-land: #1B2520; --map-land-2: #1F2A24; --map-border: #34443A; --map-coast: #4B5E52;
  --map-route: #34B27E; --map-shade: rgba(52, 178, 126, 0.16);
  --c-nature: #4CB37A; --c-view: #5B9BE0; --c-oddity: #F06A3F; --c-history: #B08AD6; --c-food: #EA6A5F; --c-stays: #3BB3BD; --c-camping: #C49A4E;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.35); --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
}

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body.app-mode { height: 100%; overflow: hidden; }
html:has(body.app-mode) { height: 100%; }
img, svg { max-width: 100%; }
a { color: var(--sign); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sign-2); }
:focus-visible { outline: 3px solid var(--stripe); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
h1, h2 { font-family: var(--f-display); font-weight: 800; letter-spacing: .005em; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font: 700 1.15rem/1.25 var(--f-body); }
h4 { font: 700 1rem/1.3 var(--f-body); }
p { margin: 0; }
.prose p + p, .prose p + h2, .prose h2 + p { margin-top: 1em; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose { max-width: 68ch; font-size: 1.08rem; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.xs { font-size: .78rem; }
.eyebrow { font: 700 .76rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-tight { padding-block: 36px; }
.section-alt { background: var(--surface-2); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: var(--gap, 12px); flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: var(--gap, 20px); grid-template-columns: repeat(auto-fill, minmax(min(var(--min, 260px), 100%), 1fr)); }
.grid > *, .sec-head > * { min-width: 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head p { color: var(--ink-2); max-width: 60ch; margin-top: 8px; }
.link-arrow { font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }

/* ── Buttons & controls ─────────────────────────────────────────── */
.btn {
  --b: var(--sign); --bi: var(--sign-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--b);
  background: var(--b); color: var(--bi); font: 700 .95rem/1 var(--f-body); letter-spacing: .01em;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s, background .15s, border-color .15s;
}
.btn:hover { color: var(--bi); filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-yellow { --b: var(--stripe); --bi: var(--stripe-ink); }
.btn-dark { --b: var(--ink); --bi: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-3); background: var(--surface-2); filter: none; }
.btn-onsign { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-onsign:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: .85rem; }
.btn-xs { min-height: 28px; padding: 0 10px; font-size: .78rem; gap: 5px; }
.btn-xs svg { width: 14px; height: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; min-height: 38px; padding: 0; border-radius: 50%; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .label { font: 700 .78rem/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: 500 1rem/1.3 var(--f-body);
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: none; border-color: var(--sign); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sign) 22%, transparent); }
.input.invalid { border-color: var(--bad); }
.field-err { color: var(--bad); font-size: .8rem; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--sign); flex: none; }
input[type="range"] { accent-color: var(--sign); width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .86rem/1 var(--f-body); cursor: pointer;
}
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--sign)); flex: none; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--ink-2); font: 700 .85rem/1 var(--f-body); padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 4px; font: 700 .7rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; background: var(--surface-2); color: var(--ink-2); }
.badge-xo { background: var(--flare); color: #fff; }
.badge-sample { background: transparent; border: 1px dashed var(--ink-3); color: var(--ink-3); }
.badge-plan { background: var(--stripe); color: var(--stripe-ink); }
.cat-tag { display: inline-flex; align-items: center; gap: 6px; font: 700 .72rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.cat-tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--cc, var(--sign)); }

/* ── Header ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--sign); color: var(--sign-ink);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.14);
}
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.logo:hover { color: #fff; }
.logo svg { width: 34px; height: 34px; }
.logo b { font: 900 1.55rem/1 var(--f-display); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.logo .wm-2 { color: var(--stripe); }
.drawer .logo .wm-2 { color: var(--sign); }
.nav { display: flex; align-items: stretch; gap: 2px; height: 100%; margin-left: 8px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a, .nav-item > button {
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border-radius: 8px;
  color: #fff; text-decoration: none; font: 700 .92rem/1 var(--f-body); background: transparent; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-item > a:hover, .nav-item > button:hover, .nav-item.open > button { background: rgba(255,255,255,.12); color: #fff; }
.nav-item svg { width: 14px; height: 14px; opacity: .8; }
.menu {
  position: absolute; top: calc(100% - 6px); left: 0; min-width: 250px; padding: 8px; border-radius: var(--r);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: none; z-index: 60;
}
.nav-item.open .menu, .nav-item:focus-within .menu { display: block; }
@media (hover: hover) { .nav-item:hover .menu { display: block; } }
.menu a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .93rem; }
.menu a small { font-weight: 400; color: var(--ink-2); font-size: .8rem; }
.menu a:hover { background: var(--surface-2); color: var(--ink); }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr-link { white-space: nowrap; color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; padding: 8px 10px; border-radius: 8px; background: none; border: 0; cursor: pointer; font-family: var(--f-body); }
.hdr-link:hover { color: #fff; background: rgba(255,255,255,.12); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--stripe); color: var(--stripe-ink); font: 800 .85rem/1 var(--f-body); border: 2px solid rgba(255,255,255,.7); cursor: pointer; flex: none; }
.user-menu { right: 0; left: auto; }
.burger { display: none; color: #fff; }
.burger:hover { background: rgba(255,255,255,.12); color: #fff; }
.theme-btn { color: #fff; }
.theme-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
/* D.fitHeader() adds fit-1..3 when the labels of the current language don't fit */
#site-header.fit-1 .hdr-right .btn-yellow.hide-m { display: none; }
#site-header.fit-2 .hdr-right [data-act="signup"] { display: none; }
#site-header.fit-3 .nav, #site-header.fit-3 .hdr-right .hide-m { display: none; }
#site-header.fit-3 .burger { display: inline-grid; }
@media (max-width: 1120px) { .nav-item > a, .nav-item > button { padding: 0 9px; } .logo b { font-size: 1.35rem; } }
@media (max-width: 1020px) {
  .nav, .hdr-right .hide-m { display: none; }
  .burger { display: inline-grid; }
}
.drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(8, 14, 11, .5); }
.drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--surface); overflow-y: auto;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 6px;
}
.drawer h4 { margin: 14px 8px 4px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.drawer a { padding: 10px 8px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.drawer a:hover { background: var(--surface-2); }

/* ── Logo sign & route shields ─────────────────────────────────────── */
.shield { display: inline-block; width: 38px; height: 38px; flex: none; }
.shield text { font-family: var(--f-body); font-weight: 800; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--asphalt); color: #fff; }
.hero .scene-bg { position: absolute; inset: 0; }
.hero .scene-bg svg { width: 100%; height: 100%; display: block; }
.hero .scene-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,16,13,.62) 0%, rgba(10,16,13,.25) 55%, rgba(10,16,13,0) 100%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: clamp(40px, 7vw, 84px); }
.hero h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero .lede { font-size: 1.18rem; max-width: 48ch; margin-top: 16px; color: rgba(255,255,255,.92); }
.hero .trust { margin-top: 22px; display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: .9rem; color: rgba(255,255,255,.85); }
.hero .trust b { font-family: var(--f-mono); color: var(--stripe); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

/* The overhead guide-sign form: the site's signature element */
.sign {
  position: relative; background: var(--sign); color: #fff; border-radius: 14px; padding: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.2);
}
.sign-inner { border: 3px solid #fff; border-radius: 9px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.sign-tab {
  position: absolute; top: -26px; left: 22px; background: var(--sign); border-radius: 8px 8px 0 0; padding: 7px 8px 0;
}
.sign-tab span { display: block; border: 3px solid #fff; border-bottom: 0; border-radius: 5px 5px 0 0; padding: 4px 12px 6px; font: 800 .82rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.sign h2 { color: #fff; font-size: 1.9rem; }
.sign .field > span { color: rgba(255,255,255,.82); }
.sign .input { border-color: transparent; }
.sign-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode {
  display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px; border-radius: 8px; cursor: pointer;
  border: 2px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-family: var(--f-body);
}
.mode[aria-pressed="true"] { border-color: var(--stripe); background: rgba(0,0,0,.18); }
.mode svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--stripe); }
.mode b { display: block; font-size: .95rem; }
.mode small { display: block; opacity: .8; font-size: .78rem; margin-top: 2px; }
.sign .arrow-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sign .arrow-row a { color: #fff; font-weight: 700; font-size: .9rem; }
@media (max-width: 480px) { .sign-modes { grid-template-columns: 1fr; } .sign-inner { padding: 18px 14px; } }

/* ── Autocomplete ─────────────────────────────────────────────────── */
.ac { position: relative; }
.ac-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 80; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); max-height: 290px; overflow-y: auto; padding: 4px;
}
.ac-opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; cursor: pointer; font-size: .93rem; }
.ac-opt[aria-selected="true"], .ac-opt:hover { background: var(--surface-2); }
.ac-opt .ico { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex: none; }
.ac-opt .ico svg { width: 15px; height: 15px; }
.ac-opt small { color: var(--ink-3); margin-left: auto; font-size: .78rem; white-space: nowrap; }

/* ── Illustrated postcards (generated scenes) ─────────────────────── */
.scene { display: block; width: 100%; height: 100%; }
.pc { position: relative; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; border-radius: var(--r) var(--r) 0 0; background: var(--surface-2); }
.pc .scene { position: absolute; inset: 0; }
.pc .pc-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }

/* Cards */
.card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s;
}
a.card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 1.05rem; }
.card-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2); margin-top: auto; padding-top: 6px; }
.card-meta .num { color: var(--ink); font-weight: 600; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px 14px; }
.gcard .shield { position: absolute; bottom: -18px; right: 14px; width: 46px; height: 46px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.gcard .pc { overflow: visible; }
.gcard .pc .scene-clip { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r) var(--r) 0 0; }

.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 290px); gap: 18px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.hscroll > * { scroll-snap-align: start; }
.hscroll::-webkit-scrollbar { height: 8px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; }

/* ── Home: feature demo ───────────────────────────────────────────── */
.demo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.demo-map { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--map-water); min-height: 360px; border: 1px solid var(--line); }
.demo-map .atlas { position: absolute; inset: 0; }
.demo-float { position: absolute; z-index: 5; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 12px 14px; font-size: .85rem; border: 1px solid var(--line); }
.demo-list { display: flex; flex-direction: column; gap: 14px; }
.demo-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.demo-item .ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--sign); color: #fff; }
.demo-item .ic svg { width: 22px; height: 22px; }
.demo-item p { color: var(--ink-2); font-size: .95rem; margin-top: 4px; }
.faces { display: flex; }
.faces span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 .7rem/1 var(--f-body); color: #fff; border: 2px solid var(--surface); margin-left: -7px; }
.faces span:first-child { margin-left: 0; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }

/* ── Plans table ──────────────────────────────────────────────────── */
.plans-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.plans { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .93rem; }
.plans th, .plans td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.plans th:first-child, .plans td:first-child { text-align: left; }
.plans thead th { vertical-align: bottom; padding-top: 22px; }
.plans thead th .pname { font: 800 1.5rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.plans thead th .ptag { display: block; font-weight: 500; font-size: .78rem; color: var(--ink-2); margin-top: 4px; }
.plans .best { background: color-mix(in srgb, var(--stripe) 12%, transparent); }
.plans .yes { color: var(--ok); }
.plans .yes svg, .plans .no svg { width: 18px; height: 18px; }
.plans .no { color: var(--ink-3); }
.plans tfoot td { border-bottom: 0; padding-block: 18px; vertical-align: top; }
.price { font: 700 1.3rem/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.price small { font: 500 .78rem/1 var(--f-body); color: var(--ink-2); }
.price-sub { font-size: .78rem; color: var(--ink-2); margin-top: 4px; }

.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.plan-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.plan-card.best { border-color: var(--stripe); box-shadow: 0 0 0 3px color-mix(in srgb, var(--stripe) 30%, transparent); }
.plan-card.current { border-color: var(--sign); }
.plan-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: .9rem; }
.plan-card li { display: flex; gap: 8px; align-items: flex-start; }
.plan-card li svg { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 3px; }

/* ── Tabs row (home route guides) ────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 12px 16px; font: 700 .95rem/1 var(--f-body); color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--stripe); }
.link-cloud { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 24px; }
.link-cloud a { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.link-cloud a:hover { color: var(--sign); }
.link-cloud .shield { width: 28px; height: 28px; }

/* ── App band & footer ───────────────────────────────────────────── */
.band { background: var(--stripe); color: var(--stripe-ink); }
.band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding-block: 34px; }
.band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.band p { margin-top: 6px; max-width: 58ch; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 10px; background: var(--stripe-ink); color: #fff; text-decoration: none; font-size: .78rem; line-height: 1.1; }
.store-btn:hover { color: #fff; }
.store-btn b { display: block; font-size: 1rem; }
.store-btn svg { width: 22px; height: 22px; }
@media (max-width: 720px) { .band .wrap { grid-template-columns: 1fr; } }

.site-footer { background: var(--asphalt); color: var(--asphalt-ink); padding-top: 56px; }
.site-footer a { color: var(--asphalt-ink); text-decoration: none; }
.site-footer a:hover { color: var(--stripe); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-grid h5 { margin: 0 0 12px; font: 700 .75rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(220,228,222,.6); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: .92rem; }
.foot-brand p { margin-top: 12px; font-size: .92rem; color: rgba(220,228,222,.75); max-width: 34ch; }
.foot-road { height: 14px; margin-top: 48px; background: repeating-linear-gradient(90deg, var(--stripe) 0 48px, transparent 48px 84px); background-size: 84px 4px; background-repeat: repeat-x; background-position: 0 5px; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); font-size: .82rem; color: rgba(220,228,222,.6); }
.foot-legal nav { display: flex; gap: 18px; flex-wrap: wrap; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--asphalt-2); }
.social svg { width: 17px; height: 17px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ── Page heads ──────────────────────────────────────────────────── */
.page-head { background: var(--surface-2); border-bottom: 1px solid var(--line); padding-block: clamp(34px, 5vw, 56px); }
.page-head p { color: var(--ink-2); max-width: 64ch; margin-top: 12px; font-size: 1.08rem; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--sign); }
.crumbs span::before { content: "/"; margin-right: 8px; color: var(--ink-3); }

.photo-head { position: relative; min-height: 340px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--asphalt); }
.photo-head .scene-bg { position: absolute; inset: 0; }
.photo-head .scene-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,12,10,.78) 0%, rgba(8,12,10,.15) 70%); }
.photo-head .wrap { position: relative; padding-block: 40px 34px; }
.photo-head h1 { color: #fff; max-width: 20ch; }
.photo-head p { color: rgba(255,255,255,.9); max-width: 60ch; margin-top: 12px; font-size: 1.1rem; }
.photo-head .crumbs a, .photo-head .crumbs { color: rgba(255,255,255,.8); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stats > div { background: var(--surface); padding: 16px 18px; }
.stats dt { font: 700 .72rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.stats dd { margin: 8px 0 0; font: 600 1.15rem/1.2 var(--f-mono); font-variant-numeric: tabular-nums; }
dl { margin: 0; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 980px) { .two-col { grid-template-columns: minmax(0, 1fr) !important; } .sticky-side { position: static; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.panel h3 { margin-bottom: 10px; }
.mini-map { position: relative; aspect-ratio: 16 / 11; max-width: 100%; border-radius: var(--r); overflow: hidden; background: var(--map-water); border: 1px solid var(--line); }
.mini-map .atlas { position: absolute; inset: 0; }

.takeaways { border-left: 5px solid var(--stripe); background: var(--surface); padding: 18px 22px; border-radius: 0 var(--r) var(--r) 0; }
.takeaways ul { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }

.stop-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.stop-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.stop-num { width: 30px; height: 30px; border-radius: 50%; background: var(--sign); color: #fff; display: grid; place-items: center; font: 700 .85rem/1 var(--f-mono); }
.stop-list .city .stop-num { background: var(--ink); }
.stop-list p { color: var(--ink-2); font-size: .93rem; margin-top: 3px; }

details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font: 700 1.3rem/1 var(--f-mono); color: var(--sign); }
details.faq[open] summary::after { content: "–"; }
details.faq p { padding: 0 0 18px; color: var(--ink-2); max-width: 70ch; }

/* ── Magazine ────────────────────────────────────────────────────── */
.feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.feature .pc { border-radius: var(--r-lg); aspect-ratio: 16 / 11; }
.feature h2 a { color: var(--ink); text-decoration: none; }
.feature h2 a:hover { color: var(--sign); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
.list-lines { display: flex; flex-direction: column; }
.list-lines a { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.list-lines a:hover h4 { color: var(--sign); }
.list-lines .thumb { aspect-ratio: 1; border-radius: 8px; overflow: hidden; position: relative; max-width: 100%; }
.newsletter { background: var(--sign); color: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.newsletter h2 { color: #fff; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter .input { flex: 1 1 220px; border-color: transparent; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }
.article-head { padding-block: 40px 24px; }
.article-head .dek { font-size: 1.25rem; color: var(--ink-2); margin-top: 14px; max-width: 56ch; }
.byline { display: flex; gap: 12px; align-items: center; margin-top: 22px; font-size: .9rem; color: var(--ink-2); flex-wrap: wrap; }
.byline .avatar { border-color: var(--line); }
.article-art { aspect-ratio: 21 / 9; max-width: 100%; border-radius: var(--r-lg); overflow: hidden; position: relative; }

/* ── Forum ────────────────────────────────────────────────────────── */
.thread-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--surface); }
.thread-row:hover { background: var(--surface-2); color: var(--ink); }
.thread-row h4 { font-size: 1rem; }
.post { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.post .avatar { border-color: var(--line); width: 40px; height: 40px; }

/* ── Planner (app layout) ────────────────────────────────────────── */
.app-main { display: flex; flex-direction: column; height: calc(100% - var(--header-h)); }
.planner { flex: 1; min-height: 0; display: grid; grid-template-columns: 400px minmax(0, 1fr); }
.dock { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-right: 1px solid var(--line); z-index: 5; }
.dock-head { padding: 14px 16px 0; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.trip-name { font: 800 1.35rem/1.1 var(--f-display); text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .02em; border: 0; background: transparent; color: var(--ink); width: 100%; padding: 4px 6px; margin-left: -6px; border-radius: 6px; }
.trip-name:hover { background: var(--surface-2); }
.trip-name:focus { outline: none; background: var(--surface-2); }
.dock-tabs { display: flex; gap: 2px; }
.dock-tabs button { flex: 1; border: 0; background: none; padding: 11px 6px; font: 700 .88rem/1 var(--f-body); color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; }
.dock-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--sign); }
.dock-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 24px; }
.dock-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: flex; gap: 6px; flex-wrap: wrap; }
.dock-foot .btn { flex: 1 1 auto; padding: 0 9px; font-size: .8rem; gap: 5px; }
.dock-foot .btn svg { width: 15px; height: 15px; }
.trip-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trip-sum div { background: var(--surface-2); border-radius: 8px; padding: 9px 10px; }
.trip-sum dt { font: 700 .66rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.trip-sum dd { margin: 5px 0 0; font: 600 1rem/1.1 var(--f-mono); font-variant-numeric: tabular-nums; }

.wp-list { list-style: none; margin: 0; padding: 0; }
.wp { display: grid; grid-template-columns: 18px 30px 1fr auto; gap: 8px; align-items: center; padding: 10px 8px; border-radius: 8px; background: var(--surface); border: 1px solid transparent; }
.wp:hover { background: var(--surface-2); }
.wp.dragging { opacity: .45; }
.wp.drop-before { box-shadow: inset 0 3px 0 var(--sign); }
.wp.drop-after { box-shadow: inset 0 -3px 0 var(--sign); }
.wp .grip { cursor: grab; color: var(--ink-3); display: grid; place-items: center; }
.wp .grip svg { width: 16px; height: 16px; }
.wp-pin { width: 28px; height: 28px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--sign); display: grid; place-items: center; }
.wp-pin span { transform: rotate(45deg); color: #fff; font: 700 .76rem/1 var(--f-mono); }
.wp.city .wp-pin { background: var(--ink); }
.wp.overnight .wp-pin { background: var(--c-stays); }
.wp-name { font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer; }
.wp-sub { font-size: .78rem; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.wp-actions { display: flex; opacity: .55; }
.wp:hover .wp-actions, .wp:focus-within .wp-actions { opacity: 1; }
.leg { display: flex; align-items: center; gap: 8px; padding: 2px 0 2px 64px; font: 500 .76rem/1 var(--f-mono); color: var(--ink-3); min-height: 22px; }
.leg::before { content: ""; width: 2px; height: 18px; background: repeating-linear-gradient(var(--line) 0 4px, transparent 4px 7px); margin-left: -24px; margin-right: 12px; }
.day-sep { margin: 14px 0 6px; font: 800 .76rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--sign); display: flex; justify-content: space-between; }
.nights { display: inline-flex; align-items: center; gap: 4px; }
.nights button { width: 20px; height: 20px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: 700 .8rem/1 var(--f-mono); padding: 0; }

.explore-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.xitem { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.xitem:hover, .xitem.hl { border-color: var(--sign); }
.xitem .thumb { position: relative; aspect-ratio: 1; border-radius: 7px; overflow: hidden; max-width: 100%; }
.xitem h4 { font-size: .93rem; line-height: 1.2; }
.xitem .meta { font: 500 .74rem/1.2 var(--f-mono); color: var(--ink-3); margin-top: 4px; }
.xitem .row { margin-top: 6px; --gap: 6px; }

.map-wrap { position: relative; min-height: 0; background: var(--map-water); overflow: hidden; }
.map-wrap .atlas { position: absolute; inset: 0; }
.map-tools { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.map-tools button { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.map-tools button svg { width: 18px; height: 18px; }
.map-search { position: absolute; top: 14px; left: 14px; right: 70px; max-width: 560px; z-index: 3; display: flex; gap: 8px; flex-wrap: wrap; }
.map-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.map-chips .chip { box-shadow: var(--shadow); }
.map-legend { position: absolute; left: 14px; bottom: 14px; z-index: 3; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; font-size: .75rem; color: var(--ink-2); box-shadow: var(--shadow); display: flex; gap: 12px; flex-wrap: wrap; max-width: calc(100% - 28px); }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.pop { position: absolute; z-index: 6; width: 290px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; }
.pop .pc { border-radius: 0; aspect-ratio: 16 / 8; }
.pop .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.pop .body p { font-size: .86rem; color: var(--ink-2); }
.pop .x { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(0,0,0,.45); color: #fff; }
.pop .x:hover { background: rgba(0,0,0,.65); color: #fff; }

/* Atlas SVG */
.atlas svg { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.atlas svg.grabbing { cursor: grabbing; }
.atlas .st { fill: var(--map-land); stroke: none; }
.atlas .st:nth-child(3n) { fill: var(--map-land-2); }
.atlas .borders { fill: none; stroke: var(--map-border); stroke-width: .9; vector-effect: non-scaling-stroke; stroke-dasharray: 3 3; }
.atlas .coast { fill: none; stroke: var(--map-coast); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.atlas .st-lbl { font: 700 9px/1 var(--f-body); fill: var(--ink-3); opacity: .55; letter-spacing: .08em; pointer-events: none; }
.atlas .shade { fill: none; stroke: var(--map-shade); stroke-linecap: round; stroke-linejoin: round; }
.atlas .route-casing { fill: none; stroke: var(--bg); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .9; }
.atlas .route { fill: none; stroke: var(--map-route); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.atlas .route-center { fill: none; stroke: var(--map-route-center); stroke-width: 1.4; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.atlas .mk { cursor: pointer; }
.atlas .mk-poi circle { stroke: var(--surface); stroke-width: 2; }
.atlas .mk-poi:hover circle, .atlas .mk-poi.hl circle { stroke: var(--ink); stroke-width: 2.5; }
.atlas .mk-xo .star { stroke: var(--surface); stroke-width: 1.8; }
.atlas .mk-stop path { stroke: var(--surface); stroke-width: 2; }
.atlas .mk-stop text { font: 700 10px/1 var(--f-mono); fill: #fff; pointer-events: none; }
.atlas .mk-label { font: 700 11px/1 var(--f-body); fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; pointer-events: none; }

/* Phones and small tablets: full-height map + bottom sheet (see sheet() in planner.js) */
.sheet-handle { display: none; }
@media (max-width: 860px) {
  .app-main { height: calc(100% - var(--header-h) - var(--tabbar-h) - env(safe-area-inset-bottom, 0px)); position: relative; }
  .planner { --peek: 204px; display: block; position: relative; height: 100%; }
  .map-wrap { position: absolute; inset: 0 0 calc(var(--peek) - 16px) 0; }
  .dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; height: var(--peek); border-right: 0; border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .18); overflow: hidden; transition: height .28s cubic-bezier(.2, .8, .2, 1); }
  .dock[data-sheet="half"] { height: 62%; }
  .dock[data-sheet="full"] { height: calc(100% - 8px); }
  .dock.dragging { transition: none; }
  .dock[data-sheet="peek"] .dock-body, .dock[data-sheet="peek"] .dock-foot { visibility: hidden; }
  .dock-head { touch-action: none; padding-top: 0; }
  .dock-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .dock-foot { padding: 10px 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .dock-foot::-webkit-scrollbar { display: none; }
  .dock-foot .btn { flex: 0 0 auto; min-height: 40px; }
  .sheet-handle { display: flex; justify-content: center; align-items: center; width: 100%; height: 24px; padding: 0; border: 0; background: transparent; cursor: grab; touch-action: none; }
  .sheet-handle i { width: 42px; height: 5px; border-radius: 3px; background: var(--ink-3); opacity: .45; }
  .sheet-handle:focus-visible i { opacity: 1; background: var(--sign); }
  .map-search { right: 64px; }
  .map-tools { top: 12px; right: 12px; }
  .map-legend { bottom: 26px; }
  .pop { left: 10px !important; right: 10px; width: auto; top: auto !important; bottom: 26px; }
}

/* ── Modal, toast, misc ──────────────────────────────────────────── */
.modal-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-root .scrim { position: absolute; inset: 0; background: rgba(8, 14, 11, .55); animation: fade .15s; }
.modal {
  position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); color: var(--ink);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: rise .18s ease-out;
}
.modal.lg { width: min(780px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.modal-head h3 { font: 800 1.6rem/1.1 var(--f-display); text-transform: uppercase; }
.modal-body { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { padding: 0 20px 20px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.divider-or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: .8rem; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.social-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.note { font-size: .82rem; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.note-warn { background: color-mix(in srgb, var(--stripe) 18%, var(--surface)); color: var(--ink); }

.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); }
.steps i.on { background: var(--sign); }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.opt { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; font-family: var(--f-body); }
.opt svg { width: 26px; height: 26px; color: var(--sign); }
.opt b { font-size: .95rem; }
.opt small { color: var(--ink-2); font-size: .78rem; }
.opt[aria-pressed="true"] { border-color: var(--sign); background: color-mix(in srgb, var(--sign) 8%, var(--surface)); }
.scout-anim { display: grid; place-items: center; gap: 14px; padding: 30px 0; text-align: center; }
.scout-road { width: 220px; height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; position: relative; }
.scout-road::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--stripe) 0 18px, transparent 18px 30px); animation: drive .6s linear infinite; }
@keyframes drive { to { transform: translateX(-30px); } }

.toast-wrap { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); animation: rise .2s; pointer-events: auto; }

.empty { text-align: center; padding: 40px 16px; color: var(--ink-2); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.empty svg { width: 42px; height: 42px; color: var(--ink-3); }

.trip-card { display: grid; grid-template-columns: 180px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.trip-card .mini-map { border: 0; border-radius: 0; aspect-ratio: auto; height: 100%; min-height: 150px; }
.trip-card .body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 560px) { .trip-card { grid-template-columns: 1fr; } .trip-card .mini-map { min-height: 160px; } }

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav button { text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 8px; font: 700 .93rem/1 var(--f-body); color: var(--ink-2); cursor: pointer; }
.side-nav button[aria-current="true"] { background: var(--surface-2); color: var(--ink); }
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 760px) { .settings { grid-template-columns: 1fr; } .side-nav { flex-direction: row; overflow-x: auto; } }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.checklist label { display: flex; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; align-items: center; }
.checklist label:hover { background: var(--surface-2); }
.checklist input { width: 18px; height: 18px; accent-color: var(--sign); }
.checklist input:checked + span { text-decoration: line-through; color: var(--ink-3); }

.kbd { font-family: var(--f-mono); font-size: .8em; padding: 2px 6px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
.code-box { font: 500 .78rem/1.45 var(--f-mono); background: var(--surface-2); border-radius: 8px; padding: 12px; max-height: 240px; overflow: auto; white-space: pre; border: 1px solid var(--line); }
.demo-banner { background: var(--asphalt-2); color: var(--asphalt-ink); font-size: .8rem; text-align: center; padding: 7px 16px; }
.demo-banner a { color: var(--stripe); }
.lock { position: relative; }
.lock-veil { position: absolute; inset: 0; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); background: color-mix(in srgb, var(--bg) 55%, transparent); display: grid; place-items: center; text-align: center; padding: 20px; border-radius: var(--r); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.swatch { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.swatch i { display: block; height: 70px; }
.swatch div { padding: 8px 10px; font-size: .8rem; }

/* Map styles (Explorer plan and up) */
.atlas.map-blueprint { background: #173A5E; }
.atlas.map-blueprint .st { fill: #1E4A74; }
.atlas.map-blueprint .st:nth-child(3n) { fill: #1C466E; }
.atlas.map-blueprint .coast { stroke: #9CC3E6; }
.atlas.map-blueprint .borders { stroke: #5F8DB8; }
.atlas.map-blueprint .st-lbl { fill: #CFE3F6; }
.atlas.map-paper .st, .atlas.map-paper .st:nth-child(3n) { fill: var(--surface); }
.atlas.map-paper .borders { stroke: var(--line); stroke-dasharray: none; }
.atlas.map-paper .coast { stroke: var(--ink-3); }
.map-wrap:has(.map-paper), .mini-map:has(.map-paper) { background: var(--surface-2); }
.map-wrap:has(.map-blueprint) { background: #173A5E; }

.title-shield { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.title-shield .shield { width: 60px; height: 60px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.nav-item > button.avatar { width: 34px; height: 34px; padding: 0; border-radius: 50%; background: var(--stripe); color: var(--stripe-ink); justify-content: center; }
.nav-item > button.avatar:hover { background: var(--stripe); filter: brightness(1.05); }
@media (max-width: 400px) { .site-header .bar { gap: 8px; } .site-header .logo b { font-size: 1.3rem; } .site-header .logo svg { width: 30px; height: 30px; } }

/* Europe base map */
.atlas .coast-halo { fill: none; stroke: var(--map-coast); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.atlas .land { fill: var(--map-land); }
.atlas .zone { fill: color-mix(in srgb, var(--flare) 18%, transparent); stroke: var(--flare); stroke-width: 1; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; }
.atlas.map-blueprint .land { fill: #1E4A74; }
.atlas.map-blueprint .coast-halo { stroke: #9CC3E6; }
.atlas.map-paper .land { fill: var(--surface); }
/* Region & language switcher */
button svg, a svg { flex-shrink: 0; }
.nav-item > .locale-btn, .locale-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font: 700 .8rem/1 var(--f-body); letter-spacing: .04em; cursor: pointer; }
.nav-item > .locale-btn:hover, .locale-btn:hover { background: rgba(255,255,255,.12); }
.locale-btn svg { width: 16px; height: 16px; }
.locale-menu { right: 0; left: auto; min-width: 230px; }
.locale-menu h6 { margin: 6px 10px 4px; font: 700 .7rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.locale-menu button.opt-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 600 .92rem/1.2 var(--f-body); cursor: pointer; text-align: left; }
.locale-menu button.opt-row:hover { background: var(--surface-2); }
.locale-menu button.opt-row[aria-pressed="true"]::after { content: "✓"; color: var(--sign); font-weight: 800; }
.locale-menu p { margin: 6px 12px 4px; font-size: .75rem; color: var(--ink-3); }
.drawer .seg { margin: 4px 8px; }
/* Route checks */
.check-list { display: flex; flex-direction: column; gap: 8px; }
.check-item { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: .86rem; }
.check-item svg { width: 18px; height: 18px; margin-top: 1px; }
.check-item.warn { background: color-mix(in srgb, var(--stripe) 18%, var(--surface)); }
.check-item.warn svg { color: var(--warn); }
.check-item.bad { background: color-mix(in srgb, var(--flare) 14%, var(--surface)); }
.check-item.bad svg { color: var(--flare); }
.check-item b { display: block; margin-bottom: 2px; }
.cc-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 4px; background: #1E4FA0; color: #fff; font: 700 .72rem/1 var(--f-mono); letter-spacing: .04em; }
.rules-table td, .rules-table th { text-align: left !important; vertical-align: top; }

/* Long compound words (German especially) and long button labels on phones */
@media (max-width: 600px) {
  .btn { white-space: normal; line-height: 1.2; text-align: center; padding-block: 8px; }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
}
.badge svg { width: 12px; height: 12px; flex: none; }

/* ── Sign-in: Google button, password field, strength meter ───────── */
.auth-modal { max-width: 440px; }
.auth-modal .modal-body { display: flex; flex-direction: column; gap: 16px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.auth-tabs button { justify-content: center; }
.g-slot { min-height: 44px; display: flex; justify-content: center; }
.g-slot > div { width: 100%; display: flex; justify-content: center; }
.g-logo { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.btn-google { --b: var(--surface); --bi: var(--ink); border-color: var(--line-2, var(--line)); gap: 12px; font-weight: 700; min-height: 44px; }
.btn-google:hover { --b: var(--surface-2); }
.modal-head h3 .g-logo { width: 20px; height: 20px; margin-right: 4px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; width: 100%; }
.pw-wrap .pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; color: var(--ink-3); }
.pw-wrap .pw-eye[aria-pressed="true"] { color: var(--ink); }
.pw-meter { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 6px; align-items: center; margin-top: -4px; }
.pw-meter i { height: 4px; border-radius: 2px; background: var(--line); }
.pw-meter span { font-size: .78rem; color: var(--ink-3); min-width: 4.5em; text-align: right; }
.pw-meter[data-s="1"] i:nth-child(1) { background: var(--flare); }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: var(--sign); }
.pw-meter[data-s="3"] i { background: var(--stripe-ok, #1f8a5b); }
.acct-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; font: inherit; }
.acct-row:hover { background: var(--surface-2); }
.acct-row small { display: block; color: var(--ink-3); font-size: .8rem; }
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-dot { width: 10px; height: 10px; border-radius: 50%; background: conic-gradient(#EA4335 0 25%, #FBBC05 0 50%, #34A853 0 75%, #4285F4 0); flex: none; }

/* ── Mobile web app: tab bar, touch targets, sheet-style dialogs ──── */
.tabbar { display: none; }
button, a, [data-act], .chip, .opt { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (hover: none) { .wp-actions { opacity: 1; } }
@media (max-width: 860px) {
  :root { --tabbar-h: 60px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); text-decoration: none; font: 700 .66rem/1 var(--f-body); letter-spacing: .02em; min-width: 0; }
  .tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--sign); }
  .tabbar .tab-plan svg { width: 44px; height: 32px; padding: 6px 12px; border-radius: 999px; background: var(--stripe); color: var(--stripe-ink, #1b1b1b); box-sizing: border-box; }
  .tabbar .tab-plan[aria-current="page"] svg { background: var(--sign); color: #fff; }
  body:not(.app-mode) { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .toast-wrap { bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom, 0px)); }
  body.app-mode { overscroll-behavior: none; }
  .icon-btn { min-width: 40px; min-height: 40px; }
  .map-tools button { width: 44px; height: 44px; }
  .nights button { width: 30px; height: 30px; }
  .dock-tabs button { padding: 14px 6px; }
  .wp { padding: 12px 6px; }
}
.toast.has-action { display: flex; align-items: center; gap: 14px; padding-right: 8px; }
.toast.has-action button { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--stripe); color: #1b1b1b; font: 800 .85rem/1 var(--f-body); cursor: pointer; }
@media (max-width: 600px) {
  .modal-root { place-items: end center; padding: 0; }
  .modal-root .modal { width: 100%; max-width: 100%; border-radius: 20px 20px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom, 0px); animation: sheet-up .22s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } }
.standalone .app-band { display: none; }
.standalone .site-header { padding-top: env(safe-area-inset-top, 0px); }
.inline-ic svg { width: 16px; height: 16px; vertical-align: -3px; }
button.store-btn { border: 0; cursor: pointer; font-family: inherit; text-align: left; }

/* ── Road, camper and community features ───────────────────────────── */
:root { --c-water: #1F7FA8; }
.lv-ok { --lv: var(--ok); } .lv-warn { --lv: var(--warn); } .lv-bad { --lv: var(--bad); } .lv-info { --lv: var(--ink-3); }
.leg-chk { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: 2px 8px 2px 6px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--lv) 45%, var(--line)); background: color-mix(in srgb, var(--lv) 10%, var(--surface)); color: var(--ink); font: 700 .7rem/1.4 var(--f-body); cursor: pointer; white-space: nowrap; }
.leg-chk i, .ampel-sum i, .pass i, .bt-strip i, .bt-key i { width: 9px; height: 9px; border-radius: 50%; background: var(--lv, var(--ink-3)); flex: none; display: inline-block; }
.leg-chk:hover { background: color-mix(in srgb, var(--lv) 20%, var(--surface)); }
.ampel-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; margin-bottom: 10px; }
.ampel-sum span { display: inline-flex; align-items: center; gap: 6px; }
.leg-block { display: grid; gap: 6px; }
.leg-block .leg-chk { margin: 0; justify-self: start; }
.kit-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.kit-sec { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 10px; }
.kit-sec > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; font-weight: 700; }
.kit-sec > summary::-webkit-details-marker { display: none; }
.kit-sec > summary svg { width: 18px; height: 18px; color: var(--sign); flex: none; }
.kit-sec > summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s; }
.kit-sec[open] > summary::after { transform: rotate(-135deg); }
.kit-body { padding: 0 14px 14px; display: grid; gap: 10px; min-width: 0; }
.panel.kit-sec { padding: 0; }
.cost-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.cost-table td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cost-table td svg { color: var(--ink-3); }
.cost-table .num { text-align: right; white-space: nowrap; font-family: var(--f-mono); padding-left: 10px; }
.cost-table tfoot td { font-weight: 800; border-bottom: 0; padding-top: 10px; font-size: 1rem; }
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.task-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.task-list li > .check, .task-list li > span:first-child { flex: 1; min-width: 0; align-items: flex-start; }
.task-list li.done .check span { text-decoration: line-through; color: var(--ink-3); }
.task-list li.late .mono { color: var(--bad); font-weight: 700; }
.progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--sign); }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.pill-ok { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--ok); }
.pill-warn { background: color-mix(in srgb, var(--stripe) 24%, var(--surface)); color: var(--ink); }
.pill-bad { background: color-mix(in srgb, var(--bad) 14%, var(--surface)); color: var(--bad); }
.maint { display: grid; gap: 2px; }
.maint-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px 150px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .maint-row { grid-template-columns: 1fr 1fr; } .maint-row > div:first-child { grid-column: 1 / -1; } }
.offline-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: .84rem; }
.offline-state.on { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.doc-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: .86rem; }
.doc-list b { overflow-wrap: anywhere; }
.svc { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 6px; background: color-mix(in srgb, var(--c-water) 12%, var(--surface)); color: var(--c-water); font-size: .78rem; font-weight: 700; }
.spot-row { display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
a.panel.spot-row { padding: 14px 16px; }
a.panel.spot-row:hover { border-color: var(--sign); }
.sleep-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .sleep-row { grid-template-columns: 1fr; } .sleep-row > .row { justify-content: flex-start !important; } }
.wx { font-size: .84rem; display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.wx-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wx-days > li { padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.pass { display: grid; grid-template-columns: 10px 1fr; gap: 8px; align-items: start; font-size: .82rem; }
.pass i { margin-top: 5px; }
.today-head { background: var(--asphalt); color: var(--asphalt-ink); padding-block: 28px; }
.today-head .eyebrow { color: var(--stripe); }
.today-head h1 { color: #fff; margin-top: 8px; }
.today-head .lede { color: var(--asphalt-ink); margin-top: 6px; }
.today-head .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.today-head .note { background: rgba(255,255,255,.08); color: var(--asphalt-ink); }
.today-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 22px; align-items: start; }
@media (max-width: 860px) { .today-grid { grid-template-columns: minmax(0, 1fr); } }
.best-time { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.bt-strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.bt-strip span { display: grid; justify-items: center; gap: 4px; font-size: .62rem; text-transform: uppercase; color: var(--ink-3); overflow: hidden; }
.bt-strip i { width: 100%; height: 22px; border-radius: 4px; }
.bt-good { --lv: var(--ok); } .bt-ok { --lv: var(--stripe); } .bt-poor { --lv: var(--surface-3); }
.bt-key { display: inline-flex; align-items: center; gap: 5px; }
.bt-why { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.vote-pill { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ink-3); }
.vote-pill.pos { color: var(--ok); } .vote-pill.neg { color: var(--bad); }
.vote-list { list-style: none; margin: 0; padding: 0; display: grid; }
.vote-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.vote-list li > div:first-child { min-width: 0; }
.vote-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 700 .78rem/1.2 var(--f-body); cursor: pointer; }
.vote-btn.down svg { transform: scaleY(-1); }
.vote-btn.on { background: var(--sign); color: #fff; border-color: var(--sign); }
.vote-btn.down.on { background: var(--bad); border-color: var(--bad); }
.comment { padding: 8px 10px; background: var(--surface-2); border-radius: 8px; }
.comment p { margin-top: 2px; font-size: .9rem; }
.report { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.report p { font-size: .93rem; }
.photo-row { display: flex; gap: 8px; overflow-x: auto; }
.photo-row img { width: 110px; height: 82px; object-fit: cover; border-radius: 8px; background: var(--surface-2); flex: none; }
.photo-row .ph { position: relative; flex: none; }
.photo-row .ph .icon-btn { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.55); color: #fff; width: 26px; height: 26px; }
.stars { color: var(--surface-3); letter-spacing: 1px; } .stars i { font-style: normal; } .stars i.on { color: var(--stripe); }
.star-input { display: flex; gap: 4px; }
.star-input button { font-size: 1.8rem; line-height: 1; background: none; border: 0; color: var(--surface-3); cursor: pointer; padding: 2px; }
.star-input button.on { color: var(--stripe); }
.diary { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.diary > li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.diary > li.focus { border-color: var(--sign); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sign) 18%, transparent); }
.diary-day { display: grid; gap: 2px; align-content: start; }
.diary textarea { min-height: 90px; }
@media (max-width: 560px) { .diary > li { grid-template-columns: 1fr; } }
.member-card { border-radius: 16px; padding: 20px; background: linear-gradient(135deg, var(--sign), var(--sign-2)); color: #fff; display: grid; gap: 14px; max-width: 420px; box-shadow: var(--shadow); }
.member-card.nomad { background: linear-gradient(135deg, #1A221E, #0A6B47); }
.member-card .mc-brand { display: inline-flex; align-items: center; gap: 8px; }
.member-card .mc-brand svg { width: 26px; height: 26px; }
.member-card .mc-no { font-size: 1.25rem; letter-spacing: .12em; }
.rental .card-body { padding: 16px; }
.report > .pill, .report > span.pill { justify-self: start; }
.offline-state > span { flex: 1 1 200px; min-width: 0; }
.guide-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; align-items: end; }
.guide-filters .gf-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
@media (max-width: 760px) { .guide-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .guide-filters .gf-q { grid-column: 1 / -1; } }
[hidden] { display: none !important; }
.route-desc { margin-bottom: 34px; } .route-desc p { max-width: 68ch; }
.guide-filters .gf-near { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px 16px; align-items: end; }
.gf-month { display: inline-flex; align-items: center; gap: 6px; } .gf-month select { width: auto; padding-block: 6px; }
.gf-map { height: min(560px, 70vh); aspect-ratio: auto; margin-bottom: 18px; }
@media (max-width: 760px) { .guide-filters .gf-near { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .guide-filters .gf-near > :first-child { grid-column: 1 / -1; } }
#gf-view button { display: inline-flex; align-items: center; gap: 6px; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.legal-layout .side-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.legal-layout .side-nav a[aria-current] { background: var(--surface-2); color: var(--ink); }
.legal h2 { font-size: 1.25rem; margin-top: 1.6em; }
.ph { background: color-mix(in srgb, var(--stripe) 30%, var(--surface)); padding: 0 4px; border-radius: 4px; font-family: var(--f-mono); font-size: .9em; }
@media (max-width: 760px) { .legal-layout { grid-template-columns: 1fr; } .legal-layout .side-nav { display: flex; flex-wrap: wrap; gap: 4px; } }
.consent { position: fixed; left: 16px; right: 16px; bottom: calc(16px + var(--tabbar-h, 0px) + env(safe-area-inset-bottom, 0px)); z-index: 80; max-width: 560px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 16px 18px; display: grid; gap: 12px; font-size: .9rem; }
/* Photos over illustrations */
.pc, .scene-clip, .scene-bg { position: relative; }
img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-credit { position: absolute; right: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.55); color: #fff; font-size: .62rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 2; }
.photo-credit a { color: #fff; }
.card .photo-credit { right: auto; left: 6px; top: 6px; bottom: auto; max-width: 70%; }
.scene-bg .photo-credit { bottom: 10px; right: 12px; font-size: .7rem; }

/* ── Content editor (#/admin) ───────────────────────────────────── */
.ad-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 48px; }
.ad-side { position: sticky; top: calc(var(--header-h) + 12px); display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - var(--header-h) - 24px); }
.ad-list { overflow: auto; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 4px; min-height: 200px; }
.ad-item { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--ink); font: inherit; display: flex; flex-direction: column; gap: 2px; }
.ad-item small { color: var(--ink-3); font-size: .78rem; }
.ad-item:hover { background: var(--surface-2); }
.ad-item[aria-current="true"] { background: var(--sign); color: var(--sign-ink); }
.ad-item[aria-current="true"] small { color: rgba(255,255,255,.8); }
.ad-field { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px 14px; background: var(--surface); margin: 0; }
.ad-field legend { font: 700 .72rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 0 6px; }
.ad-langs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ad-langs label { display: flex; flex-direction: column; gap: 4px; }
.ad-langs span { font: 700 .7rem/1 var(--f-mono); color: var(--ink-3); }
.ad-langs textarea.input { min-height: 0; font-size: .9rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--sign); text-decoration: underline; cursor: pointer; font: inherit; }
@media (max-width: 1100px) { .ad-langs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ad-grid { grid-template-columns: minmax(0, 1fr); } .ad-side { position: static; max-height: none; } .ad-list { max-height: 50vh; } .ad-langs { grid-template-columns: minmax(0, 1fr); } }
