/* ============================================================
   Cape Wave Check — Bright & Airy Surf Brand Stylesheet v3.0
   Light ocean theme: white panels, sky-blue accents, navy text
   ============================================================ */

/* ── 1. Custom Properties ─────────────────────────────────── */
:root {
  --bg:            #f0f8ff;
  --bg-top:        #daeeff;
  --panel:         rgba(255,255,255,0.82);
  --panel-strong:  rgba(255,255,255,0.96);
  --border:        rgba(2,100,180,0.12);
  --border-hi:     rgba(2,100,180,0.28);

  --sky:      #0275c8;
  --sky-dim:  rgba(2,117,200,0.10);
  --ocean:    #055a9e;

  --go:       #00936a;
  --go-dim:   rgba(0,147,106,0.10);
  --go-glow:  rgba(0,147,106,0.22);

  --wait:     #c47d0e;
  --wait-dim: rgba(196,125,14,0.10);

  --skip:     #c0392b;
  --skip-dim: rgba(192,57,43,0.10);

  --text:       #0a1929;
  --text-muted: rgba(10,25,41,0.65);
  --text-faint: rgba(10,25,41,0.40);
  --text-inv:   #f0f8ff;

  --r-sm:  8px;
  --r:     14px;
  --r-lg:  22px;
  --nav-h: 60px;
  --max-w: 1160px;

  --ease: 0.18s ease;
}

/* ── 2. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Soft ocean-sky gradient fixed behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(2,100,180,0.07) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 45%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--ocean); text-decoration: underline; }
ul, ol { padding-left: 1.4em; }

h1, h2, h3, h4, h5 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}

/* ── 3. Page Shell ────────────────────────────────────────── */
.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── 4. Topbar / Navigation ───────────────────────────────── */
.topbar {
  position: sticky !important;
  top: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  box-shadow: 0 2px 16px rgba(10,25,41,0.07);
  overflow: visible !important;
}

.brand-link {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.brand-link::before {
  content: '';
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--sky) 0%, var(--go) 100%);
  flex-shrink: 0;
}

.brand-link:hover { text-decoration: none; color: var(--text); }

.simple-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.simple-nav > a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.simple-nav > a:hover { color: var(--text); background: rgba(2,100,180,0.07); text-decoration: none; }

/* Nav dropdown */
.nav-dropdown {
  position: relative;
  z-index: 5200;
}

.nav-dropdown > summary {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  list-style: none;
  transition: color var(--ease), background var(--ease);
  -webkit-user-select: none;
  user-select: none;
}

.nav-dropdown > summary::-webkit-details-marker { display: none; }

.nav-dropdown > summary::after {
  content: ' ▾';
  font-size: 0.7rem;
  opacity: 0.6;
}

.nav-dropdown[open] > summary,
.nav-dropdown > summary:hover {
  color: var(--text);
  background: rgba(2,100,180,0.07);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--border-hi);
  border-radius: var(--r);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 5400;
  box-shadow: 0 16px 48px rgba(10,25,41,0.14);
}

.nav-dropdown-menu a {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: color var(--ease), background var(--ease);
}

.nav-dropdown-menu a:hover { color: var(--text); background: rgba(2,100,180,0.07); text-decoration: none; }

/* ── 5. Panel (base card) ─────────────────────────────────── */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 20px rgba(10,25,41,0.06);
}

.panel-secondary {
  background: rgba(240,248,255,0.72);
  box-shadow: 0 1px 10px rgba(10,25,41,0.04);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
}

.panel-heading h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ── 6. Typography Helpers ────────────────────────────────── */
.eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 4px;
}

.label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.muted {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.fine-print {
  font-size: 0.75rem !important;
  color: var(--text-faint) !important;
}

.editorial-copy {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding: 20px 24px;
}

.editorial-copy p { margin-bottom: 1em; }
.editorial-copy p:last-child { margin-bottom: 0; }

.prose-panel { padding: 20px 24px; }

.prose-panel p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1em;
}

/* ── 7. Pills, Chips, Stamps ──────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(10,25,41,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}

/* Blue accent pills — discipline tags, good-for labels, wind/wave chips */
.pill.home-good-tag,
.home-meta-pill.dashboard-wind-chip,
.home-meta-pill.dashboard-wave-chip {
  background: linear-gradient(135deg, var(--sky) 0%, var(--ocean) 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

/* "Surf", "Kite", "Surf and kite" discipline pills on spot cards */
.spot-directory-card .pill,
.nearby-card .pill {
  background: linear-gradient(135deg, var(--sky) 0%, var(--ocean) 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--sky-dim);
  color: var(--sky);
  letter-spacing: 0.06em;
}

.stamp {
  font-size: 0.72rem;
  color: var(--text-faint);
  font-style: italic;
}

.stamp-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

/* ── 8. Buttons ───────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--ease), transform var(--ease), box-shadow var(--ease);
  background: linear-gradient(135deg, var(--sky) 0%, var(--ocean) 100%);
  color: #fff;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(2,100,180,0.25);
}

.button:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; color: #fff; box-shadow: 0 6px 20px rgba(2,100,180,0.30); }
.button:active { transform: translateY(0); }

.button.ghost {
  background: rgba(10,25,41,0.06);
  border: 1px solid var(--border-hi);
  color: var(--text);
  box-shadow: none;
}

.button.ghost:hover { background: rgba(10,25,41,0.10); color: var(--text); box-shadow: none; }

/* ── 9. Hero Live Meta ────────────────────────────────────── */
.hero-live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}

/* ── 10. Main Layout Wrappers ─────────────────────────────── */
.page-shell > .topbar + * { flex: 1; }

.dashboard {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 24px 64px;
  width: 100%;
}

/* ── 10b. Spot Hero Image Banner ──────────────────────────── */
.spot-hero-banner {
  width: calc(100% - 48px);
  max-width: var(--max-w);
  height: 280px;
  margin: 24px auto 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center center;
  background-color: var(--bg-top);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 38px rgba(10,25,41,0.08);
}

.spot-media-hero {
  display: block !important;
  aspect-ratio: 16 / 5;
  height: auto;
  min-height: 260px;
  max-height: 360px;
  background-image: none !important;
  background-color: #d8ecf9;
}

.spot-hero-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.spot-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,34,57,0.10) 0%, rgba(5,34,57,0.03) 52%, rgba(240,248,255,0.18) 100%);
}

.spot-hero-banner-overlay {
  position: absolute;
  bottom: 20px;
  left: 28px;
  z-index: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.home-hero-banner {
  height: 220px;
}

/* ── 11. Grid Layouts ─────────────────────────────────────── */
.home-landing-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 24px 0;
}

.grid-lower {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.grid-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  margin-bottom: 20px;
}

/* ── 12. Home Page ────────────────────────────────────────── */
.home-landing-panel {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.home-landing-panel::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2,117,200,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.home-landing-panel .eyebrow { display: block; margin-bottom: 10px; }

.home-landing-panel h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin-bottom: 12px;
  background: linear-gradient(140deg, var(--text) 30%, var(--sky) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-landing-panel .intro { margin-bottom: 0; }

/* Home embedded picks */
.home-embedded-picks {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.home-embedded-pick .panel-heading {
  padding: 16px 16px 12px;
}

.home-embedded-pick .panel-heading h2 { font-size: 0.95rem; }

.home-ranked-list {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-ranked-item {
  padding: 12px;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.home-ranked-item.is-placeholder { opacity: 0.6; }

.home-ranked-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.home-ranked-item-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.home-ranked-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.home-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.home-meta-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 50px;
  background: rgba(10,25,41,0.05);
  border: 1px solid var(--border);
  color: var(--text-faint);
}

.home-status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 50px;
  flex-shrink: 0;
}

.home-editorial-note {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.home-editorial-note p { margin-bottom: 6px; }

.home-best-spots {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Best spot pills (JS-populated) ──────────────────────── */
.best-spot-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px 11px 12px;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--border);
  border-left: 3px solid var(--sky); /* overridden inline per score */
  border-radius: var(--r);
  text-decoration: none;
  color: var(--text);
  transition: background var(--ease), transform 0.18s ease, box-shadow 0.18s ease;
}

.best-spot-pill:hover {
  background: rgba(255,255,255,0.92);
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(10,25,41,0.08);
  text-decoration: none;
  color: var(--text);
}

.best-spot-pill-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.best-spot-pill-type {
  font-size: 0.60rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.best-spot-pill-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.best-spot-pill-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.best-spot-pill-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  flex-shrink: 0;
}

/* ── Skeleton shimmer (shown while JS loads) ─────────────── */
.best-spot-skeleton {
  height: 62px;
  border-radius: var(--r);
  background: linear-gradient(
    90deg,
    rgba(10,25,41,0.05) 25%,
    rgba(10,25,41,0.09) 50%,
    rgba(10,25,41,0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.home-intelligence-grid,
.home-growth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 20px;
}

.home-summary-grid {
  padding: 16px 20px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.home-daily-summary {
  padding: 16px 20px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* ── 13. Prime Spot Cards (home dashboard) ────────────────── */
.prime-spots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 16px 20px 24px;
}

.prime-spot-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease), transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 2px 12px rgba(10,25,41,0.06);
}

.prime-spot-card:hover {
  border-color: rgba(2,100,180,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(10,25,41,0.12);
  text-decoration: none;
}

.prime-spot-visual {
  padding: 18px 16px 14px;
  min-height: 90px;
  background-size: cover;
  background-position: center;
  background-color: rgba(2,100,180,0.12);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

/* Gradient overlay so text is readable over photos */
.prime-spot-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2,20,60,0.10) 0%, rgba(2,20,60,0.55) 100%);
}

.prime-spot-visual > * { position: relative; z-index: 1; }

.prime-spot-visual .label { color: rgba(220,240,255,0.85); margin-bottom: 2px; }
.prime-spot-visual h3 { font-size: 1rem; font-weight: 800; color: #fff; }

/* Per-spot gradient accents (used as fallback or tint behind photo) */
.prime-spot-visual-bloubergstrand {
  background-color: #1a4d7a;
  background-image: url('https://images.unsplash.com/photo-1505118380757-91f5f5632de0?auto=format&fit=crop&w=600&q=70');
}
.prime-spot-visual-muizenberg {
  background-color: #3a7d44;
  background-image: url('https://images.unsplash.com/photo-1476158085676-e67f57ed9ed7?auto=format&fit=crop&w=600&q=70');
}
.prime-spot-visual-kommetjie {
  background-color: #2c4a7c;
  background-image: url('https://images.unsplash.com/photo-1455264745730-cb3b76250ae8?auto=format&fit=crop&w=600&q=70');
}
.prime-spot-visual-langebaan {
  background-color: #006994;
  background-image: url('https://images.unsplash.com/photo-1519339303025-7dc1d22c4d22?auto=format&fit=crop&w=600&q=70');
}
.prime-spot-visual-big-bay {
  background-color: #1a5276;
  background-image: url('https://images.unsplash.com/photo-1540979388789-6cee28a1cdc9?auto=format&fit=crop&w=600&q=70');
}
.prime-spot-visual-melkbosstrand {
  background-color: #215a8a;
  background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=600&q=70');
}

.prime-spot-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prime-spot-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-verdict {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.dashboard-meta { font-size: 0.78rem; color: var(--text-muted); }

.dashboard-chip-row { margin-top: 4px; margin-bottom: 0; }
.dashboard-wind-chip, .dashboard-wave-chip { font-size: 0.68rem; }

.prime-spot-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.prime-spot-link { font-size: 0.75rem; font-weight: 700; color: var(--sky); }
.prime-spot-arrow { color: var(--sky); font-size: 0.85rem; }

/* ── 14. Spot Directory ───────────────────────────────────── */
.spot-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 16px 20px 24px;
}

.content-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding: 16px 20px 24px;
}

.spot-directory-card {
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  position: relative;
  overflow: hidden;
}

.spot-directory-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--go));
  opacity: 0;
  transition: opacity var(--ease);
}

.spot-directory-card:hover {
  border-color: rgba(2,100,180,0.30);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,25,41,0.10);
  text-decoration: none;
}

.spot-directory-card:hover::before { opacity: 1; }
.spot-directory-card .label { margin-bottom: 0; }

.spot-directory-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.spot-directory-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.spot-directory-card .pill { align-self: flex-start; margin-top: 4px; }

/* ── 15. SEO Links ────────────────────────────────────────── */
.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 20px;
}

.seo-links a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(10,25,41,0.04);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 50px;
  text-decoration: none;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.seo-links a:hover { color: var(--sky); border-color: rgba(2,100,180,0.28); background: rgba(2,100,180,0.05); text-decoration: none; }

/* ── 16. Spot Intro Strip ─────────────────────────────────── */
.spot-intro-strip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  /* Constrain to same width as .dashboard */
  max-width: var(--max-w);
  width: calc(100% - 48px);
  margin: 16px auto 0;
  border-radius: var(--r-lg);
}

.spot-intro-copy h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 6px 0 10px;
}

.spot-intro-copy .intro { max-width: 600px; }
.spot-intro-meta { flex-shrink: 0; }

/* ── 17. Spot Hero (decision strip area) ──────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  margin-bottom: 20px;
}

.spot-hero {
  max-width: var(--max-w);
  width: calc(100% - 48px);
  margin: 20px auto;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}

.spot-top-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.spot-side-stack { min-width: 0; }

.priority-panel { border-color: rgba(2,100,180,0.18); }
.priority-panel .panel-heading { border-bottom-color: rgba(2,100,180,0.14); }

#quick-headline { font-size: 1.3rem; }

#quick-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0 24px 8px;
}

.tide-chip-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 24px 18px;
}

/* Decision strip — GO / WAIT / SKIP */
.decision-strip {
  display: flex;
  gap: 10px;
  padding: 0 24px 24px;
  flex-wrap: wrap;
}

.decision-card {
  flex: 1;
  min-width: 120px;
  padding: 16px;
  background: rgba(255,255,255,0.60);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.decision-card .label { margin-bottom: 6px; }

.decision-card h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1 !important;
  color: var(--text) !important;
}

.decision-strip .decision-card:first-child {
  border-color: rgba(2,100,180,0.22);
  background: rgba(2,100,180,0.05);
}

.decision-strip-expanded { flex-wrap: wrap; }

/* Utility actions */
.spot-utility-panel { padding: 0; }

.spot-utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px 10px;
}

.spot-utility-actions .button { font-size: 0.78rem; padding: 8px 14px; }

/* ── 18. Spot Side Stack (aside on hero) ──────────────────── */
.spot-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sponsor-teaser-panel { padding: 20px; }
.sponsor-teaser-panel .label { margin-bottom: 4px; }
.sponsor-teaser-panel h2 { font-size: 1rem; margin-bottom: 8px; }
.sponsor-teaser-panel .muted { margin-bottom: 12px; font-size: 0.83rem; }

/* ── 19. Ad Slots ─────────────────────────────────────────── */
.ad-slot {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  border-radius: var(--r);
  border: 1px dashed rgba(10,25,41,0.12);
  background: rgba(10,25,41,0.02);
  overflow: hidden;
  padding: 12px;
}

.ad-slot span { font-size: 0.72rem; color: var(--text-faint); font-weight: 600; }
.ad-slot small { font-size: 0.65rem; color: var(--text-faint); }

.hero-ad { min-height: 160px; }
.side-ad { min-height: 200px; }
.inline-ad { margin: 16px 20px 20px; }

.mobile-sticky-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 6px 16px;
  display: none;
}

/* ── 20. Summary Grid (metric cards) ─────────────────────── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 20px 24px;
}

.metric-card {
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.metric-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10,25,41,0.08);
}

.metric-card .label { margin-bottom: 8px; }

.metric-card h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  line-height: 0.95 !important;
  color: var(--text) !important;
  margin-bottom: 8px;
}

.metric-card .muted { font-size: 0.8rem; }

.emphasis {
  grid-column: span 2;
  border-color: rgba(2,100,180,0.20);
  background: rgba(2,100,180,0.05);
}

.emphasis h3 { font-size: clamp(2rem, 3.5vw, 3rem) !important; }

/* Verdict colour states */
.verdict-excellent { border-color: rgba(0,147,106,0.35) !important; background: rgba(0,147,106,0.08) !important; }
.verdict-excellent h3 { color: var(--go) !important; }

.verdict-decent { border-color: rgba(196,125,14,0.35) !important; background: rgba(196,125,14,0.08) !important; }
.verdict-decent h3 { color: var(--wait) !important; }

.verdict-poor { border-color: rgba(192,57,43,0.35) !important; background: rgba(192,57,43,0.08) !important; }
.verdict-poor h3 { color: var(--skip) !important; }

.verdict-danger {
  border-color: rgba(130, 22, 22, 0.48) !important;
  background: linear-gradient(135deg, rgba(192,57,43,0.16), rgba(10,25,41,0.05)) !important;
}

.verdict-danger h3,
.verdict-danger.verdict-headline,
.home-status-badge.verdict-danger,
.dashboard-verdict.verdict-danger {
  color: #8a1f16 !important;
}

/* ── 21. Aside Panel (discipline scores) ──────────────────── */
.discipline-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px 20px;
}

.discipline-card {
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
}

.discipline-card div { margin-bottom: 6px; }

.discipline-card h3 {
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: var(--text) !important;
}

.discipline-card .muted { font-size: 0.8rem; }

/* ── 22. Spot Details Grid ────────────────────────────────── */
.spot-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  padding: 16px 20px 24px;
}

.compact-grid { grid-template-columns: repeat(2, 1fr); }

.spot-detail-card {
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
}

.spot-detail-card .label { margin-bottom: 6px; }
.spot-detail-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

/* ── 23. Forecast Cards ───────────────────────────────────── */
.forecast-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  padding: 16px 20px 24px;
}

.forecast-card {
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 10px;
  text-align: center;
}

.forecast-card .label { margin-bottom: 4px; }
.forecast-card .fc-value { font-size: 1.1rem; font-weight: 800; color: var(--text); margin: 4px 0; }
.forecast-card .fc-note { font-size: 0.72rem; color: var(--text-faint); }

/* ── 24. Visual Data Strip ───────────────────────────────── */
.visuals-panel { margin-bottom: 20px; }

.visuals-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0 20px 20px;
}

.visual-block {
  padding: 16px 12px 8px;
  border-right: 1px solid var(--border);
}

.visual-block:last-child { border-right: none; }

.visual-block > .label {
  display: block;
  margin-bottom: 10px;
}

.visual-canvas {
  min-height: 90px;
}

.visual-caption {
  margin-top: 6px;
  font-size: 0.72rem;
}

/* ── 25. Hazard List ──────────────────────────────────────── */
.hazard-list {
  padding: 12px 20px 16px 36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hazard-list li { font-size: 0.88rem; color: var(--text-muted); }

/* ── 25. FAQ ──────────────────────────────────────────────── */
.faq-list { padding: 8px 20px 20px; }

.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list details:last-child { border-bottom: none; }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--sky);
  flex-shrink: 0;
  line-height: 1;
}

.faq-list details[open] summary { color: var(--sky); }
.faq-list details[open] summary::after { content: '\2212'; }
.faq-list details[open] { border-bottom-color: rgba(2,100,180,0.18); }

.faq-list details > p,
.faq-list details .faq-answer {
  padding: 0 4px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── 26. Spot Tabs (spot switcher) ────────────────────────── */
.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  padding: 14px 16px 0;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}

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

.tab-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-faint);
  padding: 8px 14px;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--ease), border-color var(--ease);
}

.tab-link:hover { color: var(--text); text-decoration: none; }
.tab-link.is-active { color: var(--sky); border-bottom-color: var(--sky); }

/* ── 27. Retention Strip ──────────────────────────────────── */
.retention-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 20px 24px;
}

.retention-card {
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
}

.retention-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.retention-card .muted { font-size: 0.82rem; margin-bottom: 12px; }

.favorite-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 140px;
  background: rgba(10,25,41,0.04);
  border: 1px solid var(--border-hi);
  border-radius: 50px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.83rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--ease);
}

.newsletter-form input[type="email"]:focus { border-color: var(--sky); }
.newsletter-form input[type="email"]::placeholder { color: var(--text-faint); }
.newsletter-form .button { flex-shrink: 0; font-size: 0.8rem; padding: 8px 16px; }

/* ── 28. Nearby Cards ─────────────────────────────────────── */
.nearby-links {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 20px 20px;
  scrollbar-width: none;
}

.nearby-links::-webkit-scrollbar { display: none; }

.nearby-card {
  flex-shrink: 0;
  width: 170px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
  text-decoration: none;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nearby-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10,25,41,0.09);
  text-decoration: none;
}

.nearby-card .label { margin-bottom: 2px; }
.nearby-card h3 { font-size: 0.95rem; font-weight: 700; }
.nearby-card p { font-size: 0.78rem; color: var(--text-muted); }

/* ── 29. Partner / Sponsor Grid ───────────────────────────── */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 20px 24px;
}

.partner-card {
  background: rgba(255,255,255,0.40);
  border: 1px dashed rgba(10,25,41,0.12);
  border-radius: var(--r);
  padding: 16px;
}

.partner-card .label { margin-bottom: 6px; }
.partner-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.partner-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ── 30. Spot Planning Stack ──────────────────────────────── */
.spot-planning-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px 12px;
}

/* ── 31. Spot Roadmap (home coast zones) ──────────────────── */
.spot-roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px 20px 24px;
}

.spot-roadmap > div {
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
}

.spot-roadmap .label { margin-bottom: 6px; }
.spot-roadmap p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.55; }

/* ── 32. Live Cam ─────────────────────────────────────────── */
.live-cam-shell {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}

.live-cam-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.live-cam-link-card {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.live-cam-link-card h3 { font-size: 1rem; }
.live-cam-link-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ── 33. Footer ───────────────────────────────────────────── */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  margin-top: 24px;
  border-radius: 0 !important;
  background: rgba(218,238,255,0.80) !important;
  border-top: 1px solid var(--border) !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.site-footer .muted { font-size: 0.82rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
}

.footer-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--ease);
}

.footer-nav a:hover { color: var(--sky); text-decoration: none; }

/* ── 34. Verdict Colour Classes (applied by JS) ───────────── */
[class*="verdict-excellent"] h3 { color: var(--go) !important; }
[class*="verdict-decent"]    h3 { color: var(--wait) !important; }
[class*="verdict-poor"]      h3 { color: var(--skip) !important; }

/* ── 35. Responsive: 980px ────────────────────────────────── */
@media (max-width: 980px) {
  .home-landing-grid { grid-template-columns: 1fr; padding: 16px 16px 0; }
  .home-best-panel { order: -1; }
  .hero { grid-template-columns: 1fr; }
  .spot-hero { grid-template-columns: 1fr; }
  .spot-side-stack { flex-direction: row; }
  .grid-main { grid-template-columns: 1fr; }
  .grid-lower { grid-template-columns: 1fr; }
  .visuals-strip { grid-template-columns: 1fr; }
  .visual-block { border-right: none; border-bottom: 1px solid var(--border); }
  .visual-block:last-child { border-bottom: none; }
  .home-embedded-picks { grid-template-columns: 1fr; }
  .prime-spots-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .emphasis { grid-column: span 2; }
  .compact-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .spot-roadmap { grid-template-columns: 1fr; }
  .spot-hero-banner { height: 220px; }
  .spot-media-hero { min-height: 220px; }
  .spot-side-stack { display: grid; grid-template-columns: 1fr; gap: 16px; }
}

/* ── 36. Responsive: 640px ────────────────────────────────── */
@media (max-width: 640px) {
  :root { --nav-h: 54px; }
  .topbar { padding: 0 16px; }
  .simple-nav > a:not(:nth-child(-n+2)) { display: none; }
  .dashboard {
    display: grid;
    gap: 16px;
    padding: 16px 14px 60px;
  }
  .panel,
  .ad-slot,
  .spot-directory-card,
  .prime-spot-card,
  .dashboard-spot-card,
  .nearby-card,
  .journey-card {
    margin-bottom: 0;
  }
  .home-landing-grid,
  .home-intelligence-grid,
  .home-growth-grid,
  .grid-main,
  .grid-lower,
  .journey-strip {
    gap: 16px;
  }
  .home-landing-panel { padding: 20px 18px; }
  .home-landing-panel h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .spot-intro-strip { flex-direction: column; gap: 12px; padding: 20px 18px; width: calc(100% - 32px); margin-top: 12px; }
  .spot-hero {
    width: calc(100% - 28px);
    gap: 16px;
    margin: 16px auto;
  }
  .decision-strip { flex-direction: column; }
  .decision-card { min-width: auto; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .emphasis { grid-column: span 2; }
  .metric-card h3 { font-size: clamp(1.3rem, 8vw, 2rem) !important; }
  .prime-spots-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .home-intelligence-grid, .home-growth-grid { grid-template-columns: 1fr; }
  .retention-strip { grid-template-columns: 1fr; }
  .dashboard-spot-grid { grid-template-columns: 1fr; }
  .package-grid { grid-template-columns: 1fr; }
  .lead-form { grid-template-columns: 1fr; }
  .lead-form label.full-width { grid-column: span 1; }
  .content-main {
    display: grid;
    gap: 16px;
    margin: 16px auto;
    padding: 0 14px 48px;
  }
  .content-main .prose-panel { padding: 20px 18px; }
  .spot-details-grid { grid-template-columns: 1fr; }
  .compact-grid { grid-template-columns: 1fr; }
  .panel-heading { padding: 16px 18px 14px; flex-wrap: wrap; }
  .panel-heading .button { font-size: 0.75rem; padding: 7px 14px; }
  .home-summary-grid, .home-daily-summary { grid-template-columns: 1fr 1fr; }
  .site-footer { flex-direction: column; padding: 24px 18px; }
  .footer-nav { gap: 6px 12px; }
  .mobile-sticky-ad { display: flex; }
  .tide-chip-strip { padding: 6px 18px 14px; }
  .spot-utility-actions .button { font-size: 0.72rem; padding: 7px 12px; }
  .spot-hero-banner {
    width: calc(100% - 28px);
    height: 180px;
    margin-top: 14px;
  }
  .spot-media-hero {
    aspect-ratio: 4 / 3;
    min-height: 180px;
  }
  .content-visual-hero {
    width: calc(100% - 28px);
    margin-top: 14px;
  }
}

/* ── 37. Content Template (content-template.php) ─────────── */

/* Header bar on content pages — same look as .topbar */
.content-header {
  position: sticky !important;
  top: 0;
  z-index: 5000;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px;
  padding: 0 24px !important;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  box-shadow: 0 2px 16px rgba(10,25,41,0.07) !important;
  overflow: visible !important;
}

/* Main content wrapper — constrained width, centred */
.content-main {
  max-width: var(--max-w);
  width: 100%;
  margin: 32px auto;
  padding: 0 24px 64px;
}

/* Prose panel inside content-main needs readable line width */
.content-main .prose-panel {
  padding: 28px 32px;
}

.content-main .prose-panel h1 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin: 8px 0 16px;
}

.content-main .prose-panel h2 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
}

.content-main .prose-panel p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1em;
}

.content-main .prose-panel p:last-child { margin-bottom: 0; }

.content-main .prose-panel ul,
.content-main .prose-panel ol {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1em;
  padding-left: 1.4em;
}

/* Dashboard spot grid (cape-town-report, regional hubs) */
.dashboard-spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0 24px;
}

.dashboard-spot-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: rgba(255,255,255,0.70);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--ease), transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 2px 12px rgba(10,25,41,0.05);
}

.dashboard-spot-card:hover {
  border-color: rgba(2,100,180,0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(10,25,41,0.11);
  text-decoration: none;
  color: var(--text);
}

.dashboard-spot-card h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.dashboard-spot-card .dashboard-verdict {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sky);
}

.dashboard-spot-card .dashboard-meta {
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* Package grid (advertise / pro pages) */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}

.package-card {
  background: rgba(255,255,255,0.70);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 2px 12px rgba(10,25,41,0.05);
}

.package-card:hover {
  border-color: rgba(2,100,180,0.28);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,25,41,0.09);
}

.package-card h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.package-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Featured / highlighted package */
.featured-package {
  border-color: rgba(2,100,180,0.35) !important;
  background: linear-gradient(160deg, rgba(2,117,200,0.07) 0%, rgba(255,255,255,0.85) 60%) !important;
  position: relative;
  overflow: hidden;
}

.featured-package::before {
  content: 'Best Value';
  position: absolute;
  top: 14px;
  right: -22px;
  background: linear-gradient(135deg, var(--sky) 0%, var(--ocean) 100%);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 32px;
  transform: rotate(35deg);
}

.package-list {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 1.2em;
  margin-top: 4px;
}

/* Lead / enquiry form */
.lead-form-shell {
  background: rgba(2,117,200,0.04);
  border: 1px solid rgba(2,100,180,0.18);
  border-radius: var(--r);
  padding: 24px;
  margin: 28px 0;
}

.lead-form-shell .eyebrow { margin-bottom: 4px; }
.lead-form-shell h2 { font-size: 1.15rem; margin-bottom: 16px; }

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.lead-form label.full-width { grid-column: span 2; }

.lead-form input,
.lead-form select,
.lead-form textarea {
  background: rgba(255,255,255,0.80);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--ease);
  width: 100%;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus { border-color: var(--sky); }

.lead-form input::placeholder,
.lead-form textarea::placeholder { color: var(--text-faint); }

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Body class for content pages */
.content-body { background: var(--bg); }

/* ── 38. Print ────────────────────────────────────────────── */
@media print {
  body { background: #fff; color: #000; }
  body::before { display: none; }
  .topbar, .site-footer, .ad-slot, .mobile-sticky-ad, .partner-card { display: none; }
  .panel { border: 1px solid #ccc; background: #fff; box-shadow: none; }
  h1, h2, h3 { color: #000 !important; -webkit-text-fill-color: unset !important; }
  .spot-hero-banner { display: none; }
}

/* ── Mobile hamburger nav restoration ─────────────────────── */
.mobile-nav-toggle {
  display: none;
}

/* ── Experience and brand refinements ─────────────────────── */
.brand-link {
  position: relative;
}

.brand-link::before {
  border-radius: 10px 14px 10px 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), transparent 42%),
    linear-gradient(135deg, var(--sky) 0%, #18a7d8 46%, var(--go) 100%);
  box-shadow: 0 8px 22px rgba(2,117,200,0.24);
}

.brand-link::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  width: 20px;
  height: 10px;
  border: 2px solid rgba(255,255,255,0.92);
  border-top: 0;
  border-left: 0;
  border-radius: 0 0 14px 0;
  transform: translateY(-55%) rotate(-12deg);
  pointer-events: none;
}

.journey-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--max-w);
  width: 100%;
  margin: 20px auto;
  padding: 0 24px;
}

.journey-card {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.5);
  background-size: cover;
  background-position: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(10,25,41,0.12);
  transition: transform var(--ease), box-shadow var(--ease);
}

.journey-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5,23,43,0.74), rgba(5,23,43,0.16) 62%, rgba(255,255,255,0.04)),
    linear-gradient(135deg, rgba(2,117,200,0.18), rgba(0,147,106,0.10));
}

.journey-card > * {
  position: relative;
  z-index: 1;
}

.journey-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(10,25,41,0.18);
  color: #fff;
  text-decoration: none;
}

.journey-card-live { background-image: url('/assets/home-hero.jpg'); }
.journey-card-spot { background-image: url('/assets/Surf-1.jpg'); }
.journey-card-learn { background-image: url('/assets/Surf-3.jpg'); }
.journey-card-go { background-image: url('/assets/Langebaan.jpg'); }

.journey-step {
  width: max-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.84);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.journey-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
}

.journey-copy {
  max-width: 24ch;
  color: rgba(255,255,255,0.86);
  font-size: 0.78rem;
  line-height: 1.45;
}

.session-path-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: center;
  max-width: var(--max-w);
  width: calc(100% - 48px);
  margin: 14px auto 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.58)),
    radial-gradient(circle at top right, rgba(2,117,200,0.12), transparent 42%);
  box-shadow: 0 8px 28px rgba(10,25,41,0.07);
}

.session-path-copy h2 {
  font-size: 1rem;
  margin: 0;
}

.session-path-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.session-path-steps a {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.66);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform var(--ease), background var(--ease), border-color var(--ease);
}

.session-path-steps a:hover {
  transform: translateY(-1px);
  border-color: var(--border-hi);
  background: rgba(255,255,255,0.94);
  color: var(--sky);
  text-decoration: none;
}

.content-visual-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 340px;
  max-width: var(--max-w);
  width: calc(100% - 48px);
  margin: 24px auto 10px;
  padding: 72px 38px 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 38px rgba(10,25,41,0.08);
}

.content-visual-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(240,248,255,0.92) 0%, rgba(240,248,255,0.55) 35%, rgba(240,248,255,0.10) 100%),
    linear-gradient(135deg, rgba(2,117,200,0.18), rgba(0,147,106,0.06));
}

.content-visual-copy,
.content-journey-links {
  position: relative;
  z-index: 1;
}

.content-visual-copy {
  max-width: 720px;
}

.content-visual-copy h1 {
  max-width: 100%;
  margin: 6px 0 10px;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.content-visual-copy p {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1rem;
}

.content-journey-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.content-journey-links a {
  padding: 8px 13px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  background: rgba(255,255,255,0.68);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.content-journey-links a:hover {
  background: rgba(255,255,255,0.96);
  color: var(--sky);
  text-decoration: none;
}

.content-main .prose-panel {
  position: relative;
}

@media (max-width: 760px) {
  .topbar,
  .content-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center !important;
    gap: 10px;
    min-height: 58px;
    height: auto !important;
    padding: 8px 14px !important;
  }

  .brand-link {
    min-width: 0;
    font-size: 1rem;
  }

  .mobile-nav-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-hi);
    border-radius: 12px;
    background: rgba(255,255,255,0.74);
    color: var(--text);
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    box-shadow: 0 4px 16px rgba(10,25,41,0.08);
  }

  .mobile-nav-toggle:focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 2px;
  }

  .mobile-nav-icon,
  .mobile-nav-icon::before,
  .mobile-nav-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform var(--ease), opacity var(--ease), background var(--ease);
  }

  .mobile-nav-icon::before,
  .mobile-nav-icon::after {
    content: "";
    position: absolute;
    left: 10px;
  }

  .mobile-nav-icon::before {
    transform: translateY(-7px);
  }

  .mobile-nav-icon::after {
    transform: translateY(7px);
  }

  .topbar.is-nav-open .mobile-nav-icon,
  .content-header.is-nav-open .mobile-nav-icon {
    background: transparent;
  }

  .topbar.is-nav-open .mobile-nav-icon::before,
  .content-header.is-nav-open .mobile-nav-icon::before {
    transform: rotate(45deg);
  }

  .topbar.is-nav-open .mobile-nav-icon::after,
  .content-header.is-nav-open .mobile-nav-icon::after {
    transform: rotate(-45deg);
  }

  .topbar .simple-nav,
  .content-header .simple-nav {
    grid-column: 1 / -1;
    display: none !important;
    width: 100%;
    padding: 10px 0 4px;
    border-top: 1px solid var(--border);
  }

  .topbar.is-nav-open .simple-nav,
  .content-header.is-nav-open .simple-nav {
    display: grid !important;
    gap: 8px;
  }

  .simple-nav > a,
  .simple-nav > a:not(:nth-child(-n+2)),
  .nav-dropdown {
    display: block !important;
    width: 100%;
  }

  .nav-dropdown > summary,
  .simple-nav > a {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,0.64);
    color: var(--text);
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 8px;
    box-shadow: none;
  }

  .mobile-sticky-ad {
    display: none !important;
  }

  .journey-strip,
  .session-path-strip,
  .session-path-steps {
    grid-template-columns: 1fr;
  }

  .journey-strip {
    padding: 0 16px;
    margin: 16px auto;
  }

  .journey-card {
    min-height: 138px;
  }

  .session-path-strip {
    width: calc(100% - 32px);
    padding: 16px;
  }

  .session-path-steps a {
    text-align: left;
  }

  .content-visual-hero {
    min-height: 260px;
    width: calc(100% - 28px);
    padding: 80px 18px 22px;
  }

  .content-visual-copy h1 {
    max-width: 100%;
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }
}

/* ── 25. Spot long-form description section ───────────────── */
.spot-longform-panel .longform-body {
  padding: 0 20px 24px;
}
.spot-longform-panel .longform-body p {
  margin-bottom: 1.15rem;
  line-height: 1.75;
  max-width: 72ch;
  color: var(--text);
}
.spot-longform-panel .longform-body p:last-child {
  margin-bottom: 0;
}
.spot-longform-panel .local-insight {
  background: rgba(2, 117, 200, 0.06);
  border-left: 3px solid var(--sky);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  max-width: 72ch;
  margin-top: 1.4rem;
  color: var(--text-muted);
}
