/* Componenten die op meerdere pagina's terugkomen. Alleen semantische tokens.
   Paginaspecifieke stijl staat in static/css/pagina/<pagina>.css. */

/* ---------------------------------------------------------------- secties */
.sectie { padding-top: 112px; }
.sectie--ruim { padding-top: 128px; }
.sectie__kop {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  flex-wrap: wrap; margin-bottom: 32px;
}
.sectie__kop > div { max-width: 640px; }
.bovenregel { margin: 0 0 10px; font-weight: 700; color: var(--action); }
.kop-groot { font-size: clamp(36px, 4.4vw, 60px); line-height: 1; letter-spacing: -.03em; margin: 0; }
.kop-middel { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.03em; margin: 0; }
.onderregel { margin: 16px 0 0; font-size: 19px; color: var(--text-muted); max-width: 52ch; }
.klein { font-size: 14px; color: var(--text-muted); }
.bron { margin: 16px 4px 0; font-size: 13px; color: var(--text-muted); }
@media (max-width: 640px) { .sectie { padding-top: 72px; } .sectie--ruim { padding-top: 80px; } }

.link-sterk { font-weight: 700; }

/* ---------------------------------------------------------------- raster */
.raster { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--kolom, 300px)), 1fr)); }
.raster--smal { --kolom: 220px; gap: 16px; }
.raster--breed { --kolom: 380px; gap: 40px; }

/* ---------------------------------------------------------------- beeld */
.beeld { width: 100%; height: 100%; object-fit: cover; display: block; }
.beeld--leeg { display: block; }
.fotokader { position: relative; overflow: hidden; border-radius: var(--radius-media); background: var(--surface-zacht); }
.fotokader--43 { aspect-ratio: 4 / 3; }
.fotokader--45 { aspect-ratio: 4 / 5; }
.fotokader--169 { aspect-ratio: 16 / 9; }
.fotokader--219 { aspect-ratio: 21 / 9; }
.fotokader .beeld { position: absolute; inset: 0; }
.fotocredit { font-size: 12px; color: var(--text-muted); margin: 6px 0 0; overflow-wrap: anywhere; }
.fotocredit a { color: inherit; text-decoration: underline; }

/* ---------------------------------------------------------------- kaartjes */
.kaartlink { color: var(--text); display: flex; flex-direction: column; gap: 14px; }
.kaartlink:hover { color: var(--text); text-decoration: none; }
.kaartlink:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.kaartlink h3 { font-size: 26px; letter-spacing: -.02em; margin: 0; }
.kaartlink p { margin: 6px 0 0; color: var(--text-muted); }
/* Past de meta niet naast de naam ("Willemstad · tegenover Punda via de Koningin Emmabrug"),
   dan zakt hij naar een eigen regel. De naam wordt nooit afgebroken. */
.kaartlink__rij { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; align-items: baseline; }
.kaartlink__rij h3 { flex: 0 1 auto; hyphens: manual; }
.kaartlink__meta { font-size: 15px; color: var(--text-muted); min-width: 0; }

.blok {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 20px; color: var(--text);
}
a.blok:hover { border-color: var(--action); text-decoration: none; color: var(--text); }

/* ---------------------------------------------------------------- drukte */
.drukte {
  display: inline-flex; align-items: center; gap: 8px; border-radius: var(--radius-pil);
  font-weight: 700; font-size: 14px; padding: 5px 12px; color: var(--eiland-inkt); white-space: nowrap;
}
.drukte--rustig { background: var(--quiet); }
.drukte--gemiddeld { background: var(--tip); }
.drukte--druk { background: var(--book); }
.stippen { display: flex; gap: 3px; }
.stippen span { width: 7px; height: 7px; border-radius: var(--radius-pil); border: 1.5px solid var(--eiland-inkt); }
.stippen span.aan { background: var(--eiland-inkt); }
.fotokader > .drukte { position: absolute; top: 14px; left: 14px; }

/* ---------------------------------------------------------------- chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--rol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chip {
  border-radius: var(--radius-pil); padding: 10px 16px; font: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; min-height: 44px; border: 1.5px solid var(--text); background: transparent; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.chip:hover { background: var(--surface-zacht); text-decoration: none; color: var(--text); }
.chip[aria-pressed="true"], .chip--aan { background: var(--text); color: var(--bg); }
.chip__telling { background: var(--surface-zacht); color: var(--text); border-radius: var(--radius-pil); padding: 0 8px; font-size: 13px; }
.chip[aria-pressed="true"] .chip__telling { background: var(--quiet); color: var(--eiland-inkt); }

.label {
  display: inline-block; background: var(--surface-zacht); border-radius: var(--radius-pil);
  padding: 5px 12px; font-size: 14px; font-weight: 700;
}

/* ---------------------------------------------------------------- lijsten */
.strandlijst { display: flex; flex-direction: column; border-top: 1px solid #E2D7C6; }
.strandlijst a {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 14px 4px; border-bottom: 1px solid #E2D7C6; color: var(--text);
}
.strandlijst a:hover { background: #F4EEE3; text-decoration: none; color: var(--text); }
.strandlijst strong { font-size: 18px; }
.strandlijst small { display: block; font-size: 14px; color: var(--text-muted); }
.strandlijst [hidden] { display: none; }

/* ---------------------------------------------------------------- eilandkaart */
.eilandkaart {
  position: relative; border-radius: var(--radius-blok); overflow: hidden; background: #D8ECEC;
  min-height: 420px; display: flex; align-items: center; justify-content: center;
}
/* Het vlak krijgt de maat van de SVG zelf, zodat de punten (in procenten) altijd kloppen. */
.eilandkaart__vlak { position: relative; width: 100%; }
.eilandkaart__vlak > img { display: block; width: 100%; height: auto; }
/* De link is 24px (raakvlak op mobiel); het zichtbare punt blijft 14px. */
.kaartpunt { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.kaartpunt::before {
  content: ""; position: absolute; inset: 5px; box-sizing: border-box; width: 14px; height: 14px;
  border: 1.5px solid var(--eiland-inkt); border-radius: var(--radius-pil); background: var(--quiet);
}
.kaartpunt--gemiddeld::before { background: var(--tip); border-radius: 2px; transform: rotate(45deg); }
.kaartpunt--druk::before { background: var(--book); border-radius: 2px; }
.kaartpunt:hover, .kaartpunt:focus-visible { z-index: 2; }
.kaartpunt:hover::before, .kaartpunt:focus-visible::before { transform: scale(1.4); }
.kaartpunt--gemiddeld:hover::before, .kaartpunt--gemiddeld:focus-visible::before { transform: rotate(45deg) scale(1.4); }
.kaartpunt__naam {
  position: absolute; left: 23px; top: -1px; white-space: nowrap; font-size: 12px; font-weight: 700;
  background: var(--bg); padding: 1px 6px; border-radius: 6px; pointer-events: none; color: var(--text);
}
.kaartlegenda {
  position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; background: var(--bg); border-radius: 16px; padding: 12px 16px; font-size: 14px;
}
/* Op mobiel past de legenda niet over de kaart: dan lagen de oostelijke stranden eronder. */
@media (max-width: 800px) {
  .eilandkaart { flex-direction: column; min-height: 0; }
  .kaartlegenda { position: static; align-self: stretch; margin: 0 16px 16px; }
}
.kaartlegenda > span { display: flex; gap: 14px; flex-wrap: wrap; }
.kaartlegenda i { display: inline-block; width: 12px; height: 12px; border: 1.5px solid var(--eiland-inkt); margin-right: 6px; vertical-align: -1px; }

/* ---------------------------------------------------------------- formulieren */
.veldrij { display: flex; gap: 8px; flex-wrap: wrap; }
.veld {
  flex: 1; min-width: 200px; min-height: 52px; border-radius: var(--radius-pil);
  border: 1.5px solid var(--text); background: var(--bg); color: var(--text); padding: 0 20px; font: inherit;
}
.verborgen-label { position: absolute; left: -9999px; }
.honingpot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.melding-form { margin: 12px 0 0; font-weight: 700; }
.melding-form--fout { color: var(--alert); }

/* ---------------------------------------------------------------- meldingen */
.alarm {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--alert-bg);
  border: 1.5px solid var(--alert); color: var(--alert-text); border-radius: 18px; padding: 14px 18px; margin-bottom: 22px;
}
.alarm__teken {
  width: 28px; height: 28px; border-radius: var(--radius-pil); background: var(--alert); color: #fff;
  display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
}
.alarm__tekst { flex: 1; min-width: 240px; }
.alarm a { color: var(--alert-text); font-weight: 700; text-decoration: underline; }

.uitleg { margin-top: 28px; background: #EEF6EF; border-radius: 20px; padding: 18px 22px; }
.uitleg summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.uitleg summary::-webkit-details-marker { display: none; }
.uitleg summary::after { content: "+"; }
.uitleg[open] summary::after { content: "–"; }
.uitleg p, .uitleg ul { margin: 12px 0 0; max-width: 760px; color: #2A3B4F; }

.gecontroleerd { font-size: 14px; color: var(--text-muted); margin-top: 24px; }
.gecontroleerd--nee::before { content: "○ "; }
.gecontroleerd--ja::before { content: "✓ "; color: #1E6B3A; }

/* ---------------------------------------------------------------- tekst */
.lopende-tekst { max-width: 68ch; font-size: 18px; }
.lopende-tekst p { margin: 0 0 1em; }
.lopende-tekst h2 { font-size: 30px; margin: 1.6em 0 .5em; }
.lopende-tekst h3 { font-size: 22px; margin: 1.4em 0 .4em; }

.feiten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin: 24px 0; }
.feiten div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.feiten dt { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.feiten dd { margin: 4px 0 0; font-weight: 700; font-size: 18px; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.faq p { margin: 10px 0 0; color: var(--text-muted); max-width: 68ch; }

/* ---------------------------------------------------------------- rail */
.rail {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 max(var(--rand), calc((100vw - var(--breedte)) / 2 + var(--rand))) 12px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 clamp(260px, 26vw, 340px); scroll-snap-align: start; }
.railknop {
  width: 52px; height: 52px; border-radius: var(--radius-pil); border: 1.5px solid var(--text);
  background: transparent; color: var(--text); font-size: 20px; cursor: pointer;
}
.railknop:hover { background: var(--text); color: var(--bg); }

/* ---------------------------------------------------------------- nieuwsbrief */
.nieuwsbriefblok {
  background: var(--tip); color: var(--eiland-inkt); border-radius: 32px; padding: clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px; align-items: center;
}
.nieuwsbriefblok h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.02; letter-spacing: -.03em; margin: 0; }
.nieuwsbriefblok .veld { min-height: 56px; border-color: var(--eiland-inkt); background: var(--eiland-zand); }

/* ---------------------------------------------------------------- installeren en offline */
.installeer {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin: 0 auto;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-card); padding: 14px 16px; box-shadow: 0 8px 30px rgba(16,35,58,.18);
}
.installeer > span { flex: 1 1 220px; }
.installeer small { display: block; color: var(--text-muted); font-size: 14px; }
.offline-lijst { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.offline-lijst a { font-weight: 700; text-transform: capitalize; }

/* ---------------------------------------------------------------- zee per kust */
.kusten { display: flex; flex-direction: column; gap: 8px; }
.kust { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 10px 12px; }
.kust small { display: block; font-size: 14px; color: var(--text-muted); }
.zeestaat { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius-pil); padding: 4px 10px; font-size: 14px; font-weight: 700; color: var(--eiland-inkt); }
.zeestaat::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--eiland-inkt); }
.zeestaat--kalm { background: var(--quiet); }
.zeestaat--matig { background: var(--tip); }
.zeestaat--ruw { background: var(--book); }
.zeestaat--ruw::before { width: 0; height: 0; border-radius: 0; background: none; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--eiland-inkt); }

/* ---------------------------------------------------------------- galerij */
.galerij { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.galerij figure { margin: 0; }
.galerij .fotokader { border-radius: 18px; }
.fotocredit--licht { color: rgba(255,255,255,.85); }
.fotocredit--licht a { color: inherit; }

/* Maker en licentie op een grote foto: klein, maar zichtbaar (CC BY vereist dat). */
.herocredit {
  position: absolute; right: 12px; bottom: 10px; z-index: 3; margin: 0; max-width: 60%;
  font-size: 11px; line-height: 1.3; color: #fff; background: rgba(16,35,58,.55);
  padding: 3px 8px; border-radius: 6px; text-align: right; overflow-wrap: anywhere;
}
.herocredit:empty { display: none; }
.herocredit a { color: inherit; text-decoration: underline; }

/* Kaartje als terugval voor een plek zonder foto (core.templatetags.beeld) */
.beeld--kaart { display: flex; align-items: center; justify-content: center; background: #CFE6EA; }
.beeld__vlak { position: relative; width: 92%; aspect-ratio: 1000 / 845; max-height: 92%; }
.beeld__vlak img { position: absolute; inset: 0; width: 100%; height: 100%; }
.beeld__punt {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 999px;
  background: var(--book); border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(242,121,91,.35);
}
