/* Ölüdeniz Map — coastal editorial. Fraunces (display) · Manrope (UI) · JetBrains Mono (data). */

:root {
  --ink:        #052730;
  --ink-2:      #0a3b47;
  --sea:        #0e7490;
  --sea-bright: #14b8c4;
  --shallow:    #34d0d9;
  --sand:       #f6ecd6;
  --cream:      #fbf6ea;
  --coral:      #ff6b3d;
  --coral-deep: #e8542a;
  --gold:       #e0a92b;
  --terracotta: #d1495b;
  --forest:     #3f8f63;
  --slate:      #64798a;

  --glass:      rgba(7, 40, 48, 0.86);  /* more opaque since backdrop blur removed for perf */
  --glass-line: rgba(180, 235, 245, 0.16);

  --shadow:     0 18px 50px rgba(2, 22, 28, 0.42);
  --shadow-sm:  0 8px 22px rgba(2, 22, 28, 0.28);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r: 16px;
  --header-h: 64px;
  --filter-h: 46px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Map canvas (always mounted, always visible) ---------- */
#map { position: fixed; inset: 0; z-index: 0; background: #a9dbe4; }
.leaflet-container { font-family: var(--font-ui); background: #a9dbe4; }
.leaflet-control-attribution {
  background: rgba(251, 246, 234, 0.82) !important;
  font-size: 10px !important; font-family: var(--font-ui) !important;
  border-radius: 8px 0 0 0;
}
.leaflet-bar a { color: var(--ink) !important; }

/* Reference POI icon badges */
.ref-wrap { background: none; border: none; }
.ref-badge { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center;
  border: 2px solid #fbf6ea; box-shadow: 0 3px 6px rgba(2,22,28,.35); cursor: pointer;
  transition: transform .15s ease; }
.ref-badge:hover { transform: scale(1.12); }
/* Selected POI badge — same "obvious active" treatment as curated pins (centred pulse ring). */
.ref-badge.is-active { transform: scale(1.4); z-index: 1000; box-shadow: 0 0 0 3px #fff, 0 5px 12px rgba(2,22,28,.5); }
.ref-badge.is-active::after { content: ""; position: absolute; inset: -5px; border-radius: 999px; border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(255,255,255,.65); pointer-events: none; animation: refpulse 1.5s ease-out infinite; }
@keyframes refpulse { 0% { transform: scale(.7); opacity: .9; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.ref-badge svg { width: 15px; height: 15px; display: block; }
.ref-badge .dot { width: 7px; height: 7px; border-radius: 999px; background: #fff; }
/* Themed cluster bubbles (per category colour) */
.cluster-wrap { background: none; border: none; }
.cluster { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center;
  color: #fff; font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  border: 2px solid #fbf6ea; box-shadow: 0 3px 8px rgba(2,22,28,.42); }

/* Leaflet popups (used by OSM reference POIs) — match the theme */
.leaflet-popup-content-wrapper { background: var(--cream); color: var(--ink); border-radius: 12px; box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 12px 14px; font-family: var(--font-ui); }
.leaflet-popup-content .rp-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.leaflet-popup-content .rp-kind { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); margin: 2px 0 8px; }
.leaflet-popup-content a { color: var(--sea); font-weight: 600; font-size: 13px; text-decoration: none; }
.leaflet-popup-tip { background: var(--cream); }

/* ---------- Custom curated markers ---------- */
.pin {
  width: 38px; height: 46px; transform: translateY(2px); cursor: pointer;
  filter: drop-shadow(0 6px 8px rgba(2, 22, 28, 0.35));
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), filter .22s ease;
}
.pin svg { width: 100%; height: 100%; display: block; }
.pin:hover { transform: translateY(-3px) scale(1.06); }
.pin.is-active { transform: translateY(-7px) scale(1.4); filter: drop-shadow(0 14px 18px rgba(2,22,28,.55)); z-index: 1000; }
/* The halo is baked into every pin's SVG (centred on the head, cx19 cy18) but hidden — shown +
   pulsed only for hero and selected pins, so the "active" pulse is always perfectly centred. */
.pin .halo { opacity: 0; }
.pin.is-hero .halo { animation: pulse 2.8s ease-out infinite; transform-origin: center; }
/* Active = white halo, pulsed larger, so the selected pin clearly stands out (and always centred). */
.pin.is-active .halo { fill: #fff; animation: pulseactive 1.6s ease-out infinite; transform-origin: center; }
@keyframes pulse { 0% { opacity:.55; r:11; } 70%,100% { opacity:0; r:22; } }
@keyframes pulseactive { 0% { opacity:.85; r:12; } 70%,100% { opacity:0; r:27; } }

/* ---------- Floating header ---------- */
.chrome { position: fixed; z-index: 500; left: 0; right: 0; }
header.chrome {
  top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--header-h); padding: 0 clamp(14px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(5,39,48,.86), rgba(5,39,48,.5) 70%, transparent);
  pointer-events: none;
}
header.chrome > * { pointer-events: auto; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand .mark { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 2.4vw, 25px); color: var(--cream); letter-spacing: -.015em; line-height: 1; }
.brand .mark em { color: var(--shallow); font-style: italic; }
.brand .dotline { font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(203, 233, 240, .62); }
@media (max-width: 560px){ .brand .dotline { display:none; } }

/* Live conditions pill */
.conditions {
  display: flex; align-items: center; gap: 12px;
  background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: 999px; padding: 7px 14px 7px 11px; color: var(--cream);
  box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .18s ease, border-color .18s ease;
}
.conditions:hover { transform: translateY(-1px); border-color: rgba(180,235,245,.32); }
.conditions .status-dot { width: 11px; height: 11px; border-radius: 999px; flex: 0 0 auto; background: var(--slate); box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.conditions .status-dot.go  { background: #35d07f; box-shadow: 0 0 12px rgba(53,208,127,.7), 0 0 0 4px rgba(53,208,127,.14); }
.conditions .status-dot.mar { background: var(--gold);  box-shadow: 0 0 12px rgba(224,169,43,.6), 0 0 0 4px rgba(224,169,43,.14); }
.conditions .status-dot.no  { background: var(--coral); box-shadow: 0 0 12px rgba(255,107,61,.6), 0 0 0 4px rgba(255,107,61,.14); }
.conditions .metric { display: flex; align-items: center; gap: 6px; }
.conditions .metric .val { font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.conditions .metric .lab { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(203,233,240,.6); }
.conditions .wind-arrow { transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.conditions .sep { width: 1px; height: 20px; background: var(--glass-line); }
@media (max-width: 480px){ .conditions .temp-metric { display:none; } }

/* ---------- Filter chips (always above the panel) ---------- */
.filters {
  top: calc(var(--header-h) + 8px); display: flex; gap: 8px; flex-wrap: wrap;
  padding: 0 clamp(14px, 3vw, 28px); pointer-events: none; z-index: 450;
}
.filters .chip, .filters .ref-divider { pointer-events: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--cream);
  background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: 999px; padding: 7px 13px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, background .16s ease, opacity .16s ease; opacity: .55;
}
.chip:hover { transform: translateY(-1px); }
.chip.on { opacity: 1; }
.chip .swatch { width: 9px; height: 9px; border-radius: 3px; }
.chip .cicon { width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; flex: 0 0 auto; }
.chip .cicon svg { width: 11px; height: 11px; display: block; }
.chip .count { font-family: var(--font-mono); font-size: 11px; opacity: .7; }
/* ref chips are identical to curated chips — they just start toggled off (dimmed via opacity) */
.ref-divider { width: 1px; align-self: stretch; margin: 4px 2px; background: var(--glass-line); }
/* Mobile: one horizontally-scrollable row, icon + count only, so every filter fits at the top */
@media (max-width: 780px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { padding: 6px 9px; gap: 5px; flex: 0 0 auto; }
  .chip .clabel { display: none; }
  .ref-divider { display: none; }
}

/* ---------- Layers: single button → grouped panel (popover / bottom-sheet) ---------- */
.layers-btn { opacity: 1; }
.layers-btn .clabel { display: inline-flex; }            /* keep the word "Layers" even on mobile */
.layers-btn .layers-ic svg { width: 13px; height: 13px; }
.layers-btn.active { border-color: rgba(180,235,245,.34); }
.layers-btn .count { background: var(--shallow); color: var(--ink); font-weight: 700; font-size: 11px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; }
.layers-btn .count:empty { display: none; }

.layers { position: fixed; z-index: 520; bottom: 18px; right: 72px; width: 302px;
  max-height: calc(100vh - 120px); overflow-y: auto;
  background: var(--cream); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow); padding: 6px;
  transform-origin: bottom right; opacity: 0; transform: translateY(8px) scale(.98);
  transition: opacity .16s ease, transform .16s ease; }
.layers.open { opacity: 1; transform: none; }
.layers[hidden] { display: none; }
.layers-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 6px; }
.layers-head h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.layers-close { border: none; background: transparent; color: var(--slate); cursor: pointer; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.layers-close:hover { background: rgba(5,39,48,.07); }
.layers-group { padding: 2px 2px 6px; }
.layers-group + .layers-group { border-top: 1px solid #ece0c6; margin-top: 2px; padding-top: 8px; }
.lg-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 4px; }
.lg-head span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #9a8f74; }
.lg-all { border: none; background: transparent; color: var(--sea); font-family: var(--font-ui); font-weight: 700; font-size: 12px; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.lg-all:hover { text-decoration: underline; }
.layer-row { display: flex; align-items: center; gap: 10px; width: 100%; background: transparent; border: none; cursor: pointer; padding: 7px 8px; border-radius: 11px; text-align: left; transition: background .12s ease; }
.layer-row:hover { background: rgba(5,39,48,.05); }
.layer-row .cicon { width: 26px; height: 26px; flex: 0 0 auto; opacity: .38; transition: opacity .14s ease; }
.layer-row.on .cicon { opacity: 1; }
.layer-row .cicon svg { width: 14px; height: 14px; }
.lr-label { flex: 1; font-weight: 600; font-size: 14px; color: var(--ink); }
.lr-count { font-family: var(--font-mono); font-size: 11px; color: #9aa7ad; }
.lr-switch { width: 34px; height: 20px; border-radius: 999px; background: #d9cfb8; position: relative; flex: 0 0 auto; transition: background .16s ease; }
.lr-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .16s ease; }
.layer-row.on .lr-switch { background: var(--sea-bright); }
.layer-row.on .lr-switch::after { transform: translateX(14px); }

/* First-visit hint (once per session) — anchored to the bottom-right Layers FAB, points right at it */
.layers-hint { position: absolute; right: calc(100% + 12px); top: 50%; background: var(--ink); color: var(--cream);
  font-size: 12.5px; font-weight: 600; line-height: 1.3; padding: 9px 12px; border-radius: 10px; box-shadow: var(--shadow-sm);
  width: max-content; max-width: 210px; opacity: 0; transform: translate(8px, -50%);
  transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.layers-hint.show { opacity: 1; transform: translate(0, -50%); }
.layers-hint::before { content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-left-color: var(--ink); }

@media (max-width: 780px) {
  .layers { top: auto; bottom: 0; left: 0; right: 0; width: auto; border-radius: 20px 20px 0 0;
    padding: 20px 12px 20px; transform-origin: bottom; transform: translateY(100%); z-index: 600; }
  .layers.open { transform: none; }
  .layers::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 999px; background: rgba(5,39,48,.2); }
}

/* ---------- Detail panel (side rail / bottom sheet — NOT over the chips) ---------- */
.panel {
  position: fixed; z-index: 480; background: var(--cream); color: var(--ink);
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .42s cubic-bezier(.16,1,.3,1);
  will-change: transform; transform: translateZ(0); backface-visibility: hidden;
}
@media (min-width: 781px){
  .panel {
    top: calc(var(--header-h) + 8px); bottom: 14px; left: 14px;
    width: 372px; border-radius: var(--r); transform: translateX(calc(-100% - 20px));
  }
  .panel.open { transform: translateX(0); }
}
@media (max-width: 780px){
  .panel {
    left: 0; right: 0; bottom: 0; max-height: 62vh; border-radius: 20px 20px 0 0;
    transform: translateY(calc(100% + 20px));
    z-index: 560; /* above the bottom-right FABs (500) so the sheet covers them */
  }
  .panel.open { transform: translateY(0); }
  .panel::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 999px; background: rgba(5,39,48,.2); z-index: 3; }
}
.panel .hero { position: relative; height: 178px; flex: 0 0 auto; border-radius: var(--r) var(--r) 0 0; overflow: hidden; background-size: cover; background-position: center; }
@media (max-width: 780px){ .panel .hero { border-radius: 20px 20px 0 0; height: 150px; } }
.panel .hero .glyph { position: absolute; inset: 0; display: grid; place-items: center; opacity: .9; }
.panel .hero .glyph svg { width: 52px; height: 52px; }
.panel .hero .cat-tag { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; padding: 5px 11px; border-radius: 999px; background: rgba(5,39,48,.72); }
.panel .hero .cat-tag .swatch { width: 8px; height: 8px; border-radius: 2px; }
.panel .hero .hero-credit { position: absolute; right: 8px; bottom: 6px; max-width: 70%; text-align: right;
  font-size: 9.5px; line-height: 1.2; color: rgba(255,255,255,.82); text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.panel .close { position: absolute; top: 12px; right: 12px; z-index: 4; width: 34px; height: 34px; border: none; border-radius: 999px; background: rgba(5,39,48,.72); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .16s ease; }
.panel .close:hover { background: rgba(5,39,48,.8); }
.panel .body { padding: 18px 22px 22px; overflow-y: auto; }
.panel h2 { font-family: var(--font-display); font-weight: 600; font-size: 25px; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 10px; }
.panel .blurb { font-size: 15px; line-height: 1.6; color: #21414b; margin: 0 0 14px; }
.panel .getthere { display: flex; gap: 9px; font-size: 13px; line-height: 1.5; color: #34535d; margin: 0 0 16px; }
.panel .getthere svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--shallow); margin-top: 1px; }
.panel .getthere .k { display: block; font-weight: 700; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #7f9299; margin-bottom: 1px; }
.panel .tip { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.5; background: #fff; border: 1px solid #ece0c6; border-left: 3px solid var(--gold); border-radius: 10px; padding: 12px 13px; margin: 0 0 16px; color: #43331a; }
.panel .tip .k { font-weight: 700; color: var(--gold); }
.panel .actions { display: flex; flex-direction: column; gap: 9px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--font-ui); font-weight: 700; font-size: 14px; padding: 12px 16px; border-radius: 11px; border: none; cursor: pointer; text-decoration: none; transition: transform .14s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(255,107,61,.32); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(5,39,48,.2); }
.btn-ghost:hover { border-color: rgba(5,39,48,.4); }
.aff-note { font-size: 11px; color: #8a99a0; margin: 4px 2px 0; }

/* ---------- Floating action buttons ---------- */
.fab-row { position: fixed; z-index: 500; bottom: 18px; right: 14px; display: flex; flex-direction: column; gap: 10px; }
.fab { position: relative; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--cream); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .16s ease, border-color .16s ease; }
.fab.active { border-color: var(--shallow); color: #fff; }
.fab .fab-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--shallow); color: var(--ink); font-family: var(--font-ui); font-weight: 800; font-size: 11px; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(2,22,28,.4); }
.fab .fab-badge:empty { display: none; }
.fab:hover { transform: translateY(-2px); }

/* ---------- Glass overlays (map stays visible + blurred behind) ---------- */
.overlay { position: fixed; z-index: 700; inset: 0; display: grid; place-items: center; padding: clamp(12px, 4vw, 40px);
  background: rgba(3, 22, 27, .34);
  opacity: 0; pointer-events: none; transition: opacity .3s ease; }
/* Blur the map behind the overlay on a dedicated, GPU-promoted layer — NOT on .overlay itself.
   backdrop-filter on the ancestor forced every hover repaint inside the card to re-run the
   full-viewport blur (measured ~56fps with jank on menu hover). Isolating it to this pseudo (a
   sibling of the card, on its own cached layer, paint-contained) keeps the identical 7px blur but
   holds hover at a solid 60fps. */
.overlay::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  transform: translateZ(0); will-change: backdrop-filter; contain: paint; }
.overlay .card { position: relative; z-index: 1; }
.overlay.open { opacity: 1; pointer-events: auto; }
.overlay .card {
  width: min(680px, 100%); max-height: min(82vh, 860px); overflow: hidden;
  display: flex; flex-direction: column;
  background: rgba(251, 246, 234, 0.94); color: var(--ink);
  border: 1px solid rgba(255,255,255,.5); border-radius: 20px; box-shadow: var(--shadow);
  transform: translateY(14px) scale(.985); transition: transform .38s cubic-bezier(.16,1,.3,1);
}
.overlay.open .card { transform: none; }
.overlay .card .head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 14px; border-bottom: 1px solid #ece0c6; }
.overlay .card .head h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin: 0; letter-spacing: -.01em; }
.overlay .card .head .eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); }
.overlay .close-x { width: 36px; height: 36px; border: none; border-radius: 999px; background: #efe6d1; cursor: pointer; display: grid; place-items: center; flex: 0 0 auto; }
.overlay .scroll { overflow-y: auto; padding: 8px 24px 28px; }

/* Hotels (Stay22) overlay — wide, iframe fills the card */
.overlay .card.card-wide { width: min(920px, 100%); height: min(84vh, 800px); max-height: min(84vh, 800px); }
.hotels-frame { flex: 1; min-height: 420px; }
.hotels-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.hotels-note { flex: 0 0 auto; padding: 9px 16px; font-size: 11px; color: var(--slate); border-top: 1px solid #ece0c6; text-align: center; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid #ece0c6; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 16px 34px 16px 2px; font-family: var(--font-ui); font-weight: 700; font-size: 16px; color: var(--ink); position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--sea); transition: transform .2s ease; }
.faq-item.open .faq-q::after { content: "\2013"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 460px; }
.faq-a p { font-size: 14.5px; line-height: 1.62; color: #2a444c; margin: 0 0 14px; }
.faq-a .share { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sea); background: none; border: none; cursor: pointer; padding: 0 0 14px; font-family: var(--font-ui); }

/* About article */
.about h4 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 20px 0 8px; }
.about p { font-size: 14.5px; line-height: 1.62; color: #2a444c; margin: 0 0 12px; }
.about .lede { font-size: 15.5px; color: #21414b; }
.about a { color: var(--sea); }

/* Search box in the menu */
.poi-search { position: sticky; top: 0; display: flex; align-items: center; gap: 9px; background: var(--cream); padding: 4px 2px 12px; z-index: 2; }
.poi-search svg { width: 18px; height: 18px; color: var(--slate); flex: 0 0 auto; }
.poi-search input { flex: 1; font-family: var(--font-ui); font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #e4d8bd; border-radius: 10px; padding: 10px 12px; outline: none; }
.poi-search input:focus { border-color: var(--sea); }
.no-res { font-size: 13.5px; color: var(--slate); padding: 8px 2px; }

/* List of places */
.list-group h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin: 16px 2px 4px; display: flex; align-items: center; gap: 8px; }
.list-item { display: flex; align-items: center; gap: 12px; width: 100%; background: transparent; border: none; text-align: left; cursor: pointer; padding: 10px 8px; border-radius: 11px; transition: background .14s ease; }
.list-item:hover { background: #fff; }
.list-item .li-dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.list-item > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.list-item .li-name { display: block; font-weight: 600; font-size: 14.5px; }
.list-item .li-blurb { display: block; font-size: 12px; color: #6a7a80; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Live conditions popover ---------- */
.wx { position: fixed; z-index: 650; top: calc(var(--header-h) + 6px); right: clamp(14px,3vw,28px); width: 272px;
  background: var(--cream); color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px;
  opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.wx.open { opacity: 1; transform: none; pointer-events: auto; }
.wx .wx-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.wx h5 { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 0; }
.wx .wx-meta { display: flex; align-items: center; gap: 7px; margin-top: 3px; }
.live-badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; font-weight: 500; color: #1c8a52; }
.live-badge i { width: 6px; height: 6px; border-radius: 999px; background: #35d07f; box-shadow: 0 0 0 0 rgba(53,208,127,.6); animation: live 1.8s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(53,208,127,.55); } 70%,100% { box-shadow: 0 0 0 7px rgba(53,208,127,0); } }
.wx .clock { font-family: var(--font-mono); font-size: 10px; color: var(--slate); letter-spacing: .04em; }
.wx .row { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; border-top: 1px solid #ece0c6; }
.wx .row .k { font-size: 12.5px; color: #55676e; }
.wx .row .v { font-family: var(--font-mono); font-size: 14px; }
.wx .verdict { margin-top: 11px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; }
.wx .verdict.go  { background: rgba(53,208,127,.12); color: #1c6b45; }
.wx .verdict.mar { background: rgba(224,169,43,.14); color: #7a5a12; }
.wx .verdict.no  { background: rgba(255,107,61,.12); color: #a53a1c; }
.wx .verdict .lab { font-weight: 700; display: block; margin-bottom: 2px; }
/* multi-day outlook */
.wx .days-title { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin: 14px 0 4px; }
.wx-day { display: grid; grid-template-columns: 40px 1fr auto 14px; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid #ece0c6; }
.wx-day .d { font-family: var(--font-mono); font-size: 12px; }
.wx-day .w { font-size: 11.5px; color: #6a7a80; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-day .wind { font-family: var(--font-mono); font-size: 11.5px; color: #45575e; }
.wx-day .dot { width: 9px; height: 9px; border-radius: 999px; justify-self: end; }
.wx-day .dot.go { background: #35d07f; } .wx-day .dot.mar { background: var(--gold); } .wx-day .dot.no { background: var(--coral); }
.wx .disc { font-size: 10.5px; color: #97a4a9; margin-top: 11px; line-height: 1.4; }

/* ---------- Intro stagger ---------- */
.stagger { opacity: 0; transform: translateY(-8px); animation: drop .6s cubic-bezier(.16,1,.3,1) forwards; }
.d1 { animation-delay: .15s; } .d2 { animation-delay: .28s; } .d3 { animation-delay: .40s; }
@keyframes drop { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .stagger { animation: none; opacity: 1; transform: none; } .pin, .live-badge i { transition: none; animation: none; } }

/* ---------- Ad slot (in-content only — never over the map) ---------- */
.ad-slot { margin: 20px 0 6px; padding: 10px; background: #fff; border: 1px solid #ece0c6; border-radius: 12px; text-align: center; min-height: 90px; }
.ad-slot .ad-label { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: #b3a483; margin-bottom: 6px; }
/* Collapse the whole slot until AdSense actually fills it — no empty "Advertisement" boxes
   in dev (loader off → <ins> empty) or when a live slot goes unfilled. */
.ad-slot:has(ins.adsbygoogle:empty),
.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

.legal-links { font-size: 12px; color: #8a99a0; margin-top: 14px; }
.legal-links a { color: var(--sea); }

/* persistent legal link (bottom-left, under panels so it never blocks them) */
.legal-fab { position: fixed; z-index: 300; left: 12px; bottom: 10px; display: flex; gap: 7px; align-items: center;
  font-size: 11px; color: rgba(251,246,234,.72); text-shadow: 0 1px 3px rgba(2,22,28,.6); }
.legal-fab a { color: rgba(251,246,234,.82); text-decoration: none; }
.legal-fab a:hover { text-decoration: underline; }
@media (max-width: 780px){ .legal-fab { display: none; } } /* mobile: reach via About + FAQ instead */

.skip { position: fixed; left: -999px; top: 8px; z-index: 900; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Pre-rendered content (crawlers / no-JS) ----------
   Present in the DOM of the static /place/ + /faq/ pages so search engines and LLMs read real,
   unique text (the big SEO gap). Sits in normal flow behind the fixed full-viewport #map, so it's
   invisible to sighted users once the app is up. Generated by build.js — not in the SPA shell. */
.ssr { position: absolute; z-index: -1; left: 0; top: 0; width: 100%; max-width: 720px;
  padding: 84px 22px 40px; color: rgba(251,246,234,.9); font-size: 15px; line-height: 1.6;
  overflow: hidden; max-height: 100vh; pointer-events: none; }
.ssr h1 { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.1; margin: 0 0 6px; }
.ssr .ssr-sub, .ssr .ssr-crumb { font-size: 12px; letter-spacing: .04em; color: rgba(203,233,240,.7); margin: 0 0 14px; }
.ssr .ssr-crumb a { color: rgba(203,233,240,.85); }
.ssr img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0 14px; }
.ssr a { color: var(--shallow); }
.ssr .ssr-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
