/* Opmaak van de publieke site Olst in beeld */
:root {
  --bg: #F5F3EE; --ink: #1C1C1A; --ink-2: #3D3A34; --muted: #5E5A52;
  --line: #D6D0C3; --accent: #B23A0E; --placeholder: #D9D4CA;
  --kaart-bg: #ECE8E0; --veld: #FBFAF7; --nieuw: #F2B33D; --groep-rand: rgba(245, 243, 238, .85);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'IBM Plex Sans', system-ui, sans-serif; }
a { color: var(--ink); } a:hover { color: var(--accent); }
.mono { font-family: 'IBM Plex Mono', monospace; }

header, main, footer { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
header { padding-top: 28px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { width: 104px; height: 64px; display: block; flex: none; }
.brand-tekst { display: flex; flex-direction: column; gap: 4px; }
.brand-naam { font-size: 24px; font-weight: 400; letter-spacing: -0.01em; color: var(--ink-2); line-height: 1.1; }
.brand-naam strong { font-weight: 600; color: var(--ink); }
.brand .mono { font-size: 12px; color: var(--muted); }
.brand:hover .brand-naam strong { color: var(--accent); }
header.kop { align-items: center; }
@media (max-width: 600px) { .brand-logo { width: 78px; height: 48px; } .brand-naam { font-size: 20px; } .brand { gap: 10px; } }
nav { display: flex; gap: 24px; font-size: 15px; }
nav a { text-decoration: none; }
nav a[aria-current] { font-weight: 600; }

main { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.map-col { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
#map { width: 100%; aspect-ratio: 10 / 7; min-height: 360px; border-radius: 6px; overflow: hidden; background: var(--kaart-bg); }
.map-col p { margin: 0; font-size: 13px; color: var(--muted); }

aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
aside h1 { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
aside .intro { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.list button, .list a { display: flex; text-decoration: none; align-items: center; gap: 12px; min-height: 48px; padding: 0; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; text-align: left; cursor: pointer; font: inherit; font-size: 15px; color: var(--ink); }
.list button:hover .name, .list a:hover .name { text-decoration: underline; }
.list .num { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--accent); width: 24px; }
.list .name { flex: 1; }
.list .area { font-size: 13px; color: var(--muted); }

figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.photo { width: 100%; max-height: 70vh; aspect-ratio: 4 / 5; background: var(--placeholder); border-radius: 4px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
.photo img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; background: center / contain no-repeat; }
.leeg { margin: 0; padding: 14px 0; color: var(--muted); font-size: 15px; border-bottom: 1px solid var(--line); }
.photo .ph { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--ink-2); padding: 16px; text-align: center; }
figcaption { display: flex; flex-direction: column; gap: 6px; }
.meta-top { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--accent); }
.title { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 0; line-height: inherit; }
.text { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.meta-bottom { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); }
.controls { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 22px; background: transparent;
  font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.link { border: 0; text-decoration: underline; color: var(--ink-2); }

/* kaartmarkeringen */
.marker { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.marker span { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px var(--bg); transition: all .15s ease; }
.marker:hover span { transform: scale(1.15); }
.marker.active span { width: 30px; height: 30px; font-size: 13px; background: var(--ink); color: var(--bg); box-shadow: 0 0 0 4px var(--bg); }
.maplibregl-ctrl-attrib { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; }

/* volledige foto */
#lightbox { position: fixed; inset: 0; background: rgba(20,20,18,.94); display: none; align-items: center; justify-content: center; z-index: 50; padding: 24px; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
#lightbox button { position: absolute; top: 16px; right: 16px; min-width: 44px; min-height: 44px; border: 0; border-radius: 22px;
  background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; padding: 0 16px; }

footer { padding-top: 24px; padding-bottom: 40px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); }
[hidden] { display: none !important; }
.overview { display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }
#detail .controls { margin-top: 16px; }

/* ---------- filters ---------- */
.filters { max-width: 1280px; margin: 0 auto; padding: 18px 24px 0; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 18px; background: transparent;
  font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.klein { min-height: 32px; padding: 0 12px; font-size: 13px; }
.selects { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sel { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.sel select { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 18px; background: transparent;
  font: inherit; font-size: 14px; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- lijst en route ---------- */
.eyebrow { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
#route-kop { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.telling { margin: 0; font-size: 12px; color: var(--muted); }

/* ---------- foto: toen en nu ---------- */
.photo { position: relative; }
.photo img.toen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.schuif { display: flex; align-items: center; gap: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); }
.schuif input { flex: 1; accent-color: var(--accent); min-height: 32px; }
.themas { display: flex; flex-wrap: wrap; gap: 6px; }
.themas:empty, .bron:empty, .gedeeld:empty { display: none; }
.bron { font-size: 12px; color: var(--muted); font-style: italic; }
.gedeeld { margin: 8px 0 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.btn:disabled { opacity: .4; cursor: default; }

/* ---------- punten op de kaart ---------- */
/* .maplibregl-marker zet de punten zelf absoluut neer; daar dus geen position op zetten */
.marker .pijl { position: absolute; inset: 0; display: block; pointer-events: none; }
.marker .pijl::before { content: ""; position: absolute; left: 50%; top: 2px; margin-left: -5px; width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--accent); }
.marker.active .pijl::before { border-bottom-color: var(--ink); top: -2px; }
.marker.stop span { background: var(--ink); color: var(--bg); }
.marker.stop.active span { background: var(--accent); color: #fff; }
.groep { width: 48px; height: 48px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.groep span { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 17px; background: var(--ink); color: var(--bg);
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 500; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--groep-rand); transition: transform .15s ease; }
.groep:hover span { transform: scale(1.08); }

/* ---------- pagina's ---------- */
main.pagina { display: block; padding-top: 32px; padding-bottom: 32px; }
.pagina h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.pagina .intro { margin: 0 0 20px; max-width: 60ch; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.pagina.smal { max-width: 720px; }
.lopend p { max-width: 65ch; font-size: 17px; line-height: 1.65; color: var(--ink-2); margin: 0 0 1em; }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 16px; }
.tegel { display: flex; flex-direction: column; gap: 8px; text-decoration: none; font-size: 14px; }
.tegel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--placeholder); display: block; }
.tegel:hover span { text-decoration: underline; }

.routes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.routekaart { display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.routekaart .strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; border-radius: 4px; overflow: hidden; }
.routekaart .strip img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--placeholder); }
.routekaart h2 { margin: 6px 0 0; font-size: 19px; font-weight: 600; }
.routekaart:hover h2 { text-decoration: underline; }
.routekaart p { margin: 0; font-size: 12px; color: var(--muted); }
.routekaart p.tekst { font-family: inherit; font-size: 14px; color: var(--ink-2); line-height: 1.5; }

@media (max-width: 600px) {
  header, main, footer, .filters { padding-left: 16px; padding-right: 16px; }
  .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .marker span, .groep span { transition: none; } }
#intro-kop { display: flex; flex-direction: column; gap: 16px; }

/* ---------- dronefoto's ---------- */
:root { --drone: #2B5A7A; }
.marker.drone span { width: 28px; height: 28px; border-radius: 8px; background: var(--drone); color: #fff; box-shadow: 0 0 0 3px var(--bg); }
.marker.drone span svg { display: block; }
.marker.drone.active span { width: 34px; height: 34px; background: var(--ink); box-shadow: 0 0 0 4px var(--bg); }
.marker.drone.active span svg { width: 20px; height: 20px; }
.drone-tag { display: inline-flex; vertical-align: -3px; margin-left: 8px; color: var(--drone); }
.drone-tag svg { width: 16px; height: 16px; }
.map-col .legenda { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lg { display: inline-flex; align-items: center; justify-content: center; }
.lg-foto { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.lg-drone { width: 18px; height: 18px; border-radius: 5px; background: var(--drone); color: #fff; margin-left: 10px; }

/* ---------- waar de foto verschijnt ---------- */
.weergave { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.weergave > span { font-size: 13px; color: var(--muted); margin-right: 4px; }
@media (max-width: 899px) { .weergave [data-w="naast"] { display: none; } }

/* boven, onder of in een venster: foto en tekst naast elkaar */
#detail.breed figure { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px 28px; align-items: start; }
#detail.breed .photo { grid-column: 1; max-height: 62vh; }
#detail.breed .schuif { grid-column: 1; }
#detail.breed figcaption { grid-column: 2; grid-row: 1 / span 2; }
#detail.breed .title { font-size: 26px; text-wrap: balance; }
@media (max-width: 700px) {
  #detail.breed figure { grid-template-columns: minmax(0, 1fr); }
  #detail.breed figcaption { grid-column: 1; grid-row: auto; }
}
.slot #detail { padding: 4px 0 8px; }

/* venster */
.venster { position: fixed; inset: 0; z-index: 40; background: rgba(20, 20, 18, .72); display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.venster-paneel { position: relative; width: min(1120px, 100%); max-height: 100%; overflow: auto; background: var(--bg); border-radius: 8px; padding: 52px 28px 24px; }
.venster-sluit { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 22px; background: transparent;
  font: 400 28px/1 var(--sans, 'IBM Plex Sans', sans-serif); color: var(--ink); cursor: pointer; }
.venster-sluit:hover { background: var(--line); }
.venster #detail .photo { max-height: 74vh; }
.venster #close { display: none; }
html.vast { overflow: hidden; }
@media (max-width: 600px) { .venster-paneel { padding: 52px 16px 18px; } }

/* ballon op de kaart */
.ballon .maplibregl-popup-content { padding: 10px 10px 12px; border-radius: 8px; background: var(--bg); box-shadow: 0 8px 28px rgba(0, 0, 0, .2); font-family: inherit; }
.ballon.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--bg); }
.ballon.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--bg); }
.ballon.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--bg); }
.ballon.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--bg); }
.ballon .maplibregl-popup-close-button { width: 32px; height: 32px; top: 2px; right: 2px; font-size: 22px; color: var(--ink); border-radius: 16px; }
.ballon-inhoud img { display: block; width: 100%; max-height: 190px; object-fit: cover; border-radius: 4px; background: var(--placeholder); cursor: zoom-in; }
.ballon-titel { margin: 8px 28px 2px 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.ballon-meta { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--muted); }
.ballon-knoppen { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.mini { width: 36px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: transparent; font: inherit; color: var(--ink); cursor: pointer; }
.mini:hover { border-color: var(--ink-2); }
.mini:disabled { opacity: .35; cursor: default; }
.btn.klein { min-height: 36px; padding: 0 12px; font-size: 13px; margin-left: auto; }
@media (max-width: 600px) { .ballon-inhoud img { max-height: 120px; } .ballon-titel { font-size: 14px; } }

/* ---------- foto's beschermen ---------- */
.photo img, .tegel img, #lightbox img, .ballon-inhoud img, .routekaart img, .list img {
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none;
}
.beschermd-melding { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60;
  margin: 0; padding: 10px 16px; border-radius: 22px; background: var(--ink); color: var(--bg); font-size: 14px; max-width: calc(100% - 32px); text-align: center; }

/* ---------- taal ---------- */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
nav a.taal { font-family: 'IBM Plex Mono', monospace; font-size: 13px; border: 1px solid var(--line); border-radius: 12px; padding: 1px 8px; }
nav a.taal:hover { border-color: var(--ink-2); }
.voet a + a { margin-left: 16px; }

/* ---------- nieuw ---------- */
.nieuw-label { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 4px; background: var(--accent); color: #fff;
  font: 500 10px/1.2 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .05em; vertical-align: 2px; text-decoration: none; }
.tegel { position: relative; }
.tegel .nieuw-label.op-foto { position: absolute; top: 8px; left: 8px; margin: 0; }
.tegel:hover .nieuw-label { text-decoration: none; }
.marker.nieuw::after, .lg-nieuw { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--nieuw); box-shadow: 0 0 0 2px var(--bg); }
.marker.nieuw::after { position: absolute; top: 6px; right: 6px; pointer-events: none; }
.marker { position: relative; }
.lg-nieuw { display: inline-block; margin-left: 10px; vertical-align: -1px; }
#d-top .nieuw-label { margin: 0 6px 0 0; }

/* ---------- hartjes ---------- */
.btn.hart { display: inline-flex; align-items: center; gap: 6px; }
.hart-icoon { fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.btn.hart[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.btn.hart[aria-pressed="true"] .hart-icoon { fill: var(--accent); stroke: var(--accent); }
.btn.hart.tik .hart-icoon { transform: scale(1.3); }
.hart-aantal:empty { display: none; }
.tegel .hartjes { font-size: 12px; color: var(--muted); font-family: 'IBM Plex Mono', monospace; }
.ballon-knoppen .hart { min-height: 36px; padding: 0 10px; }
@media (prefers-reduced-motion: reduce) { .hart-icoon { transition: none; } }

/* ---------- aanvragen en tips ---------- */
.detail-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 0; }
.detail-links .btn.link, .tip-uitnodiging .btn.link { padding: 0; min-height: 32px; font-size: 14px; color: var(--ink); }
.map-col .tip-uitnodiging { font-size: 14px; color: var(--ink-2); }
.formulier-paneel { width: min(560px, 100%); }
.formulier-paneel h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -0.01em; }
.form fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.form legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.form label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
.form label.keuze { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink); margin: 6px 0; cursor: pointer; }
.form label.keuze input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.form input:not([type=radio]):not([type=checkbox]), .form textarea, .form select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--veld); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; min-height: 44px; }
.form input[type=file] { padding: 8px; }
.form textarea { resize: vertical; }
.form :focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-foto { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.form-foto img { width: 88px; height: 66px; object-fit: cover; border-radius: 4px; background: var(--placeholder); flex: none; }
.form-foto p { margin: 0; }
.form-foto .mono, .form-bij .mono { font-size: 12px; color: var(--muted); }
.form-bij { margin: 6px 0; font-size: 14px; }
.form-bij .btn.link { min-height: 28px; padding: 0 4px; font-size: 13px; }
.plek-kiezen { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; }
.plek-kiezen .mono { font-size: 12px; color: var(--muted); }
.plek-kiezen .btn.link { padding: 0; min-height: 32px; }
.klein-uitleg { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.form-acties { margin-top: 14px; }
.form-status { min-height: 1.2em; margin: 10px 0 0; font-size: 14px; }
.form-status.fout { color: var(--accent); }
.lokveld { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bedankt p { font-size: 17px; line-height: 1.5; margin: 0 0 18px; }
.kaart-vak { position: relative; }
.kies-plek { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--bg) !important; padding: 8px 8px 8px 16px; border-radius: 22px; font-size: 14px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.2); white-space: nowrap; }
.kies-plek .btn { border-color: var(--bg); color: var(--bg); margin: 0; }
.kaart-vak.kiezen #map .maplibregl-canvas { cursor: crosshair; }
.kaart-vak.kiezen .marker, .kaart-vak.kiezen .groep { pointer-events: none; opacity: .6; }

/* ---------- auteursrecht ---------- */
.lopend h2 { font-size: 19px; margin: 1.6em 0 .5em; letter-spacing: -0.01em; }
.lopend ul { max-width: 65ch; margin: 0 0 1em; padding-left: 1.2em; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.btn.link.inline { min-height: 0; padding: 0; font-size: inherit; line-height: inherit; vertical-align: baseline; color: var(--ink); }
.voet a[aria-current] { font-weight: 600; }

/* ---------- donker ----------
   Standaard volgt de site de instelling van de telefoon of computer. Met de themaknop kiest een bezoeker
   zelf licht of donker; dat staat dan als data-thema op <html>. */
:root[data-thema="donker"] { --bg: #161614; --ink: #ECE8E0; --ink-2: #CFC9BD; --muted: #9F998E; --line: #3A3833; --accent: #E2764F; --placeholder: #2A2925; --drone: #4F86AD; --kaart-bg: #1F201D; --veld: #1F1F1C; --nieuw: #E9A92E; --groep-rand: rgba(22, 22, 20, .85); color-scheme: dark; }
:root[data-thema="donker"] .maplibregl-ctrl-group { background: #2A2925; }
:root[data-thema="donker"] .maplibregl-ctrl-group button + button { border-top-color: #3A3833; }
:root[data-thema="donker"] .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(.9); }
:root[data-thema="donker"] .maplibregl-ctrl-attrib, :root[data-thema="donker"] .maplibregl-ctrl.maplibregl-ctrl-attrib { background: rgba(22, 22, 20, .8); color: var(--muted); }
:root[data-thema="donker"] .maplibregl-ctrl-attrib a { color: var(--ink-2); }
:root[data-thema="donker"] .maplibregl-ctrl-attrib-button { filter: invert(1); }
:root[data-thema="donker"] .marker.active span, :root[data-thema="donker"] .marker.stop span { box-shadow: 0 0 0 4px var(--bg); }
:root[data-thema="donker"] .ballon .maplibregl-popup-content { box-shadow: 0 8px 28px rgba(0, 0, 0, .6); }
:root[data-thema="donker"] .kies-plek { box-shadow: 0 4px 16px rgba(0, 0, 0, .6); }
:root[data-thema="donker"] .photo img, :root[data-thema="donker"] .tegel img { background-color: var(--placeholder); }
:root[data-thema="donker"] .marker span, :root[data-thema="donker"] .marker.stop.active span, :root[data-thema="donker"] .nieuw-label { color: #161614; }
:root[data-thema="donker"] .marker.drone span, :root[data-thema="donker"] .lg-drone { color: #fff; }
:root[data-thema="donker"] .marker.drone.active span { color: #161614; }
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="licht"]) { --bg: #161614; --ink: #ECE8E0; --ink-2: #CFC9BD; --muted: #9F998E; --line: #3A3833; --accent: #E2764F; --placeholder: #2A2925; --drone: #4F86AD; --kaart-bg: #1F201D; --veld: #1F1F1C; --nieuw: #E9A92E; --groep-rand: rgba(22, 22, 20, .85); color-scheme: dark; }
  :root:not([data-thema="licht"]) .maplibregl-ctrl-group { background: #2A2925; }
  :root:not([data-thema="licht"]) .maplibregl-ctrl-group button + button { border-top-color: #3A3833; }
  :root:not([data-thema="licht"]) .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(.9); }
  :root:not([data-thema="licht"]) .maplibregl-ctrl-attrib, :root:not([data-thema="licht"]) .maplibregl-ctrl.maplibregl-ctrl-attrib { background: rgba(22, 22, 20, .8); color: var(--muted); }
  :root:not([data-thema="licht"]) .maplibregl-ctrl-attrib a { color: var(--ink-2); }
  :root:not([data-thema="licht"]) .maplibregl-ctrl-attrib-button { filter: invert(1); }
  :root:not([data-thema="licht"]) .marker.active span, :root:not([data-thema="licht"]) .marker.stop span { box-shadow: 0 0 0 4px var(--bg); }
  :root:not([data-thema="licht"]) .ballon .maplibregl-popup-content { box-shadow: 0 8px 28px rgba(0, 0, 0, .6); }
  :root:not([data-thema="licht"]) .kies-plek { box-shadow: 0 4px 16px rgba(0, 0, 0, .6); }
  :root:not([data-thema="licht"]) .photo img, :root:not([data-thema="licht"]) .tegel img { background-color: var(--placeholder); }
  :root:not([data-thema="licht"]) .marker span, :root:not([data-thema="licht"]) .marker.stop.active span, :root:not([data-thema="licht"]) .nieuw-label { color: #161614; }
  :root:not([data-thema="licht"]) .marker.drone span, :root:not([data-thema="licht"]) .lg-drone { color: #fff; }
  :root:not([data-thema="licht"]) .marker.drone.active span { color: #161614; }
}
/* het logo in de goede kleur */
.brand-logo.donker { display: none; }
:root[data-thema="donker"] .brand-logo.licht { display: none; }
:root[data-thema="donker"] .brand-logo.donker { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="licht"]) .brand-logo.licht { display: none; }
  :root:not([data-thema="licht"]) .brand-logo.donker { display: block; }
}
/* de themaknop */
.thema-knop { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line);
  border-radius: 16px; background: transparent; color: var(--ink); cursor: pointer; }
.thema-knop:hover { border-color: var(--ink-2); }
.thema-knop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.thema-knop svg { width: 16px; height: 16px; display: none; }
.thema-knop[data-stand="auto"] .ic-auto, .thema-knop[data-stand="licht"] .ic-licht, .thema-knop[data-stand="donker"] .ic-donker { display: block; }
nav { align-items: center; }

/* ---------- zoeken ---------- */
.zoek { position: relative; display: flex; align-items: center; flex: 0 1 300px; min-width: 200px; margin: 0; }
.zoek svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.zoek input { width: 100%; min-height: 36px; padding: 0 12px 0 34px; border: 1px solid var(--line); border-radius: 18px; background: var(--veld);
  font: inherit; font-size: 14px; color: var(--ink); }
.zoek input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 600px) { .zoek { flex-basis: 100%; } .zoek input { font-size: 16px; min-height: 40px; } }

/* ---------- verhalen ---------- */
.verhalen { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.verhalen h3 { margin: 0 0 10px; font-size: 16px; }
.verhalen-lijst { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.verhalen-lijst:empty { display: none; }
.verhalen-lijst li { border-left: 3px solid var(--line); padding-left: 12px; }
.verhalen-lijst p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.verhalen-lijst .verhaal-wie { margin-top: 4px; font-size: 13px; color: var(--muted); }
.verhalen-leeg { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
nav a { white-space: nowrap; }
@media (max-width: 600px) { nav { gap: 14px; font-size: 15px; flex-wrap: wrap; } }

/* ---------- uitgelicht ---------- */
.uitgelicht-lijst { display: flex; flex-direction: column; gap: 48px; margin-top: 24px; width: 100%; }
.uitgelicht-foto { margin: 0; }
.uitgelicht-foto a { display: block; }
.uitgelicht-foto img { display: block; width: auto; height: auto; max-width: 100%; max-height: 86vh; margin: 0 auto; border-radius: 4px; }
.uitgelicht-foto figcaption { justify-content: center; text-align: center; }
.uitgelicht-foto figcaption .tekst { margin: 0 auto; }
.uitgelicht-foto figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 10px; font-size: 16px; }
.uitgelicht-foto figcaption .mono { font-size: 12px; color: var(--muted); }
.uitgelicht-foto figcaption .tekst { flex-basis: 100%; max-width: 70ch; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
#view-uitgelicht { display: block; }
#view-uitgelicht[hidden] { display: none; }
