/* Huizenjacht — rustig, licht, informatief. Licht + donker thema. */
:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --ink: #1d2320;
  --ink-2: #4b5551;
  --muted: #7a847f;
  --line: #e4e1d9;
  --line-2: #efece6;
  --primary: #0f6b5a;
  --primary-2: #0b5446;
  --primary-soft: #e3f1ec;
  --accent: #c7781c;
  --accent-soft: #fbefdf;
  --danger: #b4232c;
  --danger-soft: #fbe7e8;
  --ok: #1f8a4c;
  --ok-soft: #e4f4ea;
  --warn: #a86a00;
  --warn-soft: #fff3d6;
  --shadow: 0 1px 2px rgba(20, 30, 25, 0.06), 0 6px 18px rgba(20, 30, 25, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #121614;
    --surface: #1a201d;
    --surface-2: #161b19;
    --ink: #e9ede9;
    --ink-2: #c3cbc6;
    --muted: #8d9892;
    --line: #2b3430;
    --line-2: #232b27;
    --primary: #3fb497;
    --primary-2: #59c7aa;
    --primary-soft: #1d3a32;
    --accent: #e39a45;
    --accent-soft: #3a2b18;
    --danger: #ef6b72;
    --danger-soft: #3d1d20;
    --ok: #58c785;
    --ok-soft: #1b3326;
    --warn: #e7b44a;
    --warn-soft: #3a2f15;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.25);
  }
}
:root[data-theme='dark'] {
  --bg: #121614; --surface: #1a201d; --surface-2: #161b19; --ink: #e9ede9; --ink-2: #c3cbc6; --muted: #8d9892;
  --line: #2b3430; --line-2: #232b27; --primary: #3fb497; --primary-2: #59c7aa; --primary-soft: #1d3a32;
  --accent: #e39a45; --accent-soft: #3a2b18; --danger: #ef6b72; --danger-soft: #3d1d20; --ok: #58c785; --ok-soft: #1b3326;
  --warn: #e7b44a; --warn-soft: #3a2f15; --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 0.75em; }
small, .small { font-size: 0.85em; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; color: var(--primary); }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 7px 11px; border-radius: 8px; color: var(--ink-2); white-space: nowrap; font-weight: 500; }
.nav a:hover { background: var(--line-2); text-decoration: none; }
.nav a.active { background: var(--primary-soft); color: var(--primary); }
.who { color: var(--muted); font-size: 0.9em; white-space: nowrap; }
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; gap: 6px; padding: 8px 12px; }
  .nav { order: 3; flex-basis: 100%; }
  .who { display: none; }
}

/* ---------- Layout ---------- */
.container { max-width: 1320px; margin: 0 auto; padding: 20px 16px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.spacer { flex: 1; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.card.flat { box-shadow: none; }
.card h2 { display: flex; align-items: center; gap: 8px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card-head h2, .card-head h3 { margin: 0; }

/* ---------- KPI ---------- */
.kpi { padding: 14px 16px; }
.kpi .label { color: var(--muted); font-size: 0.82rem; font-weight: 500; }
.kpi .value { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .sub { color: var(--ink-2); font-size: 0.85rem; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
  white-space: nowrap; min-height: 38px;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--line-2); }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 4px 10px; min-height: 30px; font-size: 0.88rem; }
.btn:disabled { opacity: 0.55; cursor: default; }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-size: 1.15rem; line-height: 1; }
.icon-btn:hover { background: var(--line-2); }
.icon-btn.on { color: var(--accent); }

label.field { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--ink-2); font-weight: 500; min-width: 0; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 38px; width: 100%;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent); border-color: var(--primary); }
input[type='checkbox'], input[type='radio'] { width: auto; min-height: 0; accent-color: var(--primary); }
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.92rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 12px; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 34px; }
.input-suffix span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.85rem; pointer-events: none; }

/* ---------- Chips & badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.danger { background: var(--danger-soft); color: var(--danger); }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.primary { background: var(--primary-soft); color: var(--primary); }
.label-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 4px; font-size: 0.78rem; font-weight: 800; color: #fff; clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%); padding-right: 10px; }
.lbl-App, .lbl-Ap, .lbl-A { background: #109a48; }
.lbl-B { background: #57b947; }
.lbl-C { background: #b9cf1c; color: #1d2320; }
.lbl-D { background: #f2c200; color: #1d2320; }
.lbl-E { background: #f08a1c; }
.lbl-F { background: #e5481e; }
.lbl-G { background: #c3161c; }
.lbl-x { background: var(--muted); }

.score { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; font-weight: 800; font-size: 0.95rem; color: var(--ink); background: conic-gradient(var(--sc, var(--primary)) calc(var(--v) * 1%), var(--line-2) 0); position: relative; flex: none; }
.score::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.score span { position: relative; }

/* ---------- Listing cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.lcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); min-width: 0; }
.lcard:hover { text-decoration: none; border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.lcard .photo { position: relative; aspect-ratio: 16 / 10; background: var(--line-2) center / cover no-repeat; }
.lcard .photo .tl { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.lcard .photo .tr { position: absolute; right: 8px; top: 8px; }
.favbtn { position: absolute; left: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: #b03a3a; font-size: 1.25rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.favbtn.on { background: #b03a3a; color: #fff; }
.lcard .photo .chip { background: rgba(255, 255, 255, 0.92); color: #1d2320; }
.lcard .photo .chip.status-onder { background: #fff1d6; color: #8a5800; }
.lcard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.lcard .price { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.lcard .addr { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard .specs { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-2); font-size: 0.88rem; }
.lcard .specs b { color: var(--ink); font-weight: 600; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
th { font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; background: var(--surface-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
tbody tr:hover { background: var(--surface-2); }
.kv { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; gap: 6px 12px; font-size: 0.93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Filters ---------- */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; align-items: end; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 7px 12px; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--primary-soft); color: var(--primary); }
.area-toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.area-toggles label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 0.86rem; background: var(--surface); }
.area-toggles input { display: none; }
.area-toggles label.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); }
.area-toggles .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }

/* ---------- Map ---------- */
.map { height: 70vh; min-height: 420px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.map.small { height: 320px; min-height: 260px; }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.pin span { transform: rotate(45deg); color: #fff; font-size: 11px; font-weight: 800; }
.leaflet-popup-content { margin: 10px 12px; font: 13px/1.4 var(--font); }
.popup-card { width: 220px; }
.popup-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; background: var(--line-2); }
.gallery img.sel { border-color: var(--primary); }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.plans > div { display: flex; flex-direction: column; gap: 4px; }
.plans a { color: var(--ink); }
.plans img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.plans .plan-svg { width: 100%; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.plans .plan-link { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--line-2); border-radius: 8px; }
.plans span { font-weight: 600; font-size: 0.95rem; }
.hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--line-2); display: block; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.timeline li:last-child { border-bottom: 0; }
.timeline .t { color: var(--muted); font-size: 0.82rem; white-space: nowrap; min-width: 78px; }

/* ---------- Bars ---------- */
.bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.parts { display: grid; grid-template-columns: 110px 1fr 40px; gap: 6px 10px; align-items: center; font-size: 0.88rem; }

/* ---------- Notices ---------- */
.notice { padding: 10px 14px; border-radius: 10px; background: var(--primary-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); font-size: 0.92rem; }
.notice.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.notice.danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 10px; z-index: 5000; box-shadow: var(--shadow); font-weight: 500; max-width: calc(100% - 32px); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--primary); border-bottom-color: var(--primary); }
.big { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.compare { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--line-2); }
.compare img { display: block; width: 100%; }
.compare .after { position: absolute; inset: 0; overflow: hidden; }
.compare .after img { height: 100%; object-fit: cover; }
.compare input[type='range'] { position: absolute; left: 0; right: 0; bottom: 10px; width: 80%; margin: 0 10%; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { width: 100%; max-width: 380px; }

/* Grid-kinderen mogen smaller worden dan hun inhoud (voorkomt horizontaal
   scrollen op mobiel); bedragen in tabellen niet afbreken. */
.grid > *, .split > *, .stack > * { min-width: 0; }
td.num, td.r { white-space: nowrap; }
.card-head { flex-wrap: wrap; }
select { max-width: 100%; text-overflow: ellipsis; }
.table-wrap input { min-width: 0; }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); } }

/* Referentietabellen op een telefoon: alleen adres + prijs, rest als subregel. */
.show-sm { display: none; }
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .show-sm { display: block; }
  th, td { padding: 8px 8px; }
}

/* Populariteit op Funda (bekeken / bewaard / dagen online) */
.pop { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.pop > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.pop svg { flex: none; }
.popstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.popstats .big { font-size: 1.5rem; }

/* Fotoviewer */
.hero-wrap { position: relative; }
.hero-wrap .hero { cursor: zoom-in; }
.hero-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.pswp { --pswp-bg: #0d0f0e; }
.pswp__counter { font-weight: 600; }
.plan-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.plan-open .plan-link { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--line-2); border-radius: 8px; color: var(--ink-2); font-weight: 600; }
.pswp-bijschrift { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(0, 0, 0, 0.65); color: #fff; font: 600 0.95rem/1.3 system-ui, sans-serif; padding: 6px 14px; border-radius: 999px; pointer-events: none; }

/* Straat & verkeer: geluidsschaal 40–75 dB met grenzen 53 / 58 / 63 */
.geluid-schaal { position: relative; height: 10px; border-radius: 5px; margin: 10px 0 4px;
  background: linear-gradient(90deg, #7cc47f 0%, #7cc47f 37%, #f2d64b 37%, #f2d64b 51%, #f0a03c 51%, #f0a03c 66%, #d9534f 66%, #8b1a1a 100%); }
.geluid-schaal i { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px #fff; }
.geluid-labels { position: relative; height: 1.3em; margin-bottom: 8px; }
.geluid-labels span { position: absolute; transform: translateX(-50%); }
.geluid-labels span:first-child { transform: none; }
.geluid-labels span:last-child { transform: none; }
.geluid-legenda { background: #fff; padding: 4px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.geluid-legenda img { display: block; max-width: 140px; }
details.kk { margin-top: 4px; }
details.kk summary { cursor: pointer; color: var(--primary, #0f6b5a); }
details.kk dl { margin-top: 6px; }
details.kk dl.kv { grid-template-columns: 1fr auto; column-gap: 12px; }
details.kk dl.kv dt { overflow-wrap: normal; word-break: normal; }
details.kk dl.kv dd { text-align: right; white-space: nowrap; }

/* Drie lijsten: beschikbaar / onder bod / verkocht */
.status-tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }
.status-tabs button { flex: 1 1 0; min-width: max-content; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.status-tabs button .n { font-weight: 500; color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.status-tabs button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.status-tabs button.on .n { color: rgba(255, 255, 255, 0.85); }
/* Telefoon: aantal onder het label, drie gelijke knoppen. */
@media (max-width: 480px) {
  .status-tabs { gap: 4px; }
  .status-tabs button { flex: 1 1 0; min-width: 0; padding: 7px 4px; font-size: 0.9rem; line-height: 1.25; }
  .status-tabs button .n { display: block; margin-left: 0; font-size: 0.85rem; }
}

/* Nieuw op de markt: datumregel boven elk kaartje */
.nieuw-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nieuw-item .lcard { flex: 1; }
.nieuw-dag { margin: 14px 0 6px; text-transform: none; }
.nieuw-dag:first-child { margin-top: 0; }

/* Onze foto's (woning-extra.js) */
.eigen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.eigen-foto { margin: 0; }
.eigen-open { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 10px; background: var(--surface-2) center / cover no-repeat; cursor: zoom-in; padding: 0; }
.eigen-foto figcaption { display: flex; align-items: center; gap: 2px; min-height: 26px; }
.eigen-foto figcaption span { flex: 1; overflow-wrap: anywhere; }

/* Lange woorden zonder afbreekpunt (bestandsnamen, URL's) mogen breken. */
.breek { min-width: 0; overflow-wrap: anywhere; }
.timeline div, .kv dd, .notice { overflow-wrap: anywhere; }
/* Vangnet: één te breed element mag de pagina nooit opzij laten schuiven (dan
   wordt het venster breder en klopt o.a. de fotoviewer niet meer). */
html, body { overflow-x: clip; }
