/* ── HuurSpoed design system ─────────────────────────────────────────
   Nuchter, snel, helder. Geen AI-hype, geen schreeuwerige gradients. */
:root {
  --primary: #0F2A43;
  --primary-light: #1a3f61;
  --accent: #2FBF71;
  --accent-dark: #249a5a;
  --accent-text: #147a45; /* donkerder groen dat WCAG-AA haalt als tekst op wit */
  --bg: #F7F8FA;
  --card: #ffffff;
  --text: #111827;
  --muted: #6B7280;
  --border: #E5E7EB;
  --warning: #F59E0B;
  --danger: #DC2626;
  --success: #16a34a;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(17, 24, 39, .07), 0 1px 2px rgba(17, 24, 39, .05);
  --shadow-lg: 0 6px 24px rgba(15, 42, 67, .10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.55; font-size: 15.5px;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 20px; }
main.container { flex: 1; padding-top: 28px; padding-bottom: 48px; }

h1 { font-size: 1.7rem; letter-spacing: -.02em; }
h2 { font-size: 1.25rem; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; }
h1, h2, h3 { color: var(--primary); }
.page-sub { color: var(--muted); margin: 4px 0 22px; }

/* ── Nav ── */
.nav { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: 1440px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 26px; height: 62px; }
.nav-logo { font-weight: 800; font-size: 1.25rem; color: var(--primary); letter-spacing: -.02em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 20px; align-items: center; flex: 1; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .93rem; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: 9px; border: 1px solid transparent;
  font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s; font-family: inherit; line-height: 1.3;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-light); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); }
.btn-danger { background: #fef2f2; color: var(--danger); border-color: #fecaca; }
.btn-sm { padding: 5px 12px; font-size: .84rem; border-radius: 7px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Cards ── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.card h2 { margin-bottom: 14px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
/* Prijskaarten bij 2 pakketten: gecentreerd en niet uitgerekt over de volle breedte */
.plans-2col { max-width: 760px; margin-left: auto; margin-right: auto; }

.stat-card { text-align: left; }
.stat-card .stat-value { font-size: 1.7rem; font-weight: 800; color: var(--primary); }
.stat-card .stat-label { color: var(--muted); font-size: .86rem; }

/* ── Badges ── */
.badge {
  display: inline-block; padding: 2.5px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 600; white-space: nowrap;
}
.badge-success { background: #ecfdf5; color: var(--success); }
.badge-warning { background: #fffbeb; color: #b45309; }
.badge-danger  { background: #fef2f2; color: var(--danger); }
.badge-neutral { background: #f3f4f6; color: var(--muted); }
.badge-primary { background: #eef4fb; color: var(--primary); }
.badge-accent  { background: #ecfdf5; color: var(--accent-dark); }

/* ── Woningkaart ── */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
/* brede schermen: altijd precies 4 woningen naast elkaar (max) */
@media (min-width: 1500px) { .listing-grid { grid-template-columns: repeat(4, 1fr); } }
.listing-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.listing-card .lc-img { height: 170px; background: #e8edf3 center/cover no-repeat; position: relative; }
.listing-card .lc-img .lc-score {
  position: absolute; top: 10px; right: 10px; background: var(--primary); color: #fff;
  font-weight: 700; font-size: .82rem; padding: 4px 10px; border-radius: 8px;
}
.listing-card .lc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.listing-card .lc-title { font-weight: 700; color: var(--primary); font-size: 1rem; line-height: 1.35; }
.listing-card .lc-loc { color: var(--muted); font-size: .87rem; }
.listing-card .lc-price { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.listing-card .lc-price small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.listing-card .lc-meta { display: flex; gap: 14px; color: var(--muted); font-size: .85rem; }
.listing-card .lc-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.listing-card .lc-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.listing-card .lc-src { color: var(--muted); font-size: .78rem; }

/* ── Forms ── */
label { font-weight: 600; font-size: .88rem; display: block; margin-bottom: 5px; color: var(--text); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url],
select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px;
  font-family: inherit; font-size: .93rem; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(47, 191, 113, .35); border-color: var(--accent); }
.form-row { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 16px; margin-bottom: 16px; }
.form-help { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.checkbox-row label { margin: 0; font-weight: 500; }
.checkbox-row input { width: auto; }
.radio-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.radio-row label { margin: 0; font-weight: 400; line-height: 1.35; }
.radio-row input { width: auto; margin-top: 3px; flex-shrink: 0; }
.mb-1 { margin-bottom: 4px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; }
legend { font-weight: 700; color: var(--primary); padding: 0 8px; font-size: .95rem; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .89rem; }
table.tbl th { text-align: left; padding: 9px 12px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--border); white-space: nowrap; }
table.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.tbl tr:hover td { background: #fafbfc; }

/* ── Flash ── */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; font-size: .92rem; }
.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: #eef4fb; color: var(--primary); border: 1px solid #cfe0f1; }

/* ── Dashboard layout ── */
.dash-layout { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
.dash-side { position: sticky; top: 80px; }
.dash-side nav { display: flex; flex-direction: column; gap: 2px; }
.dash-side a {
  padding: 9px 14px; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: .92rem;
}
.dash-side a:hover { background: #eef1f5; text-decoration: none; color: var(--primary); }
.dash-side a.active { background: var(--primary); color: #fff; }
.dash-side .side-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 14px 6px; }
@media (max-width: 860px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .dash-side nav { flex-direction: row; flex-wrap: wrap; }
}

/* ── Hero (public, met foto) ── */
.hero-photo {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(rgba(11, 30, 48, .78), rgba(15, 42, 67, .62)), var(--hero-img) center/cover no-repeat;
}
.hero-photo .hero-inner { max-width: 1440px; margin: 0 auto; padding: 96px 20px 88px; text-align: left; }
.hero-photo h1 { font-size: 2.8rem; max-width: 640px; line-height: 1.14; color: #fff; margin-bottom: 18px; letter-spacing: -.02em; }
.hero-photo h1 .accent { color: var(--accent); }
.hero-photo p.lead { font-size: 1.13rem; color: #dbe5ee; max-width: 560px; margin-bottom: 30px; }
.hero-photo .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo .hero-note { margin-top: 16px; color: #b7c6d4; font-size: .87rem; }
.hero-photo .hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-photo .hero-badges span {
  background: rgba(255, 255, 255, .12); backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, .18); color: #eaf1f7;
  padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
}
@media (max-width: 620px) {
  .hero-photo .hero-inner { padding: 64px 20px 56px; }
  .hero-photo h1 { font-size: 1.95rem; }
}

/* zwevende woningkaart in de hero */
.hero-card {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%) rotate(2deg);
  width: 300px; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  overflow: hidden; color: var(--text); animation: heroFloat 6s ease-in-out infinite;
}
.hero-card .hc-img { height: 140px; background: center/cover no-repeat; }
.hero-card .hc-body { padding: 14px 16px 16px; }
.hero-card .hc-badge { font-size: .72rem; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(-50%) rotate(2deg); }
  50% { transform: translateY(calc(-50% - 12px)) rotate(2deg); }
}
@media (max-width: 1000px) { .hero-card { display: none; } }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Hover lift op kaarten ── */
.card { transition: transform .18s ease, box-shadow .18s ease; }
.listing-card:hover, .lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.listing-card .lc-img { transition: transform .3s ease; }

/* ── Stedensectie ── */
.city-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.city-card {
  position: relative; height: 190px; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; text-decoration: none !important;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.city-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.city-card .cc-img { position: absolute; inset: 0; background: center/cover no-repeat; transition: transform .45s ease; }
.city-card:hover .cc-img { transform: scale(1.07); }
.city-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(11, 30, 48, .85)); }
.city-card .cc-label { position: relative; z-index: 1; padding: 14px 16px; color: #fff; }
.city-card .cc-label strong { display: block; font-size: 1.05rem; }
.city-card .cc-label span { font-size: .8rem; color: #cdd9e4; }

/* ── Split-secties met foto ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.split .split-img { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.split .split-img img { display: block; width: 100%; height: 340px; object-fit: cover; transition: transform .5s ease; }
.split .split-img:hover img { transform: scale(1.04); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split .split-img img { height: 220px; } }

/* stappen */
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff;
  font-weight: 800; margin-right: 10px; flex-shrink: 0;
}

/* ── CTA-band met foto ── */
.cta-band {
  position: relative; border-radius: 18px; overflow: hidden; color: #fff;
  background: linear-gradient(rgba(11, 30, 48, .84), rgba(15, 42, 67, .78)), var(--cta-img) center/cover no-repeat;
  padding: 52px 40px; text-align: center;
}
.cta-band h2 { color: #fff; font-size: 1.6rem; }
.cta-band p { color: #d3dfe9; max-width: 640px; margin: 10px auto 24px; }

/* ── Feature-kaart met icoon ── */
.feature-card .fc-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; background: #ecfdf5; margin-bottom: 12px;
}

/* ── Auth split-layout ── */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 62px); }
.auth-split .auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-split .auth-form > div { width: 100%; max-width: 420px; }
.auth-split .auth-photo {
  background: linear-gradient(rgba(11, 30, 48, .45), rgba(15, 42, 67, .55)), var(--auth-img) center/cover no-repeat;
  display: flex; align-items: flex-end; padding: 40px; color: #fff;
}
.auth-split .auth-photo blockquote { font-size: 1.15rem; font-weight: 600; max-width: 380px; line-height: 1.5; }
.auth-split .auth-photo cite { display: block; margin-top: 10px; font-style: normal; color: #c3d2df; font-size: .85rem; }
@media (max-width: 860px) { .auth-split { grid-template-columns: 1fr; } .auth-split .auth-photo { display: none; } }

/* fallback afbeelding op woningkaarten */
.lc-img.lc-noimg { background-size: cover; filter: saturate(.85); }

/* ── Hero (public, oud - fallback) ── */
.hero { padding: 68px 0 56px; text-align: center; }
.hero h1 { font-size: 2.5rem; max-width: 720px; margin: 0 auto 16px; line-height: 1.18; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.hero .hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .hero-note { margin-top: 14px; color: var(--muted); font-size: .86rem; }
@media (max-width: 620px) { .hero h1 { font-size: 1.85rem; } }

.section { padding: 44px 0; }
.section-title { text-align: center; margin-bottom: 8px; font-size: 1.5rem; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 32px; }

/* ── Pricing ── */
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card .pc-name { font-weight: 800; color: var(--primary); font-size: 1.1rem; }
.price-card .pc-price { font-size: 1.9rem; font-weight: 800; margin: 8px 0 2px; }
.price-card .pc-price small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; margin: 14px 0 20px; display: flex; flex-direction: column; gap: 7px; font-size: .9rem; }
.price-card ul li::before { content: "✓ "; color: var(--accent-text); font-weight: 700; }
.price-card .btn { margin-top: auto; }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.price-card .pc-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 14px; border-radius: 999px; }

/* ── Match uitleg ── */
.rule-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rule-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.rule-list .rule-icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; }
.rule-ok .rule-icon { background: #ecfdf5; color: var(--success); }
.rule-fail .rule-icon { background: #fef2f2; color: var(--danger); }
.rule-unsure .rule-icon { background: #fffbeb; color: #b45309; }

/* ── Progressbar (trial) ── */
.progress { height: 9px; background: #e8ecf1; border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.progress.warn > div { background: var(--warning); }
.progress.full > div { background: var(--danger); }

/* ── Modal ── */
.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(15, 42, 67, .45); z-index: 100; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 24px; box-shadow: var(--shadow-lg); }
.modal h3 { margin-bottom: 14px; }

/* ── Footer ── */
.footer { background: var(--primary); color: #cbd7e4; margin-top: auto; }
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 34px 20px; display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; font-size: .88rem; }
.footer a { color: #e8eef5; }
.footer .f-brand { font-weight: 800; font-size: 1.1rem; color: #fff; }
.footer .f-brand span { color: var(--accent); }
.footer .f-note { max-width: 380px; color: #9fb2c4; }
.footer nav { display: flex; flex-direction: column; gap: 6px; }

/* ── Utilities ── */
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.right { text-align: right; }
.center { text-align: center; }
.w-100 { width: 100%; }
.mono { font-family: ui-monospace, 'Cascadia Code', monospace; font-size: .85em; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
details.expander summary { cursor: pointer; font-weight: 600; color: var(--primary); padding: 6px 0; }

@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 62px; left: 0; right: 0; background: var(--card); flex-direction: column; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid var(--border); gap: 12px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
}

/* ── Toegankelijkheid ── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 200;
  background: var(--primary); color: #fff; padding: 9px 16px; border-radius: 9px;
  font-weight: 600; transition: top .15s ease;
}
.skip-link:focus { top: 8px; text-decoration: none; outline: 3px solid var(--accent); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { outline-color: var(--primary); }
[hidden] { display: none !important; }

/* ── Zoekprofiel-wizard ── */
.wizard-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 18px; padding: 0; flex-wrap: wrap; }
.wizard-steps li {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 140px;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--muted); font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.wizard-steps li span {
  width: 24px; height: 24px; border-radius: 50%; background: #e8ecf1; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; flex-shrink: 0;
}
.wizard-steps li.active { border-color: var(--accent); color: var(--primary); }
.wizard-steps li.active span { background: var(--accent); color: #fff; }
.wizard-steps li.done span { background: var(--primary); color: #fff; }
.wizard-steps li.done::after { content: ""; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 12px; }
.wizard-step .card + .card { margin-top: 16px; }

.qualify-hint { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: .9rem; line-height: 1.5; }
.qualify-hint.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.qualify-hint.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* steden-chips */
.chip-input {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  border: 1px solid var(--border); border-radius: 10px; padding: 8px; background: #fff; margin-bottom: 6px;
}
.chip-input:focus-within { outline: 2px solid rgba(47, 191, 113, .35); border-color: var(--accent); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #eef4fb; color: var(--primary); border-radius: 999px;
  padding: 5px 6px 5px 12px; font-size: .88rem; font-weight: 600;
}
.chip button { background: rgba(15,42,67,.12); border: none; color: var(--primary); width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.chip button:hover { background: var(--danger); color: #fff; }
.chip-input input[type=text] { flex: 1; min-width: 160px; border: none; padding: 6px 4px; outline: none; }
input[type=range] { accent-color: var(--accent); }

/* ── Cookie-transparantiestrip ── */
.cookie-strip {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 120;
  max-width: 780px; margin: 0 auto;
  background: var(--primary); color: #eaf1f7;
  border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 12px 16px; font-size: .86rem;
  display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap;
}
.cookie-strip a { color: #fff; text-decoration: underline; }
.cookie-strip .btn { background: var(--accent); color: #fff; flex-shrink: 0; }

/* ── Maand/jaar-schakelaar (prijzen & abonnement) — CSS-only via radio's ── */
.cycle-radio {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.cycle-switch {
  display: flex; width: max-content; max-width: 100%; margin: 0 auto 18px; padding: 4px; gap: 4px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
}
.cycle-switch label {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s; white-space: nowrap;
}
.cycle-switch .cycle-badge {
  background: #ecfdf5; color: var(--accent-text); font-size: .74rem; font-weight: 700;
  padding: 2px 9px; border-radius: 999px;
}
#cycle-m:checked ~ .cycle-switch label[for="cycle-m"],
#cycle-y:checked ~ .cycle-switch label[for="cycle-y"] { background: var(--primary); color: #fff; }
#cycle-m:focus-visible ~ .cycle-switch label[for="cycle-m"],
#cycle-y:focus-visible ~ .cycle-switch label[for="cycle-y"] { outline: 3px solid var(--accent); outline-offset: 2px; }
.cycle-wrap .cy-y { display: none; }
#cycle-y:checked ~ .grid .cy-m { display: none; }
#cycle-y:checked ~ .grid .cy-y { display: block; }
#cycle-y:checked ~ .grid a.btn.cy-y { display: inline-flex; margin-top: auto; }
.pc-year-note { color: var(--muted); font-size: .84rem; margin-top: 2px; }
.pc-save {
  display: inline-block; background: #ecfdf5; color: var(--accent-text);
  font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-top: 8px;
}
.price-card form + form { margin-top: 0; }

/* ── Feature-vergelijkingstabel (prijzen) ── */
.cmp-table th, .cmp-table td { text-align: center; }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; }
.cmp-yes { color: var(--accent-text); font-weight: 700; }
.cmp-no { color: var(--muted); }

/* ── Betaalbaarheids-check (woningdetail + kaart-badge) ── */
.afford-card { border-left: 4px solid var(--border); }
.afford-card.afford-groen { border-left-color: var(--success); }
.afford-card.afford-oranje { border-left-color: var(--warning); }
.afford-card.afford-rood { border-left-color: var(--danger); }

/* ── Upgrade-gate (plan-afgeschermde features) ── */
.upgrade-gate { border: 1px dashed var(--border); border-radius: 12px; padding: 16px 18px; background: #f8fafc; }
.upgrade-gate p + p { margin-top: 6px; }
.upgrade-gate .btn { margin-top: 12px; }
.upgrade-gate-compact { margin-top: 6px; }

/* ── Footer-kolomkoppen (footer-navigatie) ── */
.footer .f-head { display: block; font-weight: 700; color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }

/* Taalschakelaar in de nav */
.lang-switch { font-size:.82rem; font-weight:600; color:var(--muted); white-space:nowrap; }
.lang-switch a { color:var(--muted); text-decoration:none; padding:2px 3px; }
.lang-switch a.active { color:var(--primary); text-decoration:underline; }
.lang-switch a:hover { color:var(--primary); }

/* Zoekstraal-kaart (Leaflet, zelf-gehost) */
#radius-map { height: 320px; border-radius: 12px; margin-top: 14px; z-index: 0; }
.leaflet-container { font: inherit; }
.citymap-label, .citymap-label-main { background: rgba(255,255,255,.92); border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.15); padding: 1px 5px; font-size: 11px; color: #0F2A43; white-space: nowrap; }
.citymap-label-main { font-weight: 700; font-size: 12px; }
.citymap-label::before, .citymap-label-main::before { display: none !important; }
