/* Enjoy here — app styles. Light editorial (sunlight-first), wine-country palette. */

:root {
  --bg:        #faf7f1;
  --bg-soft:   #f3efe6;
  --bg-card:   #ffffff;
  --line:      #e4ddcf;
  --line-soft: #ece6da;
  --ink:       #2b2620;
  --ink-soft:  #6b6353;
  --ink-mute:  #777163;       /* 4.5:1 on --bg (was #99917f, 2.9:1 — #20095) */
  --accent:    #956829;       /* amber / ochre; white on it 4.9:1 (was #a9762f, 3.95:1 — #20095) */
  --accent-2:  #8a5f23;
  --danger:    #a23b3b;
  --good:      #4a7549;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 8px 30px rgba(70,58,35,0.14);
  --serif:     "Fraunces", Georgia, "Times New Roman", serif;
  --sans:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #efe9dd;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

button { font-family: inherit; cursor: pointer; }
/* Keyboard focus is visible everywhere (#20095 (b)); a mouse click does not
   draw the ring, :focus-visible keeps that distinction for us. */
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
img { max-width: 100%; display: block; }

/* ---------- Phone frame (desktop) ---------- */

.device-stage {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(169,118,47,0.10), transparent 60%),
    #efe9dd;
}

/* A real device, not a rubber band: fixed 390x844 (iPhone 14/15 Pro CSS px).
   Short windows scale the whole phone down proportionally (--device-scale, set
   in index.html) instead of changing its shape, so the mockup is identical in
   every browser. Content scrolls INSIDE the frame, as on the real thing. */
.device-frame {
  width: 390px;
  height: 844px;
  flex: 0 0 auto;
  background: var(--bg);
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow), inset 0 0 0 1px #e6dfd0;
  display: flex;
  flex-direction: column;
  transform: scale(var(--device-scale, 1));
  transform-origin: top center;
  /* collapse the layout space the transform leaves behind */
  margin-bottom: calc((var(--device-scale, 1) - 1) * 844px);
}

/* On a real phone there is no mockup: the app IS the device. */
@media (max-width: 480px) {
  .device-stage { padding: 0; align-items: stretch; }
  .device-frame {
    border-radius: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;   /* mobile browsers with dynamic chrome */
    box-shadow: none;
    transform: none;
    margin-bottom: 0;
  }
}

/* Installed as an app, at ANY width — a tablet or a desktop PWA is just as
   wrong a place for a painted iPhone status bar. display-mode covers modern
   iOS and Chromium; .is-installed is set from JS for older iOS, which only
   exposes navigator.standalone. */
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  .device-stage { padding: 0; align-items: stretch; }
  .device-frame {
    border-radius: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    box-shadow: none;
    transform: none;
    margin-bottom: 0;
  }
  /* viewport-fit=cover lets the page reach the notch, so keep the first row of
     content out from under it. Zero on hardware without an inset. */
  #app { padding-top: env(safe-area-inset-top, 0px); }
}

/* Status bar — purely decorative */
.status-bar {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--bg);
}
.status-bar .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); margin-left: 4px; }

/* ...and it is decorative ONLY on the desktop mockup.
 *
 * On a real phone a painted "9:41" and three dots sit directly under the
 * phone's REAL clock, which is what BJS saw the moment he installed it
 * (#40073) — the check that only a real device could have caught.
 *
 * These rules must come AFTER the base .status-bar block above: a media query
 * adds no specificity, so an identical selector placed earlier simply loses to
 * it on source order. The first version of this fix was written higher up the
 * file and did nothing at all. */
@media (max-width: 480px) {
  .status-bar { display: none; }
}
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  .status-bar { display: none; }
}
html.is-installed .status-bar { display: none; }

/* ---------- App shell ---------- */

/* Test-transparency banner */

#app {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.screen {
  flex: 1;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  animation: screenIn 0.32s cubic-bezier(.2,.7,.2,1);
  padding-bottom: 78px; /* room for bottom nav */
}

.screen::-webkit-scrollbar { display: none; }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.app-header {
  padding: 16px 20px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.app-header .brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.app-header .brand em { color: var(--accent); font-style: normal; }

/* Brand pin — the exclamation mark of the wordmark */
.logo-pin {
  height: 0.72em;
  width: auto;
  fill: var(--accent);
  margin-left: 0.1em;
  display: inline-block;
  vertical-align: baseline;
}
.logo-pin .pin-hole { fill: var(--bg); }
/* The place and its region are one unit: region beneath, not beside (BJS). */
.brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}
.app-header .where {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 6px;
}
.app-header .where::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(169,118,47,0.18);
}

.back-btn {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-size: 14px;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.back-btn:hover { color: var(--ink); }

/* ---------- Splash ---------- */

.splash {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}
/* The hero (wordmark + location ask) fills the first screen; a small peek of the
   landing below signals there is more to scroll to (BJS 16-09). */
.splash-hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  gap: 20px;
}
.landing-below {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 8px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  text-align: left;
}
.landing-intro h2, .landing-pricing h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 10px;
}
.landing-intro p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0; }
.landing-plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.lp-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 12px;
}
.lp-card.lp-featured { border-color: var(--accent); }
.lp-name { font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--ink); }
.lp-price { font-family: var(--serif); font-size: 24px; margin: 2px 0 6px; color: var(--ink); }
.lp-desc { color: var(--ink-soft); font-size: 12px; line-height: 1.4; }
.landing-note { color: var(--ink-soft); font-size: 12px; line-height: 1.5; margin: 4px 0 0; }
.landing-foot { color: var(--ink-soft); font-size: 13px; text-align: center; }
.landing-foot a { color: var(--ink-soft); }
.splash-logo {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.splash-logo em { color: var(--accent); font-style: italic; }
.splash-tag { color: var(--ink-soft); max-width: 280px; font-size: 14px; }
.splash-locating {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 10px;
}
.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.gps-primer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
}
.gps-primer p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 6px;
}
.gps-primer .btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
}
.splash-continue {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  animation: fadeIn 0.4s ease;
}
.splash-continue .unlock-cta { width: auto; min-width: 220px; }
.dont-show {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-mute);
  cursor: pointer;
  font-family: var(--sans);
}
.dont-show input { accent-color: var(--accent); }

.gps-note {
  margin-top: 8px;
  font-size: 12px;
  font-family: var(--sans);
  color: var(--ink-mute);
}
.splash-resolved {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Interest picker ---------- */

.section-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 6px 20px 4px;
}
.section-sub {
  margin: 0 20px 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

/* Section headers on the Account screen (BJS 16-09): Account / Settings / Enjoy here. */
.settings-group {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 4px 20px 8px;
}
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px 20px;
}
.tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 6px 12px;
  text-align: center;
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 86px;
}
.tile:hover { border-color: var(--accent); }
.tile:active { transform: scale(0.97); background: #f6f1e6; }
.tile .icon { display: flex; }
/* Line icons, 24x24, drawn in the category accent (see CATEGORY_ICONS). */
.cat-icon { display: block; }
.cat-icon * {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile .label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.25;
  /* "Architecture" / "Architektura" is the longest word we ship; it must not
     wrap into a third line and shove the grid around. */
  hyphens: auto;
}

.age-band-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 16px 20px;
}
.age-tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.2s ease;
}
.age-tile:hover { border-color: var(--accent); }
.age-tile .age {
  font-family: var(--serif);
  font-size: 18px;
}
.age-tile .note { font-size: 12px; color: var(--ink-mute); margin-top: 4px; }

/* ---------- Results ---------- */

.view-toggle {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin: 4px 20px 14px;
  align-self: flex-start;
}
.view-toggle button {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 999px;
  font-weight: 500;
}
.view-toggle button.active {
  background: var(--accent);
  color: #fff;
}

.poi-list { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.poi-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.poi-card:hover { border-color: var(--accent); }
.poi-card:active { transform: scale(0.99); }

.poi-thumb {
  width: 96px;
  flex: 0 0 96px;
  background: linear-gradient(135deg, var(--c1, #3a2a1a), var(--c2, #1a1410));
  display: flex;
  align-items: flex-end;
  padding: 8px;
  color: rgba(255,255,255,0.85);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.2;
  position: relative;
}
.poi-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5));
}
.poi-thumb span { position: relative; z-index: 1; }

/* The stand-in for a place with no photograph (#40138). It sits in the gradient
   and under each container's ::after scrim, so the name keeps its contrast: a
   pseudo-element always paints after real children, which is exactly the layer
   order wanted here without inventing z-indexes.

   Sized in the container, not by an attribute, so one rule serves a 96px card
   thumb and a 200px hero. Low opacity on purpose - this is a texture telling
   you what kind of place it is, not an illustration competing with the name. */
.cat-art {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46%;
  height: 46%;
  max-width: 88px;
  max-height: 88px;
  color: #fff;
  opacity: 0.28;
  pointer-events: none;
}
.hero .cat-art { width: 96px; height: 96px; }
/* Reduced motion is already honoured app-wide; this has no motion to suppress.
   In the high-contrast theme (#40143) a 28% wash reads as dirt on the screen,
   so it either earns full contrast or gets out of the way. It gets out. */
@media (prefers-contrast: more) {
  .cat-art { display: none; }
}

.poi-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.poi-body .name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}
.poi-body .name-local { font-size: 11px; color: var(--ink-mute); margin-top: -2px; }
.poi-body .one-liner { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.poi-body .meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 4px;
  align-items: center;
}
.fit-chip {
  background: rgba(169,118,47,0.12);
  color: var(--accent-2);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 11px;
}
.saved-remove {
  background: transparent;
  border: none;
  color: var(--ink-mute);
  font-size: 11px;
  padding: 2px 0;
  text-decoration: underline;
  margin-left: auto;
}
.saved-remove:hover { color: var(--danger); }
.cap-note { color: var(--ink-soft); }
.live-chip {
  background: rgba(74,117,73,0.14);
  color: var(--good);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.worth-badge { margin: 10px 16px 0; padding: 8px 12px; border-radius: 10px; background: var(--card, #fff); font-size: 14px; }
.worth-badge .worth-how { margin-left: 6px; font-size: 12px; opacity: .75; }
.live-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 20px 12px;
  font-size: 12px;
  color: var(--ink-mute);
}
.info-grid .v a { color: var(--accent-2); text-decoration: none; }
.info-grid .v a:hover { text-decoration: underline; }

/* Map */
.map-wrap {
  margin: 0 16px 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 380px;
  /* The same flex-shrink trap that squashed the hero to ~10px on BJS's phone.
     .screen is a flex column, so a declared height is only a STARTING size —
     a flex item still shrinks unless told not to. The map collapsed to 48px:
     all 40 markers were added correctly, to a sliver nobody could see, which
     is why every category "showed the same map". */
  flex-shrink: 0;
  background: #e8e4da;
  /* Its OWN stacking context (04-10-2026, BJS: "select one of the POI on the map - it'll not work well").
     Leaflet's panes carry z-index 400-700; without this they competed with the page and painted OVER the
     place sheet (.modal-backdrop, z-index 50): tap a pin and the sheet's title vanished behind the map,
     which stayed bright while the rest of the screen dimmed. Contained here, 700 means "inside the map". */
  position: relative;
  z-index: 0;
  isolation: isolate;
}
#map { width: 100%; height: 100%; }

.leaflet-container { background: #e8e4da !important; font-family: var(--sans); }
.pin-marker { filter: drop-shadow(0 2px 3px rgba(60,50,30,0.35)); }

/* ---------- POI detail ---------- */

.hero {
  height: 200px;
  /* .screen is a flex COLUMN, so every child shrinks by default. The hero was
     the only fixed-height element, which made it the first thing squeezed when
     the page overflowed: declared 200px, rendered 40px in a 640px-tall window
     and about 10px on BJS's phone. The image was still there, just crushed to a
     stripe. Never let it give up its height. */
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--c1, #3a2a1a), var(--c2, #1a1410));
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7));
}
.hero .hero-inner { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
.hero .name-local { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 4px; }

.detail-meta {
  display: flex;
  gap: 14px;
  padding: 14px 20px 8px;
  font-size: 12px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.detail-meta .fit-chip { font-size: 12px; }

.detail-section { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.detail-section h2, .section-h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  margin: 0 0 10px;
}
.free-paragraph { font-size: 14.5px; line-height: 1.65; color: var(--ink); }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.info-grid > div { font-size: 13px; }
.info-grid .k {
  display: block;
  color: var(--ink-mute);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.info-grid .v { color: var(--ink); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badge {
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
}
.badge.kid-yes { color: var(--good); border-color: rgba(91,138,90,0.5); }
.badge.kid-no { color: var(--ink-mute); opacity: 0.55; text-decoration: line-through; }

.source-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}
/* AI disclosure (#40144). Sits under the source row, same muted register — it
   is provenance, not a warning, and styling it as an alert would overstate it.
   Readable, though: rule 24/#40143 care about contrast, so this uses --ink-soft
   like the row above rather than a lighter grey that would technically be
   "visible" and practically not. */
.ai-note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.source-row .conf {
  background: rgba(74,117,73,0.14);
  color: var(--good);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 11px;
}

/* Locked premium section */
.locked-section {
  position: relative;
  padding: 22px 20px 28px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, transparent, rgba(169,118,47,0.04));
}
.locked-preview {
  position: relative;
  max-height: 140px;
  overflow: hidden;
  filter: blur(4px);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  font-size: 14px;
  line-height: 1.6;
}
.locked-preview::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.unlock-cta {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  margin-top: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.1s ease, background 0.2s ease;
}
.unlock-cta:hover { background: var(--accent-2); }
.unlock-cta:active { transform: scale(0.985); }
.unlock-cta .sub { display: block; font-size: 12px; font-weight: 500; opacity: 0.75; margin-top: 2px; }

.premium-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.premium-actions button {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
}
.premium-actions button[disabled] { opacity: 0.55; cursor: not-allowed; }
.premium-actions button.saved { border-color: var(--accent); color: var(--accent-2); }
.tooltip { position: relative; }
.tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #2b2620;
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.premium-chapter p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 14px;
}
.premium-chapter p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 44px;
  float: left;
  line-height: 0.9;
  padding: 6px 8px 0 0;
  color: var(--accent);
}

/* ---------- Paywall modal ---------- */

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  width: 100%;
  padding: 22px 20px 24px;
  animation: slideUp 0.3s cubic-bezier(.2,.7,.2,1);
  max-height: 90%;
  overflow-y: auto;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
/* A sheet carried across a repaint of its own screen (#40181) did not open again: no second fade or slide. */
.modal-backdrop.sheet-kept, .modal-backdrop.sheet-kept .modal { animation: none; }
.modal-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--line); margin: 0 auto 14px;
}
.modal h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 4px;
}
.modal .sub { color: var(--ink-soft); font-size: 13px; margin-bottom: 16px; }

.pass-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  text-align: left;
  width: 100%;
  color: var(--ink);
}
.pass-option:hover { border-color: var(--accent); }
.pass-option.selected { border-color: var(--accent); background: rgba(169,118,47,0.08); }
.pass-option .name { font-family: var(--serif); font-size: 16px; }
.pass-option .desc { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.pass-option .price { font-family: var(--serif); font-size: 18px; color: var(--accent); }

.modal-actions { display: flex; gap: 8px; margin-top: 14px; }
.modal-actions .btn-ghost {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
}
.fake-note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--ink-mute);
  text-align: center;
  font-style: italic;
}

/* ---------- Bottom nav ---------- */

.bottom-nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(250,247,241,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: flex;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0));
  z-index: 20;
}
.bottom-nav button {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ink-mute);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  font-weight: 500;
}
.bottom-nav button .ico { font-size: 18px; }
.bottom-nav button.active { color: var(--accent); }

/* ---------- Stub screens ---------- */
.stub {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 40px 30px;
  color: var(--ink-soft);
}
.stub h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--ink); margin: 0 0 8px; }
.stub p { font-size: 14px; max-width: 260px; }
.stub .phase-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  background: rgba(169,118,47,0.12);
  color: var(--accent-2);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Language picker (Profile) */
.lang-picker { margin-top: 18px; }
.lang-picker .k {
  display: block;
  color: var(--ink-mute);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.lang-options { display: flex; gap: 8px; justify-content: center; }
.loc-status { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.region-row { display: flex; gap: 8px; justify-content: center; }
.region-row input {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--ink);
  width: 170px;
}
.region-row input:focus { border-color: var(--accent); }
.loc-actions { display: flex; justify-content: center; }
.lang-btn {
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-btn:hover { border-color: var(--accent); }
.lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Toast ---------- */
.toast {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  background: #2b2620;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 60;
  animation: fadeIn 0.2s ease;
  border: 1px solid #3a352c;
  white-space: nowrap;
}


/* POI photography (#40049) — Wikimedia Commons via Wikidata P18.
   The gradient stays underneath as the fallback for the POIs with no photo and
   as the backdrop while the image decodes, so a card never renders empty. */
.poi-thumb { position: relative; overflow: hidden; }
.poi-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The name sits on top of the picture, so the picture has to lose contrast. */
  filter: saturate(0.9);
}
.poi-thumb img + span {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}
.poi-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.5) 100%);
}
.poi-thumb img ~ span { z-index: 2; }

.hero { position: relative; overflow: hidden; }
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero .hero-inner { position: relative; z-index: 2; }
.hero-img ~ .hero-inner::before {
  content: "";
  position: absolute;
  inset: -40px -40px -40px -40px;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.62) 100%);
  z-index: -1;
}
.hero-credit {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 3;
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.3;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  max-width: 62%;
  text-align: right;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.hero-credit:hover { color: #fff; text-decoration: underline; }


/* Age bands as inline chips (#40050) — a filter on the results, not a gate in
   front of them, and multi-select because a family is rarely one age. */
.age-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 16px 12px;
}
.age-chip {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.age-chip:hover { border-color: var(--accent); }
.age-chip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}


/* Gallery strip + lightbox (#40049). Attribution rides with each photograph,
   because a Commons category mixes contributors and one blanket credit for a
   set of differently-licensed images would simply be false. */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 16px 0;
}
.gallery-thumb {
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { border-color: var(--accent); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 10, 8, 0.94);
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 16px;
}
.lb-figure { margin: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; min-width: 0; }
.lb-figure img {
  max-width: 100%;
  /* Leave room for the caption on a short window rather than pushing it off. */
  max-height: 76vh;
  object-fit: contain;
  border-radius: 6px;
}
.lb-figure figcaption {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(255,255,255,0.72);
  text-align: center;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.lb-figure figcaption a { color: rgba(255,255,255,0.82); text-decoration: none; }
.lb-figure figcaption a:hover { text-decoration: underline; color: #fff; }
.lb-count { opacity: 0.6; }
.lightbox button {
  background: none;
  border: 0;
  color: rgba(255,255,255,0.8);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}
.lightbox button:hover { color: #fff; }
.lb-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 26px;
}


/* "Something unusual here" (#40054) — deliberately unlike a category tile,
   because it is the app talking rather than a filter you chose. */
.special-card {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 14px;
  padding: 14px 16px 13px;
  text-align: left;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(200,149,74,0.10), rgba(200,149,74,0.03));
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.special-card:active { transform: scale(0.985); }
.special-kicker {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
}
.special-claim {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
}
.special-meta {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-top: 7px;
}


/* OSM attribution on the map (#40055) — required, so it is styled to sit
   quietly rather than removed. */
.leaflet-control-attribution {
  font-family: var(--sans);
  font-size: 9.5px;
  background: rgba(255,255,255,0.78);
  padding: 1px 5px;
  border-radius: 4px 0 0 0;
}
.leaflet-control-attribution a { color: var(--accent-2); }


/* The wordmark doubles as the location control (#40056) — tap "Enjoy here"
   (or "Enjoy Mikulov") to open the sheet and set or change where you are. */
.brand-tap { cursor: pointer; user-select: none; }
.brand-tap:hover em { text-decoration: underline; text-underline-offset: 3px; }
.brand-tap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.modal .region-row { display: flex; gap: 8px; margin: 4px 0 6px; }
.modal .region-row input {
  flex: 1;
  min-width: 0;
  font-family: var(--sans);
  font-size: 13px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
}
/* Sign-in address (#40070). Same shape as the region input in a sheet, so the
   account sheet does not look like it came from a different app. */
.modal .text-input {
  width: 100%;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 13px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
}
.modal .text-input:focus { border-color: var(--accent); }

.modal .pill-btn {
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.modal .pill-btn:hover { border-color: var(--accent); }
/* The same pill as a LINK (legal, contact): an inline <a> ignored the width
   and sat two pills on one line. */
.modal a.pill-btn { display: block; box-sizing: border-box; text-align: center; text-decoration: none; }


/* Location typeahead (#40057) — the candidates are shown so nobody has to
   guess; a blind field sent "brn" to Bern Airport. */
.loc-list { display: flex; flex-direction: column; gap: 4px; margin: 2px 0 4px; max-height: 210px; overflow-y: auto; }
.loc-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
}
.loc-option:hover, .loc-option.active { border-color: var(--accent); background: #f6f1e6; }
.lo-name { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink); }
.lo-context { font-family: var(--sans); font-size: 11px; color: var(--ink-mute); }


/* Wayfinding (#40061): hand off the walk, and point for the last stretch. */
.wayfinding { display: flex; flex-direction: column; gap: 12px; }
.walk-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 16px; border-radius: 14px;
  background: var(--accent); color: #fff;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  text-decoration: none;
}
.walk-btn:active { transform: scale(0.985); }
.wf-ico { font-size: 15px; }

.compass { display: flex; align-items: center; gap: 14px; }
.compass-dial {
  width: 54px; height: 54px; flex: none; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-card);
  display: grid; place-items: center;
}
.compass-needle {
  font-size: 22px; line-height: 1; color: var(--accent);
  transition: transform 0.25s ease-out;
}
.compass-text { display: flex; flex-direction: column; gap: 2px; font-family: var(--sans); }
.compass-text strong { font-size: 16px; color: var(--ink); }
.compass-text span { font-size: 12px; color: var(--ink-mute); }


/* Settings (#40072): the cog in the bottom nav is an SVG now, and its sheets
   reuse the same bottom-sheet pattern as the paywall and the location picker. */
.bottom-nav .ico svg { display: block; }
.modal .lang-options { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.modal .pill-btn.active { border-color: var(--accent); color: var(--accent-2); }
.modal .loc-status { font-family: var(--sans); font-size: 13px; color: var(--ink); margin-top: 4px; }
.modal .phase-badge { display: inline-block; margin-top: 6px; }
.modal .sheet-sub {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  margin: 14px 0 6px;
}
.modal .ai-note a { color: var(--accent-2); }


/* #40075 — everything above the icon grid is centred: the wordmark, the region
   beneath it, the question, and its subtitle. The grid itself stays as it is. */
.app-header { justify-content: center; }
.brand-block { align-items: center; text-align: center; }
.section-title, .section-sub { text-align: center; }
/* The back-button variant keeps its own alignment: a centred back arrow would
   be a worse target than one pinned to the edge. */
.app-header:has(.back-btn) { justify-content: flex-start; }


/* The place's own action row (#40079): share it, or share your photo of it.
   Sits under "Walk me there" as a pair, not as stacked full-width buttons. */
.poi-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 12px; border-radius: 14px;
  background: var(--bg-card); border: 1px solid var(--line);
  font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink);
  cursor: pointer;
}
.action-btn:hover { border-color: var(--accent); }
.action-btn .cat-icon { color: var(--accent); }

/* The destructive action in the privacy sheet should look like what it does. */
.modal .pill-btn + .pill-btn { margin-top: 8px; }
.modal .pill-btn.danger { color: #94402f; border-color: #e8b3a8; }
.modal .pill-btn.danger:hover { background: #fbe9e6; }

/* Billing rows (#40078). One line per pass: what it is, and how long it lasts. */
.modal .billing-row {
  padding: 10px 12px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.modal .billing-kind { font-weight: 600; font-size: 13px; }
.modal .billing-meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

/* What this app stores (#40085) — the inventory, before any button. */
.modal .stored-list { margin: 10px 0 4px; }
.modal .stored-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}
.modal .stored-row:last-child { border-bottom: none; }
.modal .stored-what { color: var(--ink); }
.modal .stored-why { color: var(--ink-mute); white-space: nowrap; }
.modal .stored-row.optional .stored-why { color: var(--accent-2); font-weight: 600; }

/* The withdrawal-waiver disclosure inside the paywall (#40083). Legally it has
   to be legible BEFORE the pay button, so it sits above the actions and is not
   styled as fine print — small, but not the grey-on-grey that fine print
   usually means. */
.pay-terms {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line, #e2d9cb);
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--muted, #6b6157);
}
.pay-terms-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.pay-terms-links a {
  color: var(--accent, #8a5a2b);
  text-decoration: underline;
  font-weight: 500;
}

/* The optional coupon field in the paywall (#20158). Quiet on purpose: most
   buyers have no code, and a loud field reads as "you are overpaying". */
.promo-row { display: block; margin-top: 0.9rem; }
.promo-row .promo-label { font-size: 0.76rem; color: var(--muted, #6b6157); }
.promo-row .text-input { margin-top: 6px; text-transform: uppercase; }
.promo-row .text-input::placeholder { text-transform: none; }

/* Blocked-permission panel (#40088). Not an error state visually — the user did
   nothing wrong, and a red warning would suggest they broke something. It reads
   as an explanation with a way out. */
.gps-blocked h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 0.6rem;
}
.gps-blocked p { margin: 0 0 0.7rem; }
.gps-blocked-how {
  padding: 0.7rem 0.85rem;
  background: var(--card, #fffdf9);
  border: 1px solid var(--line, #e2d9cb);
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Blocked-permission message inside the location sheet (#40088). Same content
   as the splash panel, in the sheet's tighter space. */
.loc-msg-blocked { display: block; text-align: left; }
.loc-msg-blocked strong { display: block; margin-bottom: 0.35rem; }
.loc-msg-blocked .gps-blocked-how {
  display: block;
  margin-top: 0.4rem;
  padding: 0.6rem 0.7rem;
  background: var(--card, #fffdf9);
  border: 1px solid var(--line, #e2d9cb);
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Sort control (#40092). Sits above the list/map toggle, same chip language as
   the age bands so it reads as one family of controls rather than a new idea. */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 20px 10px;
}
.sort-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #6b6157);
}
.sort-chip {
  padding: 5px 11px;
  border: 1px solid var(--line, #e2d9cb);
  border-radius: 99px;
  background: var(--card, #fffdf9);
  color: var(--ink, #2c2621);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.sort-chip.active {
  border-color: var(--accent, #8a5a2b);
  color: var(--accent, #8a5a2b);
  font-weight: 500;
}

/* Filters (#40093). A filter bar is a second row of the same control family as
   sort and radius, so it reuses their chips rather than inventing a look — the
   difference is that several can be on at once, which .active already shows. */
.filter-bar { padding-bottom: 12px; }
.filter-note { color: var(--ink-soft, #6b6157); font-size: 0.8rem; }

/* The contextual language layer (#40094). The Czech sentence is the thing the
   reader is about to say out loud, so it is the biggest element in the row —
   the translation is only there to confirm they picked the right one. */
.phrase-help {
  color: var(--ink-soft, #6b6157);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0 0 12px;
}
.phrase-row {
  border-top: 1px solid var(--line, #e2d9cb);
  padding: 12px 0 10px;
}
.phrase-row:first-child { border-top: none; padding-top: 2px; }
.phrase-cs {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--ink, #2c2621);
}
/* Monospaced so the syllable breaks line up and read as a pronunciation guide
   rather than as more of the sentence. */
.phrase-phon {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--accent-2, #a9762f);
  margin-top: 3px;
}
.phrase-mean { color: var(--ink-soft, #6b6157); font-size: 0.86rem; margin-top: 4px; }
.phrase-actions { display: flex; gap: 8px; margin-top: 8px; }
.phrase-btn {
  padding: 4px 10px;
  border: 1px solid var(--line, #e2d9cb);
  border-radius: 99px;
  background: var(--card, #fffdf9);
  color: var(--ink-soft, #6b6157);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.phrase-btn:hover { color: var(--accent, #8a5a2b); border-color: var(--accent, #8a5a2b); }
.phrase-star.on { color: var(--accent-2, #a9762f); border-color: var(--accent-2, #a9762f); }

/* Open / closed right now. Green and grey rather than green and red: a place
   being shut at 9pm is information, not a warning. */
.open-chip { background: rgba(74,117,73,0.14); color: var(--good, #4a7549); }
.shut-chip { background: rgba(0,0,0,0.06); color: var(--ink-mute, #8a8177); }

/* The landing waits for the reader (#40096). Centred block so the place name
   and the button read as one moment rather than a notice with a control
   bolted underneath. */
.splash-resolved-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
}
/* Both actions share the block's width, so the stack reads as one unit rather
   than two buttons that happen to sit near each other. */
.splash-resolved-block .unlock-cta,
.splash-resolved-block .btn-ghost {
  width: 100%;
  max-width: 280px;
}
.splash-resolved-block .unlock-cta { margin-top: 6px; }
/* The correction, not a choice: quieter than the primary so the eye still
   lands on "Start exploring" first. */
.splash-resolved-block .btn-ghost {
  margin-top: 2px;
  font-size: 0.88rem;
}

/* "You are here" (#40097). A labelled marker, not a bare dot — among amber
   category pins a small amber circle does not answer "where am I?". */
.me-dot {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2f6fd0;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(47,111,208,.35), 0 2px 6px rgba(0,0,0,.3);
}
.me-label {
  background: #2f6fd0 !important;
  color: #fff !important;
  border: none !important;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px !important;
}
.me-label::before { border-top-color: #2f6fd0 !important; }

/* A network guess is NOT a fix (#40129/#40116). Hollow and dashed, because the
   confident blue disc reads as "the phone measured this" — which is the exact
   claim we cannot make when the position came from the connection. */
.me-dot.approx {
  background: transparent;
  border: 3px dashed #2f6fd0;
  box-shadow: none;
  opacity: .85;
}
.me-label.approx { background: #6b7f9e !important; font-weight: 500; }
.me-label.approx::before { border-top-color: #6b7f9e !important; }

/* Recentre control (#40129): a way back after panning. Sized for a thumb
   (44px is the accessibility floor for a touch target) and drawn as a plain
   button so it inherits focus styling. */
.map-recentre {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px 10px 0;
  background: #fff;
  color: #2f6fd0;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,.28);
  cursor: pointer;
}
.map-recentre:hover { background: #f3f6fb; }
.map-recentre:active { transform: translateY(1px); }

.radius-bar { padding-bottom: 4px; }

/* POI preview sheet (#40097): decide here, read the full page only if you want to. */
.poi-preview { text-align: left; }
.preview-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #e8e4da;
}
.poi-preview h2 { margin: 0 0 2px; }
.poi-preview .name-local { font-size: 0.85rem; opacity: 0.65; margin-bottom: 6px; }
.preview-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--accent, #8a5a2b);
  font-weight: 500;
  margin-bottom: 8px;
}
.preview-intro { margin: 0 0 14px; font-size: 0.92rem; line-height: 1.55; }
.preview-actions { display: flex; gap: 10px; }
.preview-actions .btn-ghost,
.preview-actions .unlock-cta { flex: 1; margin-top: 0; }

/* Floating POI navigation (#40107 — CZ field test 2026-08-25).
   "It was hard to find the back button" and "I'd like arrows instead of a
   forced return to the grid" are one complaint: the header scrolls away, so
   every way out of a place disappears the moment you start reading it.
   These stay put. */
.poi-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  /* Above the bottom nav, which is 8px + icon + 8px + the home indicator. */
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  z-index: 25;
}
.poi-nav-btn {
  width: 44px;               /* 44px is the smallest reliable touch target */
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.poi-nav-btn:active { background: rgba(0, 0, 0, 0.06); }
.poi-nav-grid { color: var(--accent); }
/* Disabled rather than hidden at the ends of the list: a control that vanishes
   moves the ones beside it, and the thumb is already aiming at the old spot. */
.poi-nav-btn[disabled] { opacity: 0.28; cursor: default; }
@media (prefers-reduced-motion: no-preference) {
  .poi-nav { transition: opacity 120ms ease; }
}

/* #40108 — said once, not on every card. The prose below is English because
   the translation pipeline is not built yet (#40041/#40098); pretending
   otherwise is worse than the admission. */
.lang-note {
  font-size: 12px;
  color: var(--ink-mute);
  background: var(--line-soft);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

/* #40095 — an event leads with WHEN, because that is the field that decides
   whether the rest of the card is worth reading. */
.event-card { cursor: default; }
.event-card.tappable { cursor: pointer; }
.event-when {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 2px;
}
.event-now {
  background: var(--accent-2);
  color: #fff;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
}
.empty-note {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  padding: 18px 20px;
}

/* #40120 — said once, quietly: the distances below are measured from the
   centre of the city the reader typed, not from where they are standing. */
.centre-note {
  margin-top: -6px;
  font-size: 12px;
  color: var(--ink-mute);
}

/* #40128 — the guess, said on the screen it is ranking. Quieter than the note
   it follows: it is a caveat on that sentence, not a second announcement. */
.centre-note-guess { display: block; opacity: .75; font-size: .92em; }

/* #40121 — the unusual-here tile pages through what is nearby. Controls sit
   OUTSIDE the card, which is itself a button. */
.special-wrap { margin: 0 20px 14px; }
.special-wrap .special-card { margin: 0; width: 100%; }
.special-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}
.special-nav:empty { display: none; }
.special-arrow {
  background: transparent;
  border: none;
  color: var(--ink-mute);
  font-size: 20px;
  line-height: 1;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 999px;
}
.special-arrow:hover { color: var(--accent-2); background: rgba(169,118,47,0.10); }
.special-dots { display: flex; gap: 6px; align-items: center; }
.special-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line-soft);
  cursor: pointer;
}
.special-dot.on { background: var(--accent-2); }
/* The tap target is the 7px dot plus invisible padding — a 7px button is not
   reachable with a thumb. */
.special-dot::after {
  content: "";
  display: block;
  position: relative;
  top: -8px;
  left: -8px;
  width: 23px;
  height: 23px;
}

/* "Was it worth it?" (#40137). Sits inside the POI page and must not read as a
   demand — it is a favour being asked of someone standing in front of a place. */
.worth-it { border: 1px dashed var(--line, #d8d0c2); }
.worth-it-note { display: block; opacity: .75; font-size: .92em; margin-bottom: .5rem; }
.worth-it-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.worth-it-input { width: 100%; max-width: 100%; box-sizing: border-box; margin-bottom: .5rem;
                  font: inherit; padding: .5rem; border: 1px solid var(--line, #d8d0c2); border-radius: 8px; }
.worth-it-thanks { opacity: .8; }

/* ---------- High contrast (#40143) ----------
   A first-class theme, not a filter: the same tokens, re-set so every pairing
   the a11y test checks clears 7:1 (WCAG AAA) — black ink on white, links
   always underlined, a 3px focus ring, no meaning carried by colour alone.
   Switched on in Settings → Display (persisted in enjoyhere.state.v1 as
   `contrast`), or automatically for a system that asks for more contrast.
   `--hc-*` mirrors are read by tools/test-a11y.mjs, which computes the
   ratios; keep them identical to the values set on [data-contrast="high"]. */
:root {
  --hc-bg:       #ffffff;
  --hc-ink:      #000000;
  --hc-ink-soft: #111111;
  --hc-ink-mute: #1f1f1f;   /* 16.7:1 on white */
  --hc-accent:   #5a3d10;   /* white on it 9.2:1; it on white 9.2:1 */
  --hc-danger:   #7a1414;
  --hc-good:     #145214;
}
:root[data-contrast="high"] {
  --bg:        var(--hc-bg);
  --bg-soft:   var(--hc-bg);
  --bg-card:   var(--hc-bg);
  --line:      #000000;
  --line-soft: #000000;
  --ink:       var(--hc-ink);
  --ink-soft:  var(--hc-ink-soft);
  --ink-mute:  var(--hc-ink-mute);
  --accent:    var(--hc-accent);
  --accent-2:  var(--hc-accent);
  --danger:    var(--hc-danger);
  --good:      var(--hc-good);
  --shadow:    none;
}
:root[data-contrast="high"] body, :root[data-contrast="high"] .device-stage { background: #ffffff; }
:root[data-contrast="high"] a { text-decoration: underline; text-underline-offset: 2px; }
:root[data-contrast="high"] button:focus-visible, :root[data-contrast="high"] a:focus-visible,
:root[data-contrast="high"] input:focus-visible, :root[data-contrast="high"] textarea:focus-visible,
:root[data-contrast="high"] select:focus-visible, :root[data-contrast="high"] [tabindex]:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 3px;
}
/* Every control gets an honest border: a button that was only a filled shape
   becomes a shape with an edge, so it is still a button at 7:1. */
:root[data-contrast="high"] button, :root[data-contrast="high"] .pill-btn, :root[data-contrast="high"] .lang-btn,
:root[data-contrast="high"] .card, :root[data-contrast="high"] .billing-row, :root[data-contrast="high"] input,
:root[data-contrast="high"] textarea, :root[data-contrast="high"] select {
  border: 2px solid #000000;
}
:root[data-contrast="high"] .pill-btn.active, :root[data-contrast="high"] .lang-btn.active {
  background: #000000; color: #ffffff;
}
:root[data-contrast="high"] .status-bar .dot { outline: 1px solid #000; }

/* Windows High Contrast / forced colours: the platform paints the colours;
   we only make sure borders exist where a fill used to mean something. */
@media (forced-colors: active) {
  button, .pill-btn, .lang-btn, .card, input, textarea, select { border: 1px solid ButtonText; }
  a { text-decoration: underline; }
  .status-bar .dot { outline: 1px solid CanvasText; }
}

/* Reduced motion is a preference, not a suggestion (#40143): nothing moves. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* The Display sheet's option rows. */
.display-opts { display: grid; gap: 8px; margin: 10px 0 18px; }
.display-opts .lang-btn { text-align: left; }
