:root {
    --rood: #c8102e;
    --rood-donker: #a10c24;
    --antraciet: #1c1e22;
    --antraciet-2: #2a2d33;
    --tekst: #1c1e22;
    --tekst-zacht: #5c6169;
    --lijn: #e3e5e8;
    --grijs: #f4f5f6;
    --wit: #fff;
    --groen: #1f8a4c;
    --oranje: #d97a00;
    --rond: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--tekst);
    background: var(--wit);
}

img { max-width: 100%; display: block; }
a { color: var(--rood); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.8rem; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.blok { padding: 64px 0; }
.blok.grijs { background: var(--grijs); }

/* Knoppen */
.knop {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--rood); color: var(--wit); text-decoration: none;
    font-weight: 600; font-size: 1rem; line-height: 1.3; padding: 14px 24px; font-family: inherit;
    border: 0; border-radius: var(--rond); cursor: pointer;
    transition: background .15s;
}
.knop:hover { background: var(--rood-donker); }
.knop-licht { background: var(--wit); color: var(--tekst); }
.knop-licht:hover { background: #e9eaec; }
.knop-rand { background: transparent; color: var(--tekst); border: 1px solid var(--lijn); }
.knop-rand:hover { background: var(--grijs); }
.knop-klein { padding: 9px 16px; font-size: .95rem; }
.knop-groen { background: var(--groen); }
.knop-groen:hover { background: #18703d; }
.knoppen { display: flex; flex-wrap: wrap; gap: 12px; }

/* Kop */
.kop { background: var(--antraciet); position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--rood); }
.kop-inhoud { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 34px; width: auto; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a { color: #d6d8dc; text-decoration: none; font-weight: 500; }
.menu a:hover, .menu a.actief { color: var(--wit); }
.menu a.knop { color: var(--wit); }
.menu-knop { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-knop span { display: block; width: 24px; height: 2px; background: var(--wit); margin: 5px 0; }

@media (max-width: 760px) {
    .kop-inhoud { height: 64px; }
    .logo img { height: 22px; }
    .menu-knop { display: block; }
    .menu {
        display: none; position: absolute; top: 67px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--antraciet); padding: 8px 20px 20px;
    }
    .menu.open { display: flex; }
    .menu a { padding: 14px 0; border-bottom: 1px solid var(--antraciet-2); }
    .menu a.knop { margin-top: 14px; border: 0; }
}

/* Hero */
.hero {
    position: relative; min-height: 520px; display: flex; align-items: flex-end;
    background: var(--antraciet) center 60% / cover no-repeat; color: var(--wit);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(20,21,24,.88) 0%, rgba(20,21,24,.45) 55%, rgba(20,21,24,.15) 100%);
}
.hero-inhoud { position: relative; padding-top: 80px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 640px; }
.hero p { font-size: 1.15rem; max-width: 560px; color: #e6e7e9; margin: 0 0 28px; }

@media (max-width: 760px) {
    .hero { min-height: 440px; }
    .hero-review { font-size: .85rem; padding: 6px 12px; }
    .hero-inhoud { padding-bottom: 40px; }
}

/* Paginakop */
.pagina-kop { background: var(--grijs); padding: 40px 0 32px; border-bottom: 1px solid var(--lijn); }
.pagina-kop h1 { font-size: 2.2rem; margin: 0; }
.pagina-kop p { margin: 4px 0 0; color: var(--tekst-zacht); }

.kop-rij { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.kop-rij a { font-weight: 600; text-decoration: none; }

/* Auto-kaarten */
.auto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.auto-kaart {
    display: flex; flex-direction: column; background: var(--wit); color: var(--tekst);
    text-decoration: none; border: 1px solid var(--lijn); border-radius: var(--rond); overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.auto-kaart:hover { box-shadow: 0 10px 28px rgba(0,0,0,.1); transform: translateY(-2px); }
.auto-kaart.is-verkocht { opacity: .7; }
.auto-foto { position: relative; aspect-ratio: 4 / 3; background: var(--grijs); }
.auto-foto img { width: 100%; height: 100%; object-fit: cover; }
.geen-foto { height: 100%; display: flex; align-items: center; justify-content: center; color: #9aa0a8; }
.label {
    position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 6px;
    font-size: .85rem; font-weight: 700; color: var(--wit); background: var(--oranje);
}
.label-verkocht { background: var(--rood); }
.auto-info { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.auto-info h3 { font-size: 1.2rem; margin: 0; }
.uitvoering { margin: 2px 0 0; color: var(--tekst-zacht); font-size: .95rem; }
.specs { list-style: none; padding: 0; margin: 12px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.specs li { background: var(--grijs); border-radius: 6px; padding: 2px 10px; font-size: .88rem; color: var(--tekst-zacht); }
.prijs { margin-top: auto; font-size: 1.35rem; font-weight: 800; color: var(--rood); }

.leeg {
    text-align: center; padding: 48px 20px; border: 1px dashed var(--lijn); border-radius: var(--rond);
    color: var(--tekst-zacht);
}

/* Filter */
.filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.filter .aantal { margin-right: auto; color: var(--tekst-zacht); }
select, input, textarea {
    font: inherit; font-size: 1rem; color: var(--tekst);
    border: 1px solid #cfd3d8; border-radius: 8px; padding: 11px 12px; background: var(--wit);
    width: 100%;
}
select:focus, input:focus, textarea:focus { outline: 2px solid var(--rood); outline-offset: -1px; border-color: transparent; }
.filter select { width: auto; min-width: 180px; }
@media (max-width: 560px) {
    .filter .aantal { width: 100%; }
    .filter select { flex: 1; min-width: 0; }
}

/* Twee kolommen */
.twee-kol { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .twee-kol { grid-template-columns: 1fr; gap: 32px; } }

.punten { list-style: none; padding: 0; margin: 24px 0 0; }
.punten li { padding: 10px 0 10px 34px; position: relative; font-weight: 500; border-bottom: 1px solid var(--lijn); }
.punten li::before {
    content: ""; position: absolute; left: 4px; top: 17px; width: 14px; height: 8px;
    border-left: 3px solid var(--rood); border-bottom: 3px solid var(--rood); transform: rotate(-45deg);
}
.over-foto { border-radius: var(--rond); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Marktplaats-beoordeling */
.sterren { color: #f5b400; letter-spacing: 2px; }
.hero-review {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
    color: #e6e7e9; text-decoration: none; font-size: .95rem;
    background: rgba(0,0,0,.35); padding: 6px 14px; border-radius: 30px;
}
.hero-review:hover { color: var(--wit); background: rgba(0,0,0,.5); }
.hero-review strong { color: var(--wit); }
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review-kaart {
    background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--rond);
    padding: 28px 20px; text-align: center; display: flex; flex-direction: column; align-items: center;
}
.review-bron { font-weight: 700; color: var(--tekst-zacht); text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; margin-bottom: 8px; }
.review-score { font-size: 3.2rem; font-weight: 800; line-height: 1; }
.review-kaart .sterren { font-size: 1.4rem; margin: 6px 0 12px; }
.review-kaart p { margin: 0; }
.review-kaart .review-sub { color: var(--tekst-zacht); margin-top: 2px; }
.review-kaart .knop { margin-top: auto; }
.review-kaart p:last-of-type { margin-bottom: 20px; }
@media (max-width: 480px) { .reviews { grid-template-columns: 1fr; } }

/* Onderhoud en reparatie */
.onderhoud { background: var(--antraciet); color: #d6d8dc; }
.onderhoud h2 { color: var(--wit); }
.onderhoud-kop { max-width: 640px; margin-bottom: 32px; }
.onderhoud-kop p { font-size: 1.1rem; margin: 0; }
.diensten { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.dienst { background: var(--antraciet-2); border-top: 3px solid var(--rood); border-radius: 0 0 var(--rond) var(--rond); padding: 20px; }
.dienst h3 { color: var(--wit); font-size: 1.15rem; margin-bottom: 6px; }
.dienst p { margin: 0; font-size: .95rem; }
.onderhoud-knoppen { margin-top: 28px; }

/* Foto van het pand met routeknop (in plaats van Google-kaart) */
.route-kaart { position: relative; display: block; border-radius: var(--rond); overflow: hidden; color: var(--wit); text-decoration: none; }
.route-kaart img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.route-kaart:hover img { transform: scale(1.03); }
.route-info {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    background: linear-gradient(to top, rgba(20,21,24,.9), rgba(20,21,24,0));
}

/* Tekstpagina (privacy) */
.tekst-pagina { max-width: 760px; padding-top: 40px; padding-bottom: 64px; }
.tekst-pagina h2 { font-size: 1.3rem; margin-top: 32px; }

.contact-lijst { margin: 0 0 24px; }
.contact-lijst dt { font-weight: 700; margin-top: 16px; }
.contact-lijst dd { margin: 0; }
.tijden { width: 100%; border-collapse: collapse; }
.tijden td { padding: 6px 0; border-bottom: 1px solid var(--lijn); }
.tijden td:last-child { text-align: right; }
.kaart { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--rond); background: var(--grijs); }

/* Detailpagina */
.terug { display: inline-block; margin: 24px 0 16px; text-decoration: none; font-weight: 600; }
.detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; padding-bottom: 64px; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; gap: 24px; } }
.galerij-groot { position: relative; aspect-ratio: 4 / 3; background: var(--grijs); border-radius: var(--rond); overflow: hidden; }
.galerij-groot img { width: 100%; height: 100%; object-fit: cover; }
.galerij-pijl {
    position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: rgba(255,255,255,.9); font-size: 22px; cursor: pointer; line-height: 1;
}
.galerij-pijl.vorige { left: 12px; }
.galerij-pijl.volgende { right: 12px; }
.galerij-teller {
    position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.6); color: var(--wit);
    padding: 2px 10px; border-radius: 6px; font-size: .85rem;
}
.galerij-duim { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 8px; }
.galerij-duim button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: none; }
.galerij-duim button.actief { border-color: var(--rood); }
.galerij-duim img { width: 100%; height: 100%; object-fit: cover; }

.detail-kaart { border: 1px solid var(--lijn); border-radius: var(--rond); padding: 24px; position: sticky; top: 100px; }
.detail-kaart h1 { font-size: 1.8rem; margin: 0; }
.detail-kaart .prijs { font-size: 2rem; margin: 12px 0 20px; }
.detail-kaart .knoppen .knop { flex: 1 1 100%; }
.status-melding { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 6px; font-weight: 700; color: var(--wit); background: var(--oranje); }
.status-melding.verkocht { background: var(--rood); }
.gegevens { width: 100%; border-collapse: collapse; margin-top: 24px; }
.gegevens th, .gegevens td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--lijn); font-weight: 400; }
.gegevens th { color: var(--tekst-zacht); width: 45%; }
.omschrijving { margin-top: 32px; white-space: pre-line; }

/* Voet */
.voet { background: var(--antraciet); color: #c3c6cb; padding: 48px 0 0; margin-top: 0; }
.voet a { color: #e6e7e9; }
.voet h4 { color: var(--wit); font-size: 1rem; }
.voet-inhoud { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-bottom: 32px; }
.voet-logo { height: 26px; width: auto; margin-bottom: 16px; }
.voet-onder {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-top: 18px; padding-bottom: 18px;
    border-top: 1px solid var(--antraciet-2); font-size: .9rem;
}
.voet-onder a { color: #8b9097; text-decoration: none; }
