/* Tokens from the Tarima design (docs/ontwerp.md §14). One accent, warm neutrals, five status colours. */
:root {
  color-scheme: light;
  --accent: #B3124F;
  --accent-hover: #8E0E3F;
  --accent-soft: #FDF0F4;
  --on-accent: #FFFFFF;
  --bg: #FBF8F5;
  --surface: #FFFFFF;
  --surface-2: #F6F2EE;
  --border: #E8E1DA;
  --border-strong: #CFC5BC;
  --text: #1F1A17;
  --text-2: #5E554F;
  --text-3: #6B625C;
  --success: #17663A;
  --success-soft: #E3F4E8;
  --danger: #A8201A;
  --danger-soft: #FDE6E4;
  --info: #1D4F91;
  --info-soft: #E7F0FB;
  --highlight: #F5B700;
  --focus-ring: 0 0 0 3px rgba(179, 18, 79, .35);
  --shadow-1: 0 1px 2px rgba(31, 26, 23, .06), 0 1px 3px rgba(31, 26, 23, .08);
  --shadow-2: 0 4px 12px rgba(31, 26, 23, .10);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --radius-sm: 8px;
  --radius: 12px;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --content: 1120px;
  --prose: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --accent: #F48FB1;
    --accent-hover: #F06292;
    --accent-soft: #3A1627;
    --on-accent: #1F1A17;
    --bg: #161312;
    --surface: #221D1B;
    --surface-2: #2A2522;
    --border: #3A332F;
    --border-strong: #554B45;
    --text: #F4EEE9;
    --text-2: #B8ADA5;
    --text-3: #B8ADA5;
    --success: #8FD6A8;
    --success-soft: #15301F;
    --danger: #F4A29C;
    --danger-soft: #3A1917;
    --info: #9CC3F5;
    --info-soft: #152538;
    --focus-ring: 0 0 0 3px rgba(244, 143, 177, .45);
    --shadow-1: 0 0 0 1px var(--border);
    --shadow-2: 0 0 0 1px var(--border-strong);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--s3); text-wrap: balance; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 var(--s4); }
.meta { font-size: 13px; color: var(--text-3); }
.lead { font-size: 18px; color: var(--text-2); max-width: 60ch; }

.wrap { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 var(--s4); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s4); top: var(--s4); background: var(--surface); padding: var(--s2) var(--s3); z-index: 10; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: var(--s4); min-height: 64px; }
.logo { font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.logo::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--highlight); margin-left: 3px; }
.logo:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.nav a { color: var(--text-2); text-decoration: none; padding: 0 var(--s3); min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--radius-sm); font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--on-accent); background: var(--accent); margin-left: var(--s2); }
.nav a.btn-primary:hover { background: var(--accent-hover); }
.lang { font-size: 14px; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--s3); border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 500; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: flex; }
.menu-panel { display: none; flex-direction: column; position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--border); padding: var(--s2) var(--s4) var(--s4); box-shadow: var(--shadow-2); }
.menu-panel a { color: var(--text); text-decoration: none; min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--border); }

@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border-radius: var(--radius-sm); border: 1px solid transparent; font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); color: var(--surface); }
.btn-danger:hover { filter: brightness(.92); }
.btn-small { min-height: 44px; padding: 0 var(--s4); font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Sections */
.section { padding: var(--s7) 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { margin-bottom: var(--s5); max-width: 60ch; }
.section-head p { color: var(--text-2); margin: 0; }

.hero { padding: var(--s8) 0 var(--s7); }
.hero h1 { font-size: clamp(30px, 5vw, 44px); max-width: 18ch; letter-spacing: -.01em; }
.hero .lead { margin-bottom: var(--s5); }
.pill { display: inline-flex; align-items: center; gap: var(--s2); background: var(--accent-soft); color: var(--accent-hover); border-radius: 999px; padding: var(--s1) var(--s3); font-size: 14px; font-weight: 600; margin-bottom: var(--s4); }
@media (prefers-color-scheme: dark) { .pill { color: var(--accent); } }

.grid { display: grid; gap: var(--s4); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow-1); }
.card p:last-child { margin-bottom: 0; }
.card .meta { margin-bottom: var(--s2); }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { border-color: var(--border-strong); color: inherit; }
.card-link .more { color: var(--accent); font-weight: 600; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; }

.checks { list-style: none; padding: 0; margin: 0 0 var(--s4); }
.checks li { position: relative; padding-left: 28px; margin-bottom: var(--s2); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); }
.cta h2 { margin: 0; }

/* Pricing */
.plans { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: var(--s1); }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--text-2); }
.plan .checks { flex: 1; }
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.badge { display: inline-block; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 2px var(--s3); background: var(--surface-2); color: var(--text-2); margin-bottom: var(--s3); }
.badge-accent { background: var(--accent-soft); color: var(--accent-hover); }
@media (prefers-color-scheme: dark) { .badge-accent { color: var(--accent); } }

.notice { border-radius: var(--radius); padding: var(--s4) var(--s5); background: var(--info-soft); border: 1px solid transparent; }
.notice p:last-child { margin: 0; }
.notice-success { background: var(--success-soft); }
/* Notices directly after each other (or before a card) each keep their own colour block. */
.notice + .notice, .notice + .card, .notice + .errors { margin-top: var(--s3); }
.field + .notice, .field + .errors { margin-bottom: var(--s4); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: var(--s4) 0; font-weight: 600; min-height: 44px; }
.faq details p { color: var(--text-2); }

/* Forms */
.form { max-width: 560px; }
.field { margin-bottom: var(--s5); }
.field label, .field legend { display: block; font-weight: 500; margin-bottom: var(--s2); }
.field .hint { font-size: 14px; color: var(--text-2); margin: calc(var(--s1) * -1) 0 var(--s2); }
.field :is(input, select, textarea) + .hint { margin-top: var(--s2); }
.field input[type="text"], .field input[type="email"], .field select {
  width: 100%; min-height: 48px; padding: 0 var(--s3); font: 16px var(--font); color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: var(--focus-ring); }
fieldset { border: 0; padding: 0; margin: 0; }
.options { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.option, .field label.option { display: flex; gap: var(--s3); align-items: flex-start; margin-bottom: 0; font-weight: normal; padding: var(--s3) var(--s4); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; min-height: 48px; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option input { margin: calc((1.5em - 18px) / 2 + 0.2em) 0 0; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
/* Checkbox with its text beside it: the box centred on the letters of the first line (the line box also holds room for descenders, hence +0.2em), further lines aligned with the first, not under the box. */
.consent, .field label.consent { display: flex; gap: var(--s3); align-items: flex-start; margin-bottom: 0; font-weight: normal; }
.consent input { margin: calc((1.5em - 18px) / 2 + 0.2em) 0 0; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.error { color: var(--danger); font-size: 14px; margin-top: var(--s2); display: block; }
.error:empty { display: none; }
.errors { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-sm); padding: var(--s3) var(--s4); margin-bottom: var(--s5); }
.errors ul { margin: 0; padding-left: var(--s5); }
.errors ul:empty, .validation-summary-valid { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Legal prose */
.prose { max-width: var(--prose); }
.prose h1 { margin-bottom: var(--s2); }
.prose h2 { margin-top: var(--s6); }
.prose h3 { margin-top: var(--s5); }
.prose ul, .prose ol { padding-left: var(--s5); margin: 0 0 var(--s4); }
.prose li { margin-bottom: var(--s1); }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 var(--s4); font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: var(--s2) var(--s3); text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 600; }
.doc-nav { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s6); }
.doc-nav a { font-size: 14px; padding: var(--s2) var(--s3); border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text-2); min-height: 36px; display: inline-flex; align-items: center; }
.doc-nav a[aria-current="page"] { border-color: var(--accent); color: var(--accent); }

.details-list { display: grid; grid-template-columns: max-content 1fr; gap: var(--s2) var(--s5); margin: 0; }
.details-list dt { color: var(--text-2); }
.details-list dd { margin: 0; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: var(--s6) 0; font-size: 14px; color: var(--text-2); }
.footer-grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: var(--s5); }
.site-footer h2 { font-size: 14px; color: var(--text); margin-bottom: var(--s2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s1); }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }

.doc-nav-hero { margin: var(--s5) 0 0; }
.mt { margin-top: var(--s4); }
[id] { scroll-margin-top: 80px; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.details-list dd { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .details-list { grid-template-columns: 1fr; gap: 0; }
  .details-list dd { margin-bottom: var(--s3); }
}
.code-input { font-size: 24px !important; letter-spacing: 6px; max-width: 200px; font-variant-numeric: tabular-nums; }

/* Panel */
.flash { margin-bottom: var(--s5); }
.panel-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--border); }
.panel-footer p { margin: 0; }
.card-muted { background: var(--surface-2); box-shadow: none; }
.card-muted h2 { color: var(--text-2); }
.status-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); max-width: var(--prose); }
.status-card p { margin: 0; }
.status-Draft, .status-InReview, .status-ChangesRequested { background: #FDF1DC; color: #8A4B08; }
.status-Published { background: var(--success-soft); color: var(--success); }
.status-Suspended { background: var(--danger-soft); color: var(--danger); }
@media (prefers-color-scheme: dark) {
  .status-Draft, .status-InReview, .status-ChangesRequested { background: #3A2A10; color: #F6C572; }
}

.checklist { list-style: none; padding: 0; margin: 0; max-width: var(--prose); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.checklist li + li { border-top: 1px solid var(--border); }
.checklist a { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); min-height: 52px; color: var(--text); text-decoration: none; }
.checklist a:hover { background: var(--surface-2); }
.checklist .check { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 2px solid var(--border-strong); color: var(--text-3); }
.checklist .done .check { background: var(--success); border-color: var(--success); color: var(--surface); }
.checklist .meta { margin: 0; }
button[disabled] { opacity: .5; cursor: not-allowed; }

.rows { list-style: none; padding: 0; margin: 0 0 var(--s4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); }
.row + .row { border-top: 1px solid var(--border); }
.row .meta { display: block; margin: 0; }
.row a { overflow-wrap: anywhere; }
.row-end { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.row-start { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.row-move { display: inline-flex; flex: none; color: var(--text-3); pointer-events: none; }
.amount { font-weight: 600; font-variant-numeric: tabular-nums; }

.thumbs { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.thumbs li { display: flex; flex-direction: column; gap: var(--s2); }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
[data-sortable] > li { cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[data-sortable] > li:focus-visible { outline: none; box-shadow: var(--focus-ring); }
[data-sortable] > li.dragging { opacity: .35; outline: 2px dashed var(--border-strong); outline-offset: 2px; }
.drag-ghost { position: fixed; top: 0; left: 0; z-index: 100; margin: 0; pointer-events: none; display: block; border-radius: var(--radius-sm); box-shadow: 0 12px 28px rgb(0 0 0 / .3); transform-origin: top left; }
body:has(.drag-ghost) { cursor: grabbing; }
[data-sortable] img { pointer-events: none; }
.thumbs li { position: relative; border-radius: var(--radius-sm); }
.thumb-remove { position: absolute; top: var(--s1); right: var(--s1); }
/* The first photo is the one bookers see in search results; the label moves along when the order changes. */
[data-sortable="photo-order"] > li:first-child::after { content: attr(data-main); font-size: 14px; font-weight: 600; color: var(--accent); }
.thumb-move { position: absolute; top: var(--s1); left: var(--s1); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: 0 1px 3px rgb(0 0 0 / .25); pointer-events: none; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; }
.btn-icon:hover { color: var(--danger); border-color: var(--danger); }
.btn-icon:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.thumb-remove .btn-icon { box-shadow: 0 1px 3px rgb(0 0 0 / .25); }

.field textarea, .field input[type="number"], .field input[type="url"], .field input[type="file"] {
  width: 100%; padding: var(--s3); font: 16px/1.5 var(--font); color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
.field input[type="number"], .field input[type="url"] { min-height: 48px; padding: 0 var(--s3); }
.field textarea:focus, .field input:focus { border-color: var(--accent); outline: none; box-shadow: var(--focus-ring); }
.field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field .input-short, .field input.input-short { max-width: 200px; }
.field .label { display: block; font-weight: 500; margin-bottom: var(--s2); }
.options-stacked { grid-template-columns: 1fr; }
.subfields { border-left: 3px solid var(--border); padding-left: var(--s4); margin-left: var(--s2); }
.checks-grid { display: grid; gap: var(--s1) var(--s4); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: var(--s2); }
.check-option, .field label.check-option { display: flex; gap: var(--s2); align-items: flex-start; padding-top: var(--s2); min-height: 40px; margin-bottom: 0; font-weight: normal; }
.check-option input { margin: calc((1.5em - 18px) / 2 + 0.2em) 0 0; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Calendar */
.month-head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.month-head h2 { margin: 0; min-width: 180px; text-align: center; text-transform: capitalize; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s1); max-width: 640px; }
.weekday { font-size: 13px; color: var(--text-3); text-align: center; padding: var(--s1) 0; text-transform: capitalize; }
.day { min-height: 56px; }
.day form { height: 100%; }
.day-inner { width: 100%; height: 100%; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: 600 15px var(--font); cursor: pointer; padding: 2px; }
button.day-inner:hover { border-color: var(--accent); }
.day .tag { font-size: 11px; font-weight: 500; line-height: 1.1; text-align: center; }
.day.blocked .day-inner { background: var(--surface-2); color: var(--text-3); border-style: dashed; }
.day.booked .day-inner { background: var(--success-soft); color: var(--success); cursor: default; }
.day.past .day-inner { opacity: .45; cursor: default; }
.day.empty { visibility: hidden; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s4); }
.key { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--border); vertical-align: middle; }
.key.free { background: var(--surface); }
.key.blocked { background: var(--surface-2); border-style: dashed; }
.key.booked { background: var(--success-soft); }
@media (max-width: 420px) { .day .tag { display: none; } .day-inner { min-height: 44px; } }

/* Search, profile, request, quotes */
.search-form { display: grid; gap: 0 var(--s4); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s5) var(--s5) 0; }
.search-form .field { margin-bottom: var(--s5); }
.search-form select, .search-form input[type="date"], .field input[type="date"], .field input[type="time"], .field input[type="tel"], .field select {
  width: 100%; min-height: 48px; padding: 0 var(--s3); font: 16px var(--font); color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
.search-submit .btn { width: 100%; }
.results { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.result { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.result-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-2); display: block; }
.result-body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.result-body h2 { margin: 0; font-size: 18px; }
.result-body h2 a { color: var(--text); text-decoration: none; }
.result-body h2 a:hover { color: var(--accent); text-decoration: underline; }
.result-link { font-weight: 600; }
.result-body p { margin: 0; }
.pick { margin-top: auto; padding-top: var(--s2); border-top: 1px solid var(--border); }
.badges { display: flex; flex-wrap: wrap; gap: var(--s1); }
.badges .badge { margin: 0; }
.hint-warn { font-size: 14px; color: #8A4B08; }
.notice-warn { background: #FDF1DC; }
@media (prefers-color-scheme: dark) { .hint-warn { color: #F6C572; } .notice-warn { background: #3A2A10; } }
.sticky-bar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); background: var(--surface); border-top: 1px solid var(--border); padding: var(--s3) var(--s4); margin: var(--s5) calc(var(--s4) * -1) 0; box-shadow: var(--shadow-2); }

.profile { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: start; }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; } }
.profile-aside { position: sticky; top: 80px; }
.profile-aside h2 { margin-top: 0; }
.gallery { display: grid; gap: var(--s2); grid-template-columns: repeat(3, 1fr); margin-bottom: var(--s5); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.gallery img:first-child { grid-column: span 3; aspect-ratio: 16 / 9; }
.prewrap { white-space: pre-line; }
.checks li.no::before { content: "–"; color: var(--text-3); }
.btn-block { width: 100%; }

.form-wide { max-width: 720px; }
.field-row { display: grid; gap: 0 var(--s4); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
/* Fields side by side share their rows (label, hint, input, error): when one label wraps, every input in the row moves down with it. */
@supports (grid-template-rows: subgrid) {
    .field-row > .field { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; }
    .field-row > .field > label { align-self: end; }
}
.details-card { max-width: var(--prose); }

.quotes { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.quote { display: flex; flex-direction: column; gap: var(--s3); }
.quote p { margin: 0; }
.quote-chosen { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.quote-head { display: flex; gap: var(--s3); align-items: flex-start; }
.quote-head > div { flex: 1; min-width: 0; }
.quote-head .badge { margin: 0; white-space: nowrap; }
.quote-head h3 { margin: 0; }
.quote-head h3 a { color: var(--text); }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.note { background: var(--surface-2); border-radius: var(--radius-sm); padding: var(--s2) var(--s3); font-size: 15px; }
.lines { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 var(--s2); }
.lines td, .lines th { padding: var(--s2) 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.lines .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: var(--s3); }
.lines tfoot th { border-bottom: 0; font-size: 17px; }

.inv-Pending, .event-AwaitingQuotes, .event-Unverified { background: #FDF1DC; color: #8A4B08; }
.inv-Quoted, .event-QuotesReceived { background: var(--info-soft); color: var(--info); }
.inv-Chosen, .event-Chosen { background: var(--success-soft); color: var(--success); }
@media (prefers-color-scheme: dark) { .inv-Pending, .event-AwaitingQuotes, .event-Unverified { background: #3A2A10; color: #F6C572; } }
.payout-state-ready, .payout-Paid, .inv-Booked, .event-Booked { background: var(--success-soft); color: var(--success); }
.payout-state-none, .payout-state-incomplete, .payout-Scheduled { background: #FDF1DC; color: #8A4B08; }
.payout-Held, .payout-Failed { background: var(--danger-soft); color: var(--danger); }
@media (prefers-color-scheme: dark) { .payout-state-none, .payout-state-incomplete, .payout-Scheduled { background: #3A2A10; color: #F6C572; } }
.report summary { cursor: pointer; color: var(--text-2); min-height: 44px; display: flex; align-items: center; }
.report form { margin-top: var(--s3); }

/* Invoice */
.invoice { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s6); max-width: 820px; }
.invoice-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s5); margin-bottom: var(--s6); }
.invoice-head h1 { margin-bottom: var(--s3); }
.invoice-party { text-align: right; }
.invoice-to { margin-bottom: var(--s5); }
.invoice-to p { margin: 0; }
.invoice-lines thead th { font-size: 13px; color: var(--text-2); font-weight: 600; }
.invoice-lines { display: table; overflow: visible; }
@media (max-width: 600px) { .invoice { padding: var(--s4); } .invoice-party { text-align: left; } .invoice-lines { font-size: 13px; } }
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 0; }
  .invoice { border: 0; padding: 0; max-width: none; }
}
.dac7-Complete { background: var(--success-soft); color: var(--success); }
.dac7-Incomplete, .dac7-Reminder1, .dac7-Reminder2 { background: #FDF1DC; color: #8A4B08; }
.dac7-Frozen { background: var(--danger-soft); color: var(--danger); }
@media (prefers-color-scheme: dark) { .dac7-Incomplete, .dac7-Reminder1, .dac7-Reminder2 { background: #3A2A10; color: #F6C572; } }

/* Admin (beheer) */
.filters { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.filters a[aria-current="page"] { font-weight: 700; text-decoration: none; }
.count-attention { color: var(--accent-hover); }
.inline-form { display: inline; }
.table-scroll { overflow-x: auto; }

/* Equipment: show the sound questions only with own sound, the explanation only without. */
form:has(input[name="OwnSound"][value="false"]:checked) .own-sound-fields { display: none; }
form:has(input[name="OwnSound"][value="true"]:checked) .no-sound-info { display: none; }

/* Show only the fields that apply to the choice made in the same form (no script needed). */
form:has(input[name="VatStatus"][value="NoKvk"]:checked) .show-kvk,
form:has(input[name="VatStatus"][value="Kor"]:checked) .show-vat,
form:has(input[name="VatStatus"][value="NoKvk"]:checked) .show-vat { display: none; }
form:has(input[name="Kind"][value="Company"]:checked) .tax-person,
form:has(input[name="Kind"][value="Person"]:checked) .tax-company { display: none; }
form:not(:has(input[name="IsBusiness"]:checked)) .business-fields { display: none; }

/* Request form: the party from the search as one line, fields only when changing it. */
.party { margin-bottom: var(--s5); }
.party-summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); cursor: pointer; list-style: none; padding: var(--s4); }
.party-summary::-webkit-details-marker { display: none; }
.party-edit { color: var(--accent); font-weight: 600; white-space: nowrap; }
.party[open] .party-edit { visibility: hidden; }
.party-fields { padding-top: var(--s4); }

/* Confirmation before removing something (_ConfirmDialog) */
dialog.confirm { width: min(420px, calc(100% - 2 * var(--s4))); padding: var(--s5); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-2); }
dialog.confirm::backdrop { background: rgb(0 0 0 / .45); }
dialog.confirm p { margin: 0 0 var(--s5); font-size: 17px; overflow-wrap: anywhere; }
dialog.confirm .actions { justify-content: flex-end; }

/* Provider panel menu (_PanelNav): a sidebar on wide screens, a fold-out menu on phones */
.panel-side ul, .panel-menu ul { list-style: none; margin: 0; padding: 0; }
.panel-group { margin: var(--s4) 0 var(--s1); padding: 0 var(--s3); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.panel-side a, .panel-menu nav a { display: flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s3); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: 15px; }
.panel-side a:hover, .panel-menu nav a:hover { background: var(--surface-2); }
.panel-side a[aria-current="page"], .panel-menu nav a[aria-current="page"] { background: var(--surface); color: var(--accent); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.step-state { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.step-state.is-done { background: var(--success); color: var(--surface); }
.step-state.is-open { border: 2px solid var(--border-strong); }

.panel-menu { margin-bottom: var(--s5); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.panel-menu summary { display: flex; align-items: center; gap: var(--s3); min-height: 48px; padding: 0 var(--s4); font-weight: 600; cursor: pointer; list-style: none; }
.panel-menu summary::-webkit-details-marker { display: none; }
.panel-menu summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.panel-menu[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.panel-menu nav { padding: 0 var(--s2) var(--s3); border-top: 1px solid var(--border); }
.panel-side { display: none; }

@media (min-width: 900px) {
  .panel-menu { display: none; }
  .panel-side { display: block; float: left; width: 220px; margin: 0 0 var(--s5); }
  .panel-side > ul:first-child { margin-bottom: var(--s2); }
  .wrap:has(> .panel-side) > :not(.panel-side, .panel-menu) { margin-left: 252px; }
  .wrap:has(> .panel-side)::after { content: ""; display: table; clear: both; }
}

/* Video previews: a still from YouTube or Vimeo, stored locally */
.video-thumb { flex: none; width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); pointer-events: none; }
.videos { list-style: none; padding: 0; margin: 0 0 var(--s5); display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.videos a { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.videos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgb(0 0 0 / .6); color: #fff; }
.videos a:hover .video-play, .videos a:focus-visible .video-play { background: var(--accent); }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Rental set form (/paneel/sets/{id}) */
form:not(:has(input[name="Technician"][value="Optional"]:checked)) .tech-price { display: none; }
form:has(input[name="Technician"][value="None"]:checked) .tech-warning { display: none; }
form:has(input[name="Delivers"][value="false"]:checked) .delivery-fields { display: none; }
/* "... above X km" in the label only once X has been filled in. */
form:has([data-km-source]:placeholder-shown) [data-km-above] { display: none; }
.components { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 80px; gap: var(--s2); align-items: center; }
.components input { width: 100%; min-height: 44px; padding: 0 var(--s3); font: 16px/1.5 var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.components input:focus { border-color: var(--accent); outline: none; box-shadow: var(--focus-ring); }

/* Public page of a rental company (/verhuur/{slug}) */
.rental-set { margin-bottom: var(--s4); }
.rental-set h3 { margin-top: 0; }
.gallery-small { grid-template-columns: repeat(4, 1fr); margin-bottom: var(--s4); }
.gallery-small img:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
.prices { display: grid; grid-template-columns: auto auto; justify-content: start; gap: var(--s1) var(--s5); margin: 0 0 var(--s3); }
.prices dt { color: var(--text-2); }
.prices dd { margin: 0; font-weight: 600; }
.set-detail summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* Rental packages per kind (/paneel/sets): Small, Medium and Large slots */
.package-kind { margin-bottom: var(--s4); }
.package-kind h2 { margin-top: 0; }
.package-sizes { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: var(--s2); }
.package-sizes li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.package-sizes li.package-empty { border-style: dashed; }
.package-sizes li.package-filled { background: var(--surface-2); }
.package-sizes li.package-variant-add { border: 0; padding: 0 var(--s3); min-height: 44px; }
.package-sizes li > div:first-child { display: flex; flex-direction: column; }

/* Videos in the panel: tiles the size of the photos, with a play triangle that opens the video */
.thumbs .video-play:hover, .thumbs .video-play:focus-visible { background: var(--accent); }
.video-no-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }

/* Taking sets over from the company's own site */
.import-card { margin-bottom: var(--s5); }
.import-card h2 { margin-top: 0; }
.import-set { margin-bottom: var(--s4); }
.import-set h2 { margin-top: 0; }
.import-photos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.import-photo { flex-direction: column; }
.import-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }

/* Rental offers on the booker's event page (fase 2c). */
.rent-offers { list-style: none; padding: 0; margin: 0 0 var(--s4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.rent-offer { padding: var(--s3) var(--s4); }
.rent-offer + .rent-offer { border-top: 1px solid var(--border); }
.rent-offer p { margin: var(--s2) 0 0; }
.rent-options { display: flex; flex-direction: column; gap: var(--s1); margin-top: var(--s2); padding-left: var(--s5); }

/* Price rules (ronde 56): only the fields of the chosen "when". */
form:not(:has(input[name="Trigger"][value="Dates"]:checked)) .rule-dates,
form:not(:has(input[name="Trigger"][value="Weekdays"]:checked)) .rule-days,
form:not(:has(input[name="Trigger"][value="EarlyBooking"]:checked)) .rule-ahead { display: none; }

/* Reviews (ronde 56). */
.prose-wrap { max-width: calc(var(--prose) + 2 * var(--s4)); }
.field .field-label { font-weight: 500; margin: 0 0 var(--s2); }
.stars { color: var(--highlight); letter-spacing: 1px; white-space: nowrap; }
.reviews-summary { display: flex; align-items: baseline; gap: var(--s2); }
.reviews-summary .stars { font-size: 1.25rem; }
.review-list { list-style: none; padding: 0; margin: 0; }
.review { padding: var(--s3) 0; border-top: 1px solid var(--border); }
.review p { margin: 0 0 var(--s2); }
.review-reply { margin: var(--s2) 0 0 var(--s4); padding-left: var(--s3); border-left: 3px solid var(--border); }
.stars-choice { grid-template-columns: 1fr; }
fieldset.card legend { padding: 0; }
fieldset.card legend h2 { margin: 0; }
