/* watertemperaturen.nl — components specific to the NL directory + spot pages.
   Reuses the badetemp brand tokens (declared in layout critical CSS + style.css). */

.wrap { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.page-intro { padding: 1.5rem 0 0.5rem; }
.page-intro h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.5rem; }
.page-intro p { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.55; }
.page-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1rem 0 0.5rem; }
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem;
  border-radius: var(--radius-md); font-weight: 600; font-size: 0.92rem; text-decoration: none;
  border: 1px solid var(--border); color: var(--text-primary); background: var(--surface); }
.btn--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-hover); }

/* temperature badge (shared zone colours) */
.temp-badge { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
  padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.95rem; }
.temp-badge--hot  { background: #FEE2E2; color: #B91C1C; }
.temp-badge--warm { background: #FFF7ED; color: #C2410C; }
.temp-badge--cool { background: #F0FDF4; color: #15803D; }
.temp-badge--cold { background: #EFF6FF; color: #1D4ED8; }
.temp-badge--none { background: var(--bg-secondary); color: var(--text-muted); }
@media (prefers-color-scheme: dark){
  .temp-badge--hot{background:#7F1D1D;color:#FECACA;} .temp-badge--warm{background:#7C2D12;color:#FED7AA;}
  .temp-badge--cool{background:#14532D;color:#BBF7D0;} .temp-badge--cold{background:#1E3A8A;color:#BFDBFE;}
}

/* index groups */
.group { margin-top: 2rem; }
.group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.group__title { font-size: 1.3rem; font-weight: 600; }
.group__count { color: var(--text-muted); font-size: 0.85rem; }
.group__lead { color: var(--text-secondary); font-size: 0.95rem; margin: 0.25rem 0 0.9rem; }
.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.7rem; }
.spot-card { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.8rem 0.95rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform .08s ease, box-shadow .12s ease; }
.spot-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: var(--brand-mid); }
.spot-card__name { font-weight: 600; }
.spot-card__meta { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.1rem; }

/* breadcrumbs */
.crumbs { padding: 0.9rem 0 0; font-size: 0.85rem; color: var(--text-muted); }
.crumbs a { color: var(--brand); text-decoration: none; }

/* spot hero */
.spot-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin: 0.6rem 0 0.4rem; }
.spot-hero__temp { font-size: 3.4rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.spot-hero__temp--hot{color:var(--temp-hot);} .spot-hero__temp--warm{color:var(--temp-warm);}
.spot-hero__temp--cool{color:var(--temp-cool);} .spot-hero__temp--cold{color:var(--temp-cold);}
.spot-hero__temp--none{color:var(--text-muted);font-size:2rem;}
.spot-hero__zone { display:inline-block; margin-left:0.5rem; font-size:1rem; font-weight:600; color:var(--text-muted); vertical-align:middle; }
.spot-source { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.2rem; }
.spot-source__dot { color: var(--brand); }

/* info cards on spot page */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.7rem; margin: 1.2rem 0; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.9rem 1rem; }
.info-card__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
.info-card__value { font-weight: 600; margin-top: 0.2rem; }

/* EEA quality badge */
.quality { display:inline-flex; align-items:center; gap:0.4rem; font-weight:600; }
.quality__dot { width:0.7rem; height:0.7rem; border-radius:50%; display:inline-block; }
.q-Excellent .quality__dot{background:#16A34A;} .q-Good .quality__dot{background:#65A30D;}
.q-Sufficient .quality__dot{background:#CA8A04;} .q-Poor .quality__dot{background:#DC2626;}

.note { background: var(--brand-light); border: 1px solid var(--brand-mid); color: var(--text-secondary);
  border-radius: var(--radius-md); padding: 0.7rem 0.9rem; font-size: 0.88rem; margin: 1rem 0; }
@media (prefers-color-scheme: dark){ .note{color:var(--text-secondary);} }

.nearby { list-style: none; display: grid; gap: 0.5rem; margin-top: 0.6rem; }
.nearby a { display:flex; justify-content:space-between; align-items:center; gap:0.6rem;
  padding:0.6rem 0.8rem; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-md); text-decoration:none; color:inherit; }

#histChart { width: 100%; height: 160px; }
.spot-map { height: 260px; border-radius: var(--radius-lg); overflow: hidden; margin: 1rem 0; border:1px solid var(--border); }

/* === Map-hero on the index (#4635 UX-1) — NL-only bounded map, badetemp-pariteit === */
.map-hero { position: relative; margin: 1.1rem 0 0.4rem; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  background: var(--bg-secondary); }
.map-hero #hero-map { width: 100%; height: 340px; }
.map-hero__legend { position: absolute; left: 10px; bottom: 10px; z-index: 500;
  display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 6px 9px; font-size: 0.72rem; color: var(--text-secondary); box-shadow: var(--shadow-sm); }
.map-hero__legend span { display: inline-flex; align-items: center; gap: 4px; }
.map-hero__legend i { width: 9px; height: 9px; border-radius: 50%; }
.map-hero__full { position: absolute; right: 10px; top: 10px; z-index: 500;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 12px; font-size: 0.8rem; font-weight: 600; color: var(--brand);
  text-decoration: none; box-shadow: var(--shadow-sm); }
.map-hero__full:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 640px) { .map-hero #hero-map { height: 260px; } }

/* Map popup link + no-reading state (#4635 UX-3) */
.popup__link { display: inline-block; margin-top: 0.4rem; color: var(--brand);
  font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.popup__link:hover { text-decoration: underline; }
.popup__temp--none { font-size: 1rem; color: var(--text-muted); }

/* === Footer (#4635 UX-4) — badetemp-pariteit mørk-blå bg, WCAG-AA lyse tekst.
   Overstyrer delt .site-footer i style.css (nl.css lastes etter). Fikser mørk-grå
   tekst-på-mørk-blå (inline color:var(--text-muted) var fjernet fra layout.html). === */
.site-footer { background: var(--brand-deep); color: rgba(255,255,255,0.88);
  text-align: center; padding: var(--space-xl) var(--space-md); margin-top: 2.5rem; }
.site-footer__inner { max-width: 720px; margin: 0 auto; }
.site-footer p { margin: 0 0 0.55rem; font-size: 0.85rem; line-height: 1.65; }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer a { color: var(--brand-mid); text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: #fff; }
.site-footer__sources { color: rgba(255,255,255,0.82); }
.site-footer__nav { color: rgba(255,255,255,0.78); font-size: 0.8rem; }

/* === Spain call-out (#4636) — the single, clear entrance to the /spanje off-season page.
   Warm "zon" tint so it reads as a distinct entrance, not just another NL group. === */
.cta-spain { display: flex; align-items: center; gap: 1rem; margin: 2.4rem 0 0.5rem;
  padding: 1.1rem 1.2rem; text-decoration: none; color: inherit;
  background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 100%);
  border: 1px solid #FCD34D; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .08s ease, box-shadow .12s ease; }
.cta-spain:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cta-spain__sun { flex: 0 0 auto; width: 2.6rem; height: 2.6rem; display: flex;
  align-items: center; justify-content: center; font-size: 1.45rem; border-radius: 50%;
  background: #FDE68A; color: #B45309; }
.cta-spain__body { display: flex; flex-direction: column; gap: 0.15rem; }
.cta-spain__title { font-weight: 700; font-size: 1.1rem; color: #B45309; }
.cta-spain__text { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.5; }
@media (prefers-color-scheme: dark) {
  .cta-spain { background: linear-gradient(135deg, #422006 0%, #3F2D0A 100%); border-color: #92600A; }
  .cta-spain__title { color: #FCD34D; }
  .cta-spain__sun { background: #92600A; color: #FDE68A; }
}
