:root{
  --bg:#0b0c10;
  --panel:#12141a;
  --panel2:#0f1116;
  --text:#e9eef6;
  --muted:#a9b2c3;
  --line:rgba(255,255,255,.08);
  --red:#e0181a;
  --red2:#b40f12;
  --silver:#c9d2df;
  --shadow: 0 18px 45px rgba(0,0,0,.55);
  --radius:16px;
  --max:1180px;
  --btn:#1e2430;
  --header-h:78px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  display:flex;
  flex-direction:column;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: url("/assets/img/bg.jpg") center/cover no-repeat;
  filter: blur(14px) saturate(.9);
  transform: scale(1.06);
  opacity: .38;
  z-index: -2;
}
body::after{
  content:"";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 18% -10%, rgba(224,24,26,.26), transparent 60%),
    radial-gradient(900px 600px at 70% 0%, rgba(255,255,255,.06), transparent 55%),
    radial-gradient(900px 600px at 55% 85%, rgba(224,24,26,.12), transparent 55%),
    linear-gradient(180deg, rgba(5,6,7,.92), rgba(5,6,7,.98));
  z-index: -1;
}

a{color:inherit;text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:22px}
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(7,8,11,.72);
  border-bottom:1px solid var(--line);
}
.topbar .row{display:flex; align-items:center; justify-content:space-between; gap:16px; height:var(--header-h)} 
.brand{display:flex; align-items:center; gap:14px; height:var(--header-h)} 
.brand img{height:var(--logo-h,86px); width:auto; display:block; filter:drop-shadow(0 8px 22px rgba(0,0,0,.45))}
.nav{display:flex; gap:14px; flex-wrap:wrap}
.nav a{
  padding:10px 12px;
  border-radius:999px;
  color:var(--muted);
  border:1px solid transparent;
}
.nav a:hover{color:var(--text); border-color:var(--line); background:rgba(255,255,255,.03)}
.nav a.active{color:var(--text); border-color:rgba(224,24,26,.45); background:rgba(224,24,26,.10)}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(30,36,48,.98), rgba(18,20,26,.98));
  color:var(--text);
  cursor:pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  user-select:none;
}
.btn:hover{transform:translateY(-1px); border-color:rgba(224,24,26,.35)}
.btn.primary{
  border-color:rgba(224,24,26,.55);
  background: linear-gradient(180deg, rgba(224,24,26,.95), rgba(180,15,18,.95));
}
.btn.ghost{background:transparent}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  font-size:12px; color:var(--muted);
  background:rgba(255,255,255,.04)
}
.badge.red{color:#fff;border-color:rgba(224,24,26,.6); background:rgba(224,24,26,.15)}
.badge.sold{color:#fff;border-color:rgba(201,210,223,.45); background:rgba(201,210,223,.10)}
.hero{
  padding:28px 0 12px;
}
.heroCard{
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18,20,26,.85), rgba(9,10,14,.85));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.heroGrid{display:grid; grid-template-columns: 1.2fr .8fr; gap:0}
.heroLeft{padding:36px}
.heroRight{padding:28px; background: rgba(255,255,255,.03); border-left:1px solid var(--line)}
.h1{
  margin:0;
  font-size:54px;
  letter-spacing:.5px;
  line-height:1.05;
}
.h1 span{display:block; color:var(--silver); font-weight:300}
.h1 strong{display:block; font-weight:800}
.lead{color:var(--muted); line-height:1.7; max-width:62ch; margin:18px 0 22px}
.kickers{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.formCard{
  display:flex; flex-direction:column; gap:12px;
}
.help{ font-size:12px; color:var(--muted); margin-top:6px; opacity:.9; }

/* Proefrit form polish */
.proefritForm{ padding:18px; }
.proefritForm .grid2{ gap:16px; }
.proefritForm textarea{ min-height:140px; }
label{font-size:12px; color:var(--muted)}
.input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,12,16,.72);
  color:var(--text);
  outline:none;
}

/* Better dark select dropdown (Chrome/Edge/Firefox; some OS highlight still applies) */
select{
  appearance:none;
  -webkit-appearance:none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.55) 50%),
                    linear-gradient(135deg, rgba(255,255,255,.55) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 13px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
select option{
  background: #0a0c10;
  color: #ffffff;
}
textarea{min-height:120px; resize:vertical}
.grid3{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
.grid2{display:grid; grid-template-columns: 1fr 1fr; gap:14px}
.sectionTitle{margin:26px 0 12px; font-size:20px}
.cards{display:grid; grid-template-columns: repeat(3, 1fr); gap:16px}
.card{
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(18,20,26,.65);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  overflow:hidden;
}
.cardMedia{position:relative; aspect-ratio: 4/3; background:rgba(255,255,255,.05)}
.cardMedia img{width:100%; height:100%; object-fit:cover; display:block}
.cardMedia /* Stock status labels on vehicle cards */
.flag{
  position:absolute;
  left:14px;
  top:14px;
  display:flex;
  gap:10px;
  align-items:center;
  z-index:3;
}
.cardMedia .flag .badge{
  font-weight:700;
  letter-spacing:.35px;
  text-transform:uppercase;
  font-size:11px;
  padding:8px 12px;
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.38);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.cardMedia .flag .badge.red{
  border-color: rgba(224,24,26,.55);
  background: rgba(224,24,26,.18);
}
.cardMedia .flag .badge.sold{
  border-color: rgba(255,255,255,.20);
  background: rgba(120,130,140,.22);
}

.cardBody{padding:14px}
.cardTitle{font-weight:800; font-size:16px; margin:0 0 8px}
.meta{display:grid; gap:6px; color:var(--muted); font-size:13px}
.priceRow{display:flex; align-items:center; justify-content:space-between; margin-top:14px}
.price{font-weight:900; font-size:20px}
/* Footer (public) */
.siteFooter{
  margin-top:40px;
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(7,8,11,.60);
  backdrop-filter: blur(10px);
}
.footerGrid{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:16px;
  padding:14px 18px;
  align-items:center;
}
.footerBrandRow{margin-bottom:8px}
.footerLeft .footerBrand{display:inline-flex}
.footerInfo{
  display:grid;
  gap:4px;
  font-size:13px;
  line-height:1.55;
  opacity:.92;
}

/* Compact inline footer info: Naam | Adres | Plaats | etc */
.footerInfo.footerInline{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.footerInfo.footerInline .fiBrand{ font-weight:600; opacity:1; }
.footerInfo.footerInline .sep{opacity:.45}
.footerInfo.footerInline a{color:inherit; text-decoration:none; border-bottom:1px dotted rgba(255,255,255,.25)}
.footerInfo.footerInline a:hover{border-bottom-color:rgba(255,255,255,.5)}
.footerMetaLine{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:8px;
  font-size:12px;
  color:var(--muted);
}
.footerMetaLine .dot{opacity:.5}
.footerCopy{
  margin-top:8px;
  font-size:12px;
  opacity:.70;
}
.footerRight{
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.footerLinks{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; align-items:center}

@media (max-width: 820px){
  .footerGrid{grid-template-columns:1fr; padding:16px 16px}
  .footerRight{align-items:flex-start;}
  .footerLinks{justify-content:flex-start}
}
.twoCol{display:grid; grid-template-columns: 1fr 1fr; gap:16px}
.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius:14px;
  border:1px solid var(--line);
}
.table th, .table td{
  padding:12px 12px;
  border-bottom:1px solid var(--line);
}
.table th{color:var(--muted); text-align:left; background:rgba(255,255,255,.03)}
.table tr:last-child td{border-bottom:none}

.notice{
  border:1px solid rgba(224,24,26,.45);
  background: rgba(224,24,26,.08);
  border-radius: 14px;
  padding:12px 14px;
  color:var(--silver);
}

.cookie{
  position:fixed; left:16px; right:16px; bottom:16px; z-index:9999;
  max-width:980px; margin:0 auto;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(12,14,18,.92);
  box-shadow: 0 18px 55px rgba(0,0,0,.6);
  padding:14px;
  display:none;
}
.cookie .row{display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap}
.cookie p{margin:0; color:var(--muted); line-height:1.5}
.cookie strong{color:var(--text)}
.small{font-size:12px}

.whatsapp-fab{
  position:fixed; right:18px; bottom:110px; z-index:9998;
  display:none;
}
.whatsapp-fab a{
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(18,20,26,.85);
  box-shadow: 0 12px 35px rgba(0,0,0,.5);
}

@media (max-width: 980px){
  .heroGrid{grid-template-columns:1fr}
  .heroRight{border-left:none; border-top:1px solid var(--line)}
  .cards{grid-template-columns:1fr 1fr}
  .grid3{grid-template-columns:1fr}
  .twoCol{grid-template-columns:1fr}
  .h1{font-size:40px}
}
@media (max-width: 620px){
  .cards{grid-template-columns:1fr}
  .brand img{height:72px}
}


/* Responsive */
@media (max-width: 900px){
  .wrap{padding:18px 14px}
  .topbar{position:sticky; top:0; z-index:50; backdrop-filter: blur(12px)}
  .nav{gap:10px; justify-content:center}
}
@media (max-width: 720px){
  .brand img{height:64px}
  .heroGrid{grid-template-columns:1fr !important}
  .heroGrid .heroCard{padding:18px !important}
  .grid3{grid-template-columns:1fr !important}
  .grid2{grid-template-columns:1fr !important}
  .vehicleGrid{grid-template-columns:1fr !important}
  .footerRow{flex-direction:column; align-items:flex-start; gap:10px}
  .btn{width:100%}
  .nav{flex-wrap:wrap}
}
@media (max-width: 420px){
  .brand img{height:58px}
  .sectionTitle{font-size:22px}
}



/* Mobile nav */
.navToggle{
  display:none;
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(10,11,14,.65);
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:10px;
}
.navToggle span{
  display:block;
  height:2px;
  width:18px;
  background: rgba(255,255,255,.78);
  border-radius:2px;
}
.navPanel{display:flex; align-items:center; gap:14px}
.navAdmin{display:none}

@media (max-width: 860px){
  .brand img{height:82px} /* bigger logo on phone */
  .adminBtn{display:none}
  .navToggle{display:flex}
  .navPanel{
    position:absolute;
    left:14px; right:14px;
    top:72px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    padding:14px;
    border-radius:18px;
    background: rgba(7,8,11,.92);
    border:1px solid var(--line);
    box-shadow: 0 18px 50px rgba(0,0,0,.55);
  }
  .topbar .row{position:relative}
  .navPanel.open{display:flex}
  .nav{flex-direction:column; width:100%}
  .nav a{width:100%; text-align:center}
  .navAdmin{display:inline-flex; width:100%; justify-content:center}
}

/* Footer layout */
.footerGrid{display:flex; gap:18px; align-items:flex-end; justify-content:space-between; flex-wrap:wrap;}
.footerLeft{min-width:240px;}
.footerRight{display:flex; flex-direction:column; align-items:flex-end; gap:12px;}
.footerMeta{margin-top:10px; line-height:1.6; color: var(--muted);} 
.footerCopy{margin-top:10px; color: var(--muted);} 
.footerLinks{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end;}
.footerAdmin{display:flex; justify-content:flex-end;}
@media (max-width:720px){.footerRight{align-items:flex-start;} .footerLinks{justify-content:flex-start;} }

/* Legacy header admin button (no longer used) */
.adminBtn{display:none !important;}
.navAdmin{display:none !important;}


/* Home promo blocks */
.promoGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
}
.promoCard{ padding:16px; }
.ohRow{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:6px 0;
  border-bottom:1px dashed rgba(255,255,255,.08);
}
.ohRow:last-child{ border-bottom:0; }

.revTop{ display:flex; align-items:baseline; gap:10px; margin-top:6px; }
.revStars{ letter-spacing:1px; display:flex; align-items:center; gap:2px; }
.revStarsFill{ color: #fff; opacity:.95; }
.revStarsHalf{ color:#fff; opacity:.55; }
.revStarsEmpty{ color:#fff; opacity:.22; }
.revQuotes{ margin-top:10px; display:grid; gap:10px; }
.revQuote{ font-size:13px; color:var(--text); opacity:.92; }
.revQuote span{ color:var(--muted); font-size:12px; margin-left:6px; }

@media (max-width: 980px){
  .promoGrid{ grid-template-columns: 1fr; }
}

/* WhatsApp FAB tooltip */
.whatsapp-fab a{ position:relative; }
.whatsapp-fab a::after{
  content: attr(data-tip);
  position:absolute;
  right:0;
  bottom: calc(100% + 10px);
  background: rgba(7,8,11,.92);
  border: 1px solid rgba(255,255,255,.12);
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
  white-space: nowrap;
  opacity:0;
  transform: translateY(6px);
  pointer-events:none;
  transition:.18s;
}
.whatsapp-fab a::before{
  content:'';
  position:absolute;
  right:16px;
  bottom: calc(100% + 4px);
  width:10px; height:10px;
  background: rgba(7,8,11,.92);
  border-left: 1px solid rgba(255,255,255,.12);
  border-top: 1px solid rgba(255,255,255,.12);
  transform: rotate(45deg);
  opacity:0;
  transition:.18s;
}
.whatsapp-fab a:hover::after,
.whatsapp-fab a:hover::before{ opacity:1; transform: translateY(0); }


/* Layout shell: houdt footer onderaan bij korte pagina's */
.siteShell{ flex:1; display:flex; flex-direction:column; }
.siteMain{ flex:1; }


/* RDW results (nicer key/value blocks) */
.kv{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:baseline;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(0,0,0,.20);
}
.kv span{
  color: var(--muted);
  font-size:12px;
  letter-spacing:.2px;
}
.kv strong{
  font-weight:700;
  letter-spacing:.25px;
}

/* RDW autofill hint + spinner */
.rdwHint{
  margin-top:6px;
  font-size:12px;
  color: var(--muted);
}
.rdwHint.error{ color: rgba(224,24,26,.95); }
.input.rdwLoading{
  background-image: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,0), rgba(255,255,255,.06));
  background-size: 220px 100%;
  animation: rdwShimmer 1.2s linear infinite;
}
@keyframes rdwShimmer{ from{background-position:-220px 0} to{background-position:220px 0} }

@media (max-width: 640px){
  .kv{flex-direction:column; align-items:flex-start}
}

/* Footer tighter */
.siteFooter{ margin-top:34px; }
.footerGrid{ gap:18px; padding:14px 18px; }
.footerBrandRow{ margin-bottom:8px; }
.footerInfo{ gap:3px; font-size:13px; }
.footerMetaLine{ gap:8px; margin-top:8px; }
.footerRight{ gap:8px; }



/* RDW premium output */
.rdwGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.rdwItem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:16px;
  background: rgba(0,0,0,.22);
}
.rdwLabel{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 0;
}
.rdwIcon{
  width:34px;
  height:34px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(224,24,26,.10);
  border:1px solid rgba(224,24,26,.22);
  flex: 0 0 auto;
}
.rdwIcon svg{
  width:18px;
  height:18px;
  fill: rgba(255,255,255,.92);
}
.rdwKey{
  color: var(--muted);
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rdwVal{
  font-weight:700;
  letter-spacing:.2px;
  text-align:right;
  white-space:nowrap;
}
@media (max-width: 720px){
  .rdwGrid{ grid-template-columns: 1fr; }
  .rdwVal{ white-space:normal; }
}


/* RDW empty state */
.rdwEmpty{margin:14px 0 0; padding:14px 16px; border:1px solid rgba(255,255,255,.10); border-radius:14px; background:rgba(0,0,0,.22); color:rgba(255,255,255,.85)}


.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}


.legalDoc{color:var(--muted);line-height:1.85}.legalDoc h3{margin:22px 0 8px;color:var(--text)}.legalDoc ul{padding-left:18px}.legalDoc li{margin:6px 0}

@media (max-width: 768px){.whatsapp-fab{bottom:120px}}


/* Legal consent blocks */
.legalConsent{margin-top:14px;padding:14px 16px;border:1px solid rgba(255,255,255,.10);border-radius:16px;background:rgba(255,255,255,.03)}
.legalCheck{display:flex;align-items:flex-start;gap:12px;color:var(--muted);line-height:1.6}
.legalCheck input[type="checkbox"]{margin-top:3px;width:18px;height:18px;accent-color:#e0181a;flex:0 0 auto}
.legalCheck a{color:var(--text);text-decoration:underline}
.legalMini{margin-top:8px;padding-left:30px;color:var(--muted);font-size:13px}
.legalNotice{margin-top:16px;padding:14px 16px;border-radius:16px;border:1px solid rgba(255,255,255,.10);background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02))}
.legalNotice h3{margin:0 0 8px;font-size:16px}
.legalNotice p{margin:0 0 8px;color:var(--muted);line-height:1.75}
.legalNotice p:last-child{margin-bottom:0}
@media (max-width:768px){.legalMini{padding-left:0}}
