/* Verhuur: filter, kaarten met iconen, keuzehulp in stappen, sfeerfoto's, detailpagina zonder blauwe kop.
   Los bestand (na theme.css) zodat het niet botst met andere wijzigingen in theme.css. */

/* ---------- Filter: zelfde stijl als het voorraadfilter (theme.css, ronde 3): wit, geen lijnen of iconen,
   velden even hoog, geen knop (filteren gebeurt bij elke keuze; de knop is er alleen zonder JavaScript) ---------- */
.hk-wrap { scroll-margin-top: 110px; }
.hf { width: 100%; margin: 0 0 22px; }
.hf-bar { background: #fff; border: 1px solid #e3e8ea; border-radius: var(--radius); padding: 22px 24px; }
.hf-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; align-items: end; }
.hf-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hf-label { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--navy); margin: 0; white-space: nowrap; }
.hf-label small { font-weight: 400; color: var(--muted); }
.hf-label .hk-i { display: none; }
.hf-select { width: 100%; height: 44px; padding: 0 32px 0 12px; border: 1px solid #d5dde1; border-radius: var(--radius); font: inherit; font-size: 15px; color: var(--navy); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23083343' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; cursor: pointer; }
input.hf-select { background-image: none; padding-right: 12px; }
.hf-select:focus { outline: none; border-color: var(--navy); }
.hf-check { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border: 1px solid #d5dde1; border-radius: var(--radius); font-size: 15px; color: var(--navy); cursor: pointer; margin: 0; background: #fff; }
.hf-check:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.hf-check input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }
.hf-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: -6px; }
.hf-actions:not(:has(.hf-reset:not([hidden]))):not(:has(.hf-btn:not([hidden]))) { display: none; }
.hf-btn { height: 44px; padding: 0 22px; background: var(--orange); color: #fff; border: 0; border-radius: var(--radius); font: 600 15px var(--font-head); cursor: pointer; }
.hf-btn[hidden] { display: none; }
.hf-reset { color: var(--navy); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.hf-reset[hidden] { display: none; }
@media (max-width: 1000px) { .hf-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hf-fields { grid-template-columns: 1fr; } .hf-bar { padding: 18px 16px; } }

/* ---------- Resultaten ---------- */
#huur-resultaat { transition: opacity .15s; }
.hk-wrap.is-loading #huur-resultaat { opacity: .45; pointer-events: none; }
.hk-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.hk-count strong { color: var(--navy); font-family: var(--font-head); font-size: 18px; }
.hk-count span { flex-basis: 100%; font-size: 13px; }
.hk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .hk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hk-grid { grid-template-columns: 1fr; } }

/* ---------- Kaart ---------- */
.hk-card { display: flex; flex-direction: column; }
.hk-card .sc-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 0; }
.hk-card .sc-body h3 { font-size: 19px; margin: 0; }
.hk-merk { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.hk-i { width: 18px; height: 18px; flex: 0 0 auto; color: var(--orange); }
.hk-specs { list-style: none; margin: 12px 0 14px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.hk-specs li { display: flex; align-items: flex-start; gap: 7px; font-size: 14px; color: var(--text); line-height: 1.3; }
.hk-specs li span { min-width: 0; }
.hk-card .hk-specs li span { color: var(--text); font-size: 14px; }
.hk-prijs { margin: auto -18px 0; padding: 12px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.hk-prijs strong { color: var(--navy); font-family: var(--font-head); font-size: 20px; }
.hk-prijs > span { color: var(--muted); font-size: 14px; }
.hk-prijs em { margin-left: auto; font-style: normal; font-family: var(--font-head); font-weight: 700; color: var(--orange); font-size: 14px; white-space: nowrap; }
.hk-match { position: absolute; right: 12px; top: 12px; background: #fff; color: var(--navy); border-radius: 30px; padding: 5px 12px 5px 8px; font: 500 13px var(--font-head); display: flex; align-items: center; gap: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.hk-match::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--orange) var(--m), #e3e7e9 0); -webkit-mask: radial-gradient(circle, transparent 6px, #000 7px); mask: radial-gradient(circle, transparent 6px, #000 7px); }
.hk-match b { font-size: 15px; font-weight: 800; }

/* ---------- Sfeerfoto's ---------- */
/* Sfeerblok (feedback Pieter 17-11-2026: rustiger). Tekst bovenaan, daaronder één rij foto's van gelijke hoogte: één brede, twee smalle */
.hk-sfeer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto 340px; gap: 14px; }
.hk-sfeer-txt { grid-column: 1 / -1; grid-row: 1; max-width: 680px; margin-bottom: 10px; }
.hk-sfeer-txt h2 { margin-bottom: 10px; }
.hk-sfeer-f { margin: 0; border-radius: 8px; overflow: hidden; background: #ddd; }
.hk-sfeer-f img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hk-sfeer-f1 { grid-column: 1; grid-row: 2; }
.hk-sfeer-f2 { grid-column: 2; grid-row: 2; }
.hk-sfeer-f3 { grid-column: 3; grid-row: 2; }
@media (max-width: 800px) {
  .hk-sfeer-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto 220px 150px; gap: 10px; }
  .hk-sfeer-f1 { grid-column: 1 / -1; grid-row: 2; }
  .hk-sfeer-f2 { grid-column: 1; grid-row: 3; }
  .hk-sfeer-f3 { grid-column: 2; grid-row: 3; }
}

/* ---------- Keuzehulp: één vraag per keer ---------- */
.kh { max-width: 760px; margin: 0 auto; }
.kh-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 28px 32px 26px; }
.kh-top { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.kh-top[hidden] { display: none; }
.kh-nr { font: 500 14px var(--font-head); color: var(--muted); white-space: nowrap; }
.kh-nr b { color: var(--navy); }
.kh-bar { flex: 1; height: 6px; background: var(--light); border-radius: 6px; overflow: hidden; }
.kh-bar i { display: block; height: 100%; width: 12.5%; background: var(--orange); border-radius: 6px; transition: width .25s; }
.kh-vraag { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.kh-vraag legend { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 24px; line-height: 1.25; margin-bottom: 18px; padding: 0; }
.kh.is-stappen .kh-vraag { display: none; margin-bottom: 8px; }
.kh.is-stappen .kh-vraag.is-actief { display: block; animation: khIn .2s ease; }
@keyframes khIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.kh-rij { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kh-rij label { display: grid; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--navy); }
.kh-rij input, .kh-rij select { height: 48px; border: 1px solid #d9e1e5; border-radius: 6px; padding: 0 12px; font: inherit; font-weight: 400; background: #fff; width: 100%; }
.kh-hint { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.kh-nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 22px; }
.kh-nav [hidden] { display: none; }
.kh-nav [data-kh-verder], .kh-nav [data-kh-klaar] { margin-left: auto; }
.kh-res-head { margin-bottom: 18px; }
.kh-aanpassen { margin-top: 36px; }
.kh-aanpassen > summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--navy); margin-bottom: 16px; }
@media (max-width: 600px) {
  .kh-card { padding: 20px 16px; }
  .kh-vraag legend { font-size: 20px; }
  .kh-rij { grid-template-columns: 1fr; }
}

/* ---------- Detailpagina: direct de camper of caravan, geen blauwe kop ---------- */
.md-rent.no-quick { padding-top: 26px; }
.hd-top { margin-bottom: 22px; }
.hd-top .crumbs { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.hd-top .crumbs a { color: var(--muted); }
.hd-top-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hd-top h1 { margin: 2px 0 0; color: var(--navy); }
.hd-top-prijs { font-size: 15px; color: var(--muted); }
.hd-top-prijs strong { font: 800 28px var(--font-head); color: var(--navy); }
.md-specs { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 14px 0 0; }
.md-specs li { font-size: 15px; }
.md-indeling { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; }

/* Op mobiel staat .stock-grid elders als veegrij; het gefilterde huuroverzicht toont de kaarten onder elkaar */
@media (max-width: 900px) {
  .stock-grid.hk-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; margin: 0; padding: 0; }
  .stock-grid.hk-grid > * { flex: none; }
}
@media (max-width: 600px) { .stock-grid.hk-grid { grid-template-columns: 1fr; gap: 16px; } }

/* Detailpagina tablet en mobiel: kolom met align-items:start maakte de galerij zo smal als de duimnagels (grote foto weg) */
@media (max-width: 1100px) { .md-rent-grid > *, .md-rent-main > * { align-self: stretch; width: 100%; } }
@media (max-width: 600px) { .hd-top-row { align-items: flex-start; flex-direction: column; gap: 4px; } }

/* Feedback Coppelmans 20-11-2026: merk boven het type, knoppen vanuit de keuzehulp, lightbox en 360° op de detailpagina */
.hk-merk-top { display: block; font: 700 12px var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: 2px; }
.hk-card .sc-360 { top: auto; right: auto; left: 12px; bottom: 12px; }
.hk-prijs small { display: block; font-size: 12px; color: var(--muted); }
.hk-card--boek h3 a { color: inherit; text-decoration: none; }
.hk-card--boek h3 a:hover { color: var(--orange); }
.hk-card--boek .hk-prijs { border-bottom: 0; }
.hk-knoppen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 -18px; padding: 0 18px 18px; }
.hk-knoppen .btn { width: 100%; justify-content: center; text-align: center; padding-left: 10px; padding-right: 10px; }
@media (max-width: 380px) { .hk-knoppen { grid-template-columns: 1fr; } }

.hd-merk { color: var(--orange); }
.hd-naam { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.md-gallery { position: relative; }
.md-rent .md-gallery .mg-main { display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in; position: relative; }
.mg-groot { position: absolute; right: 12px; bottom: 12px; background: rgba(15,30,40,.78); color: #fff; font: 600 13px var(--font-head); padding: 6px 12px; border-radius: 30px; }
/* 360: oranje tegel tussen de foto's, even groot als een foto (Cain 20-11-2026) */
.mg-thumbs .mg-t360 { aspect-ratio: 4 / 3; border-radius: var(--radius); padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--orange); color: #fff; border: 0; cursor: pointer; text-decoration: none; font: 600 14px/1.1 var(--font-head); }
.mg-thumbs .mg-t360 span { font-size: 22px; font-weight: 700; }
.mg-thumbs .mg-t360:hover, .mg-thumbs .mg-t360:focus-visible { color: #fff; filter: brightness(1.06); }
.mb-card .mb-360 { width: 100%; justify-content: center; margin: -4px 0 18px; } /* knop naar de 360° view onder de uitleg bij Beschikbaarheid */
.cc-lb-360 iframe { width: calc(100vw - 120px); height: calc(100vh - 100px); border: 0; border-radius: 4px; background: #000; }
@media (max-width: 700px) { .cc-lb-360 iframe { width: 100vw; height: calc(100vh - 80px); border-radius: 0; } }

.mb-keuze { display: grid; gap: 6px; background: #fff7f0; border: 1px solid #f3d7c2; border-radius: var(--radius); padding: 14px 16px; margin: 0 0 14px; font-size: 14px; }
.mb-keuze b { font-family: var(--font-head); color: var(--navy); }
.mb-keuze .btn { justify-self: start; margin-top: 4px; }
.mb-keuze small { color: var(--muted); }

.cc-lb { position: fixed; inset: 0; z-index: 9999; background: rgba(8,14,18,.94); display: flex; align-items: center; justify-content: center; }
.cc-lb[hidden] { display: none; }
.cc-lb img { max-width: calc(100vw - 120px); max-height: calc(100vh - 100px); object-fit: contain; border-radius: 4px; }
.cc-lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; }
.cc-lb button:hover, .cc-lb button:focus-visible { background: rgba(255,255,255,.25); }
.cc-lb-x { top: 16px; right: 16px; }
.cc-lb-p { left: 16px; top: 50%; transform: translateY(-50%); }
.cc-lb-n { right: 16px; top: 50%; transform: translateY(-50%); }
.cc-lb-t { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #cfd8dc; font: 500 14px var(--font-head); }
html.lb-open { overflow: hidden; }
@media (max-width: 700px) {
	.cc-lb img { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; }
	.cc-lb-p, .cc-lb-n { top: auto; bottom: 8px; transform: none; }
}

/* Keuzehulp: budgetkeuzes per soort verbergen (feedback Cain 20-11-2026) */
.kh .if-chip[hidden] { display: none; }
