/* ============ Basis ============ */
:root {
  --wand: #17120d;
  --wand-2: #211a13;
  --wand-3: #2c2219;
  --ivoor: #f2ead9;
  --ivoor-2: #c9bda6;
  --goud: #c9a24b;
  --goud-licht: #e2c374;
  --rood: #9b2c22;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--serif); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.verborgen { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hint { font-size: .88rem; opacity: .75; margin: .3rem 0 .8rem; }
.melding { padding: .7rem 1rem; border-radius: 6px; margin: 0 0 1rem; font-family: var(--sans); font-size: .95rem; }

/* ============ Publieke site ============ */
body.site { background: var(--wand); color: var(--ivoor); min-height: 100vh; display: flex; flex-direction: column;
  background-image: radial-gradient(ellipse at 50% -10%, rgba(201,162,75,.10), transparent 60%); }
.site .melding-ok { background: rgba(110,140,80,.18); border: 1px solid rgba(150,180,110,.4); }
.site .melding-fout { background: rgba(155,44,34,.22); border: 1px solid rgba(200,80,60,.45); }
.site .melding-let { background: rgba(201,162,75,.15); border: 1px solid rgba(201,162,75,.4); }

.kop { border-bottom: 1px solid rgba(201,162,75,.25); }
.kop-binnen { max-width: 1280px; margin: 0 auto; padding: .9rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.merk { text-decoration: none; font-size: 1.15rem; letter-spacing: .04em; color: var(--goud-licht); }
.kruis { color: var(--goud); }
.kruis.groot { font-size: 2.6rem; line-height: 1; margin-bottom: .4rem; }
.kop nav a { font-family: var(--sans); font-size: .9rem; color: var(--ivoor-2); text-decoration: none; margin-left: 1.2rem; }
.kop nav a:hover { color: var(--goud-licht); }

.inhoud { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.voet { text-align: center; font-size: .85rem; color: var(--ivoor-2); opacity: .6; padding: 2rem 1rem; border-top: 1px solid rgba(201,162,75,.15); }

.intro { text-align: center; max-width: 720px; margin: 0 auto 2rem; }
.intro h1 { font-weight: normal; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: .03em; margin: .2rem 0 .6rem; color: var(--goud-licht); }
.intro p { color: var(--ivoor-2); font-size: 1.08rem; }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; align-items: center; margin-bottom: .6rem; font-family: var(--sans); }
.filters input[type=search], .filters select { font: inherit; font-size: .95rem; padding: .55rem .75rem; border-radius: 6px; }
.site .filters input[type=search], .site .filters select { background: var(--wand-2); color: var(--ivoor); border: 1px solid rgba(201,162,75,.3); }
.site .filters input[type=search] { min-width: 260px; }
.filters button, .kaart-form button, .interesse button { font: inherit; font-family: var(--sans); cursor: pointer; }
.site .filters button, .site .kaart-form button, .site .interesse button {
  background: var(--goud); color: #1b140c; border: 0; border-radius: 6px; padding: .55rem 1.1rem; font-weight: 600; }
.site .filters button:hover, .site .kaart-form button:hover, .site .interesse button:hover { background: var(--goud-licht); }
.wis { font-size: .9rem; color: var(--ivoor-2); }
.aantal { text-align: center; font-family: var(--sans); font-size: .85rem; color: var(--ivoor-2); opacity: .7; margin: 0 0 1.8rem; }
.leeg { text-align: center; color: var(--ivoor-2); padding: 3rem 0; }

.raster { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2rem 1.6rem; }
.kaart a { text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.lijst { margin: 0; aspect-ratio: 3 / 4; background: linear-gradient(#1d1610, #120e0a); border: 1px solid rgba(201,162,75,.35);
  padding: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.45), inset 0 0 0 4px rgba(201,162,75,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.lijst img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 2px 10px rgba(0,0,0,.6); }
.raster .lijst { overflow: hidden; }
.raster .lijst img { width: 100%; height: 100%; max-height: none; box-shadow: none; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.kaart a:hover .lijst { transform: translateY(-3px); border-color: var(--goud); box-shadow: 0 14px 30px rgba(0,0,0,.55), 0 0 0 1px rgba(201,162,75,.3); }
.geen-foto { display: flex; flex-direction: column; align-items: center; gap: .3rem; color: var(--ivoor-2); opacity: .5; font-family: var(--sans); font-size: .85rem; }
.geen-foto span { font-size: 2.4rem; color: var(--goud); }
.kaart .tekst { padding: .9rem .2rem 0; }
.kaart h2 { font-weight: normal; font-size: 1.15rem; line-height: 1.3; margin: 0 0 .15rem; color: var(--ivoor); }
.regnr { font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; color: var(--goud); }
.kaart p { font-size: .92rem; color: var(--ivoor-2); margin: .45rem 0 0; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; margin-top: .6rem; font-family: var(--sans); font-size: .8rem; }
.loc { color: var(--ivoor-2); }
.loc::before { content: "⌂ "; opacity: .7; }
.badge { display: inline-block; padding: .12rem .55rem; border-radius: 99px; font-family: var(--sans); font-size: .75rem; letter-spacing: .02em; border: 1px solid; }
.b-leen { color: #b9dc9a; border-color: rgba(160,210,120,.5); background: rgba(120,170,80,.14); }
.b-koop { color: var(--goud-licht); border-color: rgba(226,195,116,.55); background: rgba(201,162,75,.14); }
.b-uit  { color: #9fc3e0; border-color: rgba(140,180,220,.45); background: rgba(100,150,200,.12); }
.b-niet { color: var(--ivoor-2); border-color: rgba(201,189,166,.3); background: rgba(255,255,255,.03); }

.kruimel { display: flex; justify-content: space-between; font-family: var(--sans); font-size: .9rem; margin-bottom: 1.5rem; }
.kruimel a { color: var(--ivoor-2); text-decoration: none; }
.kruimel a:hover { color: var(--goud-licht); }
.bladeren a { margin-left: 1.2rem; }
.detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.detail .lijst.groot { aspect-ratio: auto; min-height: 320px; padding: 16px; }
.detail .lijst.groot img { max-height: 80vh; }
.detail-tekst h1 { font-weight: normal; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; margin: .2rem 0 .7rem; color: var(--goud-licht); }
.omschrijving { font-size: 1.07rem; margin: 1.2rem 0; max-width: 62ch; }
.gegevens { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.4rem; margin: 1.5rem 0; padding-top: 1.2rem; border-top: 1px solid rgba(201,162,75,.2); }
.gegevens dt { font-family: var(--sans); font-size: .82rem; letter-spacing: .04em; color: var(--goud); text-transform: uppercase; padding-top: .15rem; }
.gegevens dd { margin: 0; }
.interesse { margin-top: 1.8rem; padding: 1.3rem 1.4rem; background: var(--wand-2); border: 1px solid rgba(201,162,75,.3); border-radius: 8px; }
.interesse h2 { font-weight: normal; margin: 0 0 .2rem; color: var(--goud-licht); }
.interesse label, .kaart-form label { display: block; font-family: var(--sans); font-size: .88rem; margin-bottom: .8rem; color: var(--ivoor-2); }
.site .interesse input, .site .interesse textarea, .site .kaart-form input {
  display: block; width: 100%; margin-top: .3rem; font: inherit; font-size: 1rem; padding: .55rem .7rem; border-radius: 6px;
  background: var(--wand); color: var(--ivoor); border: 1px solid rgba(201,162,75,.3); }
.site input:focus, .site textarea:focus, .site select:focus { outline: 2px solid var(--goud); outline-offset: 1px; }
.knop-sec { display: inline-block; font-family: var(--sans); font-size: .9rem; padding: .45rem .9rem; border-radius: 6px; text-decoration: none; border: 1px solid currentColor; }

.inlog { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.kaart-form { width: 100%; max-width: 380px; background: var(--wand-2); border: 1px solid rgba(201,162,75,.35); border-radius: 10px; padding: 2rem; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.kaart-form h1 { font-weight: normal; color: var(--goud-licht); margin: 0 0 .3rem; font-size: 1.6rem; }
.kaart-form label { text-align: left; }
.kaart-form button { width: 100%; margin-top: .4rem; }

@media (max-width: 800px) {
  .detail { grid-template-columns: 1fr; gap: 1.5rem; }
  .raster { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.4rem 1rem; }
  .kaart p { display: none; }
  .site .filters input[type=search] { min-width: 0; flex: 1 1 100%; }
  .inhoud { padding: 1.2rem 1rem 3rem; }
}

/* ============ Beheer ============ */
body.beheer { background: #f6f3ec; color: #2a241c; font-family: var(--sans); font-size: 15px; }
.bkop { background: #231c14; color: #f2ead9; padding: .7rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; position: sticky; top: 0; z-index: 5; }
.bkop .merk { font-family: var(--serif); font-size: 1.05rem; }
.bkop nav { display: flex; flex-wrap: wrap; gap: .2rem; }
.bkop nav a { color: #d8ccb4; text-decoration: none; padding: .35rem .7rem; border-radius: 5px; font-size: .9rem; }
.bkop nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.bkop nav a.actief { background: var(--goud); color: #1b140c; }
.bkop nav a.sec { opacity: .7; }
.teller { background: var(--rood); color: #fff; border-radius: 99px; padding: 0 .45rem; font-size: .75rem; margin-left: .2rem; }
.binhoud { max-width: 1300px; margin: 0 auto; padding: 1.5rem; }
.binhoud h1 { font-family: var(--serif); font-weight: normal; font-size: 1.8rem; margin: .2rem 0 1rem; }
.binhoud h2 { font-family: var(--serif); font-weight: normal; font-size: 1.3rem; margin: 1.6rem 0 .7rem; }
.beheer .melding-ok { background: #e6f0dc; border: 1px solid #b6cf9c; }
.beheer .melding-fout { background: #f6dedb; border: 1px solid #dfa49c; }
.beheer .melding-let { background: #fbf0d4; border: 1px solid #e3c77c; }
.stats { color: #6b5f4d; margin: -.4rem 0 1rem; }
.beheer input, .beheer select, .beheer textarea { font: inherit; padding: .45rem .6rem; border: 1px solid #cfc5b2; border-radius: 5px; background: #fff; color: inherit; }
.beheer input:focus, .beheer select:focus, .beheer textarea:focus { outline: 2px solid var(--goud); outline-offset: 0; border-color: var(--goud); }
.beheer button, .knop { font: inherit; cursor: pointer; background: #2f261c; color: #fff; border: 0; border-radius: 5px; padding: .5rem 1rem; text-decoration: none; display: inline-block; }
.beheer button:hover, .knop:hover { background: #4a3c2c; }
.beheer .knop-sec { background: transparent; color: #2f261c; border: 1px solid #b9ad97; padding: .45rem .9rem; }
.beheer .knop-sec:hover { background: #ebe4d6; }
.beheer .knop-gevaar { background: #fff; color: var(--rood); border: 1px solid #d9a39b; margin-left: auto; }
.beheer .knop-gevaar:hover { background: #f6dedb; }
.beheer .knop-klein { padding: .15rem .55rem; background: transparent; color: #8a7d68; border: 1px solid #d7cdb9; }
.filters.licht { justify-content: flex-start; margin-bottom: 1rem; }
.filters.licht input[type=search] { min-width: 320px; }
.filters.licht .knop { margin-left: auto; }

.tabel { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e2d9c8; font-size: .92rem; }
.tabel th { text-align: left; background: #efe8da; padding: .5rem .6rem; font-weight: 600; font-size: .82rem; color: #5a4e3c; position: sticky; top: 52px; }
.tabel td { padding: .45rem .6rem; border-top: 1px solid #efe8da; vertical-align: middle; }
.tabel tr.klikbaar { cursor: pointer; }
.tabel tr.klikbaar:hover td, .tabel tr.nieuw td { background: #fbf7ee; }
.tabel .nr { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.tabel .nr a { text-decoration: none; }
.tabel .mini img { height: 48px; width: auto; border: 1px solid #ddd; display: inline-block; vertical-align: middle; }
.tabel .midden { text-align: center; }
.tabel.smal { width: auto; min-width: 520px; }
.tabel.smal input { width: 100%; }
.tabel .getal { width: 4.5rem; }
.tabel.diff .oud { color: #8a7d68; text-decoration: line-through; }
.tabel.diff .nieuw { color: #2d5a1c; }
.geen { color: #b3a690; }
.status.ok { color: #3f7a26; }
.status.fout { color: var(--rood); }
form.inline { display: inline; }

.bewerk .kolommen, .kolommen { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
fieldset { border: 1px solid #e2d9c8; background: #fff; border-radius: 8px; padding: 1rem 1.2rem 1.1rem; margin: 0 0 1.2rem; }
legend { font-weight: 600; font-size: .85rem; padding: 0 .4rem; color: #6b5f4d; }
fieldset.prive { background: #fbf8f1; border-style: dashed; }
.bewerk label, .blokform label { display: block; font-size: .85rem; color: #5a4e3c; margin-bottom: .8rem; }
.bewerk label input:not([type=checkbox]), .bewerk label select, .bewerk label textarea,
.blokform label input, .blokform label select, .blokform label textarea { display: block; width: 100%; margin-top: .25rem; font-size: .95rem; }
.bewerk textarea { font-family: var(--serif); font-size: 1rem; line-height: 1.5; }
.rij2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
label.vink { display: flex; align-items: center; gap: .5rem; }
.voorbeeld { max-height: 420px; width: auto; margin: 0 auto .4rem; border: 1px solid #ddd; }
.acties { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0; }
.blokform { background: #fff; border: 1px solid #e2d9c8; border-radius: 8px; padding: .4rem 1.2rem 1.2rem; margin-bottom: 1.2rem; }
.uitleg { background: #fff; border: 1px solid #e2d9c8; border-radius: 8px; padding: .8rem 1.2rem; margin-bottom: 1.2rem; }
.uitleg ul { margin: .3rem 0 .6rem; padding-left: 1.2rem; }
.upload { display: flex; gap: .8rem; align-items: center; background: #fff; border: 1px dashed #cfc5b2; border-radius: 8px; padding: 1.2rem; }
details.blok { background: #fff; border: 1px solid #e2d9c8; border-radius: 8px; padding: .6rem 1rem; margin: 1rem 0; }
details.blok summary { cursor: pointer; font-weight: 600; }
details.blok .tabel { margin-top: .6rem; }
.lijstblok { margin-bottom: 2rem; }
progress { width: 220px; }
code { background: #efe8da; padding: .05rem .35rem; border-radius: 3px; font-size: .88em; }

@media (max-width: 900px) {
  .bewerk .kolommen, .kolommen { grid-template-columns: 1fr; }
  .filters.licht input[type=search] { min-width: 0; flex: 1; }
  .tabel th { position: static; }
}

/* ============ Meerkeuzefilter ============ */
.multi { position: relative; font-family: var(--sans); }
.multi summary { list-style: none; cursor: pointer; font-size: .95rem; padding: .55rem 2rem .55rem .75rem; border-radius: 6px;
  background: var(--wand-2); color: var(--ivoor); border: 1px solid rgba(201,162,75,.3); min-width: 190px; position: relative; user-select: none; }
.multi summary::-webkit-details-marker { display: none; }
.multi summary::after { content: "▾"; position: absolute; right: .7rem; color: var(--goud); }
.multi[open] summary { border-color: var(--goud); }
.multi.actief summary { border-color: var(--goud); color: var(--goud-licht); }
.multi .opties { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 260px; max-height: 60vh; overflow: auto;
  background: var(--wand-2); border: 1px solid rgba(201,162,75,.4); border-radius: 8px; padding: .4rem; box-shadow: 0 14px 34px rgba(0,0,0,.6); }
.multi label { justify-content: flex-start; text-align: left; display: flex; align-items: center; gap: .55rem; padding: .4rem .5rem; border-radius: 5px; cursor: pointer; font-size: .92rem; color: var(--ivoor); white-space: nowrap; }
.multi label:hover { background: rgba(201,162,75,.1); }
.multi label span { margin-left: auto; padding-left: 1rem; font-size: .8rem; color: var(--ivoor-2); opacity: .7; }
.multi label.groep { font-weight: 600; color: var(--goud-licht); }
.multi label.lid { padding-left: 1.6rem; }
.multi input[type=checkbox] { accent-color: var(--goud); width: 1rem; height: 1rem; margin: 0; padding: 0; min-width: 0; flex: none; }
.site .multi .toepassen { width: 100%; margin-top: .4rem; }
@media (max-width: 800px) { .multi { flex: 1 1 45%; } .multi summary { min-width: 0; } .multi .opties { min-width: 240px; } }
