/* aanhangertwente.nl: rustig thema, donker/lichtgrijs met groene WhatsApp-knop */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }

:root {
  --bg: #e3e6ea;
  --bg-alt: #d8dce1;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --border: #d2d7dd;
  --border-strong: #bfc5cc;
  --text: #16181b;
  --text-soft: #3b4047;
  --muted: #5f656d;
  --accent: #2b3036;
  --accent-hover: #40464e;
  --accent-ink: #ffffff;
  --accent-text: #2b3036;
  --brand: #f07a10;
  --wa: #1f8f4f;
  --wa-hover: #187a42;
  --free-bg: #e2f3e7;
  --free-border: #b5dcc0;
  --free-text: #1b7440;
  --rented-bg: #fce3e0;
  --rented-border: #f2bcb6;
  --rented-text: #b8352c;
  --danger: #c4372c;
  --shadow: 0 1px 2px rgba(16, 20, 26, .06), 0 8px 24px rgba(16, 20, 26, .08);
  --dark: #16181b;
  --dark-2: #1f2226;
  --on-dark: #f3f2ef;
  --on-dark-muted: #a9aeb5;
  --on-dark-border: rgba(255, 255, 255, .14);
  --shadow-hover: 0 2px 4px rgba(16, 20, 26, .08), 0 16px 36px rgba(16, 20, 26, .14);
  --radius: 10px;
  --radius-sm: 9px;
  --wrap: 1180px;
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.05; letter-spacing: .01em; margin: 0 0 .4em; text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--accent-text); font: 600 .8rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.lead { font-size: 1.15rem; color: var(--text-soft); max-width: 60ch; }

/* ---------- knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 1.3em;
  border-radius: 8px; border: 1.5px solid transparent; font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.2em; height: 1.2em; flex: none; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--rented-border); }
.btn-danger:hover { background: var(--rented-bg); color: var(--danger); }
.btn-small { min-height: 36px; padding: 0 .95em; font-size: .9rem; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.inline-form { display: inline; margin: 0; }

/* ---------- header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none;
  font: 700 1.45rem/1 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.brand:hover { color: var(--text); }
.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current] { color: var(--text); }
.main-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--on-dark-muted); }

.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 0 36px; color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner strong { color: var(--text); margin-right: 8px; font: 700 1.1rem var(--head); text-transform: uppercase; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---------- meldingen ---------- */
.flashes { margin-top: 18px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; margin: 0 0 10px; }
.flash-success { background: var(--free-bg); border-color: var(--free-border); color: var(--free-text); }
.flash-error { background: var(--rented-bg); border-color: var(--rented-border); color: var(--rented-text); }

/* ---------- secties ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 36px; max-width: 720px; }
.section-head p:not(.eyebrow) { color: var(--muted); }

/* ---------- trailerkaarten ---------- */
.trailer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.trailer-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s, transform .2s; }
.trailer-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.trailer-card-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.trailer-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.trailer-card-photo img.portrait { object-position: 50% 80%; } /* staande foto: trailer onderin in beeld */
.trailer-card:hover .trailer-card-photo img { transform: scale(1.03); }
.photo-placeholder { width: 100%; height: 100%; min-height: 220px; background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--surface) 14px 28px); }
.badge { position: absolute; left: 16px; top: 16px; background: rgba(22,24,27,.86); color: #fff;
  font: 700 .95rem/1 var(--head); text-transform: uppercase; letter-spacing: .05em; padding: 8px 12px; border-radius: 6px; }
.trailer-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.trailer-card-body h3 { font-size: 1.85rem; }
.trailer-card-body h3 a { color: var(--text); text-decoration: none; }
.trailer-card-body > p { color: var(--muted); }
.trailer-card-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.price { font: 700 1.9rem/1 var(--head); color: var(--text); margin: 0; }
.price small { font: 500 .8rem var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.spec-chips div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: .85rem; }
.spec-chips dt { display: inline; color: var(--muted); }
.spec-chips dt::after { content: " "; }
.spec-chips dd { display: inline; margin: 0; font-weight: 600; }

/* ---------- kalender ---------- */
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 22px; }
.cal-nav h3 { margin: 0; min-width: 14ch; text-align: center; font-size: 1.6rem; }
.cal-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.cal-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.cal-card h4 { margin-bottom: 14px; }
.cal-card h4 a { color: var(--text); text-decoration: none; }
.cal-multi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.cal-caption { font: 700 1.15rem var(--head); text-transform: uppercase; margin-bottom: 10px; color: var(--muted); }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dow { text-align: center; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-bottom: 4px; }
.cal-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; font: 600 .95rem/1 var(--body);
  border: 1.5px solid transparent; padding: 0; }
.cal-day.free { background: var(--free-bg); color: var(--free-text); }
.cal-day.rented { background: var(--rented-bg); color: var(--rented-text); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cal-day.past { opacity: .4; }
.cal-day.today { border-color: var(--accent); border-width: 2px; }
.cal-day.empty { background: none; }
button.cal-day { cursor: pointer; font-family: var(--body); }
button.cal-day:hover { border-color: var(--text); }
.cal-day.selected { background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.cal-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin: 20px 0 0; color: var(--text-soft); font-size: .9rem; }
.cal-legend span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.swatch.free { background: var(--free-bg); border: 1.5px solid var(--free-text); }
.swatch.rented { background: var(--rented-bg); border: 1.5px solid var(--rented-text); }
.swatch.today { border: 1.5px solid var(--accent); }

/* ---------- info en contact ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.info-card > .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 14px; }
.info-card ul { margin: 0; padding-left: 1.1em; color: var(--text-soft); }
.info-card li { margin-bottom: .35em; }
.info-card li::marker { color: var(--accent); }
.info-card p { color: var(--text-soft); margin: 0; }
.contact-band { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 40px; border-radius: calc(var(--radius) + 4px); border: 1px solid #f5d3b0;
  background: linear-gradient(120deg, rgba(240,122,16,.12), rgba(240,122,16,.02) 60%), var(--surface); box-shadow: var(--shadow); }
.contact-band h2 { margin-bottom: .25em; }
.contact-band p { color: var(--text-soft); margin: 0; max-width: 52ch; }

/* ---------- homepage: alles op één scherm ---------- */
.intro { padding: 18px 0 16px; }
.intro-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px 32px; }
.intro h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: .15em; }
.intro-text { color: var(--text-soft); margin: 0 0 .45em; }
.check-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; font-size: .93rem; color: var(--text-soft); }
.check-list li { display: flex; align-items: center; gap: 7px; }
.check-list .icon { width: 18px; height: 18px; color: var(--accent); flex: none; }

.avail-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap;
  padding: 12px 0; margin-bottom: 4px; border-top: 1px solid var(--border); }
.avail-bar h2 { font-size: 1.5rem; margin: 0; }
.avail-bar .cal-nav { margin: 0; gap: 12px; }
.avail-bar .cal-nav h3 { font-size: 1.35rem; min-width: 12ch; }
.avail-bar .icon-btn { width: 38px; height: 38px; font-size: 1.3rem; }
.avail-bar .cal-legend { margin: 0; font-size: .85rem; gap: 16px; }
.trailers-top { padding-top: 6px; padding-bottom: 56px; }
.trailer-card-body h2 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); margin-bottom: .1em; }
.trailer-card-body h2 a { color: var(--text); text-decoration: none; }
.trailer-card-body h2 a:hover { color: var(--text); }
.card-tagline { color: var(--muted); margin-bottom: 10px; font-size: .95rem; min-height: 3em; line-height: 1.5; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; margin: 0 0 4px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-free { color: var(--free-text); }
.status.is-rented { color: var(--rented-text); }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 0 0 12px; font-size: .9rem; }
.spec-table div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 600; text-align: right; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-foot .price { font-size: 1.7rem; }
.cal-compact { padding-top: 12px; border-top: 1px solid var(--border); }
.cal-compact .cal-days { gap: 3px; }
.cal-compact .cal-dow { font-size: .68rem; padding-bottom: 0; }
.cal-compact .cal-day { aspect-ratio: auto; height: 27px; font-size: .85rem; border-radius: 6px; }
.intro-inner > .btn-row { max-width: 400px; justify-content: flex-end; }
.intro-inner .contact-note { justify-content: flex-end; }
.contact-note { flex-basis: 100%; margin: 0; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.contact-note .icon { width: 16px; height: 16px; color: var(--free-text); }
.info-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; padding-top: 24px; }
.info-strip .info-card { display: flex; gap: 16px; padding: 20px; }
.info-strip .info-card > .icon { margin: 0; flex: none; }
.info-strip h3 { font-size: 1.2rem; margin-bottom: .2em; }

@media (max-width: 640px) {
  .spec-table { grid-template-columns: 1fr; }
  .intro-inner { grid-template-columns: 1fr; }
  .intro .btn-row { width: 100%; }
  .intro .btn { flex: 1 1 auto; }
  .avail-bar { position: sticky; top: 68px; z-index: 10; background: var(--bg); }
  .avail-bar h2, .avail-bar .cal-legend { display: none; }
  .avail-bar .cal-nav { width: 100%; justify-content: space-between; }
}

/* ---------- trailerpagina ---------- */
.page-top { padding-top: 28px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 500; }
.back-link .icon { width: 18px; height: 18px; }
.back-link:hover { color: var(--text); }
.detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; padding-top: 24px; padding-bottom: 72px; align-items: start; }
.gallery-main { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow); }
.gallery-main img { width: 100%; max-height: 72vh; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 92px; height: 72px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: none; cursor: pointer; opacity: .65; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--accent); opacity: 1; }
.detail-info h1 { font-size: clamp(2.3rem, 4.5vw, 3.6rem); }
.detail-info > p { color: var(--text-soft); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 0 0 22px; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.5rem; }
.rows { margin: 0; }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.rows div:last-child { border-bottom: 0; padding-bottom: 0; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; font-weight: 600; text-align: right; }
.price-notes { margin: 16px 0 0; padding: 14px 0 0 1.1em; border-top: 1px solid var(--border); color: var(--muted); font-size: .92rem; }
.price-notes li::marker { color: var(--accent); }
.other-trailer { display: flex; align-items: center; gap: 18px; padding: 14px; margin-bottom: 12px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.other-trailer:hover { border-color: var(--accent); color: var(--text); }
.other-trailer img, .thumb-empty { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; flex: none; background: var(--surface-2); }
.other-trailer > span:not(.btn) { flex: 1; display: flex; flex-direction: column; }
.other-trailer strong { font: 700 1.4rem/1.1 var(--head); text-transform: uppercase; }
.other-trailer small { color: var(--muted); }
.other-trailer > .icon { width: 24px; height: 24px; color: var(--accent); }
.narrow-page { padding: 80px 20px; max-width: 720px; }

/* ---------- beheer ---------- */
.admin-page { padding-top: 32px; padding-bottom: 40px; }
.admin-head { margin: 0 0 24px; }
.admin-head.row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.admin .admin-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.admin .cal-group { margin-bottom: 28px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; margin-bottom: 16px; }
.form label small { font-weight: 400; color: var(--muted); }
.form h2:not(:first-child) { margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 13px; width: 100%; min-height: 46px; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input[type="file"] { padding: 10px; }
::placeholder { color: #a39d93; }
details { margin: 4px 0 16px; color: var(--muted); }
details summary { cursor: pointer; margin-bottom: 10px; }
details label { flex-direction: row !important; align-items: center; font-weight: 400 !important; }
details input { max-width: 280px; }
.login-box { max-width: 420px; margin: 40px auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-weight: 600; color: var(--muted); background: var(--surface); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:last-child td { border-bottom: 0; }
tr.is-past td { color: var(--muted); }
td.actions { white-space: nowrap; text-align: right; }
td.actions > * + * { margin-left: 6px; }
.photo-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 22px; }
.photo-admin figure { margin: 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.photo-admin img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-admin figcaption { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 10px 0; min-height: 10px; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
.tag { font-size: .75rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text); }
.tag-accent { background: var(--accent); color: var(--accent-ink); }
.upload-form { border-top: 1px solid var(--border); padding-top: 18px; }
.admin-trailers { max-width: 760px; }


/* ---------- trailerkaart (advertentie) ---------- */
.trailer-card { display: flex; flex-direction: column; }
.trailer-card-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 35%;
  background: linear-gradient(0deg, rgba(10,12,14,.35), transparent); pointer-events: none; }
.trailer-card-photo .status { position: absolute; right: 14px; top: 14px; z-index: 1; margin: 0; padding: 6px 11px;
  border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.trailer-card-photo .status.is-free { color: var(--free-text); }
.trailer-card-photo .status.is-rented { color: var(--rented-text); }
.trailer-card .card-tagline { min-height: 0; margin-bottom: 16px; }
.spec-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.spec-tiles li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  padding: 12px 6px 10px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.spec-tiles .icon { width: 22px; height: 22px; color: var(--muted); margin-bottom: 4px; }
.spec-tiles strong { font-size: .95rem; line-height: 1.2; }
.spec-tiles span { font-size: .75rem; color: var(--muted); }
.trailer-card-body { padding-bottom: 18px; }
.trailer-card > .trailer-card-foot { margin-top: auto; padding: 14px 24px; border-top: 1px solid var(--border);
  background: var(--surface-2); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.card-price small { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.card-price strong { font: 700 2.1rem/1 var(--head); color: var(--text); }
.card-price span { color: var(--text-soft); font-size: .92rem; }
.gallery-main img { cursor: default; }
@media (max-width: 640px) {
  .spec-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- ophalen en kaart ---------- */
.card-location { display: flex; align-items: center; gap: 7px; margin: -6px 0 14px; font-size: .9rem; font-weight: 500; color: var(--text-soft); }
.card-location .icon { width: 17px; height: 17px; color: var(--muted); flex: none; }
.pickup-grid { display: grid; gap: 20px; }
.pickup-grid.has-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: stretch; }
.info-stack { display: grid; gap: 16px; align-content: start; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); min-height: 300px; background: var(--surface-2); }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }
@media (max-width: 760px) { .pickup-grid.has-map { grid-template-columns: 1fr; } }

/* ---------- statistieken (beheer) ---------- */
.segmented { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.segmented a { padding: 6px 14px; border-radius: 999px; color: var(--text-soft); text-decoration: none; font-size: .9rem; font-weight: 500; }
.segmented a[aria-current] { background: var(--dark); color: var(--on-dark); }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stat-tile span { color: var(--muted); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat-tile strong { font: 700 2.6rem/1.1 var(--head); color: var(--text); margin: 4px 0 2px; }
.stat-tile small { color: var(--muted); font-size: .85rem; }
.bar-chart { display: grid; grid-template-columns: auto 1fr; gap: 10px; height: 200px; }
.bar-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: .75rem; color: var(--muted); text-align: right; }
.bars { display: flex; align-items: flex-end; gap: 3px; border-bottom: 1px solid var(--border-strong);
  background: linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 50%; }
.bars.dense { gap: 1px; }
.bar-slot { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; outline: none; }
.bar-slot i { display: block; width: 100%; min-height: 2px; background: #5b6672; border-radius: 4px 4px 0 0; }
.bars.dense .bar-slot i { border-radius: 1px 1px 0 0; }
.bar-slot:hover i, .bar-slot:focus i { background: var(--accent-text); }
.bar-slot:hover::after, .bar-slot:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%); white-space: nowrap; background: var(--dark); color: var(--on-dark); font-size: .8rem;
  padding: 5px 9px; border-radius: 6px; pointer-events: none; z-index: 2; }
.bar-dates { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin: 6px 0 0 34px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 20px; }
.stat-table th, .stat-table td { padding: 8px 4px; }
.stat-table th { background: none; }
.stat-table td { position: relative; }
.stat-table .num { text-align: right; width: 80px; font-variant-numeric: tabular-nums; font-weight: 600; }
.meter { display: block; height: 4px; width: var(--w); background: #5b6672; border-radius: 2px; opacity: .45; margin-bottom: 5px; }
.stat-help ul { margin: 0; padding-left: 1.1em; color: var(--text-soft); }
.stat-help li { margin-bottom: 10px; }
.stat-help code { background: var(--surface-2); padding: 2px 6px; border-radius: 5px; font-size: .9em; }

/* ---------- donkere banden: header, intro, reserveren, footer ---------- */
.site-header { background: rgba(22, 24, 27, .96); border-bottom-color: var(--on-dark-border); }
.brand, .brand:hover { color: var(--on-dark); }
.main-nav a:not(.btn) { color: var(--on-dark-muted); }
.main-nav a:not(.btn):hover, .main-nav a[aria-current] { color: var(--on-dark); }
.site-header .btn-ghost, .intro .btn-ghost, .contact-band .btn-ghost {
  background: rgba(255, 255, 255, .06); color: var(--on-dark); border-color: var(--on-dark-border); }
.site-header .btn-ghost:hover, .intro .btn-ghost:hover, .contact-band .btn-ghost:hover { background: rgba(255, 255, 255, .13); color: var(--on-dark); }

.intro { background: var(--dark);
  color: var(--on-dark); padding: 26px 0 92px; }
.intro .intro-text, .intro .check-list { color: #d9dbde; }
.intro .contact-note { color: var(--on-dark-muted); }
.intro .contact-note .icon { color: #7fe0a6; }
.intro .check-list .icon { color: #c9cdd2; }
.trailers-top { margin-top: -66px; position: relative; }

.contact-band { background: var(--dark);
  border-color: var(--dark); color: var(--on-dark); }
.contact-band p { color: var(--on-dark-muted); }
.contact-band .contact-note { color: var(--on-dark-muted); }
.contact-band .contact-note .icon { color: #7fe0a6; }

.site-footer { background: var(--dark); border-top: 0; margin-top: 0; color: var(--on-dark-muted); }
.footer-inner strong { color: var(--on-dark); }
.footer-links a { color: var(--on-dark-muted); }
.footer-links a:hover { color: var(--on-dark); }
main { padding-bottom: 40px; }

/* ---------- mobiel ---------- */
@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 60px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .main-nav { gap: 14px; }
  .main-nav a:not(.btn):not([aria-current]) { display: none; }
  .admin .main-nav a:not(.btn) { display: inline; font-size: .88rem; }
  .admin .header-inner { flex-direction: column; align-items: flex-start; padding: 10px 16px; }
  .brand { font-size: 1.2rem; }
  .brand img { width: 36px; height: 28px; }
  .contact-band { padding: 26px; }
  .contact-band .btn-row { width: 100%; }
  .contact-band .btn { flex: 1 1 100%; }
  .cal-card { padding: 14px; }
  .cal-days { gap: 3px; }
  .cal-day { font-size: .85rem; border-radius: 6px; }
  td.actions { white-space: normal; }
  td.actions > * + * { margin-left: 0; margin-top: 6px; }
  td.actions .inline-form { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
