/* Lettertypes, zelf meegeleverd (geen verbinding met Google nodig) */
@font-face { font-family: "Delius"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/delius-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/source-sans-3-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Kleuren uit het logo */
  --terracotta: #C8765D;
  --blauwgroen: #1E4656;
  --goud: #D4934A;
  --creme: #F8F5F1;

  --achter: var(--creme);
  --kaart-achter: #ffffff;
  --tekst: #23343b;
  --zacht: #6b7378;
  --rand: #e6dfd6;
  --accent: var(--terracotta);
  --accent-donker: #a95c45;
  --gevaar: #a33a2e;
  --kop: var(--blauwgroen);
  --schaduw: 0 8px 30px rgba(30,70,86,.18);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--tekst);
  background: var(--achter);
  display: flex; flex-direction: column;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

header {
  height: 64px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; background: var(--creme); color: var(--blauwgroen); gap: 10px;
  border-bottom: 1px solid var(--rand);
  z-index: 1000;
}
.merk { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
.merk-icoon { width: 40px; height: 46px; flex: 0 0 auto; }
.merk-tekst { min-width: 0; }
.merk h1 {
  font-family: "Delius", "Comic Neue", cursive; font-weight: normal;
  font-size: 1.45rem; line-height: 1.1; margin: 0; white-space: nowrap;
}
.merk .t1 { color: var(--terracotta); }
.merk .t2 { color: var(--blauwgroen); font-weight: bold; }
.ondertitel { margin: 2px 0 0; font-size: .82rem; color: var(--blauwgroen); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
nav { display: flex; gap: 6px; flex: 0 0 auto; }
nav button {
  background: transparent; color: var(--blauwgroen); border: 1px solid var(--blauwgroen);
  border-radius: 8px; padding: 7px 12px; font-size: .92rem; white-space: nowrap;
}
nav button.primair { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
@media (max-width: 900px) { .ondertitel { display: none; } }
@media (max-width: 520px) {
  header { height: 56px; padding: 0 10px; }
  .merk-icoon { width: 32px; height: 37px; }
  .merk h1 { font-size: 1.1rem; }
  nav button .lang { display: none; }
  #btnToevoegen { font-size: 1.2rem; padding: 2px 13px; }
}
@media (max-width: 330px) { .merk-tekst { display: none; } }

main { position: relative; flex: 1 1 auto; min-height: 0; }
#kaart { position: absolute; inset: 0; }
body.kiezen #kaart { cursor: crosshair; }

#zoekbalk {
  position: absolute; top: 10px; left: 56px; right: 10px; max-width: 420px;
  display: flex; z-index: 500; box-shadow: var(--schaduw); border-radius: 8px; overflow: hidden;
}
#zoekbalk input { flex: 1; border: 0; padding: 10px 12px; min-width: 0; }
#zoekbalk button { border: 0; background: var(--kop); color: #fff; padding: 0 14px; }

.banner {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 20px;
  background: var(--kop); color: #fff; padding: 10px 14px; border-radius: 8px;
  z-index: 600; display: flex; gap: 12px; align-items: center; box-shadow: var(--schaduw);
  width: max-content; max-width: calc(100% - 32px);
}
.banner button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; padding: 4px 10px; }
.banner.waarschuwing { background: var(--gevaar); top: 64px; bottom: auto; }

.verborgen { display: none !important; }

/* Kaarsjes op de kaart */
.kaars-marker { background: none; border: none; }
.kaars-marker span {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 2px solid var(--accent);
  font-size: 18px; box-shadow: 0 2px 6px rgba(30,70,86,.35);
}
.marker-cluster { background: rgba(200,118,93,.25); border-radius: 50%; }
.marker-cluster div {
  width: 30px; height: 30px; margin: 5px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  font: bold 13px system-ui, sans-serif;
}

/* Zijpaneel / onderpaneel */
#paneel {
  position: absolute; z-index: 700; background: var(--kaart-achter);
  top: 0; right: 0; bottom: 0; width: 400px; max-width: 100%;
  overflow-y: auto; padding: 20px 20px 32px; box-shadow: var(--schaduw);
}
@media (max-width: 700px) {
  #paneel { top: auto; left: 0; width: 100%; max-height: 72%; border-radius: 16px 16px 0 0; }
  nav button { padding: 6px 8px; font-size: .85rem; }
}
.sluit {
  position: absolute; top: 8px; right: 10px; background: none; border: 0;
  font-size: 28px; line-height: 1; color: var(--zacht);
}
.plek-foto { width: 100%; max-height: 300px; object-fit: cover; border-radius: 10px; margin-top: 18px; }
#paneel h2 { margin: 14px 0 4px; font-family: "Delius", cursive; font-weight: normal; font-size: 1.6rem; color: var(--blauwgroen); }
.modal-inhoud h2 { font-family: "Delius", cursive; color: var(--blauwgroen); }
.meta { color: var(--zacht); margin: 0 0 12px; }
.plek-tekst { white-space: pre-wrap; line-height: 1.5; }
.kaars-blok {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px; background: #faf6ee; border: 1px solid var(--rand); border-radius: 10px; margin: 16px 0;
}
.kaars-knop { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; }
.kaars-knop:disabled { background: #d9c3a3; cursor: default; }
#paneel h3 { font-weight: normal; border-bottom: 1px solid var(--rand); padding-bottom: 4px; }
.condo-lijst { list-style: none; padding: 0; margin: 0; }
.condo-lijst li { border-bottom: 1px solid var(--rand); padding: 10px 0; }
.condo-lijst li p { margin: 0 0 4px; white-space: pre-wrap; }
.leeg { color: var(--zacht); font-style: italic; }
.klein { font-size: .85rem; color: var(--zacht); }
.klein a, a { color: var(--accent-donker); }
.klein a { margin-left: 6px; }
.paneel-voet { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Knoppen en formulieren */
button.primair { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; }
button.primair:hover { background: var(--accent-donker); }
button.primair:disabled { opacity: .6; }
button.gevaar { background: none; color: var(--gevaar); border: 1px solid var(--gevaar); border-radius: 8px; padding: 7px 12px; }
button.link { background: none; border: 0; color: var(--zacht); text-decoration: underline; padding: 0; }
button.tweede { background: none; border: 1px solid var(--rand); border-radius: 8px; padding: 7px 12px; color: var(--tekst); }

form label { display: block; margin-bottom: 12px; font-size: .95rem; }
form input:not([type=checkbox]), form textarea, form select {
  display: block; width: 100%; margin-top: 4px; padding: 9px 10px;
  border: 1px solid var(--rand); border-radius: 8px; background: #fff; color: var(--tekst);
}
form textarea { min-height: 90px; resize: vertical; }
.vinkje { display: flex; gap: 8px; align-items: flex-start; }
.vinkje input { margin-top: 4px; }
.let-op { background: #fbf1e3; border-left: 3px solid var(--accent); padding: 8px 10px; font-size: .88rem; border-radius: 4px; margin-bottom: 12px; }
#formCondo textarea { min-height: 70px; margin-bottom: 8px; }

/* Venster (modal) */
#modal {
  position: fixed; inset: 0; background: rgba(20,20,20,.5); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-inhoud {
  position: relative; background: var(--kaart-achter); border-radius: 12px; padding: 24px 20px 20px;
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: var(--schaduw);
}
.modal-inhoud h2 { margin-top: 0; font-weight: normal; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tabs button { flex: 1; background: none; border: 1px solid var(--rand); border-radius: 8px; padding: 8px; }
.tabs button.actief { background: var(--kop); color: #fff; border-color: var(--kop); }

.beheer-item { border: 1px solid var(--rand); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.beheer-item p { margin: 0 0 6px; }
.beheer-knoppen { display: flex; gap: 8px; flex-wrap: wrap; }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 40px);
  background: var(--kop); color: #fff; padding: 10px 16px; border-radius: 8px;
  opacity: 0; transition: all .25s; z-index: 3000; pointer-events: none; max-width: calc(100% - 32px);
}
#toast.zichtbaar { opacity: 1; transform: translate(-50%, 0); }

/* Onzichtbare valstrik voor robots */
.vangnet { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Robotcontrole (Turnstile) */
.ts { margin: 6px 0 12px; min-height: 0; }

#formReactie textarea { min-height: 70px; margin-bottom: 8px; }
#formReactie label { margin-bottom: 8px; }

.label { display: inline-block; background: #fbe3dc; color: var(--gevaar); border-radius: 999px; padding: 1px 8px; font-size: .78rem; }
.knoppenrij { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
a.knop { display: inline-flex; align-items: center; text-decoration: none; }
a.knop.tweede { border: 1px solid var(--blauwgroen); color: var(--blauwgroen); border-radius: 8px; padding: 7px 12px; }

/* Tekstpagina (privacy) */
body.tekstpagina { display: block; height: auto; }
body.tekstpagina header { position: sticky; top: 0; }
body.tekstpagina article { max-width: 720px; margin: 0 auto; padding: 24px 16px 60px; line-height: 1.6; }
body.tekstpagina article h2 { font-family: "Delius", cursive; font-weight: normal; color: var(--blauwgroen); font-size: 1.8rem; margin-bottom: 0; }
body.tekstpagina article h3 { color: var(--blauwgroen); margin-top: 28px; }
body.tekstpagina li { margin-bottom: 6px; }
