/* ============================================================
   Verhuur - schoon, modern autoverhuur-platform (mobiel-first)
   Accentkleur komt uit instellingen (--accent), fallback blauw.
   ============================================================ */

:root{
  --accent:#2563eb;
  --accent-dark:#1d4ed8;
  --ink:#0f172a;
  --ink-soft:#475569;
  --muted:#94a3b8;
  --line:#e2e8f0;
  --bg:#ffffff;
  --bg-soft:#f8fafc;
  --ok:#16a34a;
  --warn:#d97706;
  --radius:14px;
  --shadow:0 6px 24px rgba(15,23,42,.08);
  --maxw:1160px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.55; -webkit-font-smoothing:antialiased;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
h1,h2,h3{ margin:0; line-height:1.15; letter-spacing:-.01em; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 20px; }
.center{ text-align:center; }
.muted{ color:var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn{ display:inline-block; border:none; cursor:pointer; font:inherit; font-weight:600;
  padding:12px 22px; border-radius:10px; transition:.18s; }
.btn-primary{ background:var(--accent); color:#fff; }
.btn-primary:hover{ background:var(--accent-dark); }
.btn-ghost{ background:#fff; color:var(--ink); border:1px solid var(--line); }
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent); }
.btn-lg{ padding:15px 30px; font-size:17px; }
.btn-block{ display:block; width:100%; text-align:center; }
.btn-sm{ padding:8px 14px; font-size:14px; border-radius:8px; }

/* ---------- Header ---------- */
.nav{ position:sticky; top:0; z-index:50; background:rgba(255,255,255,.9);
  backdrop-filter:saturate(180%) blur(12px); border-bottom:1px solid var(--line); }
.nav .wrap{ display:flex; align-items:center; gap:26px; height:66px; }
.brand{ font-weight:800; font-size:21px; letter-spacing:-.02em; }
.brand span{ color:var(--accent); }
.nav-links{ display:flex; gap:22px; margin-left:8px; }
.nav-links a{ font-size:15px; color:var(--ink-soft); font-weight:500; }
.nav-links a:hover{ color:var(--ink); }
.nav-right{ margin-left:auto; display:flex; gap:12px; align-items:center; }

/* ---------- Hero ---------- */
.hero{ background:linear-gradient(160deg,#0f172a,#1e293b); color:#fff; padding:64px 0 84px; }
.hero h1{ font-size:clamp(30px,5vw,50px); font-weight:800; max-width:14ch; }
.hero p.lead{ font-size:clamp(17px,2vw,20px); color:#cbd5e1; margin:16px 0 0; max-width:52ch; }

/* Zoekbalk (datumkiezer) */
.searchbar{ background:#fff; color:var(--ink); border-radius:16px; box-shadow:var(--shadow);
  padding:16px; margin-top:34px; display:grid; grid-template-columns:1fr 1fr auto; gap:14px; align-items:end; }
.searchbar .field{ display:flex; flex-direction:column; gap:6px; }
.searchbar label{ font-size:12.5px; font-weight:600; color:var(--ink-soft); }
.searchbar input, .searchbar select{ font:inherit; padding:12px 12px; border:1px solid var(--line);
  border-radius:10px; background:#fff; }
.searchbar input:focus, .searchbar select:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(37,99,235,.15); }

/* ---------- Secties ---------- */
.section{ padding:72px 0; }
.section.soft{ background:var(--bg-soft); }
.section h2{ font-size:clamp(24px,3.4vw,36px); font-weight:800; }
.section .sub{ color:var(--ink-soft); font-size:17px; margin-top:10px; }
.sec-head{ display:flex; justify-content:space-between; align-items:end; gap:16px; margin-bottom:30px; flex-wrap:wrap; }

/* ---------- USP-strip ---------- */
.usps{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.usp{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:20px; }
.usp .ico{ width:40px;height:40px;border-radius:10px;background:rgba(37,99,235,.1);color:var(--accent);
  display:grid;place-items:center;font-size:20px;margin-bottom:12px; }
.usp h3{ font-size:16px; } .usp p{ margin:4px 0 0; font-size:14px; color:var(--ink-soft); }

/* ---------- Auto-grid ---------- */
.car-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.car-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  display:flex; flex-direction:column; transition:.2s; }
.car-card:hover{ box-shadow:var(--shadow); transform:translateY(-3px); }
.car-card .thumb{ aspect-ratio:16/10; background:var(--bg-soft); position:relative; overflow:hidden; }
.car-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.car-card .cat{ position:absolute; top:12px; left:12px; background:rgba(15,23,42,.82); color:#fff;
  font-size:12px; font-weight:600; padding:4px 10px; border-radius:999px; }
.car-card .tag-status{ position:absolute; top:12px; right:12px; font-size:12px; font-weight:600;
  padding:4px 10px; border-radius:999px; }
.car-body{ padding:16px 18px 18px; display:flex; flex-direction:column; flex:1; }
.car-body h3{ font-size:19px; }
.specs-row{ display:flex; flex-wrap:wrap; gap:10px 16px; margin:12px 0 16px; color:var(--ink-soft); font-size:13.5px; }
.specs-row span{ display:inline-flex; align-items:center; gap:5px; }
.car-foot{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; }
.price b{ font-size:22px; } .price small{ color:var(--ink-soft); font-weight:500; }

/* ---------- Auto detail ---------- */
.detail{ display:grid; grid-template-columns:1.2fr 1fr; gap:40px; }
.gallery .main-img{ border-radius:var(--radius); overflow:hidden; background:var(--bg-soft); aspect-ratio:16/10; }
.gallery .main-img img{ width:100%; height:100%; object-fit:cover; }
.thumbs{ display:flex; gap:10px; margin-top:10px; flex-wrap:wrap; }
.thumbs img{ width:88px; height:60px; object-fit:cover; border-radius:8px; border:1px solid var(--line); cursor:pointer; }
.detail h1{ font-size:clamp(26px,4vw,38px); font-weight:800; }
.detail .cat{ color:var(--accent); font-weight:700; font-size:14px; }
.spec-table{ width:100%; border-collapse:collapse; margin:20px 0; }
.spec-table td{ padding:11px 0; border-bottom:1px solid var(--line); font-size:15px; }
.spec-table td:first-child{ color:var(--ink-soft); width:45%; }
.price-box{ background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--radius); padding:22px; margin-top:8px; }
.price-box .big{ font-size:30px; font-weight:800; } .price-box .big small{ font-size:15px; color:var(--ink-soft); font-weight:500; }

/* ---------- Forms ---------- */
.form-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:30px; }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field.full{ grid-column:1/-1; }
.field label{ font-size:13px; font-weight:600; color:var(--ink-soft); }
.field input,.field select,.field textarea{ font:inherit; padding:11px 13px; border:1px solid var(--line);
  border-radius:10px; background:#fff; }
.field input:focus,.field select:focus,.field textarea:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(37,99,235,.15); }
.field textarea{ min-height:90px; resize:vertical; }

.alert{ padding:12px 16px; border-radius:10px; font-size:14.5px; margin-bottom:18px; }
.alert-ok{ background:#dcfce7; color:#166534; }
.alert-error{ background:#fee2e2; color:#991b1b; }

/* ---------- Auth ---------- */
.auth-wrap{ max-width:400px; margin:70px auto; padding:0 20px; }
.auth-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:34px; box-shadow:var(--shadow); }
.auth-card h1{ font-size:24px; margin-bottom:6px; }

/* ---------- Admin ---------- */
.app{ display:grid; grid-template-columns:230px 1fr; min-height:100vh; }
.side{ background:#0f172a; color:#cbd5e1; padding:22px 16px; position:sticky; top:0; height:100vh; }
.side .brand{ color:#fff; display:block; margin-bottom:2px; }
.side .role{ font-size:11px; color:var(--accent); text-transform:uppercase; letter-spacing:.06em; margin-bottom:22px; }
.side nav a{ display:block; padding:10px 12px; border-radius:9px; font-size:14.5px; color:#cbd5e1; margin-bottom:3px; }
.side nav a:hover{ background:rgba(255,255,255,.06); color:#fff; }
.side nav a.active{ background:var(--accent); color:#fff; }
.side .side-foot{ position:absolute; bottom:20px; left:16px; right:16px; font-size:13px; }
.side .side-foot a{ color:#94a3b8; }
.main{ background:var(--bg-soft); padding:30px 34px; }
.main h1{ font-size:26px; }
.page-sub{ color:var(--ink-soft); margin:4px 0 24px; }
.stat-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:28px; }
.stat{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:18px; }
.stat .n{ font-size:26px; font-weight:800; } .stat .l{ font-size:13px; color:var(--ink-soft); }
.panel{ background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
table.data{ width:100%; border-collapse:collapse; font-size:14px; }
table.data th,table.data td{ text-align:left; padding:12px 15px; border-bottom:1px solid var(--line); }
table.data th{ font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-soft); }
table.data tr:last-child td{ border-bottom:none; }
.badge{ font-size:12px; padding:3px 10px; border-radius:999px; font-weight:600; }
.badge.actief{ background:#dcfce7; color:#166534; }
.badge.onderhoud{ background:#fef3c7; color:#92400e; }
.badge.inactief{ background:#f1f5f9; color:#475569; }
.inline{ display:inline; }

/* ---------- Footer ---------- */
.footer{ background:#0f172a; color:#94a3b8; padding:40px 0; font-size:14px; }
.footer .wrap{ display:flex; flex-wrap:wrap; gap:14px 30px; justify-content:space-between; align-items:center; }
.footer a{ color:#cbd5e1; }

/* ---------- Responsief ---------- */
@media (max-width:900px){
  .car-grid,.usps{ grid-template-columns:repeat(2,1fr); }
  .detail{ grid-template-columns:1fr; }
  .searchbar{ grid-template-columns:1fr 1fr; }
  .app{ grid-template-columns:1fr; }
  .side{ position:static; height:auto; }
  .side .side-foot{ position:static; margin-top:14px; }
  .stat-row{ grid-template-columns:1fr 1fr; }
}
@media (max-width:600px){
  .nav-links{ display:none; }
  .car-grid,.usps,.form-grid,.searchbar{ grid-template-columns:1fr; }
}
