/* Snuffelland Vintage Market - huisstijl afgeleid van het logo (inkt, oker, papier) */
:root {
  --ink: #1f1e1c;
  --ink-2: #3a3733;
  --muted: #6b655d;
  --paper: #f7f1e8;
  --paper-2: #efe6d8;
  --card: #fffdf9;
  --line: #e2d8ca;
  --ochre: #cc8f4d;
  --ochre-dark: #8a5a25;     /* tekstcontrast op licht */
  --ochre-soft: #f3e2cd;
  /* statuskleuren (ook met patroon/label onderscheidbaar) */
  --free: #2f7d4f;  --free-bg: #dcefe2;
  --taken: #5e5953; --taken-bg: #cfc8bf;
  --held: #a36a00;  --held-bg: #f6dc9c;
  --reserved: #3f5f9e; --reserved-bg: #d8e2f3;
  --off: #9b958d;   --off-bg: #eeebe6;
  --danger: #b3261e; --danger-bg: #fbe3e1;
  --ok: #2f7d4f; --ok-bg: #dcefe2;
  --warn: #8a5a00; --warn-bg: #fdf0cc;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(31,30,28,.06), 0 6px 18px rgba(31,30,28,.06);
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.5; font-size: 16px; }
a { color: var(--ochre-dark); }
a:hover { color: var(--ink); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.45rem; font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--ochre-dark); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ---------- header publieke site */
.site-head { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .06em; }
.brand img { height: 46px; }
.nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav a { color: #f2ebe1; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.08); color: #fff; }
.nav a.cta { background: var(--ochre); color: var(--ink); }
.nav a.cta:hover { background: #ddb07f; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; }
  .nav.open { display: flex; }
}

/* ---------- hero */
.hero { background: radial-gradient(1200px 400px at 80% -10%, #3a332b 0%, transparent 60%), var(--ink); color: #fff; padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 14px; background: repeating-linear-gradient(90deg, var(--ochre) 0 28px, transparent 28px 40px); opacity: .9; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: #e8dfd2; max-width: 38em; }
.hero .logo-card { background: var(--paper); border-radius: 18px; padding: 26px; box-shadow: 0 20px 50px rgba(0,0,0,.35); transform: rotate(-1.5deg); }
.hero .eyebrow { color: var(--ochre); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero .logo-card { max-width: 360px; } }
.facts { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; }
.fact strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--ochre); }
.fact span { color: #d8cfc2; font-size: .9rem; }

/* ---------- secties */
.section { padding: 56px 0; }
.section.alt { background: var(--paper-2); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.ticket { position: relative; border: 2px dashed var(--ochre); background: var(--card); border-radius: 14px; padding: 22px; }
.ticket .price { font-size: 2.2rem; font-weight: 800; }
.ticket .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 1.6em; position: relative; margin: .35em 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ochre-dark); font-weight: 800; }

/* ---------- knoppen & formulieren */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; font-family: inherit; line-height: 1.2; }
.btn:hover { background: var(--ink-2); color: #fff; }
.btn.ochre { background: var(--ochre); border-color: var(--ochre); color: var(--ink); }
.btn.ochre:hover { background: #ddb07f; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: .85rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 3px; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]), select, textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid #cfc3b2; border-radius: 8px; background: #fff; font: inherit; color: var(--ink);
}
textarea { min-height: 90px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid rgba(204,143,77,.55); outline-offset: 1px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- meldingen & badges */
.flash { padding: 12px 16px; border-radius: 8px; margin: 12px 0; border: 1px solid; }
.flash.ok, .flash.success { background: var(--ok-bg); border-color: #a9d3b8; color: #1d5134; }
.flash.error { background: var(--danger-bg); border-color: #efb3ad; color: #7d1a14; }
.flash.warn, .flash.info { background: var(--warn-bg); border-color: #ecd38b; color: #6b4500; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.b-ok { background: var(--ok-bg); color: #1d5134; border-color: #a9d3b8; }
.b-warn { background: var(--warn-bg); color: #6b4500; border-color: #ecd38b; }
.b-danger { background: var(--danger-bg); color: #7d1a14; border-color: #efb3ad; }
.b-muted { background: var(--off-bg); color: #55504a; border-color: #ddd6cc; }
.b-info { background: var(--reserved-bg); color: #263f6e; border-color: #b6c6e4; }
.b-ochre { background: var(--ochre-soft); color: var(--ochre-dark); border-color: #e5c59f; }

/* ---------- tabellen */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th { text-align: left; background: var(--paper-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px 12px; border-bottom: 1px solid #efe8dd; vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr:hover td { background: #fffaf2; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* ---------- plattegrond */
.plan-shell { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
@media (max-width: 980px) { .plan-shell { grid-template-columns: 1fr; } }
.hall-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.hall-tabs button { border: 1.5px solid var(--line); background: var(--card); padding: 7px 12px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; color: var(--ink); }
.hall-tabs button .cnt { font-weight: 600; color: var(--free); margin-left: 4px; }
.hall-tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.hall-tabs button.active .cnt { color: #9fe0b8; }
.hall-tabs button[disabled] { opacity: .5; cursor: not-allowed; }
.plan-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.plan-box svg { width: 100%; height: auto; display: block; touch-action: manipulation; }
.st rect { stroke-width: 1.5; }
.st text { font-weight: 700; pointer-events: none; text-anchor: middle; dominant-baseline: central; }
.st.vrij rect { fill: var(--free-bg); stroke: var(--free); cursor: pointer; }
.st.vrij text { fill: #1d5134; }
.st.vrij:hover rect { fill: #bfe3cb; }
.st.bezet rect { fill: var(--taken-bg); stroke: var(--taken); }
.st.bezet text { fill: #3b3732; }
.st.voorlopig rect { fill: url(#pat-held); stroke: var(--held); }
.st.voorlopig text { fill: #5c3c00; }
.st.voorbehouden rect { fill: url(#pat-res); stroke: var(--reserved); }
.st.voorbehouden text { fill: #263f6e; }
.st.inactief rect { fill: url(#pat-off); stroke: var(--off); }
.st.inactief text { fill: #8a847c; }
.st.sel rect, .st.sel:hover rect { fill: var(--ochre); stroke: var(--ink); stroke-width: 3; }
.st.sel text { fill: var(--ink); }
.st.suggest rect { stroke: var(--ochre-dark); stroke-width: 3; stroke-dasharray: 5 3; }
.st.mine rect { stroke: var(--ochre-dark); stroke-width: 3; }
.st.edit rect { cursor: move; }
.hall-wall { fill: #fbf8f3; stroke: var(--ink); stroke-width: 3; }
.door.ingang { fill: var(--ochre); }
.door.hoofdingang { fill: var(--ink); }
.door.nooddeur { fill: #2e8b57; }
.door-label { font-size: 11px; font-weight: 700; fill: var(--ink-2); }
.flow { stroke: #9b8b75; stroke-width: 2; fill: none; marker-end: url(#arrow); stroke-dasharray: 8 6; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .85rem; margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 18px; height: 14px; border-radius: 3px; border: 1.5px solid; display: inline-block; }
.lg-free { background: var(--free-bg); border-color: var(--free) !important; }
.lg-taken { background: var(--taken-bg); border-color: var(--taken) !important; }
.lg-held { background: repeating-linear-gradient(45deg, var(--held-bg) 0 4px, #fff 4px 7px); border-color: var(--held) !important; }
.lg-res { background: repeating-linear-gradient(-45deg, var(--reserved-bg) 0 4px, #fff 4px 7px); border-color: var(--reserved) !important; }
.lg-off { background: repeating-linear-gradient(45deg, #ddd 0 2px, #fff 2px 6px); border-color: var(--off) !important; }
.lg-sel { background: var(--ochre); border-color: var(--ink) !important; }
.summary { position: sticky; top: 84px; }
.summary .line { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.summary .total { font-size: 1.3rem; font-weight: 800; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--ochre-soft); border: 1px solid #e5c59f; padding: 3px 4px 3px 10px; border-radius: 999px; font-weight: 700; font-size: .85rem; margin: 2px; }
.chip button { border: 0; background: rgba(0,0,0,.08); border-radius: 999px; width: 22px; height: 22px; cursor: pointer; }
.problems { background: var(--danger-bg); border: 1px solid #efb3ad; border-radius: 8px; padding: 10px 12px; color: #7d1a14; font-size: .9rem; }
.problems ul { margin: 4px 0 0; padding-left: 18px; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.steps span { padding: 6px 12px; border-radius: 999px; background: var(--paper-2); font-weight: 700; font-size: .85rem; color: var(--muted); }
.steps span.on { background: var(--ink); color: #fff; }
.formula-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 720px) { .formula-pick { grid-template-columns: 1fr; } }
.formula-pick label { border: 2px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; background: var(--card); font-weight: 500; margin: 0; }
.formula-pick input { position: absolute; opacity: 0; }
.formula-pick label:has(input:checked) { border-color: var(--ochre); background: var(--ochre-soft); }
.formula-pick strong { display: block; font-size: 1.02rem; }

/* ---------- footer */
.site-foot { background: var(--ink); color: #d8cfc2; padding: 40px 0 26px; margin-top: 40px; font-size: .92rem; }
.site-foot a { color: #f0c995; }
.site-foot .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 26px; }
@media (max-width: 720px) { .site-foot .cols { grid-template-columns: 1fr; } }
.site-foot .legal { border-top: 1px solid #3b3833; margin-top: 26px; padding-top: 16px; font-size: .82rem; color: #a49b8f; }

/* ---------- beheer-layout */
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--ink) 250px, transparent 250px); }
.side { background: var(--ink); color: #e8e0d4; padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { padding: 4px 8px 14px; }
.side .brand img { height: 52px; }
.side h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: #9d9487; margin: 16px 10px 6px; }
.side a { display: flex; justify-content: space-between; align-items: center; color: #e8e0d4; text-decoration: none; padding: 7px 10px; border-radius: 8px; font-size: .92rem; font-weight: 600; }
.side a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side a.active { background: var(--ochre); color: var(--ink); }
.side .count { background: #b3261e; color: #fff; border-radius: 999px; padding: 0 7px; font-size: .75rem; }
.main { padding: 22px 28px 60px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.topbar h1 { font-size: 1.6rem; margin: 0; }
.user-pill { font-size: .85rem; color: var(--muted); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat .v { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat .s { font-size: .82rem; color: var(--muted); }
.bar { height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ochre); }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.active { color: var(--ink); border-color: var(--ochre); }
details.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
details.box summary { cursor: pointer; font-weight: 700; }
.inline-form { display: inline; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.toolbar .field { margin: 0; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; background: none; }
  .side { position: relative; height: auto; }
}
@media print {
  .side, .site-head, .site-foot, .no-print, .btn { display: none !important; }
  .admin { display: block; }
  body { background: #fff; }
}

/* ---------- plannen v2: looproute, nooduitgang, ingang, overzichtsplan */
.route-line { stroke: #3f5f9e; stroke-width: 3; fill: none; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .75; }
.route-chev { stroke: #3f5f9e; stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.st.noentry rect { stroke-dasharray: 5 3; }
.st.noentry text:first-of-type { text-decoration: underline dotted; }
.st text.price { font-weight: 600; opacity: .85; }
.lg-noentry { background: var(--free-bg); border: 1.5px dashed var(--free) !important; }
.door.nooddeur { fill: #16833f; }
.door.doorgang, .door.ingang { fill: var(--ochre); }
.plan-head { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; margin: 6px 0 10px; }
.site-map { width: 100%; height: auto; max-height: 82vh; display: block; background: #efe8dc; border-radius: 10px; }
.site-hall polygon { fill: #dcefe2; stroke: #2f7d4f; stroke-width: 2.5; cursor: pointer; transition: fill .15s; }
.site-hall:hover polygon, .site-hall:focus polygon { fill: #bfe3cb; }
.site-hall:focus { outline: none; }
.site-hall:focus polygon { stroke-width: 4; stroke: var(--ink); }
.site-hall.full polygon { fill: #d6d0c7; stroke: #6b665f; }
.site-name { font-size: 17px; font-weight: 800; fill: #1f1e1c; pointer-events: none; }
.site-free { font-size: 13px; font-weight: 700; fill: #1d5134; pointer-events: none; }
.site-hall.full .site-free { fill: #6b665f; }
.site-other { fill: #f3dccb; stroke: #c9a689; stroke-width: 1.5; }
.site-other-label { font-size: 11px; fill: #7a5a40; font-weight: 600; pointer-events: none; }
.site-label { font-size: 13px; fill: #8a8174; font-style: italic; }
.site-label.strong { font-style: normal; font-weight: 800; fill: #1f1e1c; }
.site-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 980px) { .site-wrap { grid-template-columns: 1fr; } }
.sigpad { border: 2px dashed #cfc3b2; border-radius: 10px; background: #fff; width: 100%; height: 180px; touch-action: none; cursor: crosshair; }
.reglement { max-height: 420px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; font-size: .92rem; }
.reglement h3 { font-size: 1rem; margin: 14px 0 4px; }

/* ingesloten in de WordPress-pagina */
body.embed { background: transparent; }
body.embed .section, body.embed .wrap.section { padding: 8px 4px 20px; }
body.embed .summary { top: 12px; }
/* afwezigheid melden: groot en duidelijk */
.absence-card select{font-size:1.05rem;padding:12px;margin-bottom:12px}
.absence-card .btn.big{width:100%;justify-content:center;padding:14px 20px;font-size:1.05rem}
.absence-card .abs-left{background:var(--ochre-soft,#f3e2cd);border-radius:8px;padding:10px 12px}
.absence-card ul{padding-left:18px}
