/* ── MakelaarLeiden.nl – nieuw designsysteem (2026) ─────────────────── */
/* Dit bestand overschrijft de kleur- en typografievariabelen site-breed  */

:root {
  --bg:         #f7f6f3;
  --surface:    #ffffff;
  --border:     #e4e2db;
  --text:       #1a1915;
  --muted:      #6b6960;
  --accent:     #1a4f3a;
  --accent-lt:  #e8f0ec;
  --accent-mid: #2d7a56;
  --primary:        #1a4f3a;
  --primary-light:  #2d7a56;
  --radius:     8px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
}

/* ── Typografie ────────────────────────────────────────────────────────── */
body {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
  letter-spacing: -.3px;
}

/* ── Nav ───────────────────────────────────────────────────────────────── */
nav, .site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav-logo, .logo { color: var(--accent) !important; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* ── Stats-balk (homepage / archief) ───────────────────────────────────── */
.stats-bar { background: #cccccc; }

/* ── Filter-balk ───────────────────────────────────────────────────────── */
.filter-inner input:focus,
.filter-inner select:focus { border-color: var(--accent); }
.btn-search, .btn-funda   { background: var(--accent); }
.btn-search:hover, .btn-funda:hover { background: var(--accent-mid); }

/* ── Kaart markers ─────────────────────────────────────────────────────── */
.popup-link { background: var(--accent) !important; }

/* ── Insight-kaarten (archief) ─────────────────────────────────────────── */
.insight-card .ic-sub { color: var(--accent-mid); }

/* ── Tabel ─────────────────────────────────────────────────────────────── */
th:hover            { color: var(--accent); }
.tag-stad           { background: var(--accent-lt); color: var(--accent); }
.page-btn:hover,
.page-btn.active    { background: var(--accent); border-color: var(--accent); }
.overbod-pos        { color: var(--accent-mid); }

/* ── Woningkaarten (homepage) ──────────────────────────────────────────── */
.btn-funda        { background: var(--accent); }
.btn-funda:hover  { background: var(--accent-mid); }

/* ── Stats-balk cijfers zwart ───────────────────────────────────────────── */
.stat-pill .num { color: #000 !important; }

/* ── Straten-index / stadsoverzicht ────────────────────────────────────── */
.straat-link { color: var(--text) !important; }
.straat-link:hover { border-color: var(--accent) !important; color: var(--accent) !important; }
.badge { background: var(--accent-lt); color: var(--accent) !important; }
.stad-naam { color: var(--accent) !important; }
.stad-card:hover { border-color: var(--accent) !important; }

/* ── Stratenpagina's – layout ──────────────────────────────────────────── */
.straat-tekst p { font-family: Georgia, serif; line-height: 1.8; }

/* ── Stratenpagina's – v4 structuur ────────────────────────────────────── */
.intro-text { font-family: Georgia,serif; font-size:16px; line-height:1.75; color:#3a3830; margin-bottom:3rem; }
.sec-hdr { display:flex; align-items:baseline; gap:10px; margin-bottom:1rem; }
.sec-hdr h2 { font-family:Georgia,serif; font-size:20px; font-weight:normal; letter-spacing:-.2px; margin:0; }
.sec-pill { font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--accent-mid); background:var(--accent-lt); padding:2px 8px; border-radius:99px; }
hr.div { border:none; border-top:1px solid var(--border); margin:2.25rem 0; }
.link-bar { margin-top:.75rem; padding:12px 16px; background:var(--accent-lt); border-radius:var(--r-md); font-size:13px; color:var(--accent); }
.link-bar a { color:var(--accent-mid); font-weight:600; text-decoration:none; }
.link-bar a:hover { text-decoration:underline; }
.empty-state, .loading-state { font-size:14px; color:var(--muted); padding:2rem; text-align:center; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); }

/* Huizen grid + cards */
.huizen-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:1rem; }
@media(max-width:860px){.huizen-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:500px){.huizen-grid{grid-template-columns:1fr}}
.huis-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); overflow:hidden; text-decoration:none; color:inherit; display:flex; flex-direction:column; transition:box-shadow .15s,border-color .15s; }
.huis-card:hover { box-shadow:0 4px 12px rgba(0,0,0,.08); border-color:#ccc; }
.huis-img { width:100%; aspect-ratio:16/10; background:var(--accent-lt); overflow:hidden; position:relative; }
.huis-img img { width:100%; height:100%; object-fit:cover; display:block; }
.huis-img-ph { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:var(--accent); opacity:.3; font-size:2rem; }
.huis-badge { position:absolute; top:8px; left:8px; font-size:10px; font-weight:700; padding:3px 7px; border-radius:99px; font-family:-apple-system,sans-serif; }
.huis-badge.koop { background:var(--accent); color:#fff; }
.huis-badge.buurt { background:var(--accent-mid); color:#fff; }
.huis-body { padding:14px; flex:1; font-family:-apple-system,sans-serif; }
.huis-adres { font-size:14px; font-weight:600; margin-bottom:3px; }
.huis-type { font-size:12px; color:var(--muted); margin-bottom:10px; }
.huis-specs { display:flex; gap:12px; margin-bottom:10px; flex-wrap:wrap; }
.huis-spec { font-size:12px; color:var(--muted); }
.huis-prijs { font-size:17px; font-weight:700; color:var(--accent); }
.map-wrap { border-radius:var(--r-lg); overflow:hidden; border:1px solid var(--border); box-shadow:0 2px 8px rgba(0,0,0,.06); }
.map-caption { background:var(--surface); padding:8px 14px; border-top:1px solid var(--border); font-family:-apple-system,sans-serif; font-size:12px; color:var(--muted); display:flex; justify-content:space-between; align-items:center; }

/* Verkocht tabel */
.verkocht-table { width:100%; border-collapse:collapse; font-family:-apple-system,sans-serif; font-size:14px; }
.verkocht-table thead tr { border-bottom:1px solid var(--border); }
.verkocht-table th { font-size:11px; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); padding:0 12px 10px 0; text-align:left; }
.verkocht-table th:first-child { padding-left:0; }
.verkocht-table tbody tr { border-bottom:1px solid var(--border); }
.verkocht-table tbody tr:last-child { border-bottom:none; }
.verkocht-table td { padding:12px 12px 12px 0; vertical-align:middle; }
.verkocht-table td:first-child { padding-left:0; }
#verkocht-tabel { overflow-x:auto; -webkit-overflow-scrolling:touch; }

/* ── CBS Buurtinfo – v4 klassen ────────────────────────────────────────── */
.buurt-banner { background:var(--accent); color:#fff; border-radius:var(--r-lg); padding:1.25rem 1.5rem; margin-bottom:1.25rem; display:flex; align-items:center; gap:1rem; flex-wrap:wrap; }
.bb-icon { width:40px; height:40px; background:rgba(255,255,255,.15); border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:18px; }
.bb-text { flex:1; min-width:180px; font-family:-apple-system,sans-serif; }
.bb-text strong { display:block; font-size:15px; font-weight:600; margin-bottom:2px; }
.bb-text span { font-size:13px; opacity:.8; }
.bb-badge { background:rgba(255,255,255,.2); border-radius:99px; padding:4px 12px; font-family:-apple-system,sans-serif; font-size:12px; font-weight:600; white-space:nowrap; }
.stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(148px,1fr)); gap:10px; margin-bottom:1.25rem; }
.stat-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:14px 16px; }
.stat-lbl { font-family:-apple-system,sans-serif; font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; margin-bottom:6px; font-weight:500; }
.stat-val { font-family:-apple-system,sans-serif; font-size:22px; font-weight:600; line-height:1; margin-bottom:3px; }
.stat-sub { font-family:-apple-system,sans-serif; font-size:11px; color:var(--muted); }
.b-badge { display:inline-block; font-family:-apple-system,sans-serif; font-size:10px; font-weight:600; padding:2px 6px; border-radius:99px; margin-top:4px; }
.b-up  { background:#e8f5ec; color:#1a6b3a; }
.b-down{ background:#fdf0e8; color:#8a4a18; }
.b-neu { background:#f0f0ee; color:#666; }
.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:16px; }
.card-title { font-family:-apple-system,sans-serif; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:12px; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:10px; }
@media(max-width:580px){.grid-2{grid-template-columns:1fr}}
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:10px; }
@media(max-width:640px){.grid-3{grid-template-columns:1fr 1fr}}
@media(max-width:400px){.grid-3{grid-template-columns:1fr}}
.hbar { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.hbar:last-child { margin-bottom:0; }
.hbar-lbl { font-family:-apple-system,sans-serif; font-size:12px; color:var(--muted); min-width:72px; }
.hbar-lbl.wide { min-width:110px; }
.hbar-track { flex:1; height:7px; background:var(--border); border-radius:4px; overflow:hidden; }
.hbar-fill { height:100%; border-radius:4px; }
.hbar-val { font-family:-apple-system,sans-serif; font-size:12px; font-weight:600; min-width:30px; text-align:right; }
.hbar-bench { font-family:-apple-system,sans-serif; font-size:10px; color:var(--muted); min-width:52px; text-align:right; }
.stack-labels { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.stack-leg { display:flex; align-items:center; gap:5px; font-family:-apple-system,sans-serif; font-size:12px; color:var(--muted); }
.stack-dot { width:9px; height:9px; border-radius:2px; flex-shrink:0; }
.stacked { height:12px; border-radius:6px; overflow:hidden; display:flex; margin-bottom:14px; }
.row-list { display:flex; flex-direction:column; }
.row-item { display:flex; align-items:center; justify-content:space-between; padding:7px 0; border-bottom:1px solid var(--border); font-family:-apple-system,sans-serif; }
.row-item:last-child { border-bottom:none; padding-bottom:0; }
.row-name { font-size:13px; color:var(--text); }
.row-val { font-size:13px; font-weight:600; color:var(--accent); display:flex; align-items:center; gap:6px; }
.row-dot { width:8px; height:8px; border-radius:50%; background:var(--accent-mid); opacity:.55; }
.sted-track { position:relative; height:10px; border-radius:5px; background:linear-gradient(to right,#c8e6c9,#388e3c,#1b5e20); margin:12px 0 6px; overflow:visible; }
.sted-marker { position:absolute; top:50%; transform:translate(-50%,-50%); width:18px; height:18px; border-radius:50%; background:var(--accent); border:3px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.25); }
.sted-labels { display:flex; justify-content:space-between; font-family:-apple-system,sans-serif; font-size:10px; color:var(--muted); }
.source-note { background:#fdf3e7; border:1px solid #e8d4b8; border-radius:var(--r-sm); padding:10px 14px; font-family:-apple-system,sans-serif; font-size:12px; color:#7a4a1a; line-height:1.5; margin-top:1rem; }

/* ── CBS-buurtinfo sectie ───────────────────────────────────────────────── */
.cbs-section { margin-bottom: 2.5rem; }
.cbs-sec-hdr {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 1rem;
  border-bottom: 1px solid var(--border); padding-bottom: .6rem;
}
.cbs-sec-hdr h2 {
  font-family: Georgia, serif; font-size: 20px;
  font-weight: normal; letter-spacing: -.2px; margin: 0;
}
.cbs-pill {
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-mid);
  background: var(--accent-lt); padding: 2px 8px; border-radius: 99px;
}
.cbs-banner {
  background: var(--accent); color: #fff;
  border-radius: var(--r-lg); padding: 1rem 1.25rem;
  margin-bottom: 1rem; display: flex; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.cbs-banner-icon {
  width: 36px; height: 36px; background: rgba(255,255,255,.15);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 17px;
}
.cbs-banner-text { flex: 1; min-width: 160px; }
.cbs-banner-text strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.cbs-banner-text span   { font-size: 12px; opacity: .8; }
.cbs-banner-badge {
  background: rgba(255,255,255,.2); border-radius: 99px;
  padding: 3px 10px; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.cbs-stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 1rem;
}
.cbs-stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 13px 15px;
}
.cbs-stat-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; font-weight: 500; }
.cbs-stat-val { font-size: 21px; font-weight: 700; line-height: 1; margin-bottom: 2px; }
.cbs-stat-sub { font-size: 10px; color: var(--muted); }
.cbs-badge { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 99px; margin-top: 3px; }
.cbs-b-up   { background: #e8f5ec; color: #1a6b3a; }
.cbs-b-neu  { background: #f0f0ee; color: #666; }
.cbs-b-down { background: #fdf0e8; color: #8a4a18; }
.cbs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.cbs-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; }
.cbs-card-title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 11px; }
.cbs-hbar { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.cbs-hbar:last-child { margin-bottom: 0; }
.cbs-hbar-lbl { font-size: 11px; color: var(--muted); min-width: 70px; }
.cbs-hbar-lbl.wide { min-width: 105px; }
.cbs-hbar-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.cbs-hbar-fill  { height: 100%; border-radius: 3px; }
.cbs-hbar-val   { font-size: 11px; font-weight: 600; min-width: 28px; text-align: right; }
.cbs-hbar-bench { font-size: 10px; color: var(--muted); min-width: 48px; text-align: right; }
.cbs-row-list   { display: flex; flex-direction: column; }
.cbs-row-item   { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.cbs-row-item:last-child { border-bottom: none; padding-bottom: 0; }
.cbs-row-val { font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 5px; }
.cbs-row-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-mid); opacity: .55; }
.cbs-stacked { height: 10px; border-radius: 5px; overflow: hidden; display: flex; margin-bottom: 12px; }
.cbs-stack-labels { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 7px; }
.cbs-stack-leg { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.cbs-stack-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.cbs-source-note {
  background: #fdf3e7; border: 1px solid #e8d4b8; border-radius: var(--r-sm);
  padding: 9px 13px; font-size: 11px; color: #7a4a1a;
  margin-top: 10px; line-height: 1.5;
}
@media (max-width: 560px) {
  .cbs-grid-2 { grid-template-columns: 1fr; }
  .cbs-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Uitlijning straatpagina's – fix straat-header ──────────────────────── */
/* Verwijder horizontale padding van de outer wrapper, zet die op de inner  */
/* zodat de h1 op elke schermbreedte uitlijnt met de max-width: 1400px      */
/* content-container hieronder.                                              */
.straat-header { padding-left: 0 !important; padding-right: 0 !important; }
.straat-header-inner { padding: 0 20px; }

/* ── Breadcrumb – BEIDE klassen werken altijd correct ───────────────────── */
/* Kanonieke klasse: breadcrumb-bar + bc-inner                               */
/* Fallback (oude klasse): breadcrumb + breadcrumb-inner                     */
/* Patroon: outer heeft GEEN horizontale padding; inner heeft padding 0 20px */
/* Dit is hetzelfde patroon als straat-header / straat-header-inner          */
.breadcrumb {
  background: #1a4f3a !important;
  padding: 9px 0 !important;
  font-family: -apple-system, sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,.75);
}
.breadcrumb a { color: rgba(255,255,255,.75) !important; text-decoration: none; }
.breadcrumb a:hover { color: #fff !important; }
.breadcrumb-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Kanonieke breadcrumb – alle pagina's ───────────────────────────────── */
/* Gebruik altijd: <div class="breadcrumb-bar"><div class="bc-inner">…</div></div> */
.breadcrumb-bar {
  background: #1a4f3a !important;
  padding: 9px 0 !important;
  font-family: -apple-system, sans-serif;
  font-size: 12px;
}
.bc-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.75);
}
.bc-inner a { color: rgba(255,255,255,.75); text-decoration: none; }
.bc-inner a:hover { color: #fff; }
.bc-sep { color: rgba(255,255,255,.35); }

/* ── Kanonieke container – alle pagina's ────────────────────────────────── */
/* max-width altijd 1400px; smalle content krijgt een eigen inner wrapper   */
.container { max-width: 1400px !important; margin: 0 auto; padding: 0 20px; }
