/* ============================================================
   SARDINIEN WEBCAMS v3 — STYLES
   Dark glassmorphism, sportlich-modern, mobile-first
   ============================================================ */

:root {
  --bg-deep: #050b14;
  --bg: #0a1623;
  --bg-2: #0f2030;
  --surface: rgba(255,255,255,0.04);
  --surface-strong: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);
  --text: #e8f1fb;
  --text-dim: #98aabf;
  --text-mute: #7888a2;   /* >=4.5:1 on --bg (AA for small text) */
  --accent: #36d6c4;        /* primary interactive — teal / ocean (active, links, focus, buttons) */
  --accent-2: #36d6c4;      /* brand teal — text accents (surf·SPIRIT, hero, footer) */
  --brand-blue: #2bb3ff;    /* logo/gradient blue endpoint — decorative only */
  --accent-hover: #5fe3d4;  /* lighter teal for link/hover states */
  --on-accent: #04231f;     /* dark ink for text/icons on accent-filled surfaces */
  --accent-hot: #ff5b8a;
  --wind: #ffb547;
  --wave: #6ebbff;
  --green: #42c25f;   /* the single "good" green — matches the wind scale's "good" tier */
  --gold: #ffd166;
  --live: #ff7a7a;       /* LIVE indicator (soft coral) */
  --live-ink: #3a0d0d;   /* text/dot on the LIVE badge */
  --north: #4ea3ff;
  --east: #36d6c4;
  --south: #ff8a5b;
  --west: #c177ff;
  /* Radius scale — 4 steps + 50% (circles) + 0 (none). Use these everywhere. */
  --r-xs: 6px;   /* pills, badges, small chips */
  --r-sm: 8px;   /* controls: buttons, inputs, chips, nav */
  --r-md: 12px;  /* cards, sheets, viewports */
  --r-lg: 16px;  /* large surfaces / hero */
  --radius: var(--r-lg);      /* legacy alias */
  --radius-sm: var(--r-sm);   /* legacy alias */
  --shadow-card: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 1px var(--border);
  --glass-blur: blur(20px) saturate(140%);
  --tap: 44px; /* min touch target */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ---- DS: Scrollbars ------------------------------------------------------
   ONE slim, dark scrollbar for the whole site — the page itself and every
   in-card scroller (meteogram strip, cam switcher, …). The track MUST stay
   transparent: a half-styled scrollbar falls back to a white track, which
   reads as a foreign element on the dark UI. Do not restyle scrollbars per
   component — this is the single source of truth (documented in the DS). */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 8px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-mute); }
::-webkit-scrollbar-corner { background: transparent; }
/* Skip link for keyboard users */
.skip-link {
  position: absolute; top: -100px; left: 8px;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 14px; border-radius: var(--r-xs);
  font-weight: 600; font-size: 14px;
  z-index: 10000; transition: top .15s;
}
.skip-link:focus { top: 8px; outline: 0; }
/* Stronger focus indicator for all interactive elements */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

html, body {
  margin: 0; padding: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

body {
  background:
    radial-gradient(ellipse at top left, rgba(43,179,255,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(54,214,196,0.10) 0%, transparent 50%),
    var(--bg-deep);
  min-height: 100vh;
  min-height: 100dvh;
}

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hover); }
button { font-family: inherit; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,22,35,0.78);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 12px 24px;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px;
  color: var(--text); text-decoration: none;
}
.logo-mark {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 3px 10px rgba(43,179,255,0.25));
}
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.12; }
.logo-word { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--text); }
.logo-accent { color: var(--accent-2); }
.logo-tagline { font-size: 11px; font-weight: 500; color: var(--text-mute); letter-spacing: 0.005em; margin-top: 1px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-link {
  padding: 8px 13px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600;
  color: var(--text-dim); transition: color .15s, background .15s, box-shadow .15s;
  min-height: var(--tap); display: inline-flex; align-items: center;
}
.nav-link:hover { background: var(--surface); color: var(--text); }
/* Active = filled teal pill (the interactive accent), consistent across Overview
   and all four regions. Region colours stay reserved for the map and region tags. */
.nav-link.active { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.nav-link.active:hover { background: var(--accent); color: var(--on-accent); filter: brightness(1.05); }

/* Windrose — the four regions ARE compass directions, so they live in a single
   segmented control led by a gently-wobbling compass needle. */
.windrose {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 5px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px;
}
.windrose .nav-link { min-height: var(--tap); padding: 6px 13px; border-radius: 999px; }
.windrose .nav-link:hover { background: var(--surface-strong); }
/* Compass = home/Overview link (replaces the old "Overview" menu item). */
.windrose-home {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--text-dim); flex-shrink: 0;
  transition: background .15s;
}
.windrose-home:hover { background: var(--surface-strong); }
.windrose-home.active { background: rgba(54,214,196,0.14); }
.windrose-home-ic { width: 24px; height: 24px; display: block; }
.windrose-home-ic .wr-ring { fill: none; stroke: #46637e; stroke-width: 1.4; }
.windrose-home-ic .wr-tick { stroke: #46637e; stroke-width: 1.4; stroke-linecap: round; }
.windrose-home-ic .wr-n { fill: var(--accent); }
.windrose-home-ic .wr-s { fill: var(--text-mute); }
.windrose-home-ic .wr-hub { fill: #cfe1ee; }
.windrose-home.active .wr-ring, .windrose-home.active .wr-tick { stroke: var(--accent); }
.windrose-home-ic .wr-needle-grp {
  transform-box: fill-box; transform-origin: center;
  animation: wr-needle 5s ease-in-out infinite;
}
@keyframes wr-needle { 0%,100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@media (prefers-reduced-motion: reduce) { .windrose-home-ic .wr-needle-grp { animation: none; } }

/* Language switcher — compact dropdown */
.lang-wrap { display: flex; align-items: center; gap: 6px; }
.lang-globe { width: 16px; height: 16px; color: var(--text-mute); flex-shrink: 0; }
.lang-select {
  padding: 6px 26px 6px 10px;
  background: var(--surface); color: var(--accent);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 13px; font-weight: 700; font-family: inherit;
  text-transform: uppercase; letter-spacing: 0.05em;
  cursor: pointer; min-height: var(--tap);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398aabf' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}
.lang-select:hover { border-color: var(--accent); }
.lang-select:focus { outline: 0; border-color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: 1400px; margin: 0 auto;
  padding: 40px 24px 6px; text-align: center;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 16px; color: var(--text-dim);
  max-width: 640px; margin: 0 auto;
}
/* Best Now toggle (when filtering to good spots only) */
.best-now-toggle {
  font-size: 12px; padding: 5px 11px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xs); color: var(--text-dim);
  cursor: pointer; transition: all .15s;
  margin-left: 6px;
}
.best-now-toggle:hover { color: var(--text); border-color: var(--accent); }
.best-now-toggle[hidden] { display: none; }

/* Forecast / preview controls */
.filters-inner--toolbar .fc-modes { margin-left: auto; }
/* Home "best spots now" header: title left, mode switch right, sub on its own row */
.section-header--list { align-items: center; gap: 10px 12px; flex-wrap: wrap; margin-bottom: 8px; }
.section-header--list .sh-title { display: flex; align-items: center; gap: 10px; }
.section-header--list .mode-sw { margin-left: auto; }
.section-subrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-subrow .section-sub { color: var(--text-mute); font-size: 13px; }
.section-subrow .section-sub.is-goodfilter { cursor: pointer; text-decoration: underline; text-decoration-color: rgba(66,194,95,0.4); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.section-subrow .section-sub.is-goodfilter:hover { color: var(--text-dim); }
.section-subrow .section-sub.is-active { color: var(--green); text-decoration: none; }
/* Mode switch responsive: short labels + centered toggle on phones */
.mode-lbl .lbl-min { display: none; }
@media (max-width: 700px) {
  .mode-lbl .lbl-full { display: none; }
  .mode-lbl .lbl-min { display: inline; }
  .section-header--list .mode-sw { margin-left: auto; margin-right: auto; }
  .filters-inner--toolbar .fc-modes { margin-right: auto; }
}
/* Region pages: keep the slider in the same content column width as the cards */
.fc-region-controls { max-width: 1400px; margin: 0 auto; padding: 0 24px 11px; }
/* Mode switch — two labels flank a sliding toggle. Active label = bold/text colour,
   the other muted; the turquoise knob slides to the selected side. */
.fc-modes.mode-sw { display: inline-flex; align-items: center; gap: 12px; }
.mode-sw .mode-lbl { display: inline-flex; align-items: center; gap: 7px; padding: 4px 2px; border: 0; background: transparent; color: var(--text-mute); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: color .2s, font-weight .2s; }
.mode-sw .mode-lbl:hover { color: var(--text-dim); }
.mode-sw .mode-lbl.active { color: var(--text); font-weight: 700; }
.mode-sw .mode-track { flex: none; width: 50px; height: 28px; border-radius: 999px; background: var(--surface-strong); border: 1px solid var(--border); position: relative; cursor: pointer; transition: border-color .2s; }
.mode-sw:has(.mode-lbl.active) .mode-track { border-color: rgba(54,214,196,.5); }
.mode-sw .mode-knob { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: left .22s cubic-bezier(.4,0,.2,1); }
.mode-sw:has(#fcModeForecast.active) .mode-knob { left: 26px; }
.fc-controls { margin-top: 12px; }
.fc-controls[hidden] { display: none; }
.fc-time { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 12px; }
.fc-step { width: var(--tap); height: var(--tap); border-radius: 50%; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; transition: all .15s; }
.fc-step:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.fc-step:disabled { opacity: .35; cursor: not-allowed; }
.fc-time-readout { text-align: center; min-width: 130px; }
.fc-time-big { font-size: 20px; font-weight: 500; color: var(--text); line-height: 1.1; }
.fc-time-sub { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.fc-good { color: var(--accent); font-weight: 500; }
.fc-calm { color: var(--text-mute); }
.fc-slider { width: 100%; accent-color: var(--accent); margin: 2px 0 4px; }
.fc-daymarks { position: relative; height: 16px; margin-top: 4px; font-size: 11px; color: var(--text-mute); }
.fc-daymarks span { position: absolute; white-space: nowrap; }
.fc-time-big.is-good { color: var(--accent); }
/* turquoise strong-wind icons ABOVE the slider at windows with good wind */
.fc-goodmarks { position: relative; height: 16px; margin-bottom: 1px; }
.fc-goodmarks span { position: absolute; top: 0; color: var(--accent); line-height: 1; }
/* all window hours BELOW the slider (good = turquoise, current = bright, rest muted) */
.fc-hourmarks { position: relative; height: 15px; margin-top: 5px; font-size: 11px; }
.fc-hourmarks span { position: absolute; white-space: nowrap; }
@media (max-width: 480px) { .fc-hourmarks { font-size: 10px; } }
.fc-nextgood { display: inline-flex; align-items: center; margin-top: 12px; font-size: 12px; font-weight: 500;
  background: transparent; color: var(--accent); border: 1px solid var(--accent); border-radius: var(--r-sm);
  padding: 6px 12px; cursor: pointer; transition: background .15s; }
.fc-nextgood:hover { background: rgba(54,214,196,0.12); }
.fc-nextgood[hidden] { display: none; }
.fc-note { font-size: 11px; color: var(--text-mute); margin-top: 10px; }

/* ---- Header spot search ---- */
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.hdr-search-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: transparent; border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; transition: all .15s; flex: none; }
.hdr-search-btn:hover { color: var(--text); border-color: var(--accent); }
.hdr-search-btn svg { width: 18px; height: 18px; }
.hdr-search-panel { max-width: 1400px; margin: 0 auto; padding: 0 24px 12px; }
.hdr-search-panel[hidden] { display: none; }
.hdr-search-inner { position: relative; display: flex; align-items: center; gap: 8px; max-width: 520px; margin-left: auto; }
.hdr-search-ic { width: 17px; height: 17px; color: var(--text-mute); flex: none; }
#spotSearch { flex: 1; height: 40px; padding: 0 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); font-size: 14px; font-family: inherit; }
#spotSearch:focus { outline: 0; border-color: var(--accent); }
.hdr-search-close { background: transparent; border: 0; color: var(--text-mute); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.hdr-search-close:hover { color: var(--text); }
.spot-search-results { position: absolute; left: 25px; right: 34px; top: 46px; z-index: 60; background: rgba(15,32,48,0.98); backdrop-filter: var(--glass-blur); border: 1px solid var(--border-strong); border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow-card); }
.spot-search-results[hidden] { display: none; }
.ssr-item { display: flex; align-items: center; gap: 9px; padding: 9px 12px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.ssr-item:last-child { border-bottom: 0; }
.ssr-item:hover { background: var(--surface); }
.ssr-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ssr-name { flex: 1; font-size: 13.5px; }
.ssr-reg { font-size: 11px; color: var(--text-mute); }
.ssr-empty { padding: 11px 12px; font-size: 13px; color: var(--text-mute); }

/* ---- Tip of the day ---- */
.tip-sec { padding-top: 0; padding-bottom: 0; }
.tip-card { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; max-width: 100%; margin: 12px auto 0; padding: 10px 16px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); font-size: 13px; text-decoration: none; }
.tip-card[hidden] { display: none; }
.tip-card.is-good { background: rgba(54,214,196,0.10); border-color: rgba(54,214,196,0.35); color: var(--text); }
.tip-card.is-good .tip-ic { color: var(--accent); }
.tip-card .tip-txt strong { color: var(--accent); font-weight: 600; }
.tip-card .tip-detail::before { content: "\00b7"; margin: 0 6px; color: var(--text-mute); }
@media (max-width: 700px) {
  .tip-card { flex-wrap: wrap; gap: 2px 8px; }
  .tip-card .tip-txt { display: contents; }
  .tip-card .tip-detail { flex: 0 0 100%; text-align: center; }
  .tip-card .tip-detail::before { content: none; margin: 0; }
}

/* ---- Map "good only" toggle ---- */
.map-good-toggle.active { background: var(--green); color: var(--bg-deep); border-color: var(--green); }
.fc-note[hidden] { display: none; }

/* ============================================================
   MAP
   ============================================================ */
.map-wrap { max-width: 1400px; margin: 28px auto 0; padding: 0 24px; }
.map-filter {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.map-filter .chip { min-height: var(--tap); padding: 6px 13px; font-size: 13px; }
.map-filter .chip.region-chip { font-weight: 600; }
/* Region-colored active state for map filter */
.map-filter .chip.region-chip.Nord.active { background: var(--north); color: #0b1622; border-color: var(--north); }
.map-filter .chip.region-chip.Ost.active { background: var(--east); color: #0b1622; border-color: var(--east); }
.map-filter .chip.region-chip.Süd.active { background: var(--south); color: #0b1622; border-color: var(--south); }
.map-filter .chip.region-chip.West.active { background: var(--west); color: #0b1622; border-color: var(--west); }
.map-filter-count { font-size: 13px; color: var(--text-mute); margin-left: auto; font-weight: 500; }
#map {
  height: 480px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.leaflet-popup-content-wrapper { background: rgba(15,32,48,0.95); color: var(--text); border-radius: var(--r-sm); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border); }
.leaflet-popup-tip { background: rgba(15,32,48,0.95); }
.leaflet-popup-content { margin: 12px 14px; font-size: 13px; }
.leaflet-popup-content strong { color: var(--accent-2); font-size: 14px; }
.leaflet-popup-content small { color: var(--text-mute); }
.leaflet-popup-content a { display: inline-block; margin-top: 8px; background: var(--accent); color: var(--on-accent); padding: 6px 12px; border-radius: var(--r-xs); font-size: 12px; font-weight: 600; }
.leaflet-control-attribution { background: rgba(0,0,0,0.5) !important; color: #888 !important; }
.leaflet-control-attribution a { color: var(--text-dim) !important; }

/* ============================================================
   BEST NOW SECTION
   ============================================================ */
.best-now { max-width: 1400px; margin: 0 auto; padding: 30px 24px 16px; }
.section-header {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px;
  flex-wrap: wrap;
}
.section-header h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.section-header .badge {
  background: var(--accent-2); color: var(--bg-deep);
  font-size: 11px; padding: 3px 9px; border-radius: var(--r-xs);
  font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
/* "LIVE" tag — matches the red pulsing badge on the webcam previews
   so the live indicator is consistent across the whole site. */
.live-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--live); color: var(--live-ink);
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: var(--r-xs);
  box-shadow: 0 2px 8px rgba(255,122,122,0.4);
  align-self: center;
}
.live-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--live-ink); animation: pulse 1.5s infinite;
}
@media (prefers-reduced-motion: reduce) {
  .live-tag::before, .cam-viewport .live-badge::before { animation: none; }
}
.section-header .section-sub { color: var(--text-mute); font-size: 13px; margin-left: auto; }
.best-now-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.best-spot {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: var(--text);
  transition: all .2s;
  overflow: hidden;
}
.best-spot:hover { border-color: var(--accent); background: var(--surface-strong); transform: translateY(-2px); }
/* Remove-favourite star on favourites tiles */
.fav-remove {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: var(--gold); border: 0;
  font-size: 16px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.fav-remove:hover { background: rgba(0,0,0,0.78); }
/* When the tile has a webcam preview, remove outer padding & wrap content in body */
.best-spot.has-cam { padding: 0; gap: 0; }
.best-spot.has-cam .cam-viewport {
  aspect-ratio: 16/9;
  border-radius: 0;
}
/* Clicks on the cam preview navigate to the spot — never trigger play/pause/fullscreen */
.best-spot.has-cam .cam-viewport,
.best-spot.has-cam .cam-viewport video,
.best-spot.has-cam .cam-viewport iframe {
  pointer-events: none;
}
.best-spot-body {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 14px 14px;
}
.best-spot-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.best-spot-name { font-weight: 700; font-size: 16px; }
.best-spot-region {
  font-size: 10px; padding: 2px 7px; border-radius: var(--r-xs);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.best-spot-region.Nord { background: rgba(78,163,255,0.2); color: var(--north); }
.best-spot-region.Ost { background: rgba(54,214,196,0.2); color: var(--east); }
.best-spot-region.Süd { background: rgba(255,138,91,0.2); color: var(--south); }
.best-spot-region.West { background: rgba(193,119,255,0.2); color: var(--west); }

/* ============================================================
   LIVE WIND + WAVE WIDGETS
   ============================================================ */
.wind-widget {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
}
.wind-arrow-wrap {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
}
.wind-arrow { width: 22px; height: 22px; transition: transform .3s ease; }
.wind-arrow svg { width: 100%; height: 100%; display: block; }
.wind-data { flex: 1; min-width: 0; }
.wind-speed {
  font-size: 18px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap;
}
.wind-speed-unit { font-size: 11px; font-weight: 500; color: var(--text-mute); }
.wind-meta {
  font-size: 12px; color: var(--text-dim);
  margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap;
}
.wind-quality-pill {
  font-size: 11px; padding: 3px 8px; border-radius: var(--r-xs);
  font-weight: 700; white-space: nowrap;
  border: 1px solid currentColor;
  /* Solid dark fill (not translucent): guarantees >=4.5:1 for ALL wind-scale
     colours regardless of the surface the pill sits on (cards stack --surface
     over --bg-2, which pushed red/purple tiers down to ~2.7:1). */
  background: var(--bg-deep);
}
.wind-trend {
  font-size: 11px; font-weight: 700; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 2px;
}
.wind-trend.up { color: var(--green); }
.wind-trend.down { color: var(--text-mute); }
/* Region toolbar: favourites filter (left) + sort (right) */
.filters-inner--toolbar { justify-content: space-between; }
.fav-filter-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.04); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 7px 12px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.fav-filter-btn svg { width: 15px; height: 15px; }
.fav-filter-btn:hover { color: var(--gold); border-color: var(--gold); }
.fav-filter-btn.active { color: var(--gold); border-color: rgba(255,209,102,0.4); background: rgba(255,209,102,0.10); }
.fav-filter-btn.active svg { fill: var(--gold); }
/* Region page header dot (replaces former inline styles) */
.section-header--region { margin-bottom: 8px; }
.region-h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.region-intro { max-width: 760px; margin: 0 0 18px; color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }
.region-intro:empty { display: none; }
.region-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.region-dot.Nord { background: var(--north); }
.region-dot.Ost  { background: var(--east); }
.region-dot.Süd  { background: var(--south); }
.region-dot.West { background: var(--west); }
.wind-loading { font-size: 11px; color: var(--text-mute); display: flex; align-items: center; gap: 7px; }

/* ============================================================
   LOADING SPINNER — a spinning brand camera-ring (from the logo).
   Single source: change `.spinner` and every loading state follows.
   Used as <span class="spinner"> and via the ::before/::after below.
   ============================================================ */
@keyframes ds-spin { to { transform: rotate(360deg); } }
@keyframes ds-bounce { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
@keyframes ds-pulse { 0%, 100% { transform: scale(.82); opacity: .55; } 50% { transform: scale(1); opacity: 1; } }
.spinner, .wind-loading::before, .cam-viewport .cam-skeleton::after {
  content: ""; display: inline-block; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(from 0deg, transparent 6%, var(--brand-blue) 55%, var(--accent) 92%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 3px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, #0000 calc(100% - 3px), #000 calc(100% - 3px));
  animation: ds-spin .85s linear infinite;
}
.spinner { width: 22px; height: 22px; }
.spinner.sm { width: 15px; height: 15px; }
.spinner.lg { width: 34px; height: 34px; }
.wind-loading::before { width: 14px; height: 14px;
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 2.5px), #000 calc(100% - 2.5px));
          mask: radial-gradient(farthest-side, #0000 calc(100% - 2.5px), #000 calc(100% - 2.5px)); }
.cam-viewport .cam-skeleton::after { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px; }
/* a centred text + spinner block for bigger loading areas */
.loading-block { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px; color: var(--text-mute); font-size: 13px; }
/* design-system alternatives */
.spinner-dots { display: inline-flex; gap: 5px; align-items: center; }
.spinner-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-blue); display: inline-block; animation: ds-bounce 1s infinite ease-in-out; }
.spinner-dots i:nth-child(2) { background: var(--accent); animation-delay: .15s; }
.spinner-dots i:nth-child(3) { background: var(--wind); animation-delay: .3s; }
.spinner-sail { display: inline-flex; width: 30px; height: 30px; }
.spinner-sail svg { width: 100%; height: 100%; transform-origin: center; animation: ds-pulse 1.1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .spinner, .wind-loading::before, .cam-viewport .cam-skeleton::after { animation-duration: 2.4s; }
  .spinner-dots i, .spinner-sail svg { animation-duration: 2.4s; }
}

/* Wave widget (only for wave spots) */
.wave-widget {
  display: flex; align-items: center; gap: 10px;
  background: rgba(110,187,255,0.07);
  border: 1px solid rgba(110,187,255,0.18);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  color: var(--wave);
}
.wave-icon { width: 28px; height: 28px; flex-shrink: 0; opacity: 0.85; }
.wave-icon svg { width: 100%; height: 100%; }
.wave-height { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.wave-unit { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.55); margin-left: 2px; }
.wave-meta { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filters {
  position: sticky; top: 57px; z-index: 90;
  background: rgba(10,22,35,0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
}
.filters-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 11px 24px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.filter-label {
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-mute); font-weight: 600;
}
.chip {
  padding: 7px 12px; border-radius: var(--r-sm);
  background: var(--surface); color: var(--text-dim);
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 600;
  cursor: pointer; user-select: none;
  transition: all .15s ease;
  min-height: var(--tap); min-width: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active { background: var(--wind); color: var(--bg-deep); border-color: var(--wind); }

/* ============================================================
   SPOT GRID
   ============================================================ */
main {
  max-width: 1400px; margin: 0 auto;
  padding: 24px 24px 60px;
}
.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.spot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .2s ease;
  position: relative;
}
.spot-card:hover { border-color: var(--border-strong); }
.spot-card.hidden { display: none; }
.spot-card.q-top { box-shadow: 0 0 0 1px var(--accent-2), 0 8px 32px rgba(54,214,196,0.18); }
.spot-card.q-good { box-shadow: 0 0 0 1px var(--green); }
.spot-card.is-fav-card { border-color: rgba(255,209,102,0.35); }
/* Hash-Navigation Highlight Pulse (when arriving via #slug from index page) */
.spot-card.is-highlighted {
  animation: spotPulse 2.4s ease-out;
  position: relative; z-index: 5;
}
@keyframes spotPulse {
  0%   { box-shadow: 0 0 0 0   rgba(54,214,196,0); }
  15%  { box-shadow: 0 0 0 4px var(--accent), 0 0 60px rgba(54,214,196,0.5); }
  60%  { box-shadow: 0 0 0 3px var(--accent), 0 0 30px rgba(54,214,196,0.35); }
  100% { box-shadow: 0 0 0 0   rgba(54,214,196,0); }
}
@media (prefers-reduced-motion: reduce) {
  .spot-card.is-highlighted { animation: none; box-shadow: 0 0 0 3px var(--accent); }
}
.spot-card.is-fav-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  z-index: 1;
}

/* Cam viewport */
.cam-viewport {
  aspect-ratio: 16/9;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.6) 100%),
              linear-gradient(135deg, #1a3550 0%, var(--bg) 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cam-viewport video, .cam-viewport iframe {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  border: 0; background: #000;
  object-fit: cover;
}
.cam-viewport.is-link { cursor: pointer; transition: filter .2s; }
.cam-viewport.is-link:hover { filter: brightness(1.15); }
.cam-viewport .live-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--live); color: var(--live-ink);
  font-size: 11px; font-weight: 800;
  padding: 3px 8px; border-radius: var(--r-xs);
  letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 5px;
  box-shadow: 0 2px 8px rgba(255,122,122,0.45);
}
.cam-viewport .live-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--live-ink); animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.cam-viewport .provider-tag {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  background: rgba(0,0,0,0.55); color: rgba(255,255,255,0.85);
  font-size: 10px; padding: 3px 7px; border-radius: var(--r-xs);
  letter-spacing: 0.02em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cam-viewport .cam-skeleton {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.04) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.cam-viewport .link-overlay {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: white; text-align: center; padding: 20px;
}
.cam-viewport .play-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: all .2s;
}
.cam-viewport.is-link:hover .play-circle { background: var(--accent); border-color: var(--accent); transform: scale(1.1); }
.cam-viewport .play-circle svg { width: 22px; height: 22px; fill: white; margin-left: 3px; }
.cam-viewport .link-text { font-size: 13px; font-weight: 600; }

/* Spot body — compact by default */
.spot-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.spot-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.spot-head h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; flex: 1; }
/* Cam fullscreen button (top-right of viewport) */
.cam-fs-btn {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 30px; height: 30px;
  background: rgba(0,0,0,0.55); color: white;
  border: 0; border-radius: var(--r-xs); padding: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .15s, background .15s;
}
.cam-viewport:hover .cam-fs-btn, .cam-fs-btn:focus-visible { opacity: 1; }
@media (hover: none) { .cam-fs-btn { opacity: 1; } }
.cam-fs-btn:hover { background: var(--accent); }
.cam-fs-btn svg { width: 16px; height: 16px; }
.cam-viewport video, .cam-viewport iframe { cursor: pointer; }
/* Tap layer: whole image opens fullscreen. Above the video/iframe (which
   would swallow the tap), below the icon button. */
.cam-tap { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; cursor: pointer; background: transparent; }
.cam-viewport .live-badge, .cam-viewport .provider-tag, .cam-viewport .cam-skeleton { pointer-events: none; }
.cam-viewport.cam-offline .cam-tap, .fs-content .cam-tap { display: none; }
/* Fallback for browsers without aspect-ratio (iOS < 15): keep a 16:9 box via
   the padding-bottom technique so cam viewports never collapse to zero height.
   Scoped to in-grid viewports so the fullscreen clone is unaffected. */
@supports not (aspect-ratio: 1 / 1) {
  .spot-card .cam-viewport, .best-spot .cam-viewport { height: 0; padding-bottom: 56.25%; }
}
.cam-viewport:hover .provider-tag { opacity: 0; }

/* Expand / collapse toggle — full-width, clearly tappable even in poor light. */
.expand-btn {
  margin-top: 8px; width: 100%;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text-dim); font-size: 13px; font-weight: 600;
  padding: 0 14px; min-height: 42px; border-radius: var(--r-sm);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: color .15s, border-color .15s, background .15s;
  letter-spacing: 0.01em;
}
.expand-btn:hover { color: var(--text); border-color: var(--accent); background: var(--surface-strong); }
/* Chevron in the teal accent → high contrast, reads clearly as the affordance. */
.expand-btn .expand-chevron { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; transition: transform .25s; }
.spot-card[data-expanded="true"] .expand-btn { color: var(--text); background: var(--surface-strong); }
.spot-card[data-expanded="true"] .expand-chevron { transform: rotate(180deg); }

/* Expanded details (hidden by default) */
.spot-details { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; border-top: 1px dashed var(--border); margin-top: 2px; }
.spot-details[hidden] { display: none; }

/* Forecast block (inline) */
.forecast-block { margin-top: 8px; }
.forecast-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.forecast-title {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.forecast-title svg { width: 13px; height: 13px; opacity: 0.85; flex-shrink: 0; }
.forecast-content { min-height: 60px; }

/* ============================================================
   REGION CARD DECLUTTER — meteogram panel, secondary CTA, bottom action bar
   ============================================================ */
.spot-forecast { margin-top: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 12px 10px; }
/* On region cards show just the meteogram bars — no scale/legend footer
   (the full legend lives on the spot detail page). */
.spot-forecast .mg-foot { display: none; }

/* Secondary CTA (NOT filled — filled = active/selected in the DS). */
.spot-cta {
  width: 100%;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong);
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  padding: 0 14px; min-height: var(--tap); border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: color .15s, border-color .15s, background .15s;
}
.spot-cta:hover { color: var(--text); border-color: var(--accent); background: var(--surface-strong); }
.spot-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.spot-cta .spot-cta-ic { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; transition: transform .15s; }
.spot-cta:hover .spot-cta-ic { transform: translateX(2px); }

/* Bottom action bar: primary CTA + utility icons (directions/share/embed/fav),
   moved out of the cramped title row. margin-top:auto pins it to the card
   bottom, so all cards in a grid row end at the same height even when the
   forecast/wave content above differs. */
.spot-actions { display: flex; align-items: stretch; gap: 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.spot-actions .spot-cta { flex: 1 1 150px; margin-top: 0; }
.spot-tools { display: flex; align-items: stretch; gap: 6px; flex-shrink: 0; }
.spot-tools > button { height: var(--tap); }

/* Native inline forecast — labeled hourly grid (Windguru-style).
   A sticky row-label column on the left names every value; hours scroll as columns.
   Row heights are fixed so the label column and the hour cells stay aligned. */
.fc-loading { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; color: var(--text-mute); font-size: 13px; }
.fc-strip {
  display: flex; align-items: flex-start; gap: 0;
  overflow-x: auto; padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
/* scrollbar styling: see the global DS scrollbar block at the top */

/* Sticky label column */
.fc-labels {
  position: sticky; left: 0; z-index: 3; flex: 0 0 auto;
  display: flex; flex-direction: column;
  padding: 0 9px 0 2px; margin-right: 5px;
  background: var(--bg-2); border-right: 1px solid var(--border);
}
.fc-l-row { display: flex; align-items: center; white-space: nowrap; font-size: 11px; font-weight: 600; color: var(--text-dim); }
.fc-l-row small { font-size: 9px; font-weight: 500; color: var(--text-mute); margin-left: 3px; }
.fc-l-day  { height: 22px; }
.fc-l-time { height: 22px; }
.fc-l-dir  { height: 20px; }
.fc-l-wind { height: 26px; color: var(--text); }
.fc-l-gust { height: 18px; }
.fc-l-wave { height: 18px; color: var(--wave); }

.fc-day { flex: 0 0 auto; }
.fc-day + .fc-day { margin-left: 14px; }
.fc-day-label { height: 22px; display: flex; align-items: center; font-size: 11px; font-weight: 700; color: var(--text); text-transform: capitalize; }
.fc-hours { display: flex; gap: 3px; }
.fc-hour {
  flex: 0 0 auto; width: 36px;
  display: flex; flex-direction: column; align-items: center;
  border-radius: var(--r-xs); background: rgba(255,255,255,0.025);
}
.fc-hour .fc-r { display: flex; align-items: center; justify-content: center; width: 100%; line-height: 1; }
.fc-hour .fc-time  { height: 22px; font-size: 11px; font-weight: 600; color: var(--text-dim); }
.fc-hour .fc-dir   { height: 20px; }
.fc-hour .fc-speed { height: 26px; font-size: 15px; font-weight: 700; }
.fc-hour .fc-gust  { height: 18px; font-size: 11px; color: var(--text-mute); }
.fc-hour .fc-wave  { height: 18px; font-size: 11px; font-weight: 600; color: var(--wave); }
.fc-arrow, .fc-arrow-empty { width: 14px; height: 14px; }
.fc-hour.is-good { background: rgba(66,194,95,0.12); }
.fc-hour.is-now  { background: rgba(54,214,196,0.16); outline: 1px solid rgba(54,214,196,0.5); }

.forecast-ext {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border);
}
.forecast-ext-label { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.05em; }
.forecast-extlink {
  font-size: 12px; color: var(--text-dim);
  padding: 4px 9px; border-radius: var(--r-xs);
  background: var(--surface); border: 1px solid var(--border);
  transition: color .15s, border-color .15s;
}
.forecast-extlink:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.forecast-unavail {
  padding: 16px; background: var(--bg-2); border-radius: var(--r-sm);
  border: 1px dashed var(--border); text-align: center;
}
.forecast-unavail p { margin: 0; color: var(--text-mute); font-size: 13px; }
.spot-head-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.region-badge {
  font-size: 10px; padding: 3px 8px; border-radius: var(--r-xs);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap;
}
.region-badge.Nord { background: rgba(78,163,255,0.18); color: var(--north); border: 1px solid rgba(78,163,255,0.3); }
.region-badge.Ost { background: rgba(54,214,196,0.18); color: var(--east); border: 1px solid rgba(54,214,196,0.3); }
.region-badge.Süd { background: rgba(255,138,91,0.18); color: var(--south); border: 1px solid rgba(255,138,91,0.3); }
.region-badge.West { background: rgba(193,119,255,0.18); color: var(--west); border: 1px solid rgba(193,119,255,0.3); }

/* Wind-indicator badge (W5): sheltered bays / scenery cams — honest labelling */
.indicator-badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  background: rgba(152,170,191,0.14); color: var(--text-dim);
  border: 1px dashed var(--border-strong);
  white-space: nowrap;
}

/* Share button */
.share-btn {
  width: var(--tap); height: var(--tap);
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text-mute);
  cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.share-btn svg { width: 15px; height: 15px; }
.share-btn:hover { color: var(--accent); border-color: var(--accent); }

.geo-btn {
  width: var(--tap); height: var(--tap);
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text-mute);
  cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s, border-color .15s;
}
.geo-btn svg { width: 16px; height: 16px; }
.geo-btn:hover { color: var(--accent); border-color: var(--accent); }

/* Location & route sheet */
.geo-sheet { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.geo-sheet[hidden] { display: none; }
.geo-backdrop { position: absolute; inset: 0; background: rgba(4,12,20,0.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.geo-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-height: 90vh; overflow-y: auto;
}
.geo-close {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 18px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.geo-close:hover { color: var(--text); }
.geo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 28px 12px 0; }
.geo-head h3 { margin: 0; font-size: 18px; }
.geo-sub { margin: 3px 0 0; font-size: 12px; color: var(--text-mute); }
.geo-coords { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.geo-map { height: 240px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.geo-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.geo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.geo-action {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600;
  padding: 9px 13px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.geo-action svg { width: 16px; height: 16px; flex-shrink: 0; }
.geo-action:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.geo-action.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); flex: 1 1 100%; justify-content: center; }
.geo-action.primary:hover { color: var(--on-accent); filter: brightness(1.06); }

/* Last-updated timestamp */
.wind-ts {
  color: var(--text-mute); font-size: 11px;
  margin-left: auto;
}
.wind-ts.is-forecast { color: var(--accent); }

/* Stream offline overlay */
.cam-viewport.cam-offline { background: linear-gradient(135deg, #2a1f1f 0%, #1a0f0f 100%); }
.cam-viewport.cam-offline video, .cam-viewport.cam-offline iframe { display: none; }
.cam-viewport .live-badge.is-offline {
  background: var(--surface-strong); color: var(--text-dim);
  box-shadow: none; letter-spacing: 0.04em;
}
.cam-viewport .live-badge.is-offline::before { display: none; }
.cam-viewport.cam-offline .cam-skeleton { display: none; }
.cam-offline-msg {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: rgba(255,200,200,0.7); font-size: 13px; font-weight: 500;
  z-index: 2;
}
.cam-offline-msg svg { opacity: 0.6; }

/* API error banner (bottom of viewport) */
.api-error-banner {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(229,62,62,0.95); color: white;
  padding: 10px 16px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 2000; max-width: calc(100% - 24px);
}
.api-retry-btn {
  background: white; color: #c0392b;
  border: 0; padding: 4px 10px; border-radius: var(--r-xs);
  font-weight: 700; cursor: pointer; font-size: 12px;
}

/* SW update banner */
.update-banner {
  position: fixed; bottom: 12px; right: 12px;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 1900;
}
.update-reload-btn {
  background: var(--on-accent); color: #fff;
  border: 0; padding: 4px 10px; border-radius: var(--r-xs);
  font-weight: 700; cursor: pointer; font-size: 12px;
}

/* iOS A2HS banner */
.a2hs-banner {
  position: fixed; bottom: 12px; left: 12px; right: 12px;
  max-width: 480px; margin: 0 auto;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  padding: 14px 16px; border-radius: var(--r-md);
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 1800; animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translateY(120%); opacity: 0; } to { transform: none; opacity: 1; } }
.a2hs-body { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.a2hs-body strong { color: var(--accent-2); font-size: 14px; font-weight: 700; }
.a2hs-body span { color: var(--text-dim); font-size: 12px; }
.a2hs-close {
  background: transparent; border: 0; color: var(--text-mute);
  font-size: 24px; cursor: pointer; padding: 4px 10px; line-height: 1;
  min-width: var(--tap); min-height: var(--tap);
}
.a2hs-close:hover { color: var(--text); }

/* Toast */
.toast {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--accent-2); color: var(--bg-deep);
  padding: 10px 18px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 13px;
  opacity: 0; pointer-events: none;
  transition: all .2s ease;
  z-index: 2100; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.toast.visible { opacity: 1; transform: translateX(-50%); }

/* Legal page */
.legal-page {
  max-width: 760px; margin: 0 auto;
  padding: 32px 24px 60px;
}
.legal-page h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 24px; }
.legal-page h2 { font-size: 22px; font-weight: 700; margin: 28px 0 12px; }
.legal-page h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; color: var(--accent-2); }
.legal-page p { color: var(--text-dim); line-height: 1.7; margin: 0 0 12px; }
.legal-page ul { color: var(--text-dim); line-height: 1.7; padding-left: 22px; margin: 0 0 12px; }
.legal-page li { margin-bottom: 4px; }
.legal-page code {
  background: var(--surface); padding: 2px 6px; border-radius: var(--r-xs);
  font-size: 0.9em; border: 1px solid var(--border);
}
.legal-toc {
  display: flex; gap: 18px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); margin-bottom: 30px;
  font-size: 14px; font-weight: 600;
}
.legal-section { scroll-margin-top: 80px; }

/* Favorite star */
.fav-btn {
  width: var(--tap); height: var(--tap);
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text-mute);
  cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.fav-btn svg { width: 16px; height: 16px; transition: transform .15s; }
.fav-btn:hover { color: var(--gold); border-color: var(--gold); }
.fav-btn.is-fav { color: var(--gold); border-color: rgba(255,209,102,0.3); background: rgba(255,209,102,0.08); }
.fav-btn.pop svg { animation: starPop .35s ease; }
@keyframes starPop { 0% { transform: scale(1); } 40% { transform: scale(1.4) rotate(-12deg); } 100% { transform: scale(1) rotate(0); } }

/* Ideal wind directions — labeled so users know what they are; the chip the
   wind is currently blowing from turns green (meaningful, not just decorative). */
.wind-tags-block { display: flex; flex-direction: column; gap: 5px; }
.wind-tags-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: 0.04em; cursor: help;
}
.wind-tags-label svg { width: 13px; height: 13px; opacity: 0.85; flex-shrink: 0; }
.wind-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.wind-tag {
  font-size: 12px; padding: 3px 9px; border-radius: var(--r-xs);
  background: var(--surface); color: var(--text-dim);
  border: 1px solid var(--border-strong);
  font-weight: 700; letter-spacing: 0.02em;
}
.wind-tag.is-active {
  background: rgba(66,194,95,0.16); color: var(--green);
  border-color: rgba(66,194,95,0.5);
}

.spot-desc { color: var(--text-dim); font-size: 13px; margin: 0; line-height: 1.5; }

/* Per-spot info: titled section at the bottom of the expanded card (after the
   live forecast). No frame — reads like the forecast section above it. Only the
   rules/hazards notices get a coloured callout. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.spot-info { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.info-wind { display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.info-wind-range { font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.info-title {
  display: inline-flex; align-items: center; gap: 5px; margin: 0;
  font-size: 11px; font-weight: 600; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.info-title svg { width: 13px; height: 13px; opacity: 0.85; flex-shrink: 0; }
.spot-info .spot-desc { margin: 0; }
/* facts: label (top-aligned) + value */
.info-facts { display: flex; flex-direction: column; gap: 9px; }
.info-fact { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: start; }
.info-key {
  color: var(--text-dim); font-weight: 600; padding-top: 2px;
  text-transform: uppercase; letter-spacing: 0.03em; font-size: 10.5px;
}
.info-ic { width: 15px; height: 15px; flex-shrink: 0; }
.info-val { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); }
.info-val .info-ic { color: var(--text-dim); }
/* sports: allowed (green check) vs banned (red strike) */
.info-sports { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; }
.info-sport { display: inline-flex; align-items: center; gap: 5px; color: var(--text); }
.info-sport.is-banned { color: var(--accent-hot); text-decoration: line-through; text-decoration-color: rgba(255,91,138,0.6); }
.info-ic-ok, .info-ic-no { display: inline-flex; }
.info-ic-ok .info-ic { width: 14px; height: 14px; color: var(--green); }
.info-ic-no .info-ic { width: 14px; height: 14px; color: var(--accent-hot); }
/* access: icon rows in a compact grid */
.info-acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.info-acc { display: flex; align-items: center; gap: 7px; }
.info-acc .info-ic { width: 17px; height: 17px; color: var(--text-dim); }
.info-acc-t { display: flex; flex-direction: column; line-height: 1.25; }
.info-acc-l { font-size: 10.5px; color: var(--text-dim); }
.info-acc-v { font-size: 12px; color: var(--text); }
.info-acc.is-warn .info-ic { color: var(--accent-hot); }
.info-acc.is-warn .info-acc-v { color: var(--accent-hot); font-weight: 600; }
/* camper row carrying detail tags spans the full width and aligns to the top */
.info-acc.has-chips { align-items: flex-start; grid-column: 1 / -1; }
.info-acc.has-chips > .info-ic { margin-top: 1px; }
.camper-limits { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 5px; }
.camper-limit { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 1.5px 7px 1.5px 5px; line-height: 1.45; }
.camper-limit .info-ic { width: 12px; height: 12px; color: var(--text-mute); }
.camper-limit.is-pos { color: var(--green); border-color: rgba(66,194,95,0.35); }
.camper-limit.is-pos .info-ic { color: var(--green); }
/* notices: highlighted callouts for rules + hazards (the only boxed elements) */
.info-note {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 8px 10px; border-radius: var(--r-xs);
  background: rgba(255,91,138,0.08); border: 1px solid rgba(255,91,138,0.22);
}
.info-note-ic { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; color: var(--accent-hot); }
.info-note-body { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; line-height: 1.45; }
.info-note-key {
  font-weight: 700; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--accent-hot);
}
.info-note-text { color: var(--text); }
.info-foot { font-size: 10.5px; color: var(--text-dim); font-style: italic; line-height: 1.4; }
.info-report { font-style: normal; color: var(--accent); white-space: nowrap; }
.info-report:hover { color: var(--accent-hover); }

/* In-site camera angle switcher (under the player) */
.cam-switch {
  display: flex; gap: 6px;
  padding: 8px 8px 2px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.cam-switch-btn {
  flex: 0 0 auto; white-space: nowrap;
  font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04); color: var(--text-dim);
  border: 1px solid var(--border); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  min-height: var(--tap);
}
.cam-switch-btn:hover { color: var(--text); border-color: var(--accent); }
.cam-switch-btn.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.cam-switch-btn.is-ext { border-style: dashed; }
/* Single-cam chip: keeps the switcher row (and with it the card alignment
   across a grid row). It carries .active — the one cam IS the selected one —
   and is a <span>, so give it the button's box model for correct centering. */
.cam-switch-btn.is-single { pointer-events: none; cursor: default; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.cam-switch-btn .ext-ic { font-size: 11px; opacity: 0.7; margin-left: 4px; }


/* ============================================================
   FULLSCREEN OVERLAY (fallback when native FS API not available)
   ============================================================ */
.fs-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1500;
  background: rgba(0,0,0,0.95);
  display: none; align-items: center; justify-content: center;
  padding: 0;
}
.fs-overlay.active { display: flex; }
.fs-overlay .fs-close {
  position: absolute; top: 16px; right: 20px;
  background: rgba(255,255,255,0.1); color: white;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center; z-index: 10;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.fs-overlay .fs-close:hover { background: rgba(255,255,255,0.2); }
.fs-content { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; }
.fs-content .cam-viewport {
  flex: 1 1 auto; width: 100%; height: auto; min-height: 0;
  max-width: none; aspect-ratio: auto;
  border-radius: 0; background: black;
}
.fs-content .cam-fs-btn, .fs-content .cam-tap { display: none; }

/* Control bar at the top of fullscreen: spot name + in-fullscreen cam switcher */
.fs-bar {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 64px 14px 20px;   /* right padding clears the round close button */
  background: linear-gradient(180deg, rgba(0,0,0,0.6), transparent);
}
.fs-title { color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.fs-switch { display: flex; gap: 6px; flex-wrap: wrap; }
/* .fs-switch-btn inherits .cam-switch-btn styling (surface + teal active) */
.fs-switch-btn { min-height: 36px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 24px; text-align: center;
  color: var(--text-mute); font-size: 13px;
  max-width: 1400px; margin: 40px auto 0;
}
footer.site a { color: var(--accent-2); }
footer.site p { margin: 4px 0; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-dim); display: none; }
.empty-state.visible { display: block; }
.empty-state h3 { margin: 0 0 8px; color: var(--text); }

/* ============================================================
   MOBILE — < 700px
   ============================================================ */
@media (max-width: 700px) {
  .nav-inner { padding: 10px 14px; gap: 10px; }
  .logo-word { font-size: 16px; }
  .logo-tagline { font-size: 10px; }
  .logo-mark { width: 32px; height: 32px; }
  .nav-links {
    width: 100%; gap: 0;
    background: var(--bg-2);
    border-radius: var(--r-sm); padding: 3px;
    border: 1px solid var(--border);
    justify-content: space-between;
    flex-wrap: nowrap;
    order: 2;   /* region bar drops below the logo + language row */
  }
  /* Flatten the windrose into the bar on mobile: hide the compass, let the four
     regions become equal segments alongside Overview. */
  .windrose { display: contents; }
  /* compass = compact home segment; the four regions share the remaining width */
  .windrose-home { display: inline-flex; flex: 0 0 auto; width: 42px; height: 38px; border-radius: var(--r-sm); }
  .nav-link, .windrose .nav-link {
    padding: 7px 6px; font-size: 13px; flex: 1;
    justify-content: center;
    border-radius: var(--r-sm);
    min-height: 36px;
  }
  .nav-link.active, .windrose .nav-link.active {
    box-shadow: none !important;
    background: var(--accent); color: var(--on-accent);
  }
  .hdr-actions { order: 1; margin-left: auto; }   /* search + language on the top row, right of the logo */
  .hdr-search-panel { padding: 0 16px 10px; }
  .hdr-search-inner { margin-left: 0; max-width: none; }
  .spot-search-results { left: 16px; right: 16px; }

  .hero { padding: 24px 16px 4px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 14px; }

  .map-wrap { padding: 0 16px; margin-top: 16px; }
  #map { height: 320px; }

  .best-now { padding: 22px 16px 8px; }
  .section-header { gap: 8px; margin-bottom: 12px; }
  .section-header h2 { font-size: 18px; }
  .section-header .section-sub { font-size: 12px; margin-left: 0; flex-basis: 100%; }
  .best-now-grid { grid-template-columns: 1fr; gap: 10px; }

  .filters { top: 53px; }
  .filters-inner { padding: 10px 16px; gap: 8px; }
  .fc-region-controls { padding: 0 16px 10px; }
  .filter-label { width: 100%; }

  main { padding: 18px 16px 40px; }
  .spot-grid { grid-template-columns: 1fr; gap: 12px; }
  .spot-card { border-radius: var(--r-md); }
  .spot-head h3 { font-size: 16px; }
  .spot-body { gap: 6px; padding: 10px; }
  .wind-widget { padding: 8px 10px; gap: 9px; }
  .wind-arrow-wrap { width: 32px; height: 32px; }
  .wind-arrow { width: 18px; height: 18px; }
  .wind-speed { font-size: 16px; }
  .spot-desc { font-size: 13px; }
  .cam-switch-btn { font-size: 12px; padding: 4px 9px; }
  .fc-hour { width: 36px; }
  .sort-wrap { width: 100%; justify-content: flex-end; }

  footer.site { padding: 22px 16px; font-size: 12px; }
}

/* Stack the spot-info facts (access / on-site) on phones so long German
   values like "kostenpflichtig" don't get squeezed in a 2-column grid. */
@media (max-width: 480px) {
  .info-acc-grid { grid-template-columns: 1fr; }
}

/* Very small screens */
@media (max-width: 380px) {
  .hero h1 { font-size: 22px; }
  .chip { padding: 6px 9px; min-width: 32px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   SEO / no-JS fallback block (#ssr-seo) — progressive enhancement.
   Injected right after <body> by tools/build-i18n.js with crawlable,
   localized text (region intro + per-spot content). It is REAL visible
   content for no-JS visitors; an inline script marks JS-capable browsers
   with the .js class on <html>, which hides the block instantly (the app
   then renders the same information interactively and removes the node).
   ============================================================ */
.js #ssr-seo { display: none !important; }
#ssr-seo { max-width: 860px; margin: 0 auto; padding: 24px 16px; }
#ssr-seo h1, #ssr-seo h2 { color: var(--text); }
#ssr-seo h3 { color: var(--accent); margin-top: 28px; }
#ssr-seo p { color: var(--text-dim); line-height: 1.55; }
#ssr-seo nav { margin-top: 24px; }
#ssr-seo a { color: var(--accent); }

/* ============================================================
   EMBED WIDGET — "Einbetten" button + code sheet (partner embeds).
   Trigger mirrors .share-btn/.geo-btn; sheet reuses DS tokens.
   ============================================================ */
.embed-btn {
  width: var(--tap); height: var(--tap);
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text-mute);
  cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s, border-color .15s;
}
.embed-btn svg { width: 16px; height: 16px; }
.embed-btn:hover { color: var(--accent); border-color: var(--accent); }

.embed-sheet-backdrop { position: fixed; inset: 0; background: rgba(4,10,20,.6);
  display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 18px; }
.embed-sheet { background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--r-md); width: min(460px,100%); max-height: 90vh; overflow: auto;
  padding: 16px; color: var(--text); box-shadow: var(--shadow-card); }
.embed-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.embed-sheet-head h3 { margin: 0; font-size: 16px; }
.embed-x { background: transparent; border: 0; color: var(--text-dim); font-size: 22px; line-height: 1; cursor: pointer; }
.embed-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.embed-opt { display: flex; gap: 9px; align-items: flex-start; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 10px 11px; cursor: pointer; color: var(--text); }
.embed-opt.is-sel { border-color: var(--accent); background: rgba(54,214,196,.08); }
.embed-opt-ic { flex: none; width: 18px; height: 18px; color: var(--accent); }
.embed-opt-ic svg { width: 18px; height: 18px; }
.embed-opt b { display: block; font-size: 13px; }
.embed-opt small { display: block; font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.embed-code { width: 100%; background: var(--bg-deep); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 11px;
  font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.embed-hint { font-size: 11.5px; color: var(--text-mute); margin: 10px 0 0; }
.embed-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.embed-btn2 { border: 1px solid var(--border); background: transparent; color: var(--text-dim);
  border-radius: var(--r-sm); padding: 8px 14px; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.embed-btn2.pri { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
@media (max-width: 520px) { .embed-opts { grid-template-columns: 1fr; } }

/* ============================================================
   SPOT PAGES (/spots/<slug>.html) — hero, live panel, meteogram,
   FAQ, related spots. Uses only design-system tokens.
   ============================================================ */
.sp-main { max-width: 1080px; margin: 0 auto; padding: 14px 16px 44px; }

.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 13px; color: var(--text-mute); margin: 6px 0 14px; }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--accent-hover); }
.crumb-sep { opacity: .55; }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }

.sp-hero { margin-bottom: 16px; }
.sp-hero-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp-hero h1 { margin: 0; font-size: clamp(26px, 4.5vw, 38px); line-height: 1.12; letter-spacing: -0.3px; }
.sp-lead { margin: 8px 0 0; color: var(--text-dim); font-size: 15px; max-width: 72ch; }
.sp-actions { display: flex; gap: 6px; margin-top: 12px; }

.sp-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: stretch; margin-bottom: 18px; }
@media (max-width: 860px) { .sp-grid { grid-template-columns: 1fr; } }

.sp-cam { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-card); }
.sp-cam .cam-viewport { aspect-ratio: 16/9; border-radius: 0; }
.sp-cam .cam-switch { padding: 8px 10px; }

.sp-live { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.sp-sec-title { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .2px; }
.sp-wind { margin: 0; }
.sp-wind .wind-speed { font-size: 32px; }
/* Scale the WRAP + arrow box (not the svg) so the glyph stays centred:
   the svg fills .wind-arrow (100%), and the rotation pivots on its centre. */
.sp-wind .wind-arrow-wrap { width: 46px; height: 46px; }
.sp-wind .wind-arrow { width: 26px; height: 26px; }
.sp-ideal { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.sp-live .wave-widget { display: flex; }

.sp-forecast { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px 12px; margin-bottom: 18px; }

/* ---- Meteogram ---- */
/* The whole strip shares ONE background (--bg-2); the sticky label column
   uses the SAME colour, so it blends in seamlessly instead of reading as a
   separate block. (It needs a background at all only so the hour columns
   don't slide visibly underneath the labels while scrolling.) */
.mg-scroll { display: flex; overflow-x: auto; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 10px 10px 0; scroll-behavior: smooth; }
.mg-labels { position: sticky; left: 0; z-index: 2; flex: 0 0 auto; display: flex; flex-direction: column; padding: 0 10px; background: var(--bg-2); }
.mg-l { display: flex; align-items: center; justify-content: flex-start; white-space: nowrap; font-size: 11px; font-weight: 600; color: var(--text-dim); }
.mg-l small { font-size: 9px; font-weight: 500; color: var(--text-mute); margin-left: 3px; }
.mg-l-day { height: 26px; }
.mg-l-time { height: 20px; }
.mg-l-chart { height: 64px; }
.mg-l-dir { height: 20px; }
.mg-l-speed { height: 24px; }
.mg-l-gust { height: 18px; }
.mg-l-wave { height: 18px; color: var(--wave); }
.mg-days { display: flex; padding-left: 10px; }
.mg-day { flex: 0 0 auto; }
.mg-day + .mg-day { margin-left: 18px; padding-left: 14px; border-left: 1px dashed var(--border); }
.mg-day-head { display: flex; align-items: baseline; gap: 8px; height: 26px; white-space: nowrap; font-size: 12px; }
.mg-day-name { font-weight: 700; text-transform: capitalize; }
.mg-day-meta { color: var(--text-dim); font-size: 11px; }
.mg-day-gust { color: var(--text-mute); }
.mg-day-best { font-size: 11px; color: var(--accent); background: rgba(54,214,196,0.12); border: 1px solid rgba(54,214,196,0.3); border-radius: var(--r-xs); padding: 0 6px; line-height: 17px; }
.mg-hours { display: flex; gap: 2px; }
.mg-hour { width: 34px; display: flex; flex-direction: column; align-items: center; border-radius: var(--r-xs); }
.mg-hour.is-good { background: rgba(66,194,95,0.10); }
.mg-hour.is-now { background: rgba(54,214,196,0.14); outline: 1px solid rgba(54,214,196,0.5); }
.mg-r { display: flex; align-items: center; justify-content: center; width: 100%; line-height: 1; }
.mg-time { height: 20px; font-size: 10.5px; font-weight: 600; color: var(--text-dim); }
.mg-chart { position: relative; height: 64px; align-items: flex-end; }
.mg-gustbar { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 16px; opacity: 0.26; border-radius: 3px 3px 0 0; }
.mg-bar { position: relative; width: 16px; min-height: 2px; border-radius: 3px 3px 0 0; }
.mg-dir { height: 20px; }
.mg-speed { height: 24px; font-size: 14px; font-weight: 700; }
.mg-gust { height: 18px; font-size: 11px; color: var(--text-mute); }
.mg-wave { height: 18px; font-size: 11px; font-weight: 600; color: var(--wave); }
.mg-foot { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
.mg-scale { display: flex; flex-wrap: wrap; gap: 10px; }
.mg-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-dim); }
.mg-chip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.mg-legend { margin: 0; font-size: 11px; color: var(--text-mute); }
@media (max-width: 480px) { .mg-hour { width: 31px; } .mg-bar, .mg-gustbar { width: 14px; } }

/* ---- Spot guide (reuses .spot-info) gets a card frame on spot pages ---- */
.is-spot-page .spot-info { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; margin-bottom: 18px; }

/* ---- FAQ ---- */
.sp-faq { margin: 0 0 18px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 600; font-size: 14px; min-height: var(--tap); box-sizing: border-box; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--text-mute); font-size: 17px; flex: 0 0 auto; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { color: var(--accent-hover); }
.faq-a { padding: 0 14px 13px; color: var(--text-dim); font-size: 14px; }
.faq-a p { margin: 0; }

/* ---- Related spots ---- */
.sp-related { margin-bottom: 8px; }
.rel-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.rel-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 13px; min-height: 36px; }
.rel-chip:hover { border-color: var(--accent); color: var(--accent-hover); }
.rel-all { font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 600; }
.rel-all:hover { color: var(--accent-hover); }

/* ---- Region cards: spot name links to the spot page ---- */
.spot-head h3 .spot-title-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }
.spot-title-link .stl-ic { width: 15px; height: 15px; color: var(--text-mute); transition: transform .15s, color .15s; flex: 0 0 auto; }
.spot-title-link:hover { color: var(--accent-hover); }
.spot-title-link:hover .stl-ic { color: var(--accent); transform: translateX(2px); }

/* ---- Spot page: next good window, stats row, windrose, locator map ---- */
.sp-nextgood {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  background: rgba(54,214,196,0.08); border: 1px solid rgba(54,214,196,0.28);
  border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer;
  color: var(--text); font: inherit; min-height: var(--tap);
}
.sp-nextgood:hover { border-color: var(--accent); }
.sp-nextgood.is-none { background: var(--surface); border-color: var(--border); cursor: default; }
.sp-ng-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--accent); }
.sp-nextgood.is-none .sp-ng-label { color: var(--text-mute); }
.sp-ng-val { font-size: 14px; color: var(--text-dim); }
.sp-ng-val b { color: var(--text); font-weight: 700; }

.sp-stats { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) minmax(0, 1.6fr); gap: 8px; }
.sp-stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 9px 9px; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden;
}
.sp-stat-v { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Long values (sunrise–sunset, seasonal water range) get a compact size so
   nothing ever overflows its tile — same tile heights via line-height. */
.sp-stat-sun .sp-stat-v { font-size: 12.5px; line-height: 21px; letter-spacing: -.2px; }
.sp-stat-v[data-long] { font-size: 12.5px; line-height: 21px; letter-spacing: -.2px; }
.sp-stat-l { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--text-mute); }

.sp-rose-row { display: flex; align-items: center; gap: 14px; }
.sp-rose { width: 118px; height: 118px; flex: 0 0 auto; }
.sp-rose .rose-ring { fill: none; stroke: var(--border-strong); stroke-width: 1.5; }
.sp-rose .rose-tick { stroke: var(--border-strong); stroke-width: 1.5; }
.sp-rose .rose-sector { fill: rgba(54,214,196,0.16); stroke: rgba(54,214,196,0.4); stroke-width: 1; transition: fill .25s, stroke .25s; }
.sp-rose .rose-sector.is-live { fill: rgba(66,194,95,0.38); stroke: var(--green); }
.sp-rose .rose-letter { fill: var(--text-mute); font-size: 11px; font-weight: 700; font-family: inherit; }
.sp-rose .rose-hub { fill: var(--text-dim); }
.sp-rose .rose-needle { transition: transform .5s ease, opacity .3s; }
.sp-rose-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.sp-map { margin-bottom: 18px; }
.sp-map-box {
  height: 360px; margin-top: 12px; border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden; background: var(--bg-2);
  box-shadow: var(--shadow-card);
}
@media (max-width: 640px) { .sp-map-box { height: 300px; } }

/* ---- Similar spots: shared-direction hint + section subtitle ---- */
.sp-sec-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--text-mute); }
.rel-dirs { font-size: 10.5px; font-weight: 600; color: var(--text-mute); margin-left: 2px; }

/* Region pages: the forecast slider now lives directly in <main>
   (old sticky toolbar row removed — switch sits in the title header). */
main > .fc-controls { margin-bottom: 14px; }

/* ============================================================
   SPOT GUIDE (pg-*) — replaces the old .spot-info block on the
   per-spot pages (2026-07 redesign). Research-driven sections:
   sports states, per-direction wind behaviour, launch & on-site,
   rules & safety. Design approved via docs/spot-research-2026-07/
   prototyp-porto-pollo.html.
   ============================================================ */
.pg-sec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 18px; }
.pg-sec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pg-sec-head h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.pg-sec-head .pg-sub { font-size: 12.5px; color: var(--text-mute); }
.pg-sports { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pg-sport { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; border-radius: var(--r-sm); padding: 8px 13px; border: 1px solid var(--border); background: var(--surface); }
.pg-sport svg { width: 15px; height: 15px; flex: 0 0 auto; }
.pg-sport.is-ok { color: var(--green); border-color: rgba(66,194,95,.35); background: rgba(66,194,95,.08); }
.pg-sport.is-zone { color: var(--wind); border-color: rgba(255,181,71,.35); background: rgba(255,181,71,.08); }
.pg-sport.is-no { color: var(--accent-hot); border-color: rgba(255,91,138,.35); background: rgba(255,91,138,.07); }
.pg-sport small { font-weight: 500; font-size: 11px; opacity: .85; }
.pg-cond { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
@media (max-width: 760px) { .pg-cond { grid-template-columns: 1fr; } }
.pg-rose svg { width: 200px; height: 200px; }
.pg-rose .rose-ring { fill: none; stroke: var(--border-strong); stroke-width: 1.5; }
.pg-rose .rose-letter { fill: var(--text-mute); font-size: 11px; font-weight: 700; }
.pg-rose .sec-prime { fill: rgba(66,194,95,.45); stroke: var(--green); stroke-width: 1.2; }
.pg-rose .sec-good  { fill: rgba(54,214,196,.30); stroke: var(--accent); stroke-width: 1; }
.pg-rose .sec-usable{ fill: rgba(122,136,162,.25); stroke: var(--text-mute); stroke-width: 1; }
.pg-rose-legend { display: flex; gap: 12px; margin-top: 8px; font-size: 11px; color: var(--text-dim); flex-wrap: wrap; }
.pg-rose-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.pg-dirs { display: flex; flex-direction: column; gap: 8px; }
.pg-dir { display: grid; grid-template-columns: 44px 84px 110px 1fr; gap: 10px; align-items: baseline; padding: 9px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); }
@media (max-width: 760px) { .pg-dir { grid-template-columns: 44px 84px 1fr; } .pg-dir .pg-dir-type { display: none; } }
.pg-dir-d { font-weight: 800; font-size: 15px; }
.pg-pill { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; text-align: center; }
.pg-pill.prime { color: var(--green); background: rgba(66,194,95,.14); border: 1px solid rgba(66,194,95,.35); }
.pg-pill.good { color: var(--accent); background: rgba(54,214,196,.12); border: 1px solid rgba(54,214,196,.3); }
.pg-pill.usable { color: var(--text-dim); background: var(--surface-strong); border: 1px solid var(--border); }
.pg-dir-type { font-size: 12px; color: var(--text-dim); }
.pg-dir-note { font-size: 12.5px; color: var(--text-mute); }
/* Fact chips = static info: squared, muted, uppercase label — NOT clickable. */
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pg-chip { display: inline-flex; align-items: baseline; gap: 7px; font-size: 12.5px; color: var(--text-dim); background: var(--surface-strong); border-radius: var(--r-xs); padding: 6px 11px; }
.pg-chip b { color: var(--text-mute); font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.pg-launch { background: var(--surface-strong); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin-bottom: 12px; }
.pg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.pg-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 9px 11px; }
.pg-tile .pg-t-l { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--text-mute); }
.pg-tile .pg-t-v { font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.pg-tile .pg-t-v.is-warn { color: var(--accent-hot); }
.pg-limits { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.pg-limit { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--text-dim); background: var(--surface-strong); border: 1px solid var(--border); border-radius: var(--r-xs); padding: 2px 7px; }
/* School chips = LINKS: accent colour, external-link arrow, hover fill. */
.pg-schools { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.pg-school { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; background: transparent; border: 1px solid rgba(54,214,196,.4); border-radius: 999px; padding: 6px 12px; color: var(--accent); text-decoration: none; transition: all .15s; }
.pg-school::after { content: "↗"; font-size: 11px; opacity: .8; }
.pg-school.is-static { color: var(--text-dim); border-color: var(--border); }
.pg-school.is-static::after { content: none; }
.pg-school small { color: var(--text-mute); font-weight: 500; }
a.pg-school:hover { background: rgba(54,214,196,.12); color: var(--accent-hover); border-color: var(--accent); }
.pg-rules { display: flex; flex-direction: column; gap: 8px; }
.pg-rule { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-dim); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 12px; line-height: 1.5; }
.pg-rule svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--accent); margin-top: 2px; }
.pg-hazard { display: flex; gap: 10px; margin-top: 12px; background: rgba(255,91,138,.07); border: 1px solid rgba(255,91,138,.3); border-radius: var(--r-sm); padding: 12px 14px; font-size: 13.5px; color: var(--text-dim); }
.pg-hazard svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--accent-hot); margin-top: 1px; }
.pg-hazard b { color: var(--accent-hot); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 3px; }
.pg-crowd { margin-top: 12px; font-size: 13px; color: var(--text-dim); }
.pg-crowd a { color: var(--accent); text-decoration: none; }
.pg-crowd a:hover { color: var(--accent-hover); }
.pg-foot { font-size: 11.5px; color: var(--text-mute); margin-top: 14px; }

/* ---- Spot report form (fb-*) ---- */
.fb-sec { background: linear-gradient(135deg, rgba(54,214,196,.06), rgba(43,179,255,.04)), var(--surface); border: 1px solid rgba(54,214,196,.25); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 18px; }
.fb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.fb-head svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }
.fb-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.fb-sub { margin: 0 0 14px; font-size: 13px; color: var(--text-dim); }
.fb-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fb-cat { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); cursor: pointer; min-height: 36px; transition: all .15s; font-family: inherit; }
.fb-cat:hover { border-color: var(--accent); color: var(--text); }
.fb-cat.is-sel { border-color: var(--accent); background: rgba(54,214,196,.12); color: var(--accent); }
.fb-cat svg { width: 14px; height: 14px; }
.fb-input { width: 100%; box-sizing: border-box; background: var(--bg-deep); border: 1px solid var(--border-strong); border-radius: var(--r-sm); color: var(--text); font: inherit; font-size: 14px; padding: 11px 13px; }
.fb-input:focus { outline: none; border-color: var(--accent); }
.fb-input::placeholder { color: var(--text-mute); }
textarea.fb-input { min-height: 88px; resize: vertical; margin-bottom: 10px; }
.fb-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fb-row .fb-input { flex: 1 1 220px; }
.fb-send { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--on-accent); border: 0; border-radius: var(--r-sm); font: inherit; font-size: 14px; font-weight: 700; padding: 11px 20px; cursor: pointer; min-height: var(--tap); }
.fb-send:hover { background: var(--accent-hover); }
.fb-send:disabled { opacity: .55; cursor: default; }
.fb-note { margin: 10px 0 0; font-size: 11.5px; color: var(--text-mute); }
.fb-err { margin: 10px 0 0; font-size: 12.5px; color: var(--accent-hot); }
.fb-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.fb-success { display: flex; gap: 12px; align-items: flex-start; background: rgba(66,194,95,.08); border: 1px solid rgba(66,194,95,.3); border-radius: var(--r-sm); padding: 14px 16px; }
.fb-success svg { width: 22px; height: 22px; color: var(--green); flex: 0 0 auto; }
.fb-success b { color: var(--green); }
.fb-success p { margin: 2px 0 0; font-size: 13.5px; color: var(--text-dim); }

/* ---- DS: [hidden] must ALWAYS hide -------------------------------------
   Author-level display:flex/grid on a class otherwise overrides the UA's
   [hidden]{display:none} (this made the report-form success box show up
   permanently). Base rule, part of the design system. */
[hidden] { display: none !important; }

/* ---- Riviera switcher in the header nav (Sardinia <-> Fuerteventura) ---- */
/* Island selector — compact dropdown, mirrors the language switcher. */
.island-wrap { display: flex; align-items: center; gap: 6px; }
.island-pin { width: 16px; height: 16px; color: var(--accent-2); flex-shrink: 0; }
.island-select {
  padding: 6px 26px 6px 10px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; min-height: var(--tap);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398aabf' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}
.island-select:hover { border-color: var(--accent); }
.island-select:focus { outline: 0; border-color: var(--accent); }

/* ---- Spots without any webcam (FV has a few): calm placeholder viewport ---- */
.cam-viewport.is-nocam { background: var(--bg-deep); display: flex; align-items: center; justify-content: center; }
.cam-viewport.is-nocam .nocam-msg { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-mute); font-size: 12.5px; }

/* ============================================================
   HEADER HAMBURGER MENU
   Desktop keeps the inline search / island / language controls;
   on mobile (<=700px) search + language collapse into this menu
   and only the island pill stays visible next to the burger.
   ============================================================ */
.hdr-menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.hdr-menu-btn svg { width: 20px; height: 20px; }
.hdr-menu-btn:hover, .hdr-menu-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--text); }
.hdr-menu {
  position: absolute; top: 100%; right: 10px; z-index: 130;
  min-width: 232px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 6px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}
.hdr-menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: var(--tap); padding: 9px 10px;
  border: 0; border-radius: var(--r-sm);
  background: none; color: var(--text-dim);
  font: inherit; font-size: 14px; font-weight: 600; text-align: left;
  cursor: pointer; text-decoration: none;
}
.hdr-menu-item:hover { background: var(--surface); color: var(--text); }
.hdr-menu-item svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--accent-2); }
.hdr-menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.hdr-menu-langrow { display: flex; gap: 6px; padding: 4px; }
.hdr-menu-lang {
  flex: 1; min-height: 36px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text-dim);
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; cursor: pointer;
}
.hdr-menu-lang:hover { border-color: var(--accent); color: var(--text); }
.hdr-menu-lang.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

@media (max-width: 700px) {
  .logo-tagline { display: none; }        /* the hero h1 carries the tagline on phones */
  .hdr-search-btn, .lang-wrap { display: none; }   /* both live in the burger menu */
  .hdr-menu-btn { display: inline-flex; }
  .hdr-actions { gap: 8px; }
  .island-wrap { min-width: 0; }
  .island-select {
    font-size: 13px; padding: 6px 24px 6px 8px;
    border-radius: 999px;
    max-width: 146px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
}
@media (max-width: 380px) {
  .island-select { max-width: 118px; }
}

/* ============================================================
   OPERATOR CAM CREDIT + HD LINK
   For cams embedded under an operator agreement (reduced res,
   traffic back to the operator): visible credit line + HD button
   overlaid at the bottom of the viewport. Sits above .cam-tap
   (z-index 2); the bar itself passes taps through, only its
   links are clickable.
   ============================================================ */
.cam-credit {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 9px;
  background: linear-gradient(transparent, rgba(7,15,24,0.85) 45%);
  font-size: 11.5px; color: var(--text-dim);
  pointer-events: none;
}
.cam-credit a { pointer-events: auto; }
.cam-credit-by { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-credit-by a { color: var(--text); text-decoration: none; border-bottom: 1px dotted var(--text-mute); }
.cam-credit-by a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.cam-hd-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 11px; text-decoration: none;
  flex-shrink: 0;
}
.cam-hd-btn:hover { filter: brightness(1.08); }
.cam-hd-btn .ext-ic { font-size: 10px; }

/* Skyline photogram embeds (official 5-min still): image fills the viewport
   like video/iframe; neutral badge instead of the pulsing LIVE dot. */
.cam-viewport img.cam-photo {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  border: 0; background: #000;
  object-fit: cover; cursor: pointer;
}
.best-spot.has-cam .cam-viewport img.cam-photo { pointer-events: none; }
.cam-viewport .live-badge.is-photo { background: rgba(0,0,0,0.6); color: #fff; box-shadow: none; letter-spacing: 0.04em; }
.cam-viewport .live-badge.is-photo::before { display: none; }

/* ============================================================
   MODEL FACTOR CARDS — the meteorological reasoning behind a
   forecast (pressure gradients, upper-level flow, radiation,
   ensemble agreement). Ported verbatim from the calibrated
   Silvaplana page so both render identically.
   ============================================================ */
.sv-factors{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 4px}
@media(max-width:640px){.sv-factors{grid-template-columns:1fr}}
.sv-factor{background:var(--bg-2);border:1px solid var(--border);border-radius:var(--r-md);padding:11px 13px}
.sv-factor .fh{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-mute)}
.sv-factor .fv{font-size:14.5px;font-weight:700;margin:4px 0 2px;color:var(--text)}
.sv-factor .fx{font-size:12px;color:var(--text-mute)}
.sv-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}
.sv-dot.g{background:var(--green)}
.sv-dot.m{background:#e8c34a}
.sv-dot.b{background:#e2534a}
.sv-band{font-size:13px;color:var(--text-dim);margin-top:6px}
.sv-band b{color:var(--text)}
/* Pressure-gradient scale: red (blocked) -> green (open) -> yellow (too strong) */
.sv-scale{position:relative;height:12px;border-radius:6px;margin:8px 0 3px;
  background:linear-gradient(90deg,#e2534a 0%,#e8c34a 26%,#42c25f 46%,#42c25f 72%,#e8c34a 100%)}
.sv-scale-needle{position:absolute;top:-3px;width:3px;height:18px;border-radius:2px;
  background:var(--text);box-shadow:0 0 0 1px var(--bg-2)}
.sv-scale-ticks{display:flex;justify-content:space-between;font-size:10.5px;color:var(--text-mute)}
/* Hours the local wind model has corrected (thermal/foehn window) */
.mg-hour.is-modelled .mg-bar{box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}

/* ---- Home spot directory (visible, crawlable — soft-404 fix 2026-08-31).
   Lives at the end of <main> on the home page only; injected by build-i18n. ---- */
.site-directory { max-width: 1160px; margin: 48px auto 8px; padding: 26px 16px 6px; border-top: 1px solid var(--border); }
.site-directory > h2 { font-size: 17px; color: var(--text); margin: 0 0 6px; }
.site-directory > p { color: var(--text-dim); font-size: 13.5px; line-height: 1.55; margin: 0 0 10px; }
.dir-region h3 { font-size: 14px; margin: 18px 0 4px; }
.dir-region h3 a { color: var(--accent); text-decoration: none; }
.dir-region h3 a:hover { text-decoration: underline; }
.dir-region p { color: var(--text-dim); font-size: 12.5px; line-height: 1.5; margin: 0 0 6px; }
.dir-links { color: var(--text-mute); }
.dir-links a { color: var(--text-dim); text-decoration: none; white-space: nowrap; }
.dir-links a:hover { color: var(--accent); text-decoration: underline; }

/* ============================================================
   WINDKARTE (spot pages) — assets/windmap.js. Colour field + arrows in the
   wind-scale colours, timeline shared with the meteogram. Tokens only.
   ============================================================ */
.sp-windmap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px 12px; margin-bottom: 18px; }
.sp-windmap .forecast-head { margin-bottom: 4px; }
.wm-hint { margin: 0 0 10px; font-size: 12.5px; color: var(--text-mute); }
.wm-box { position: relative; min-height: 120px; }
.wm-map { position: relative; z-index: 0; isolation: isolate; height: 380px; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-card); }
.wm-map.leaflet-container { background: var(--bg-2); font: inherit; }
.wm-map .leaflet-control-attribution { background: rgba(5,11,20,.7); color: var(--text-mute); font-size: 10px; }
.wm-map .leaflet-control-attribution a { color: var(--text-dim); }
@media (max-width: 640px) { .wm-map { height: 320px; } }
.wm-canvas { pointer-events: none; }
.wm-box.is-loading::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); background: rgba(5,11,20,.35); pointer-events: none; }
.wm-box.is-loading::before { content: ""; position: absolute; left: 50%; top: 150px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; border: 3px solid var(--border-strong); border-top-color: var(--accent); animation: wmspin .9s linear infinite; z-index: 500; pointer-events: none; }
@keyframes wmspin { to { transform: rotate(360deg); } }
.wm-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.wm-btn { height: 36px; min-width: 36px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: border-color .15s, color .15s, background .15s; }
.wm-btn:hover { border-color: var(--accent); color: var(--accent); }
.wm-btn.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.wm-readout { margin-left: auto; text-align: right; min-width: 0; }
.wm-time { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.15; }
.wm-sub { font-size: 11.5px; color: var(--text-mute); margin-top: 1px; }
.wm-mode { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; }
.wm-mode button { height: 34px; padding: 0 12px; background: transparent; border: 0; color: var(--text-dim); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.wm-mode button.is-active { background: var(--accent); color: var(--on-accent); }
.wm-layers { display: inline-flex; gap: 6px; }
.wm-btn-sm { height: 34px; min-width: 34px; padding: 0 11px; font-size: 12.5px; color: var(--text-dim); }
.wm-btn-sm svg { flex: none; }
.wm-particles { pointer-events: none; }
/* legend: gradient bar with the tier names as landmarks (smooth style) */
.wm-scale { align-items: center; }
.wm-grad { display: flex; flex-direction: column; flex: 1 1 240px; min-width: 200px; max-width: 560px; margin: 0 6px; }
.wm-grad-bar { height: 10px; border-radius: 5px; border: 1px solid var(--border); }
.wm-grad-names, .wm-grad-ticks { position: relative; height: 14px; font-size: 10.5px; color: var(--text-mute); }
.wm-grad-names { color: var(--text-dim); font-weight: 600; margin-bottom: 3px; }
.wm-grad-ticks { margin-top: 3px; }
.wm-grad-names span, .wm-grad-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; line-height: 14px; }
.wm-grad-ticks .wm-grad-unit { left: auto; right: -22px; transform: none; }
@media (max-width: 480px) { .wm-grad-names { font-size: 9.5px; } }
/* full-screen view: the whole box (map + controls + legend) fills the window */
.wm-box.is-full { position: fixed; inset: 0; z-index: 1600; margin: 0; padding: 10px 14px 14px; background: var(--bg); overflow: auto; }
.wm-box.is-full .wm-map { height: calc(100vh - 230px); height: calc(100dvh - 230px); }
body.wm-noscroll { overflow: hidden; }
.wm-full a { display: flex; align-items: center; justify-content: center; }
.wm-cursor { position: absolute; z-index: 650; pointer-events: none; transform: translate(-50%, -100%); display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; border: 1.5px solid; background: var(--bg-2); font-size: 12px; line-height: 1; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.wm-cursor b { font-size: 13px; font-weight: 700; }
.wm-cursor small { font-size: 11px; color: var(--text-dim); }
.wm-cursor svg { flex: none; }
@media (max-width: 640px) { .wm-layers .lbl { display: none; } .wm-btn-sm { padding: 0 9px; } }
.wm-goodmarks { position: relative; height: 8px; margin-top: 10px; }
.wm-goodmarks i { position: absolute; top: 0; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--green); }
.wm-slider { margin-top: 2px; }
/* measured pins (station readings at «now»): dashed frame = measurement, not model */
.wm-obs-wrap { background: none; border: 0; }
.wm-obs { position: absolute; left: 0; top: 0; transform: translate(-50%, 5px);   /* hangs below the station point, so it never covers a spot pin label above it */ display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: var(--r-xs); border: 1.5px dashed; background: var(--bg-2); font-size: 12px; line-height: 1; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.wm-obs b { font-weight: 700; }
.mg-chip i.wm-obs-swatch { border: 1.5px dashed var(--text-dim); background: transparent; }
.wm-stale { color: var(--gold); font-weight: 600; }
.wm-legend-title { font-size: 11px; font-weight: 700; color: var(--text-dim); margin-right: 4px; align-self: center; }
@media (max-width: 480px) { .wm-bar { flex-wrap: wrap; } .wm-readout { margin-left: auto; } }
.wm-daymarks { position: relative; height: 16px; margin-top: 2px; font-size: 11px; color: var(--text-mute); }
.wm-daymarks span { position: absolute; white-space: nowrap; }
.wm-legend { margin-top: 8px; }
.wm-source { margin: 6px 0 0; font-size: 11.5px; color: var(--text-mute); line-height: 1.45; }
/* spot pin: dot at the exact location, our forecast value in a pill above */
.wm-pin-wrap { background: none; border: 0; }
.wm-pin { position: relative; width: 0; height: 0; }
.wm-pin-dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 0 12px rgba(255,255,255,.35); }
.wm-pin-label { position: absolute; left: 0; top: -12px; transform: translate(-50%, -100%); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border-radius: 999px; border: 2px solid; background: var(--bg-2); font-size: 13px; line-height: 1; box-shadow: 0 2px 10px rgba(0,0,0,.45); }
.wm-pin-label b { font-size: 15px; font-weight: 700; }
.wm-pin-label.is-model { border-style: dashed; opacity: .85; }   /* value from the model field (own forecast not loaded) */
.wm-pin-label small { font-size: 11px; color: var(--text-dim); }
.wm-pin-label svg { flex: none; }
.leaflet-container .wm-tip { background: var(--bg-2); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--r-xs); font-size: 12px; padding: 3px 7px; box-shadow: none; }
.leaflet-container .wm-tip::before { border-top-color: var(--border-strong); }
/* meteogram hours are tappable: selected hour = the map's hour */
.mg-hour { cursor: pointer; }
.mg-hour.is-sel { outline: 2px solid var(--accent); outline-offset: -1px; background: rgba(54,214,196,0.18); }
