/* Villa Rhodea Portal — huisstijl van villarhodea.com (theme.json), telefoon
   eerst. Ontwerp: docs/OPMAAK_2026-09-24.md. Variabelen van de oude stijl
   (--line, --crit, --soft …) houden hun naam, zodat alle pagina's meegaan. */

@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 400 600;
  font-display: swap; src: url("fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
}

:root {
  --bg: #FAF6EE; --surface: #FFFCF6; --paper: #F1E7D6; --paper-deep: #EADFC8;
  --ink: #2C2620; --ink-2: #4A4137; --muted: #6B6052; --line: #E3D7C0;
  --terra: #BB6A48; --accent: #9E5638; --accent-deep: #7E4329;
  --soft: #F1E7D6; --ok: #56663A; --ok-soft: #E6E8DA;
  --warn: #8A5A12; --warn-soft: #F4E6C8; --crit: #A33A2C; --crit-soft: #F6E1DA;
  --radius: 14px; --shadow: none;
  --display: "Fraunces", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tabbar-h: 66px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 15.5px/1.55 var(--body); }
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
h1 { font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.15;
     letter-spacing: -.01em; margin: 4px 0 8px; }
h2 { font-size: 16px; font-weight: 700; margin: 0 0 6px; display: flex;
     align-items: center; gap: 10px; flex-wrap: wrap; }
p { margin: 8px 0; }
p.lead { color: var(--muted); margin: 0 0 20px; max-width: 62ch; }
.meta { color: var(--muted); font-size: 13.5px; }
.display { font-family: var(--display); font-weight: 500; }

/* ── Kop, menubalk en tabbalk ── */
.topbar { background: var(--bg); border-bottom: 1px solid var(--line);
          position: sticky; top: 0; z-index: 30; }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 0 16px; height: 56px;
                display: flex; align-items: center; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink);
         text-decoration: none; margin-right: 18px; white-space: nowrap; }
.brand .mark { width: 30px; height: 30px; border-radius: 50%; flex: none;
               border: 1.5px solid var(--terra); color: var(--accent);
               display: flex; align-items: center; justify-content: center;
               font-family: var(--display); font-size: 12px; }
.brand .brandname { font-family: var(--display); font-size: 19px; font-weight: 500; }
.mainnav { display: none; align-items: stretch; gap: 2px; height: 100%; }
.mainnav a, .topbar .logout { color: var(--muted); text-decoration: none;
  font-size: 14.5px; font-weight: 500; padding: 0 11px; display: flex;
  align-items: center; border-bottom: 2px solid transparent; white-space: nowrap; }
.mainnav a:hover, .topbar .logout:hover { color: var(--ink); }
.mainnav a.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--terra); }
.topbar .spacer { flex: 1; }
.topbar .logout { display: none; height: 100%; }
/* Uitloggen is een POST-formulier (CSRF); de knop ziet eruit als de oude menulink. */
.topbar .logout-form { display: flex; height: 100%; margin: 0; }
.topbar button.logout { background: transparent; border-radius: 0; min-height: 0; gap: 0; }
.topbar button.logout:hover { background: transparent; }
.topbar .today { font-size: 13px; color: var(--muted); }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
/* 3 tabs, of 4 voor de beheerder (Boekingen) */
.tabbar a { display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; text-decoration: none; color: var(--muted);
  font-size: 12px; font-weight: 600; }
.tabbar a.active { color: var(--accent); font-weight: 700; }
.tabbar svg { width: 22px; height: 22px; }

main { max-width: 1120px; margin: 0 auto; padding: 22px 16px 40px; }
body.authed main { padding-bottom: calc(var(--tabbar-h) + 32px); }

@media (min-width: 720px) {
  .mainnav, .topbar .logout { display: flex; }
  .topbar .today { display: none; }
  .tabbar { display: none; }
  .topbar-inner { padding: 0 24px; height: 60px; }
  main { padding: 32px 24px 60px; }
  body.authed main { padding-bottom: 60px; }
  h1 { font-size: 32px; }
}

/* ── Kaarten, meldingen, formulieren ── */
.card { background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius); padding: 18px 18px; margin: 0 0 18px; }
.flash { background: var(--paper); border-radius: 12px; padding: 12px 16px;
         margin: 0 0 16px; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted);
        text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 5px; }
input[type=text], input[type=url], input[type=date], input[type=password],
input[type=number], input[type=search], select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 16px; background: #FFFFFF; color: var(--ink); min-height: 46px;
}
input:focus-visible, select:focus-visible { outline: 2px solid var(--terra);
  outline-offset: 1px; border-color: var(--terra); }
button, .btn { display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; background: var(--accent); color: #FFFFFF; border: 0; border-radius: 12px;
  padding: 0 18px; min-height: 46px; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; }
button:hover, .btn:hover { background: var(--accent-deep); color: #FFFFFF; }
button.secondary, .btn.secondary { background: var(--paper); color: var(--ink); }
button.secondary:hover, .btn.secondary:hover { background: var(--paper-deep); color: var(--ink); }
button.danger { background: var(--crit); }
button.danger:hover { background: #82291D; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
button[disabled] { opacity: .55; cursor: wait; }

.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px;
  font-weight: 600; border-radius: 999px; padding: 3px 11px 3px 9px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.ok .dot { background: var(--ok); }
.chip.err { background: var(--crit-soft); color: var(--crit); }
.chip.err .dot { background: var(--crit); }
.chip.off { background: var(--paper); color: var(--muted); }
.chip.off .dot { background: #A89A84; }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.warn .dot { background: var(--warn); }
.chip.info { background: #E1E8E8; color: #3D5B62; }
.chip.info .dot { background: #3D5B62; }

.urlrow { display: flex; gap: 8px; flex-wrap: wrap; }
.urlrow input { flex: 1 1 240px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.urlrow button { flex: 1 1 45%; }
@media (min-width: 720px) { .urlrow button { flex: 0 0 auto; } }
.step { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 4px; }
details.uitleg { margin-top: 16px; background: var(--paper); border-radius: 12px; }
details.uitleg summary { cursor: pointer; color: var(--ink); font-weight: 600;
  list-style: none; padding: 12px 16px; user-select: none; }
details.uitleg summary::-webkit-details-marker { display: none; }
details.uitleg summary::before { content: "▸"; display: inline-block; margin-right: 9px;
  transition: transform .15s; color: var(--accent); }
details.uitleg[open] summary::before { transform: rotate(90deg); }
details.uitleg ol { margin: 0; padding: 0 18px 14px 40px; }
details.uitleg li { margin: 7px 0; }
.testresult { margin-top: 10px; font-size: 14px; }
.testresult:empty { margin: 0; }
.tablewrap { overflow-x: auto; margin: 6px -6px 0; padding: 0 6px; }
table { border-collapse: collapse; width: 100%; min-width: 480px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 12px;
         vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
     font-weight: 600; }
td form { margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.cardhead { display: flex; align-items: center; justify-content: space-between;
            gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted);
           font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── Kanaalkleuren (gedempt) ── */
.ch-airbnb { background: #C0503F; }
.ch-booking { background: #2F5D7A; }
.ch-vrbo { background: #6E5B8E; }
.ch-direct { background: #7E8466; }
.ch-guesty { background: #5E6B6E; }
.ch-gesloten { background: #8C7F6B; }
.ch-blokkade { background: repeating-linear-gradient(45deg, #C9B48E 0 4px, #E6D8BD 4px 8px); }
.chdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* ── Overzicht ── */
.overline { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em;
            text-transform: uppercase; color: var(--muted); }
.status { font-size: 31px; margin: 0; }
.status em { font-style: normal; color: var(--accent); }
.status-detail { margin: 10px 0 0; font-size: 15.5px; color: var(--ink-2); max-width: 60ch; }
.attn { list-style: none; margin: 18px 0 0; padding: 0; display: flex;
        flex-direction: column; gap: 8px; }
.attn li { background: var(--paper); border-radius: 14px; padding: 13px 16px;
           display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.attn li::before { content: ""; width: 9px; height: 9px; border-radius: 50%;
                   background: var(--terra); margin-top: 7px; flex: none; }
.attn li span { flex: 1 1 200px; }
.attn li a { font-weight: 600; }
.section { margin-top: 26px; }
.sechead { display: flex; justify-content: space-between; align-items: baseline;
           gap: 10px; margin-bottom: 8px; }
.sechead h2 { margin: 0; }

.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.strip .wd { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .06em;
             text-transform: uppercase; color: var(--muted); }
.strip .wd.we { color: var(--accent); }
.sday { position: relative; height: 66px; border-radius: 9px; padding: 5px 6px;
        background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
        overflow: hidden; display: flex; flex-direction: column; color: var(--ink);
        text-decoration: none; }
.sday.we { background: var(--paper); }
.sday.today { box-shadow: inset 0 0 0 2px var(--terra); }
.sday .wd { text-align: left; font-size: 10px; line-height: 1.2; }
.sday .n { font-size: 13px; font-weight: 600; line-height: 1.2; }
.sday .p { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sday .calbar { bottom: 7px; height: 10px; font-size: 0; }
.legend { margin: 10px 0 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px;
          color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

ul.changes { list-style: none; margin: 0; padding: 0; }
ul.changes li { display: flex; align-items: center; gap: 12px; padding: 12px 0;
                border-bottom: 1px solid var(--line); }
ul.changes li:last-child { border-bottom: 0; }
.datebadge { width: 46px; flex: none; text-align: center; background: var(--paper);
             border-radius: 10px; padding: 6px 0; line-height: 1.1; display: flex;
             flex-direction: column; }
.datebadge .d { font-family: var(--display); font-size: 19px; font-weight: 500; }
.datebadge .m { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
                color: var(--muted); }
.changes .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.changes .kind { font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
                 text-transform: uppercase; color: var(--muted); }
.changes .kind.checkin { color: var(--accent); }
.changes .who strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.changes .ch { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
               color: var(--ink-2); flex: none; }

.monthcard h2 { font-family: var(--display); font-weight: 500; font-size: 22px; margin: 0; }
.bigs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
        margin-top: 12px; }
.big { display: flex; flex-direction: column; }
.big .num { font-family: var(--display); font-size: 30px; font-weight: 500;
            font-variant-numeric: tabular-nums; line-height: 1.15; }
.mbars { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.mbar { display: grid; grid-template-columns: 36px minmax(0, 1fr) 44px; align-items: center;
        gap: 10px; font-size: 13px; }
.mbar .track { height: 8px; background: var(--paper-deep); border-radius: 4px; overflow: hidden; }
.mbar .fill { display: block; height: 8px; border-radius: 4px; background: var(--terra); }
.mbar .pct { text-align: right; font-variant-numeric: tabular-nums; }
.feedline { margin-top: 18px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
details.log { margin-top: 22px; }
details.log summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
details.log table { min-width: 0; }
.ovgrid { display: block; }
@media (min-width: 960px) {
  .ovgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px;
            align-items: start; }
  .status { font-size: 42px; }
  .strip.wide { grid-template-columns: repeat(14, minmax(0, 1fr)); }
  .strip.wide .sday { height: 78px; }
  .strip .wd.wide-hide { display: none; }
}

/* ── Kalender ── */
.calhead { display: flex; align-items: center; justify-content: space-between; gap: 12px;
           flex-wrap: wrap; margin-bottom: 12px; }
.calhead h1 { margin: 0; }
.calnav { display: flex; align-items: center; gap: 6px; }
.calnav .btn { min-width: 46px; padding: 0 14px; }
.calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px;
           margin-bottom: 3px; }
.calweekdays span { font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .06em; text-align: center; padding: 2px 0 6px; font-weight: 600; }
.calweekdays span.we { color: var(--accent); }
.calday { position: relative; min-height: 58px; background: var(--surface);
          border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line);
          padding: 4px 5px 16px; overflow: hidden; }
.calday.we { background: var(--paper); }
.calday.out { opacity: .45; }
.calday.today { box-shadow: inset 0 0 0 2px var(--terra); }
.calday.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.dnum { font-size: 12px; font-weight: 600; color: var(--ink-2); position: relative; z-index: 2; }
.calhit { position: absolute; inset: 0; z-index: 3; border-radius: 8px; }
.calhit:focus-visible { outline-offset: -3px; }
.calbar { position: absolute; left: -1px; right: -1px; bottom: 5px; height: 11px;
          font-size: 0; line-height: 18px; color: #FFFFFF; padding-left: 6px;
          white-space: nowrap; overflow: hidden; font-weight: 600; z-index: 1; }
/* Halve dagen (02-09): aankomst vanaf de middag, uitcheck tot de middag. */
.calbar.start { left: 50%; border-radius: 6px 0 0 6px; }
.calbar.end { right: 50%; border-radius: 0 6px 6px 0; padding-left: 0; }
.calprice { position: absolute; bottom: 16px; left: 5px; font-size: 10px; font-weight: 600;
            color: var(--ink-2); font-variant-numeric: tabular-nums; z-index: 2; }
.calmin { display: none; position: absolute; bottom: 2px; left: 6px; font-size: 10px;
          color: var(--muted); z-index: 2; }
.calday.co .calprice, .calday.co .calmin { left: auto; right: 5px; }
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { border-bottom: 1px solid var(--line); }
.agenda a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0;
            text-decoration: none; color: var(--ink); }
.agenda .stripe { width: 6px; align-self: stretch; border-radius: 3px; flex: none; }
.agenda .t { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.agenda .t strong { font-weight: 600; }
.agenda .c { font-size: 12.5px; color: var(--ink-2); }
.callegend { margin: 12px 2px 0; display: flex; align-items: center; gap: 8px 12px;
             flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.callegend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.callegend .lg { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.calweek { position: relative; --cw: calc((100% - 18px) / 7 + 3px); }
.calname { display: none; }
@media (min-width: 720px) {
  .calday { min-height: 88px; padding: 6px 7px 20px; }
  .calbar { height: 18px; font-size: 11px; bottom: 5px; }
  .calprice { font-size: 11.5px; bottom: 24px; left: 7px; }
  .calmin { display: block; }
  .dnum { font-size: 12.5px; }
  .calname { display: block; position: absolute; bottom: 5px; height: 18px; z-index: 4;
             font-size: 11px; line-height: 18px; font-weight: 600; color: #FFFFFF;
             white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
             pointer-events: none; }
  .calname-blokkade { color: var(--ink); }
}

/* Detailpaneel: bottom sheet op de telefoon, zijpaneel op de laptop. */
.panel-backdrop { position: fixed; inset: 0; background: rgba(44, 38, 32, .32); z-index: 40; }
.panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-height: 86vh;
         overflow-y: auto; background: var(--surface); border-radius: 22px 22px 0 0;
         padding: 10px 20px calc(24px + env(safe-area-inset-bottom, 0px));
         box-shadow: 0 -8px 30px rgba(44, 38, 32, .18); }
.panel .grip { width: 40px; height: 4px; border-radius: 2px; background: #D8CAB0;
               margin: 0 auto 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.panel-head .chan { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px;
                    font-weight: 600; color: var(--ink-2); }
.panel-head h2 { font-family: var(--display); font-weight: 500; font-size: 26px;
                 line-height: 1.15; margin: 6px 0 0; }
.panel .close { width: 44px; height: 44px; border-radius: 50%; background: var(--paper);
                color: var(--ink); display: flex; align-items: center; justify-content: center;
                flex: none; text-decoration: none; }
.panel dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px;
            margin: 18px 0 0; }
.panel dt { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
            color: var(--muted); }
.panel dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.panel .note { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.panel .actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.panel .actions .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.calwrap { display: block; }
@media (min-width: 960px) {
  .calwrap.has-panel { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px;
                       align-items: start; }
  .panel-backdrop { display: none; }
  .panel { position: sticky; top: 84px; max-height: none; border-radius: var(--radius);
           border: 1px solid var(--line); box-shadow: none; padding: 18px; }
  .panel .grip { display: none; }
}

/* ── Meer ── */
.menu { list-style: none; margin: 0; padding: 0; background: var(--surface);
        border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.menu li + li { border-top: 1px solid var(--line); }
.menu a { min-height: 64px; display: flex; align-items: center; gap: 14px; padding: 12px 16px;
          text-decoration: none; color: var(--ink); }
.menu .t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.menu .t strong { font-size: 16px; font-weight: 600; }
.menu svg { flex: none; }
.logoutbtn { margin-top: 18px; width: 100%; min-height: 52px; background: transparent;
             border: 1px solid var(--line); color: var(--accent); }
.logoutbtn:hover { background: var(--paper); color: var(--accent-deep); }

/* ── Boekingen: lijst en detail (alleen beheerder) ── */
.bkhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 10px 18px; margin-bottom: 14px; }
.bkhead h1 { margin-bottom: 2px; }
.bkhead .meta { margin: 0; }
.bksearch { display: flex; gap: 8px; flex: 1 1 320px; max-width: 460px; margin: 0; }
.bksearch input { flex: 1; min-width: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.filters a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px;
  padding: 0 12px; border-radius: 999px; background: var(--paper); color: var(--ink-2);
  font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.filters a:hover { background: var(--paper-deep); color: var(--ink); }
.filters a.active { background: var(--ink); color: var(--surface); }
.filters .n { font-variant-numeric: tabular-nums; font-weight: 500; opacity: .8; }
.bklist { list-style: none; margin: 0; padding: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bklist li + li { border-top: 1px solid var(--line); }
.bklist a { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px;
  color: var(--ink); text-decoration: none; }
.bklist a:hover { background: var(--bg); }
.bk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bk-main strong { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.bk-next { font-size: 12.5px; color: var(--ink-2); }
.bk-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.bk-total { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { background: var(--paper); border-radius: var(--radius); padding: 18px 16px;
  color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-top: 14px; }
.back { margin: 0 0 6px; font-size: 14px; }
.back a { text-decoration: none; font-weight: 600; }
.bkdetail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.bkdetail-head .overline { flex-basis: 100%; }
.bkdetail-head h1 { margin: 0; overflow-wrap: anywhere; }
.bkdetail-head + .attn { margin-bottom: 18px; }
.bkgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 18px; margin-top: 18px; }
@media (min-width: 960px) {
  .bkgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bkgrid > .wide { grid-column: 1 / -1; }
}
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px;
  margin: 10px 0 0; }
.kv > div.wide { grid-column: 1 / -1; }
.kv dt { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); }
.kv dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.kv dd .meta { display: block; font-weight: 400; }
.kv dd.pre { white-space: pre-line; font-weight: 400; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btnrow .btn { flex: 1 1 0; min-width: 96px; }
@media (min-width: 720px) { .btnrow .btn { flex: 0 0 auto; } }
.gastpagina { margin: 16px 0 0; font-weight: 600; }
.gastpagina a { text-decoration: none; }
ol.history { list-style: none; margin: 8px 0 0; padding: 0; }
ol.history li { display: flex; flex-direction: column; gap: 1px; padding: 10px 0;
  border-bottom: 1px solid var(--line); }
ol.history li:last-child { border-bottom: 0; }
ol.history strong { font-weight: 600; }
ol.history .meta { overflow-wrap: anywhere; }
.apifout { max-width: 520px; margin: 6vh auto 0; }
.apifout h1 { margin-top: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Instellingen (Task 16) */
textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 16px; background: #FFFFFF; color: var(--ink); resize: vertical; }
textarea:focus-visible { outline: 2px solid var(--terra); outline-offset: 1px; border-color: var(--terra); }
label.check { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0;
  font-size: 15px; color: var(--ink); font-weight: 500; }
label.check input { width: 20px; height: 20px; }
.extrarow { display: grid; gap: 6px; margin: 0 0 10px; }
@media (min-width: 720px) { .extrarow { grid-template-columns: 1fr 2fr 1fr; } }
iframe.mailpreview { width: 100%; min-height: 360px; border: 1px solid var(--line);
  border-radius: 10px; background: #FFFFFF; }

/* WhatsApp-kaart op de boekingspagina (Task 7) */
.wa-tpls { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.wa-tpl { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: var(--surface); }
.wa-tpl.wa-off { opacity: .55; background: var(--paper); }
.wa-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 14px;
  background: var(--paper); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.wa-tpl form { margin: 0; }
.wa-tpl button { width: 100%; }
@media (min-width: 720px) { .wa-tpl button { width: auto; } }
.wa-body { overflow-wrap: anywhere; white-space: pre-line; }
.wa-consent { margin: 4px 0; }

/* Inbox Berichten (Task 8) */
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--terra); color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 20px;
  text-align: center; vertical-align: middle; }
.wa-last { overflow-wrap: anywhere; font-size: 14.5px; }
.wa-pager { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.wa-thread { display: flex; flex-direction: column; gap: 10px; }
.wa-msg { max-width: 88%; padding: 8px 12px; border-radius: 12px; background: var(--paper);
  display: flex; flex-direction: column; gap: 2px; }
.wa-msg.wa-out { align-self: flex-end; background: #E8EEE4; }
.wa-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.wa-thread + .card textarea { min-height: 110px; }
