/* Huisstijl van My Evental Media: donker, Arial, blauw accent, afgeronde kaarten, getinte badges. */
:root {
  color-scheme: dark;
  --page: #0f1115;
  --surface: #171a21;      /* kaarten */
  --inset: #0f1115;        /* vlakken binnen een kaart */
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.7);
  --muted: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.05);
  --grid: #252932;
  --axis: #3a3f4b;
  --accent: #2d6df6;
  --accent-soft: rgba(45, 109, 246, 0.2);
  --accent-ink: #9fc2ff;

  /* grafiek (gevalideerd op --surface, ook voor kleurenblindheid) */
  --series-1: #2d6df6;     /* verwacht */
  --series-2: #d95926;     /* gemeten */

  /* badges: getinte achtergrond + lichte tekst */
  --green-bg: rgba(80, 200, 120, 0.15);   --green-ink: #b7f0c7;   --green: #4ade80;
  --orange-bg: rgba(255, 170, 80, 0.12);  --orange-ink: #ffd9a3;  --orange: #ffb454;
  --red-bg: rgba(255, 80, 80, 0.12);      --red-ink: #ffb3b3;     --red: #ff6b6b;
  --gray-bg: rgba(255, 255, 255, 0.08);   --gray-ink: #ffffff;    --gray: rgba(255, 255, 255, 0.75);
  --purple-bg: rgba(170, 120, 255, 0.18); --purple-ink: #d4c2ff;

  --radius: 18px;
  --radius-inner: 14px;
  --font: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; min-height: 100%; background: var(--page); color: var(--ink); font: 15px/1.45 var(--font); }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- opbouw: zijbalk (desktop) / bovenbalk (mobiel) ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 260px; flex: 0 0 260px; background: var(--surface); padding: 24px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
/* Het logo is zwart op transparant; net als in het portal wit gemaakt met invert. */
.side-logo { display: block; width: 132px; height: auto; filter: invert(1); margin-bottom: 22px; }
.mbar-logo { height: 22px; width: auto; filter: invert(1); }
.side .brand { display: block; font-size: 24px; font-weight: 700; margin-bottom: 8px; text-decoration: none; }
.brand-sub { font-size: 13px; opacity: 0.7; margin-bottom: 30px; }
.content { flex: 1; min-width: 0; padding: 30px; }
main { max-width: 960px; }
.mbar { display: none; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  color: var(--ink); text-decoration: none; opacity: 0.6; padding: 10px 12px; border-radius: 10px;
  transition: all 0.2s ease; font-size: 14px; display: block;
}
.nav-item:hover { opacity: 1; background: rgba(255, 255, 255, 0.05); }
.nav-item.active { opacity: 1; color: var(--accent); font-weight: 600; background: linear-gradient(90deg, rgba(45, 109, 246, 0.25), rgba(45, 109, 246, 0.05)); }
.nav-group { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; padding-left: 10px; border-left: 2px solid rgba(255, 255, 255, 0.08); }
.nav-group-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.35; padding: 0 12px 6px; }
.nav-group .nav-item { font-size: 13px; padding: 7px 12px; opacity: 0.5; }
.nav-group .nav-item:hover { opacity: 0.9; }
.nav-group .nav-item.active { opacity: 1; }

@media (max-width: 900px) {
  .side { display: none; }
  .content { padding: 16px; }
  .mbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--surface); border-radius: var(--radius-inner); padding: 12px 14px 12px 18px; margin-bottom: 22px;
  }
  .mbar .brand { font-size: 18px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
  .mbar .brand img { padding-right: 12px; border-right: 1px solid rgba(255, 255, 255, 0.15); box-sizing: content-box; }
}
/* Smalle telefoons: de terug-link op de pagina volstaat. */
@media (max-width: 420px) {
  .mbar .btn { display: none; }
  .mbar { padding: 14px 18px; }
}

/* ---------- typografie & bouwstenen ---------- */
h1 { font-size: 34px; font-weight: 700; line-height: 1.15; margin: 0 0 6px; }
h2 { font-size: 20px; font-weight: 700; margin: 30px 0 14px; }
.sub { opacity: 0.7; margin: 0; }
.back { display: inline-block; color: var(--accent-ink); text-decoration: none; font-weight: 600; margin-bottom: 14px; font-size: 14px; }
@media (max-width: 900px) { h1 { font-size: 28px; } }

.btn {
  display: inline-block; text-decoration: none; padding: 9px 16px; border-radius: 10px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-ink); border: 0; cursor: pointer; white-space: nowrap;
}
.btn.ghost { background: var(--gray-bg); color: var(--ink); }
.badge { display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 8px; font-weight: 600; vertical-align: 2px; }
.badge.red { background: var(--red-bg); color: var(--red-ink); }
.badge.gray { background: var(--gray-bg); color: var(--gray-ink); }
.badge.purple { background: var(--purple-bg); color: var(--purple-ink); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 22px 0 14px; }
.search, .select {
  height: 46px; border: none; border-radius: 12px; padding: 0 14px; background: var(--surface); color: var(--ink);
}
.search { flex: 1 1 240px; min-width: 0; }
.search::placeholder { color: var(--muted); }
.search:focus-visible, .select:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.toggle { display: inline-flex; align-items: center; gap: 8px; opacity: 0.8; font-size: 14px; cursor: pointer; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---------- drukte: balkjes-icoon + label, kleur nooit alleen ---------- */
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i { width: 3px; border-radius: 1px; background: rgba(255, 255, 255, 0.15); }
.bars i:nth-child(1) { height: 4px; } .bars i:nth-child(2) { height: 6px; } .bars i:nth-child(3) { height: 8px; }
.bars i:nth-child(4) { height: 10px; } .bars i:nth-child(5) { height: 12px; }
.lv1 .bars i.on, .lv2 .bars i.on { background: var(--green); }
.lv3 .bars i.on { background: var(--gray); }
.lv4 .bars i.on { background: var(--orange); }
.lv5 .bars i.on { background: var(--red); }

.crowd { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 8px; }
.crowd.lv1, .crowd.lv2 { background: var(--green-bg); color: var(--green-ink); }
.crowd.lv3 { background: var(--gray-bg); color: var(--gray-ink); }
.crowd.lv4 { background: var(--orange-bg); color: var(--orange-ink); }
.crowd.lv5 { background: var(--red-bg); color: var(--red-ink); }

/* ---------- parkkaarten ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  display: block; text-decoration: none; background: var(--surface); border-radius: var(--radius); padding: 22px;
  border: 1px solid transparent; transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(45, 109, 246, 0.35); }
.card:active { transform: scale(0.99); }
.card .name { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card .meta { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.card .meta .dim { opacity: 0.7; }
.closed-tag { opacity: 0.5; }

/* ---------- park-kop ---------- */
.hero { background: var(--surface); border-radius: var(--radius); padding: 22px; margin-top: 22px; }
.hero .label { font-size: 14px; opacity: 0.7; margin-bottom: 10px; }
.hero .big { font-size: 28px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.hero .big .bars { height: 22px; gap: 3px; }
.hero .big .bars i { width: 5px; border-radius: 2px; }
.hero .big .bars i:nth-child(1) { height: 7px; } .hero .big .bars i:nth-child(2) { height: 11px; }
.hero .big .bars i:nth-child(3) { height: 15px; } .hero .big .bars i:nth-child(4) { height: 19px; }
.hero .big .bars i:nth-child(5) { height: 22px; }
.hero .pct { opacity: 0.7; margin-top: 4px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fact { background: var(--inset); border-radius: 10px; padding: 7px 12px; font-size: 14px; }
.hero .note { opacity: 0.5; font-size: 13px; margin-top: 14px; line-height: 1.5; }

/* ---------- dagkeuze ---------- */
.days {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 18px -2px 0;
  scrollbar-width: thin; scrollbar-color: var(--axis) transparent; overscroll-behavior-x: contain;
}
.day {
  flex: 0 0 auto; min-width: 70px; padding: 10px 10px 9px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; background: var(--surface); text-align: center; transition: background 0.2s ease;
}
.day:hover { background: #1d2129; }
.day .d1 { font-size: 12px; opacity: 0.6; }
.day .d2 { font-weight: 700; font-size: 14px; margin: 1px 0 5px; }
.day[aria-pressed='true'] { border-color: var(--accent); background: linear-gradient(180deg, rgba(45, 109, 246, 0.25), rgba(45, 109, 246, 0.05)); }
.day[aria-pressed='true'] .d1 { opacity: 1; color: var(--accent-ink); }
.day.is-closed { opacity: 0.45; }

/* ---------- attractielijst ---------- */
.list { display: flex; flex-direction: column; gap: 10px; transition: opacity 0.15s; }
.list.loading { opacity: 0.5; }
.item { background: var(--surface); border-radius: var(--radius-inner); }
.row {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center;
  padding: 16px 18px; background: none; border: 0; text-align: left; cursor: pointer; border-radius: var(--radius-inner);
}
.row:hover { background: rgba(255, 255, 255, 0.02); }
.row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.row .title { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row .hint { grid-column: 1; opacity: 0.6; font-size: 13px; }
.row .wait { grid-row: 1 / span 2; grid-column: 2; text-align: right; white-space: nowrap; }
.row .wait b { font-size: 26px; }
.row .wait small { display: block; opacity: 0.5; font-size: 12px; }
.row .chev { opacity: 0.4; font-size: 12px; margin-left: 2px; }
.item[data-closed='true'] .title, .item[data-closed='true'] .wait { opacity: 0.55; }
.panel { padding: 0 18px 18px; }
.panel-inner { border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- grafiek ---------- */
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; opacity: 0.8; margin: 0 0 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.key { width: 14px; height: 2px; border-radius: 1px; display: inline-block; }
.key.band { height: 10px; border-radius: 2px; opacity: 0.25; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.chart .tick { fill: var(--muted); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.tip {
  position: absolute; pointer-events: none; background: var(--inset); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px; padding: 9px 12px; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  min-width: 160px; transform: translateX(-50%); white-space: nowrap; z-index: 2;
}
.tip .t { opacity: 0.6; font-size: 12px; margin-bottom: 5px; }
.tip .r { display: flex; align-items: center; gap: 8px; }
.tip .r b { font-size: 15px; }
.tip .r .lbl { opacity: 0.7; }
details.table { margin-top: 12px; font-size: 13px; }
details.table summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; }
details.table table { border-collapse: collapse; margin-top: 8px; width: 100%; font-variant-numeric: tabular-nums; }
details.table td, details.table th { padding: 5px 8px 5px 0; text-align: left; border-bottom: 1px solid var(--line); }
details.table th { opacity: 0.6; font-weight: 600; }

.empty { opacity: 0.6; padding: 26px 0; text-align: center; }
.foot { opacity: 0.5; font-size: 12px; margin-top: 36px; line-height: 1.6; }
.foot a { color: var(--accent-ink); text-decoration: none; }
