/* ==========================================================================
   Kantoorbalie 2026 - sitewide design system
   Bron: design/kb_page_new_2026_uitwerking_def-*.svg
   Brand: #6bfa9b (accent) / #133a2b (donkergroen)
   Display font: Peridot PE Variable (Adobe Fonts); body: Open Sans
   Fonts worden geladen in layouts/master.blade.php (preconnect + link).
   ========================================================================== */

:root {
    --kb-green:        #6bfa9b;
    --kb-green-bright: #5df58f;
    --kb-green-soft:   #d9fbe7;
    --kb-green-text:   #0e7a43;   /* toegankelijk groen voor tekst op wit (WCAG) */
    --kb-dark:         #133a2b;
    --kb-dark-2:       #0d2c20;
    --kb-ink:          #000;
    --kb-text:         #000;
    --kb-muted:        #5c6f66;
    --kb-bg:           #ffffff;
    --kb-page-bg:      #dce2df;
    --kb-bg-soft:      #f4f6f5;
    --kb-border:       #e4e8e6;
    --kb-danger:       #b3261e;
    --kb-shadow:       0 18px 48px rgba(19, 58, 43, .08);
    --kb-shadow-sm:    0 6px 18px rgba(19, 58, 43, .10);
    --kb-radius:       30px;
    --kb-radius-sm:    16px;
    --kb-container:    1200px;
    --kb-display:      "peridot-pe-variable", sans-serif;
    --kb-body:         'Open Sans', 'Segoe UI', sans-serif;
    --kb-btn-nudge:    .1em;
}

/* ---------- base ---------- */
.kb { font-family: var(--kb-body); color: var(--kb-ink); background: var(--kb-bg);
      font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; margin: 0; }
.kb:not(.kb-home) { background: var(--kb-page-bg); }
.kb *, .kb *::before, .kb *::after { box-sizing: border-box; }
.kb img { max-width: 100%; height: auto; }
.kb a { color: inherit; text-decoration: none; }
/* groene prose-links alleen in lopende tekst, niet in kaarten/asides/koppen */
.kb p a:not(.kb-btn), .kb-page__narrow ul:not([class]) a,
.kb-blogitem__body ul:not([class]) a { color: var(--kb-green-text); text-decoration: underline; }
.kb-footer p a:not(.kb-btn), .kb-card-dark p a:not(.kb-btn),
.kb-cta-card p a:not(.kb-btn), .kb-contact p a:not(.kb-btn) { color: var(--kb-green); }
.kb-blogitem h2 a { color: var(--kb-text); text-decoration: none; }
.kb-aside-block a { color: inherit; text-decoration: none; }

.kb-container { max-width: var(--kb-container); margin: 0 auto; padding: 0 24px; }

.kb h1, .kb h2, .kb h3, .kb h4 {
    font-family: var(--kb-display); font-weight: 800; color: var(--kb-text);
    font-variation-settings: "ital" 0, "wdth" 100, "wght" 800;
    margin: 0 0 .5em; line-height: 1.08; letter-spacing: -.01em;
}
.kb h1 { font-size: clamp(32px, 4.2vw, 52px); }
.kb h2 { font-size: clamp(26px, 3.2vw, 40px); }
.kb h3 { font-size: clamp(19px, 2vw, 25px); }
.kb h4 { font-size: 17px; }
.kb p  { margin: 0 0 16px; }
.kb .accent { color: var(--kb-green-text); }
.kb-on-dark .accent, .kb-card-dark .accent { color: var(--kb-green); }

.kb :focus-visible { outline: 3px solid var(--kb-green); outline-offset: 2px; }

/* ---------- knoppen ---------- */
.kb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--kb-display); font-weight: 800; font-size: 18px;
    padding: calc(13px - var(--kb-btn-nudge)) 26px calc(13px + var(--kb-btn-nudge));
    border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
    white-space: nowrap; text-decoration: none !important; line-height: 1.2;
}
.kb-btn:hover { transform: translateY(-1px); }
.kb-btn--green { background: var(--kb-green); color: var(--kb-dark) !important; }
.kb-btn--green:hover { background: var(--kb-green); }
.kb-btn--dark  { background: var(--kb-dark); color: #fff !important; }
.kb-btn--dark:hover { background: var(--kb-green); border-color: var(--kb-green); color: var(--kb-dark) !important; }
.kb-btn--ghost { background: transparent; color: var(--kb-dark) !important; border-color: var(--kb-dark); }
.kb-btn--ghost:hover { background: var(--kb-green); border-color: var(--kb-green); color: var(--kb-dark) !important; }
.kb-btn--ghost-green { background: transparent; color: var(--kb-dark) !important; border-color: var(--kb-green); }
.kb-btn--ghost-green:hover { background: var(--kb-green); }
.kb-btn--sm { padding: calc(9px - var(--kb-btn-nudge)) 18px calc(9px + var(--kb-btn-nudge)); font-size: 14px; }
.kb-btn--block { width: 100%; }

/* ---------- header / nav ---------- */
.kb-header { position: sticky; top: 0; z-index: 950; background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(12px); }
.kb-nav { --kb-container: 98%; display: flex; align-items: center; gap: 22px; height: 80px; }
.kb-nav__logo { flex-shrink: 0; }
.kb-nav__logo img { height: 56px; width: auto; display: block; }
.kb-nav__menu { display: flex; align-items: center; gap: 24px; flex: 1; min-width: 0; }
/* nav-items rechts geclusterd naast de telefoon-pill, zoals in het design */
.kb-nav__links { display: flex; gap: 26px; margin: 0 0 0 auto; list-style: none; padding: 0; }
.kb-nav__links a { font-family: var(--kb-display); font-weight: 800; font-size: 13.5px;
    font-variation-settings: "ital" 0, "wdth" 100, "wght" 800;
    letter-spacing: .06em; text-transform: uppercase; color: var(--kb-text);
    border-bottom: 2px solid transparent; padding-bottom: 2px; }
.kb-nav__links a:hover { border-bottom-color: var(--kb-green); }
.kb-nav__right { display: flex; align-items: center; gap: 18px; }
.kb-nav__search { position: relative; }
.kb-nav__search input { width: 210px; border: 1.5px solid var(--kb-border); border-radius: 999px;
    padding: 10px 18px; font-family: var(--kb-body); font-size: 14px; color: var(--kb-ink);
    background: #fff; transition: border-color .15s ease, width .2s ease; }
.kb-nav__search input:focus { border-color: var(--kb-green); outline: 0; width: 250px; }
/* design: geen zoekveld in de desktop-header (wel in het mobiele menu) */
@media (min-width: 961px) { .kb-nav__search { display: none; } }
/* telefoonnummer als groene pill, zoals in het design */
.kb-nav__phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; font-family: var(--kb-display); font-size: 14px; color: var(--kb-dark);
    white-space: nowrap; background: var(--kb-green); border-radius: 999px;
    padding: calc(10px - var(--kb-btn-nudge)) 20px calc(10px + var(--kb-btn-nudge));
    transition: background .15s ease; }
.kb-nav__phone:hover { background: var(--kb-green); }
.kb-nav__phone .dot { display: none; }
.kb-nav__toggle { display: none; margin-left: auto; width: 46px; height: 46px;
    border: 1.5px solid var(--kb-border); border-radius: 14px; background: #fff;
    cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.kb-nav__toggle span, .kb-nav__toggle span::before, .kb-nav__toggle span::after {
    content: ''; display: block; width: 20px; height: 2px; background: var(--kb-dark);
    border-radius: 2px; transition: .2s; position: relative; }
.kb-nav__toggle span::before { position: absolute; top: -6px; }
.kb-nav__toggle span::after  { position: absolute; top: 6px; }
.kb-nav__toggle[aria-expanded="true"] span { background: transparent; }
.kb-nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.kb-nav__toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* taal-switcher */
.kb-lang { position: relative; }
.kb-lang > summary { list-style: none; cursor: pointer; font-family: var(--kb-display);
    font-weight: 500; font-size: 13px; color: var(--kb-muted); padding: 8px 10px;
    border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; }
.kb-lang > summary:hover { color: var(--kb-text); }
.kb-lang > summary::-webkit-details-marker { display: none; }
.kb-lang > summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.kb-lang[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.kb-lang__menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff;
    border: 1px solid var(--kb-border); border-radius: 14px; box-shadow: var(--kb-shadow-sm);
    padding: 8px; margin: 0; list-style: none; min-width: 150px; z-index: 60; }
.kb-lang__menu a { display: block; padding: 9px 14px; border-radius: 9px; font-size: 14px; }
.kb-lang__menu a:hover { background: var(--kb-bg-soft); }

/* ---------- breadcrumbs ---------- */
.kb-crumbs { border: 0; background: none; }
.kb-crumbs > .kb-container { --kb-container: 98%; }
.kb-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none;
    margin: 0; padding: 10px 0; font-size: 13px; color: var(--kb-muted); }
.kb-crumbs li { display: flex; align-items: center; gap: 4px; }
.kb-crumbs li + li::before { content: '›'; color: var(--kb-muted); padding: 0 4px; }
.kb-crumbs a:hover { color: var(--kb-green-text); }
.kb-crumbs__right { margin-left: auto; }

/* ---------- hero (homepage), opbouw volgens design def-3 ---------- */
.kb-hero { position: relative; overflow: hidden; padding: 0; z-index: 2; }
/* donkere "bureaurand" over de volle breedte, zoals in het design */
.kb-hero::after { content: ''; display: block; height: 11px; background: var(--kb-dark); }
/* lamp van net onder de header tot op de bureaurand; max-width voor ultrawide */
.kb-hero__lamp { position: absolute; left: 6%; bottom: 11px; width: 45%; max-width: 630px; z-index: 1; }
.kb-hero__lamp img { width: 100%; height: auto; display: block; }
@media (min-width: 1500px) {
    .kb-hero__lamp { left: calc(50% - 665px); }
}
.kb-hero__inner { position: relative; z-index: 2; min-height: 660px; padding-top: 252px; }
/* zoekbalk overlapt de lampenkap: grijze pill met donkere semibold tekst (design def-3) */
.kb-searchbar { display: flex; align-items: center; gap: 10px;
    background: rgba(0, 0, 0, .1);
    border: 0; border-radius: 999px; padding: 7px 7px 7px 26px;
    box-shadow: none; max-width: 640px;
    margin-left: clamp(0px, 16%, 195px); margin-bottom: 60px; }
.kb-searchbar .kb-btn--dark { color: var(--kb-green) !important; }
.kb-searchbar input { flex: 1; border: 0; outline: 0; font-family: var(--kb-display);
    font-weight: 600; font-size: 18px; color: var(--kb-text); background: transparent;
    min-width: 0; }
.kb-searchbar input::placeholder { color: var(--kb-text); opacity: 1; }
.kb-searchbar .kb-btn { padding: calc(12px - var(--kb-btn-nudge)) 22px calc(12px + var(--kb-btn-nudge)); font-size: 15px; }
.kb-searchbar .kb-btn--dark:hover { color: var(--kb-dark) !important; }
/* titel onder de zoekbalk, links uitgelijnd in de lichtbundel */
.kb-hero__title { max-width: 660px; margin-left: clamp(0px, 19.5%, 235px); }
.kb-hero__title h1 { font-size: clamp(30px, 3vw, 42px); }
.kb-hero__title .accent { color: inherit; }

/* ---------- features + kaart (homepage) ---------- */
.kb-features { position: relative; padding: 30px 0 80px; min-height: 600px; }
/* de kaart steekt een stuk door de hero-bureaurand heen (design def-3) */
.kb-features__map { position: absolute; right: 4%; top: -110px; width: 50%; max-width: 690px;
    opacity: 1; z-index: 0; pointer-events: none; }
/* de tekstkolom houdt de sectie minstens zo hoog als de kaart,
   zodat de donkere kaarten er niet overheen vallen */
.kb-features > .kb-container { min-height: min(calc(55vw - 110px), 650px); }
@media (min-width: 1500px) {
    .kb-features__map { right: calc(50% - 600px); }
}
.kb-features__map img, .kb-features__map object { width: 100%; height: auto;
    display: block; pointer-events: none; }
.kb-features__lead { position: relative; z-index: 1; max-width: 480px;
    margin-left: clamp(0px, 4%, 48px); margin-bottom: 46px; }
/* CMS-blok levert een h1: visueel op h2-schaal tonen */
.kb-features__lead h1 { font-size: clamp(26px, 3.2vw, 40px); }
.kb-features__lead .kb-btn { padding: calc(15px - var(--kb-btn-nudge)) 34px calc(15px + var(--kb-btn-nudge)); }
.kb-features__lead h2 { margin-bottom: 18px; }
.kb-features__lead p { color: var(--kb-muted); }
/* donkere kaarten, breder dan de container (design def-3) maar met
   ronde hoeken rondom en een kleine marge tot de schermrand */
.kb-feature-cards { position: relative; z-index: 1; display: grid;
    grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px);
    margin: 14px auto 0; max-width: 1400px; width: calc(100% - 48px); }
.kb-card-dark { background: var(--kb-dark); color: #fff; border-radius: var(--kb-radius);
    padding: 43px clamp(24px, 7vw, 51px); }
.kb-card-dark h3 { color: var(--kb-green); margin-bottom: 16px;
    font-size: clamp(24px, 2.6vw, 34px); max-width: 16ch; }
.kb-card-dark p { color: rgba(255,255,255,.82); margin: 0; font-size: 15px; max-width: 66ch; }

/* ---------- secties / steden ---------- */
.kb-section { padding: 64px 0; }
.kb-section--flush { padding-top: 0; }
.kb-section__head { margin-bottom: 30px; display: flex; align-items: baseline; gap: 20px;
    justify-content: space-between; flex-wrap: wrap; }
.kb-cities { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.kb-city { padding: calc(8px - var(--kb-btn-nudge)) 12px calc(8px + var(--kb-btn-nudge));
    border: 1.5px solid var(--kb-green); border-radius: 999px; text-align: center;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-family: var(--kb-display); font-weight: 800; font-size: 16px; color: var(--kb-text);
    transition: all .15s ease; }
.kb-city:hover { background: var(--kb-green); }
.kb-section--cities { padding: 40px 0 48px; }
.kb-cities__all { display: flex; justify-content: center; margin-top: 32px; }
@media (max-width: 1160px) { .kb-cities { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- listing-kaarten ---------- */
.kb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.kb-grid--3 { grid-template-columns: repeat(3, 1fr); }
.kb-grid--2 { grid-template-columns: repeat(2, 1fr); }
/* listing-kaart volgens design def-3: randloze foto met daaronder
   een wit info-blok met dikkere donkere rand, zonder deellijn */
.kb-listing { position: relative; background: transparent; border: 0;
    display: flex; flex-direction: column;
    transition: transform .15s ease, filter .15s ease; }
.kb-listing:hover { transform: translateY(-4px);
    filter: drop-shadow(0 14px 22px rgba(19, 58, 43, .14)); }
.kb-listing__media { position: relative; aspect-ratio: 1/1; overflow: hidden;
    background: var(--kb-bg-soft); border-radius: 12px 12px 0 0; }
.kb-listing__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* badge hangt op de linkerrand van de foto, alleen rechts afgerond (design def-3) */
.kb-badge { position: absolute; left: 0; top: 38px; background: var(--kb-dark);
    color: var(--kb-green); font-family: var(--kb-display); font-weight: 600; font-size: 12px;
    letter-spacing: .02em; padding: 3px 12px; border-radius: 0 5px 5px 0; z-index: 2; }
.kb-listing__body { margin-top: 0; background: #fff; border: 2px solid var(--kb-dark);
    border-radius: 0 0 12px 12px; padding: 13px 18px 12px; display: flex; flex-direction: column;
    gap: 14px; flex: 1; }
.kb-listing__title { font-family: var(--kb-display); font-weight: 700; color: var(--kb-text);
    font-size: 15px; line-height: 1.3; }
.kb-listing__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px;
    color: var(--kb-text); font-weight: 600; flex-wrap: wrap; margin-top: auto; }
.kb-listing__link::after { content: ''; position: absolute; inset: 0; }
/* favoriet-hartje op de foto (design def-3); geel = bewaard */
.kb-fav { position: absolute; right: 20px; top: 32px; z-index: 2; width: 32px; height: 32px;
    border: 0; background: transparent; cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center; }
.kb-fav svg { width: 24px; height: 24px; fill: #fff;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .35));
    transition: fill .15s ease, transform .15s ease; }
.kb-fav:hover svg { transform: scale(1.12); }
.kb-fav.is-fav svg { fill: #ffd233; }

/* ---------- owner CTA + contactstrip ---------- */
/* verhuurders-CTA: witte kaart met donkere rand, kop links, tekst rechts,
   knop gecentreerd onderaan (design def-3) */
.kb-owner { background: #fff; border: 2px solid var(--kb-dark); border-radius: 48px;
    padding: 60px 72px 38px; display: grid; grid-template-columns: 1fr 1fr;
    gap: 36px 64px; align-items: start; }
.kb-owner h2 { max-width: 14ch; margin: 0; }
.kb-owner p { color: var(--kb-ink); margin: 0; font-size: 16px; max-width: 44ch; }
.kb-owner__cta { grid-column: 1 / -1; text-align: center; }
.kb-owner__cta .kb-btn { padding: calc(15px - var(--kb-btn-nudge)) 38px calc(15px + var(--kb-btn-nudge)); font-size: 17px; }
.kb-contact { background: var(--kb-dark); border-radius: var(--kb-radius); color: #fff;
    display: flex; align-items: center; gap: 28px; padding: 22px 30px; margin: 60px 0 0; }
.kb-contact__photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
    flex-shrink: 0; }
.kb-contact__text { flex: 1; }
.kb-contact__text strong { font-family: var(--kb-display); font-size: 19px; display: block; }
.kb-contact__text span { color: rgba(255,255,255,.75); font-size: 15px; }

/* ---------- merken / logos ---------- */
.kb-brands { display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 40px; }
.kb-brands img { height: 46px; width: auto; filter: grayscale(1); opacity: .6;
    transition: .15s; }
.kb-brands img:hover { filter: none; opacity: 1; }

/* ---------- generieke pagina (CMS-content) ---------- */
.kb-page { padding: 48px 0 72px; }
.kb-page__narrow { max-width: 820px; }
.kb-page h1 { margin-bottom: 20px; }
.kb-page h2 { font-size: clamp(22px, 2.4vw, 30px); margin-top: 36px; }
.kb-page h3 { margin-top: 26px; }
.kb-page ul:not([class]) { padding-left: 22px; }
.kb-page li { margin-bottom: 6px; }
.kb-linkgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 24px;
    margin-top: 26px; padding: 0; list-style: none; }
.kb-linkgrid a { display: block; padding: 10px 16px; border: 1.5px solid var(--kb-border);
    border-radius: 999px; font-family: var(--kb-display); font-weight: 500; font-size: 15px;
    color: var(--kb-text); text-decoration: none; text-align: center; transition: .15s; }
.kb-linkgrid a:hover { border-color: var(--kb-green); background: var(--kb-green-soft); }

/* ---------- formulieren ---------- */
.kb form .form-group, .kb-form .form-group { margin-bottom: 18px; }
.kb form label, .kb-form label { display: block; font-family: var(--kb-display); font-weight: 600;
    font-size: 14px; color: var(--kb-text); margin-bottom: 6px; }
.kb .form-control, .kb-input {
    width: 100%; border: 1.5px solid var(--kb-border); border-radius: 14px;
    padding: 12px 16px; font-family: var(--kb-body); font-size: 15px; color: var(--kb-ink);
    background: #fff; transition: border-color .15s ease; }
.kb .form-control:focus, .kb-input:focus { border-color: var(--kb-green); outline: 0; }
.kb textarea.form-control { min-height: 120px; resize: vertical; }
.kb .checkbox label, .kb .radio label { font-family: var(--kb-body); font-weight: 400;
    font-size: 14px; display: flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.kb .checkbox, .kb .radio { margin: 0 0 8px; }
.kb input[type="checkbox"], .kb input[type="radio"] { accent-color: var(--kb-green-text);
    width: 17px; height: 17px; flex-shrink: 0; }

/* alerts / flash */
.kb .alert { border-radius: var(--kb-radius-sm); padding: 14px 18px; margin-bottom: 18px;
    font-size: 14px; border: 1.5px solid transparent; }
.kb .alert ul { margin: 0; padding-left: 18px; }
.kb .alert-success { background: var(--kb-green-soft); color: var(--kb-dark);
    border-color: var(--kb-green); }
.kb .alert-danger, .kb .alert-error { background: #fdeceb; color: var(--kb-danger);
    border-color: #f3b6b2; }
.kb .alert-info, .kb .alert-warning { background: var(--kb-bg-soft); color: var(--kb-ink);
    border-color: var(--kb-border); }
.kb .alert .close { float: right; border: 0; background: none; font-size: 18px;
    cursor: pointer; color: inherit; opacity: .6; }

/* ---------- overzichtspagina (steden / objecten) ---------- */
.kb-overview { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; }
.kb-overview__list { padding: 24px clamp(16px, 3vw, 40px) 60px; }
.kb-overview__map { position: relative; background: var(--kb-bg-soft); }
/* sticky op de wrapper: Google Maps zet zelf inline position:relative op #map */
.kb-overview__mapbox { position: sticky; top: 80px; height: calc(100vh - 80px); }
.kb-overview__map #map { height: 100%; width: 100%; }
.kb-overview__intro { margin-bottom: 26px; }
.kb-overview__intro h1 { font-size: clamp(30px, 3.6vw, 50px); }
.kb-overview__intro .rm-link { color: var(--kb-green-text); font-weight: 600; }
#listItems > .kb-overview__intro { margin: 34px 0 0; }
.kb-overview .kb-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kb-overview--fullwidth .kb-grid { grid-template-columns: repeat(4, 1fr); }

.kb-overview--fullwidth { grid-template-columns: 1fr; }
.kb-overview--fullwidth .kb-overview__map { display: none; }

/* mobiel filterpaneel */
@media (max-width: 960px) {
    #filterItems { display: none; }
    #filterItems.is-mobile-open { display: block; }
    #filterItems.is-mobile-open .kb-filters { flex-direction: column; align-items: stretch; }
    #filterItems.is-mobile-open .kb-filter > summary { width: 100%; justify-content: space-between; }
    #filterItems.is-mobile-open .kb-filter__panel { position: static; box-shadow: none;
        border: 0; border-left: 2px solid var(--kb-green-soft); border-radius: 0; margin-top: 6px; }
}

/* kaart-toggle + mobiele weergaveknoppen */
.kb-viewswitch { display: none; gap: 8px; margin-bottom: 16px; }
.kb-viewswitch button { flex: 1; padding: 10px 8px; border: 1.5px solid var(--kb-border);
    background: #fff; border-radius: 12px; font-family: var(--kb-display); font-weight: 600;
    font-size: 14px; color: var(--kb-text); cursor: pointer; }
.kb-viewswitch button.active { background: var(--kb-dark); color: #fff; border-color: var(--kb-dark); }

/* filters */
.kb-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    margin-bottom: 22px; }
.kb-filter { position: relative; }
.kb-filter > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center;
    gap: 8px; padding: 10px 20px; border: 1.5px solid var(--kb-border); border-radius: 999px;
    font-family: var(--kb-display); font-weight: 500; font-size: 14px; color: var(--kb-text);
    background: #fff; transition: .15s; }
.kb-filter > summary::-webkit-details-marker { display: none; }
.kb-filter > summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.kb-filter > summary:hover, .kb-filter[open] > summary { border-color: var(--kb-green); }
.kb-filter--active > summary { background: var(--kb-green-soft); border-color: var(--kb-green); }
.kb-filter__panel { position: absolute; left: 0; top: calc(100% + 8px); z-index: 40;
    background: #fff; border: 1px solid var(--kb-border); border-radius: 14px;
    box-shadow: var(--kb-shadow-sm); padding: 16px; min-width: 240px; max-height: 320px;
    overflow-y: auto; }
.kb-filter__panel .kb-btn { margin-top: 10px; }
.kb-filters__reset { font-size: 14px; color: var(--kb-muted); cursor: pointer;
    font-family: var(--kb-display); font-weight: 500; }
.kb-filters__reset:hover { color: var(--kb-danger); }

/* paginatie: ondersteunt zowel Bootstrap- als Tailwind-markup van Laravel */
.kb-pagi { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 14px; margin-top: 34px; font-size: 14px; color: var(--kb-muted); }
.kb-pagi ul.pagination, .kb-pagi nav > div > span, .kb-pagi nav > div > a { }
.kb-pagi ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.kb-pagi ul li a, .kb-pagi ul li span { display: inline-flex; min-width: 38px; height: 38px;
    align-items: center; justify-content: center; padding: 0 10px; border-radius: 12px;
    border: 1.5px solid var(--kb-border); font-family: var(--kb-display); font-weight: 500;
    font-size: 14px; color: var(--kb-text); background: #fff; }
.kb-pagi ul li a:hover { border-color: var(--kb-green); background: var(--kb-green-soft); }
.kb-pagi ul li.active span { background: var(--kb-dark); color: #fff; border-color: var(--kb-dark); }
.kb-pagi ul li.disabled span { opacity: .4; }
/* defensief: Laravel 12 Tailwind-paginatormarkup (nav > div > span/a + svg-pijlen) */
.kb-pagi nav svg { width: 18px; height: 18px; }
.kb-pagi nav > div > a, .kb-pagi nav > div > span,
.kb-pagi nav > div > div > a, .kb-pagi nav > div > div > span > a,
.kb-pagi nav > div > div > span > span {
    display: inline-flex; min-width: 38px; height: 38px; align-items: center;
    justify-content: center; padding: 0 10px; border-radius: 12px;
    border: 1.5px solid var(--kb-border); font-family: var(--kb-display);
    font-weight: 500; font-size: 14px; color: var(--kb-text); background: #fff;
    margin: 0 2px; }
.kb-pagi nav p { margin: 0; font-size: 13px; color: var(--kb-muted); }

/* ---------- objectdetail ---------- */
.kb-object { padding: 30px 0 70px; }
.kb-object__layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px;
    align-items: start; }
.kb-object__title h1 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 10px; }
.kb-object__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
    color: var(--kb-muted); font-size: 15px; margin-bottom: 24px; }
.kb-object__meta strong { color: var(--kb-text); font-weight: 600; }
.kb-object__meta .kb-badge { position: static; }

/* galerij */
.kb-gallery { margin-bottom: 34px; }
.kb-gallery__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
    margin-top: 10px; }
.kb-gallery__thumbs button { border: 2px solid transparent; border-radius: 10px; overflow: hidden;
    padding: 0; cursor: pointer; background: none; aspect-ratio: 4/3; }
.kb-gallery__thumbs button.active { border-color: var(--kb-green); }
.kb-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* inhoud + faciliteiten */
.kb-object__content h2 { font-size: clamp(21px, 2.2vw, 28px); margin-top: 34px; }
.kb-facilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 20px;
    list-style: none; margin: 18px 0 0; padding: 0; }
.kb-facilities li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; }
.kb-facilities li::before { content: ''; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px;
    border-radius: 50%; background: var(--kb-green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23133a2b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E")
    center/11px no-repeat; }

/* sidebar CTA */
.kb-object__aside { position: sticky; top: 100px; }
.kb-cta-card { background: var(--kb-dark); border-radius: var(--kb-radius); color: #fff;
    padding: 30px 28px; }
.kb-cta-card .kb-btn { width: 100%; margin-bottom: 12px; }
.kb-cta-card__agent { display: flex; gap: 14px; align-items: center; margin-top: 18px; }
.kb-cta-card__agent img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.kb-cta-card__agent strong { font-family: var(--kb-display); display: block; }
.kb-cta-card__agent span { color: rgba(255,255,255,.75); font-size: 14px; }
.kb-cta-card a:not(.kb-btn) { color: var(--kb-green); }
.kb-cta-card a.kb-cta-card__tel { color: inherit; }

/* zachte panelen (bv. beschikbaarheid) */
.kb-panel-soft { background: var(--kb-bg-soft); border-radius: var(--kb-radius);
    padding: 36px 34px; margin-top: 38px; }
.kb-panel-soft h2 { font-size: clamp(21px, 2.2vw, 28px); margin-top: 0; }

/* video + kaart */
.kb-object__video { margin-top: 30px; }
.kb-object__video iframe { width: 100%; aspect-ratio: 16/9; border: 0;
    border-radius: var(--kb-radius-sm); }
.kb-object__map { margin-top: 34px; }
.kb-object__map > div { height: 340px; border-radius: var(--kb-radius-sm); overflow: hidden; }

/* mobiele actiebalk */
.kb-actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: none;
    gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--kb-border); }
.kb-actionbar .kb-btn { flex: 1 1 0; min-width: 0; font-size: 15px;
    padding-left: 14px; padding-right: 14px;
    white-space: normal; text-align: center; line-height: 1.15; }
/* houd de footer leesbaar boven de vaste actiebalk */
@media (max-width: 960px) {
    body:has(.kb-actionbar) footer.kb-footer { padding-bottom: 100px; }
}

/* ---------- modals (Bootstrap 3 JS-compatibel) ---------- */
.kb .modal { position: fixed; inset: 0; z-index: 1050; display: none; overflow-y: auto;
    -webkit-overflow-scrolling: touch; outline: 0; }
.kb .modal.fade .modal-dialog { transform: translateY(-16px); transition: transform .2s ease; }
.kb .modal.in .modal-dialog { transform: none; }
.kb .modal-dialog { max-width: 540px; margin: 7vh auto; padding: 0 16px; position: relative; }
.kb .modal-content { background: #fff; border-radius: var(--kb-radius-sm); padding: 30px;
    box-shadow: var(--kb-shadow); position: relative; }
.kb .modal .close { position: absolute; right: 18px; top: 14px; border: 0; background: none;
    font-size: 22px; cursor: pointer; color: var(--kb-muted); z-index: 2; }
.kb .modal .close .text { font-size: 13px; vertical-align: middle; margin-right: 4px;
    font-family: var(--kb-display); }
.kb .modal h5 { font-family: var(--kb-display); font-size: 21px; color: var(--kb-text);
    margin: 0 0 18px; }
.kb .modal-backdrop { position: fixed; inset: 0; z-index: 1040; background: var(--kb-dark-2); opacity: 0; }
.kb .modal-backdrop.in { opacity: .55; }

/* datetimepicker (bezichtiging plannen) - dropdown-widget wordt aan <body> gehangen */
.kb .datetimepicker { display: none; position: absolute; z-index: 1100; width: 264px;
    padding: 12px; background: #fff; border: 1.5px solid var(--kb-border); border-radius: 14px;
    box-shadow: 0 14px 34px rgba(19,58,43,.16); font-size: 13.5px; }
.kb .datetimepicker::before, .kb .datetimepicker::after { display: none; }
.kb .datetimepicker > div { display: none; }
.kb .datetimepicker table { width: 100%; margin: 0; border-collapse: collapse; }
.kb .datetimepicker td, .kb .datetimepicker th { text-align: center; padding: 6px 2px;
    border: 0; border-radius: 8px; }
.kb .datetimepicker thead th { font-family: var(--kb-display); font-weight: 600;
    color: var(--kb-text); }
.kb .datetimepicker thead tr:first-child th, .kb .datetimepicker tfoot th { cursor: pointer; }
.kb .datetimepicker thead tr:first-child th:hover, .kb .datetimepicker tfoot th:hover {
    background: var(--kb-bg-soft); }
.kb .datetimepicker th.prev span, .kb .datetimepicker th.next span { display: inline-block;
    width: 9px; height: 9px; border-right: 2px solid var(--kb-dark);
    border-bottom: 2px solid var(--kb-dark); }
.kb .datetimepicker th.prev span { transform: rotate(135deg); }
.kb .datetimepicker th.next span { transform: rotate(-45deg); }
.kb .datetimepicker td.day { cursor: pointer; }
.kb .datetimepicker td.day:hover { background: var(--kb-green-soft); }
.kb .datetimepicker td.old, .kb .datetimepicker td.new { color: var(--kb-muted); }
.kb .datetimepicker td.today { background: var(--kb-green-soft); }
.kb .datetimepicker td.active, .kb .datetimepicker td.active:hover,
.kb .datetimepicker table tr td span.active,
.kb .datetimepicker table tr td span.active:hover { background: var(--kb-dark);
    color: var(--kb-green); }
.kb .datetimepicker td.disabled, .kb .datetimepicker td.disabled:hover,
.kb .datetimepicker table tr td span.disabled { background: none; color: #c2cbc6;
    cursor: default; }
.kb .datetimepicker table tr td span { display: block; float: left; width: 23%; margin: 1%;
    height: 40px; line-height: 40px; border-radius: 8px; cursor: pointer; }
.kb .datetimepicker table tr td span:hover { background: var(--kb-green-soft); }
.kb .datetimepicker .datetimepicker-hours span,
.kb .datetimepicker .datetimepicker-minutes span { height: 28px; line-height: 28px; }
.kb .datetimepicker tfoot th.today, .kb .datetimepicker tfoot th.clear {
    font-family: var(--kb-display); font-weight: 600; color: var(--kb-green-text); }
.kb.modal-open { overflow: hidden; }

/* ---------- typeahead (Bloodhound) ---------- */
/* typeahead.js wikkelt de input in span.twitter-typeahead: layout-rollen overnemen */
.kb .twitter-typeahead { width: 100%; }
.kb-searchbar .twitter-typeahead { flex: 1; min-width: 0; width: auto; }
.kb-searchbar .twitter-typeahead input { width: 100%; }
.kb-nav__search .twitter-typeahead { width: auto; display: block; }
.kb-nav__search .twitter-typeahead input { width: 210px; }
.kb-nav__search .twitter-typeahead input:focus { width: 250px; }
@media (max-width: 960px) {
    .kb-nav__search .twitter-typeahead, .kb-nav__search .twitter-typeahead input,
    .kb-nav__search .twitter-typeahead input:focus { width: 100%; }
}
/* geen losse focus-rechthoek ín de zoekpill; de pill zelf krijgt de ring */
.kb-searchbar input:focus, .kb-searchbar input:focus-visible { outline: none; }
.kb-searchbar:focus-within { box-shadow: 0 10px 28px rgba(19, 58, 43, .14),
    0 0 0 3px var(--kb-green); }
.kb-searchbar .tt-hint { color: var(--kb-muted); }
/* oudere typeahead.js gebruikt .tt-dropdown-menu, nieuwere .tt-menu: beide stylen */
.kb .tt-menu, .kb .tt-dropdown-menu { width: 100%; min-width: 260px; margin-top: 10px;
    background: #fff; border: 1px solid var(--kb-border);
    border-radius: 14px; box-shadow: var(--kb-shadow-sm); padding: 8px; }
.kb .tt-suggestion { padding: 10px 14px; border-radius: 9px; font-size: 15px; cursor: pointer;
    font-family: var(--kb-body); color: var(--kb-ink); }
.kb .tt-suggestion p { margin: 0; }
.kb .tt-suggestion:hover, .kb .tt-cursor { background: var(--kb-green-soft); }
.kb .tt-suggestion .tt-highlight, .kb .tt-suggestion strong { color: var(--kb-text); }
.kb .tt-hint { color: var(--kb-muted); }

/* ---------- blog ---------- */
.kb-blog { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px;
    align-items: start; }
.kb-blogitem { border: 1px solid var(--kb-border); border-radius: var(--kb-radius-sm);
    overflow: hidden; margin-bottom: 26px; background: #fff; }
.kb-blogitem__image img { width: 100%; max-height: 380px; object-fit: cover; display: block; }
.kb-blogitem__body { padding: 24px 26px; }
.kb-blogitem__date { font-family: var(--kb-display); font-weight: 600; font-size: 13px;
    color: var(--kb-green-text); text-transform: uppercase; letter-spacing: .06em;
    margin-bottom: 6px; display: block; }
.kb-blogitem h2 { font-size: clamp(20px, 2.2vw, 27px); margin-bottom: 10px; }
.kb-blogitem h2 a:hover { color: var(--kb-green-text); }
.kb-blogitem__tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.kb-blogitem__tags a { font-size: 12px; background: var(--kb-bg-soft); border-radius: 999px;
    padding: 4px 12px; color: var(--kb-muted); text-decoration: none; }
.kb-blogitem__tags a:hover { background: var(--kb-green-soft); color: var(--kb-dark); }
.kb-aside-block { background: var(--kb-bg-soft); border-radius: var(--kb-radius-sm);
    padding: 22px 24px; margin-bottom: 20px; }
.kb-aside-block h3 { font-size: 18px; margin-bottom: 12px; }
.kb-aside-block ul { list-style: none; margin: 0; padding: 0; }
.kb-aside-block li { margin-bottom: 8px; font-size: 14px; }
.kb-aside-block a:hover { color: var(--kb-green-text); }

/* ---------- footer ---------- */
.kb-footer { background: var(--kb-dark-2); color: rgba(255,255,255,.8); padding: 0 0 30px;
    margin-top: 120px; font-size: 14px; }
/* contactband als bovenkant van de footer (design def-3) */
.kb-footer__contact { background: var(--kb-dark); }
.kb-footer__contactbar { display: flex; align-items: center; gap: 36px; min-height: 104px; }
.kb-footer img.kb-footer__agent { height: 168px; width: auto; align-self: flex-end;
    margin-top: -64px; display: block; flex-shrink: 0; }
.kb-footer__ask strong { display: block; color: var(--kb-green); font-family: var(--kb-display);
    font-weight: 700; font-size: 17px; line-height: 1.3; }
.kb-footer__ask span { color: var(--kb-green); font-size: 13px; font-weight: 600; }
.kb-footer__callback { margin-left: auto; background: transparent;
    border: 2px solid var(--kb-green); color: var(--kb-green) !important;
    font-size: 18px; font-weight: 700;
    padding: calc(12px - var(--kb-btn-nudge)) 36px calc(12px + var(--kb-btn-nudge)); }
.kb-footer__callback:hover { background: var(--kb-green); color: var(--kb-dark) !important; }
.kb-footer__main { padding-top: 48px; }
/* compacte loginknop in de footer (ghost op donker) */
.kb-footer .kb-btn.kb-footer__login { background: transparent; border: 2px solid var(--kb-green);
    color: var(--kb-green) !important; padding: calc(10px - var(--kb-btn-nudge)) 26px calc(10px + var(--kb-btn-nudge));
    font-size: 15px; margin-bottom: 14px; }
.kb-footer .kb-btn.kb-footer__login:hover { background: var(--kb-green); color: var(--kb-dark) !important; }
.kb-footer small a { color: var(--kb-green); text-decoration: underline; }
.kb-footer a:hover { color: var(--kb-green); }
.kb-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px;
    margin-bottom: 44px; }
.kb-footer h4, .kb-footer h5 { color: #fff; font-family: var(--kb-display); font-size: 16px;
    margin: 0 0 14px; }
.kb-footer ul { list-style: none; padding: 0; margin: 0; }
.kb-footer li { margin-bottom: 9px; }
.kb-footer p { margin: 0 0 12px; }
.kb-footer img.kb-footer__logo { height: 44px; width: auto; filter: brightness(0) invert(1);
    margin-bottom: 16px; display: block; }
/* CMS-blok herhaalt de merknaam als kop direct onder het logo: verbergen */
.kb-footer__grid > div:first-child h4 { display: none; }
.kb-footer__links { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 34px;
    padding-top: 34px; border-top: 1px solid rgba(255,255,255,.12); margin-bottom: 34px; }
.kb-footer form input.form-control { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2);
    color: #fff; }
.kb-footer form input.form-control::placeholder { color: rgba(255,255,255,.5); }
.kb-footer form label { color: rgba(255,255,255,.8); }
.kb-footer .kb-btn--green { border: 0; }
/* defensief: knoppen uit legacy-partials (bv. loginformulier) zonder kb-classes */
.kb-footer button:not([class*="kb-btn"]) { font-family: var(--kb-display); font-weight: 600;
    font-size: 14px; padding: 10px 20px; border-radius: 999px; cursor: pointer;
    background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.kb-footer button:not([class*="kb-btn"]):hover { border-color: var(--kb-green); color: var(--kb-green); }
.kb-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px;
    font-size: 13px; color: rgba(255,255,255,.55); display: flex; flex-wrap: wrap; gap: 8px 22px;
    align-items: center; justify-content: space-between; }
.kb-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.kb-footer__bottom li { margin: 0; }

/* ---------- error page ---------- */
.kb-error { padding: 90px 0; text-align: center; }
.kb-error h1 { font-size: clamp(36px, 6vw, 72px); }

/* ---------- responsive ---------- */
/* krappere nav zodat 5 CMS-menu-items + zoekveld + taal + telefoon op één regel passen */
@media (max-width: 1360px) {
    .kb-nav { gap: 18px; }
    .kb-nav__links { gap: 18px; }
    .kb-nav__links a { font-size: 14px; letter-spacing: .02em; }
    .kb-nav__right { gap: 12px; }
    .kb-nav__search input, .kb-nav__search .twitter-typeahead input { width: 150px; }
    .kb-nav__search input:focus, .kb-nav__search .twitter-typeahead input:focus { width: 190px; }
}
@media (max-width: 1160px) and (min-width: 961px) {
    .kb-nav__phone { padding: calc(9px - var(--kb-btn-nudge)) 14px calc(9px + var(--kb-btn-nudge)); font-size: 13px; }
}

@media (max-width: 1160px) {
    .kb-overview .kb-grid, .kb-overview--fullwidth .kb-grid { grid-template-columns: repeat(2, 1fr); }
    /* 4 spotlight-kaarten breken op 3 kolommen als 3+1: liever 2x2 */
    .kb-grid { grid-template-columns: repeat(2, 1fr); }
    .kb-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .kb-nav__search input { width: 160px; }
}

@media (max-width: 1080px) {
    .kb-features__map { width: 52%; opacity: .5; }
    .kb-object__layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; }
}

@media (max-width: 960px) {
    .kb-nav__toggle { display: inline-flex; }
    .kb-nav__menu {
        position: absolute; top: 80px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 6px;
        background: #fff; border-bottom: 1px solid var(--kb-border);
        box-shadow: var(--kb-shadow); padding: 16px 24px 26px;
        max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
        transition: max-height .28s ease, opacity .2s ease, padding .28s ease;
    }
    .kb-nav__menu.is-open { max-height: 560px; opacity: 1; pointer-events: auto;
        overflow-y: auto; }
    .kb-nav__links { flex-direction: column; gap: 4px; }
    .kb-nav__links a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--kb-border); }
    .kb-nav__right { flex-direction: column; align-items: stretch; gap: 14px; margin: 12px 0 0; }
    .kb-nav__search input { width: 100%; }
    .kb-nav__search input:focus { width: 100%; }
    .kb-nav__phone { justify-content: flex-start; padding: 6px 0; }
    .kb-nav__right .kb-btn { justify-content: center; }

    .kb-grid, .kb-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .kb-feature-cards { grid-template-columns: 1fr; gap: 18px; }
    .kb-feature-cards .kb-card-dark { padding: 36px 24px; }
    .kb-card-dark h3, .kb-card-dark p { max-width: none; }
    .kb-owner { grid-template-columns: minmax(0, 1fr); padding: 40px 32px; gap: 28px; }
    .kb-owner h2 { max-width: none; }
    .kb-features__map, .kb-hero__lamp { display: none; }
    .kb-features__lead { margin-left: 0; max-width: none; }
    .kb-features > .kb-container { min-height: 0; }
    .kb-hero__inner { min-height: 0; padding-top: 30px; padding-bottom: 10px; }
    .kb-hero__title, .kb-hero__title h1 { max-width: none; margin-left: 0; }
    .kb-searchbar { max-width: none; margin-left: 0; margin-bottom: 36px; }

    .kb-overview { grid-template-columns: 1fr; }
    .kb-overview__map { display: none; }
    .kb-overview__map.is-mobile-open { display: block; position: fixed; inset: 138px 0 0 0; z-index: 800; }
    .kb-overview__map.is-mobile-open .kb-overview__mapbox { position: static; top: auto; height: 100%; }
    .kb-overview__map.is-mobile-open #map { height: 100%; }
    html.kb-map-open, html.kb-map-open body { overflow: hidden; }
    /* weergaveknoppen blijven boven de kaart-overlay bereikbaar */
    .kb-viewswitch { display: flex; position: sticky; top: 80px; z-index: 850;
        background: #fff; padding: 8px 0; margin: 0 0 12px; }

    .kb-object__layout { grid-template-columns: 1fr; }
    .kb-object__aside { position: static; }
    .kb-actionbar { display: flex; }
    .kb-object { padding-bottom: 110px; }

    .kb-blog { grid-template-columns: 1fr; }
    .kb-linkgrid { grid-template-columns: repeat(3, 1fr); }
    .kb-facilities { grid-template-columns: repeat(2, 1fr); }
    .kb-footer__grid { grid-template-columns: 1fr 1fr; }
    .kb-footer__links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .kb-container { padding: 0 18px; }
    .kb-hero__inner { padding-top: 22px; }
    .kb-hero__title h1 { font-size: 30px; }
    .kb-section { padding: 44px 0; }
    .kb-features { padding: 40px 0 50px; }
    .kb-features__lead { margin-bottom: 28px; }

    .kb-searchbar { flex-direction: column; align-items: stretch; gap: 12px;
        border-radius: 22px; padding: 14px; }
    .kb-searchbar input { padding: 6px 10px; }
    .kb-searchbar .kb-btn { justify-content: center; }

    .kb-grid, .kb-grid--3, .kb-grid--2, .kb-overview .kb-grid,
    .kb-overview--fullwidth .kb-grid { grid-template-columns: 1fr; gap: 18px; }
    .kb-listing__media { aspect-ratio: 16/10; }
    /* spotlight: op telefoons max 4 kaarten tonen (desktop toont er 8) */
    .kb-grid--spotlight .kb-listing:nth-child(n+5) { display: none; }

    .kb-cities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .kb-city { padding: calc(9px - var(--kb-btn-nudge)) 10px calc(9px + var(--kb-btn-nudge)); font-size: 15px; }
    .kb-linkgrid { grid-template-columns: 1fr 1fr; }
    .kb-facilities { grid-template-columns: 1fr; }
    .kb-gallery__thumbs { grid-template-columns: repeat(4, 1fr); }

    .kb-contact { flex-direction: column; text-align: center; gap: 16px; padding: 28px 22px; }
    .kb-contact__text { text-align: center; }
    .kb-contact__photo { width: 76px; height: 76px; }
    .kb-contact .kb-btn { width: 100%; justify-content: center; }
    .kb-owner { padding: 32px 22px; border-radius: 32px; }
    .kb-owner .kb-btn { width: 100%; justify-content: center; white-space: normal; text-align: center; padding-left: 20px; padding-right: 20px; }
    .kb-cities__all .kb-btn { width: 100%; justify-content: center; }

    .kb-footer__grid, .kb-footer__links { grid-template-columns: 1fr; gap: 26px; }
    .kb-footer__contactbar { flex-wrap: wrap; gap: 16px 20px; padding-bottom: 20px; }
    .kb-footer img.kb-footer__agent { height: 120px; margin-top: -44px; }
    .kb-footer__ask { flex: 1; min-width: 55%; }
    .kb-footer__callback { margin-left: 0; width: 100%; justify-content: center; }
    .kb-footer li { margin-bottom: 0; }
    .kb-footer ul a, .kb-footer small a { display: inline-block; padding: 10px 0; }
    .kb-footer__bottom ul { gap: 0 18px; }
    .kb-pagi { flex-direction: column; align-items: flex-start; }
}


/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .kb *, .kb *::before, .kb *::after { transition: none !important; animation: none !important; }
}

/* ---------- auth-pagina's (inloggen / registreren / wachtwoord) ---------- */
.kb-form--narrow { max-width: 440px; }
.kb-form__alt { margin-top: 16px; font-size: 14px; }
.kb-form__alt a { color: var(--kb-green-text); text-decoration: underline; }
.kb-authgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px; align-items: start; max-width: 960px; }
.kb-authcard { border: 1.5px solid var(--kb-border); border-radius: var(--kb-radius-sm);
    background: #fff; padding: 30px 28px; }
.kb-authcard__title { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 18px; }

/* ---------- object aanmelden / verhuren-formulier (legacy owner-form partial) ---------- */
.kb-form h2 { font-size: 20px; margin: 30px 0 12px; }
.kb-form .required-mark { color: var(--kb-green-text); margin-left: 2px; }
.kb-form .form-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.kb-form .form-inline .form-group { display: flex; align-items: center; gap: 10px; margin: 0; }
.kb-form .form-inline label { margin: 0; }
.kb-form .form-inline .form-control { width: auto; min-width: 120px; }
.kb-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.kb-form .row .col-md-12 { grid-column: 1 / -1; }
@media (max-width: 640px) { .kb-form .row { grid-template-columns: 1fr; } }

/* voorzieningen-checkboxes als chips */
.kb-form .specialcheck { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px 16px; margin-bottom: 8px; }
.kb-form .specialcheck input[type="checkbox"] { position: absolute; width: 1px; height: 1px;
    opacity: 0; pointer-events: none; }
.kb-form .specialcheck label { display: block; margin: 0; padding: 11px 16px;
    border: 1.5px solid var(--kb-border); border-radius: 999px; cursor: pointer;
    user-select: none; transition: .15s; }
.kb-form .specialcheck label span { display: flex; align-items: center; gap: 8px; }
.kb-form .specialcheck label i { display: none; }
.kb-form .specialcheck label em { font-style: normal; font-family: var(--kb-display);
    font-weight: 500; font-size: 15px; color: var(--kb-text); }
.kb-form .specialcheck label span::before { content: ""; width: 17px; height: 17px; flex-shrink: 0;
    border: 1.5px solid var(--kb-border); border-radius: 5px; background: #fff; transition: .15s; }
.kb-form .specialcheck input:checked + label { background: var(--kb-dark); border-color: var(--kb-dark); }
.kb-form .specialcheck input:checked + label em { color: var(--kb-green); }
.kb-form .specialcheck input:checked + label span::before { background: var(--kb-green);
    border-color: var(--kb-green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6' fill='none' stroke='%23133a2b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 13px; background-position: center; background-repeat: no-repeat; }
.kb-form .specialcheck input:focus-visible + label { outline: 2px solid var(--kb-green); outline-offset: 2px; }

/* chosen-selects (type ruimte, plaats) in redesign-stijl */
.kb .chosen-container { position: relative; display: block; width: 100% !important;
    font-family: var(--kb-body); font-size: 15px; }
.kb .chosen-container .chosen-choices { display: flex; flex-wrap: wrap; gap: 6px; margin: 0;
    padding: 9px 14px; list-style: none; border: 1.5px solid var(--kb-border); border-radius: 14px;
    background: #fff; cursor: text; }
.kb .chosen-container-active .chosen-choices { border-color: var(--kb-green); }
.kb .chosen-choices li.search-choice { position: relative; background: var(--kb-dark);
    color: var(--kb-green); border-radius: 999px; padding: 5px 30px 5px 14px;
    font-family: var(--kb-display); font-weight: 500; font-size: 14px; }
.kb .chosen-choices li.search-choice .search-choice-close { position: absolute; right: 10px;
    top: 50%; transform: translateY(-50%); width: 13px; height: 13px; cursor: pointer; }
.kb .chosen-choices li.search-choice .search-choice-close::before { content: "\00d7";
    color: var(--kb-green); font-size: 15px; line-height: 13px; display: block; }
.kb .chosen-choices li.search-field { flex: 1; min-width: 110px; }
.kb .chosen-choices li.search-field input[type="text"] { width: 100% !important; border: 0;
    outline: 0; background: transparent; font-family: var(--kb-body); font-size: 15px;
    color: var(--kb-ink); height: 26px; }
.kb .chosen-choices li.search-field input.default { color: var(--kb-muted); }
.kb .chosen-container-single .chosen-single { display: flex; align-items: center;
    justify-content: space-between; gap: 10px; padding: 12px 16px; border: 1.5px solid var(--kb-border);
    border-radius: 14px; background: #fff; color: var(--kb-ink); text-decoration: none; cursor: pointer; }
.kb .chosen-container-single .chosen-single span { overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; }
.kb .chosen-container-single .chosen-single.chosen-default span { color: var(--kb-muted); }
.kb .chosen-container-single .chosen-single div { flex-shrink: 0; }
.kb .chosen-container-single .chosen-single div b { display: block; width: 10px; height: 10px;
    border-right: 2px solid var(--kb-dark); border-bottom: 2px solid var(--kb-dark);
    transform: rotate(45deg) translateY(-2px); }
.kb .chosen-container-single .chosen-search { padding: 8px; }
.kb .chosen-container-single .chosen-search input[type="text"] { width: 100%; padding: 9px 12px;
    border: 1.5px solid var(--kb-border); border-radius: 10px; outline: 0;
    font-family: var(--kb-body); font-size: 15px; }
.kb .chosen-drop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 400;
    background: #fff; border: 1.5px solid var(--kb-border); border-radius: 14px;
    box-shadow: 0 14px 34px rgba(19,58,43,.14); display: none; overflow: hidden; }
.kb .chosen-with-drop .chosen-drop { display: block; }
.kb .chosen-results { list-style: none; margin: 0; padding: 6px; max-height: 260px; overflow: auto; }
.kb .chosen-results li { display: none; padding: 9px 12px; border-radius: 9px; cursor: pointer;
    font-size: 15px; color: var(--kb-ink); }
.kb .chosen-results li.active-result { display: block; }
.kb .chosen-results li.no-results { display: block; color: var(--kb-muted); }
.kb .chosen-results li.highlighted { background: var(--kb-green); color: var(--kb-dark); }
.kb .chosen-results li em { font-style: normal; text-decoration: underline; }

/* dropzone (foto-upload) in redesign-stijl */
.kb .dropzone { border: 2px dashed var(--kb-border); border-radius: var(--kb-radius-sm);
    background: var(--kb-bg-soft); min-height: 170px; padding: 20px; cursor: pointer;
    display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.kb .dropzone:hover { border-color: var(--kb-green); }
.kb .dropzone .dz-message { width: 100%; margin: auto; text-align: center;
    font-family: var(--kb-display); font-weight: 600; font-size: 16px; color: var(--kb-muted); }
.kb .dropzone .dz-preview { position: relative; width: 130px; }
.kb .dropzone .dz-preview .dz-details { font-size: 11px; color: var(--kb-muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.kb .dropzone .dz-preview img { width: 130px; height: 130px; object-fit: cover;
    border-radius: 12px; display: block; }
.kb .dropzone .dz-preview .dz-progress { height: 5px; border-radius: 999px; background: #dfe5e1;
    overflow: hidden; margin-top: 6px; }
.kb .dropzone .dz-preview .dz-progress .dz-upload { display: block; height: 100%;
    background: var(--kb-green); transition: width .2s; }
.kb .dropzone .dz-preview.dz-success .dz-progress { display: none; }
.kb .dropzone .dz-preview .dz-error-message { color: var(--kb-danger); font-size: 12px; }
.kb .dropzone .dz-preview .dz-remove { display: block; margin-top: 5px; text-align: center;
    font-size: 13px; font-weight: 600; color: var(--kb-green-text); cursor: pointer; }

/* ==========================================================================
   Objectdetailpagina - uitwerking design def-4 (kb_page_new_2026_uitwerking)
   Maatvoering opgemeten uit de designbron (2560px canvas = 1920px viewport,
   factor 0.75; contentkolom 727px, sidebar 361px binnen container 1200px).
   Dit blok staat bewust achteraan: het overrulet de eerdere .kb-object-regels.
   ========================================================================== */

:root { --kb-page-bg: #dce2df; }

/* de hele objectpagina staat op een lichtgroen-grijze achtergrond */
body.kb-page-object { background: var(--kb-page-bg); }
body.kb-page-object .kb-crumbs { background: transparent; border-bottom: 0; }
body.kb-page-object .kb-crumbs ol { padding: 14px 0 0; }
body.kb-page-object .kb-crumbs a:hover { color: var(--kb-green-text); }

/* ---------- kaart-hero over de volle breedte, direct onder de header ---------- */
.kb-objecthero { background: var(--kb-bg-soft); }
.kb-objecthero #map { width: 100%; height: clamp(240px, 28vw, 545px); }

/* ---------- basis ---------- */
.kb-object {
    /* afstand van de vensterrand tot de eerste tekstkolom */
    --kb-bleed: max(24px, calc((100vw - var(--kb-container)) / 2 + 24px));
    padding: 26px 0 80px;
    overflow-x: clip;              /* vangt de linker bleed van de titelbalk af */
}
.kb-object__layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px;
    gap: 90px; align-items: start; }
.kb-object [id] { scroll-margin-top: 100px; }

/* ---------- groene titelbalk, loopt links door tot de vensterrand ---------- */
.kb-object__titlebar { background: var(--kb-dark); border-radius: 0 30px 30px 0;
    margin-left: calc(-1 * var(--kb-bleed)); padding: 14px 30px 14px var(--kb-bleed);
    min-height: 77px; display: flex; align-items: center; }
.kb-object__titlebar h1, .kb-object__titlebar .kb-object__title { margin: 0; color: var(--kb-green); font-weight: 500;
    font-size: clamp(19px, 2.1vw, 31px); line-height: 1.18; letter-spacing: 0; }

/* ---------- m2 / prijsregel ---------- */
.kb-object__specs { font-family: var(--kb-display); font-weight: 700; color: var(--kb-text);
    font-size: clamp(16px, 1.35vw, 21px); margin: 34px 0 26px; padding-left: 14px; }
/* beschikbaarheid staat in het design gewoon in de regel, niet als label */
.kb-object__specs .kb-object__avail { color: var(--kb-green-text); white-space: nowrap; }

/* ---------- ankerknoppen (Foto's / Over / Faciliteiten) ---------- */
.kb-object__jump { display: flex; flex-wrap: wrap; gap: 16px 35px; margin: 0 0 44px;
    padding-left: 6px; }
.kb-pill { display: inline-flex; align-items: center; justify-content: center;
    min-width: 152px; height: 41px; padding: 0 22px; border-radius: 999px;
    background: #fff; border: 2px solid var(--kb-green);
    font-family: var(--kb-display); font-weight: 700; font-size: 15px;
    color: var(--kb-dark) !important; transition: background .15s ease; }
.kb-pill:hover { background: var(--kb-green); }

/* ---------- galerij ---------- */
.kb-gallery { margin-bottom: 30px; }
.kb-gallery__thumbs { grid-template-columns: repeat(4, 1fr); gap: 27px; margin-top: 22px; }
.kb-gallery__thumbs button { aspect-ratio: 1.19; border-radius: 10px; }

/* ---------- delen ---------- */
.kb-share { margin: 0 0 40px; }
.kb-share > strong { display: block; font-family: var(--kb-display); font-size: 14px;
    color: var(--kb-text); margin-bottom: 10px; }
.kb-share__row { display: inline-flex; gap: 3px; background: #fff; padding: 5px;
    border-radius: 4px; }
.kb-share__btn { display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 45px; color: #fff !important; transition: opacity .15s ease; }
.kb-share__btn:hover { opacity: .85; }
.kb-share__btn svg { width: 21px; height: 21px; fill: currentColor; }
.kb-share__btn--fb    { background: #3b5998; }
.kb-share__btn--x     { background: #111; }
.kb-share__btn--in    { background: #0a66c2; }
.kb-share__btn--wa    { background: #25d366; }
.kb-share__btn--print { background: #8a8a8a; }

/* ---------- adresblok tussen haarlijnen ---------- */
.kb-object__addressblock { border-top: 1px solid rgba(19, 58, 43, .16);
    border-bottom: 1px solid var(--kb-green); padding: 34px 0 30px; margin-bottom: 36px; }
.kb-object__addressblock h2, .kb-object__address { margin: 0; color: var(--kb-dark); font-weight: 500; line-height: 1.06;
    font-size: clamp(28px, 3.4vw, 56px); }

/* ---------- faciliteiten ---------- */
.kb-object__facilities { margin-bottom: 44px; }
.kb-object__facilities h2 { margin: 0 0 26px; font-weight: 500;
    font-size: clamp(26px, 3.1vw, 48px); }
.kb-facilities { gap: 14px 28px; }
/* eigen icoon per voorziening i.p.v. het standaard vinkje */
.kb-facilities li { font-size: 16px; align-items: center; gap: 12px; }
.kb-facilities li::before { content: none; display: none; }
.kb-facilities__icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 11px;
    background: var(--kb-green-soft); color: var(--kb-dark);
    display: inline-flex; align-items: center; justify-content: center; }
.kb-facilities__icon svg { width: 19px; height: 19px; display: block; }

/* ---------- lopende tekst ---------- */
.kb-object__content h2 { font-size: clamp(22px, 2.4vw, 32px); margin-top: 40px; font-weight: 600; }
.kb-object__content h3 { font-size: clamp(19px, 1.9vw, 24px); margin-top: 28px; }

/* ---------- sidebar CTA ---------- */
.kb-object__aside { position: sticky; top: 100px; }
.kb-cta-card { --pad: 30px; background: var(--kb-dark); color: #fff;
    border-radius: var(--kb-radius); padding: 80px var(--pad) 0; }
.kb-cta-card .kb-btn { margin-bottom: 0; }
.kb-cta-card__main.kb-btn { display: flex; width: calc(100% + 2 * (var(--pad) + 16px));
    margin-left: calc(-1 * (var(--pad) + 16px)); height: 72px; border-radius: 16px;
    font-size: clamp(17px, 1.35vw, 24px); font-weight: 600; padding: 0 18px calc(2 * var(--kb-btn-nudge));
    text-align: center; }
.kb-cta-card__ghost.kb-btn { position: relative; display: flex; width: 78%; margin: 44px auto 0;
    height: 45px; background: transparent; border: 2px solid var(--kb-green); border-radius: 10px;
    color: var(--kb-green) !important; font-weight: 700; font-size: 15px;
    padding: 0 14px calc(2 * var(--kb-btn-nudge)); }
.kb-cta-card__ghost.kb-btn:hover { background: var(--kb-green); color: var(--kb-dark) !important; }
/* het pijltje staat in het design buiten de knoprand */
.kb-cta-card__ghost span { position: absolute; right: -24px; top: 50%; transform: translateY(-50%);
    font-size: 22px; line-height: 1; color: var(--kb-green); }
.kb-cta-card__agent { display: flex; align-items: center; gap: 19px;
    margin: 58px calc(-1 * var(--pad)) 0; padding-left: 5px; }
/* uitgesneden agent uit de designbron (def-4), staat op de onderrand van de kaart */
.kb-cta-card__agent img.kb-cta-card__photo { width: 132px; height: auto; border-radius: 0;
    border-bottom-left-radius: var(--kb-radius); margin-bottom: 0; flex-shrink: 0; }
.kb-cta-card__agent > div { padding: 0; }
.kb-cta-card__agent strong { display: block; font-family: var(--kb-display); font-weight: 700;
    font-size: clamp(17px, 1.2vw, 21px); line-height: 1.25; color: #fff; }
.kb-cta-card__agent span { display: block; font-family: var(--kb-display); font-weight: 700;
    font-size: clamp(17px, 1.2vw, 21px); line-height: 1.25; color: #fff; }


/* ---------- kantoren in de buurt ---------- */
.kb-object__nearby { padding-top: 70px; }
.kb-object__nearby h2 { font-weight: 500; }

/* ---------- fotocarrousel: veegbaar op alle schermen ---------- */
.kb-gallery__swipe-wrap { position: relative; }
.kb-gallery__swipe { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain; touch-action: pan-x pan-y; scrollbar-width: none; border-radius: 14px; }
.kb-gallery__swipe::-webkit-scrollbar { display: none; }
.kb-gallery__swipe:focus-visible { outline: 3px solid var(--kb-green); outline-offset: 3px; }
.kb-gallery__swipe img.kb-gallery__slide { flex: 0 0 100%; width: 100%; height: auto;
    aspect-ratio: 1.54; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always;
    background: var(--kb-bg-soft); display: block; }
.kb-gallery__counter { position: absolute; right: 12px; bottom: 12px; z-index: 2;
    background: rgba(19, 58, 43, .82); color: #fff; font-family: var(--kb-display);
    font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.kb-gallery__counter b { font-weight: 700; }
.kb-gallery__nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--kb-dark);
    font-size: 30px; line-height: 40px; padding: 0 0 4px; cursor: pointer;
    box-shadow: var(--kb-shadow-sm); transition: background .15s; }
.kb-gallery__nav:hover { background: var(--kb-green); }
.kb-gallery__nav--prev { left: 14px; }
.kb-gallery__nav--next { right: 14px; }

/* lege CMS-alinea's laten geen gaten meer vallen */
.kb p:empty { display: none; }

/* ---------- mobiele hero: lichtbundel terug, kop boven de zoekbalk ---------- */
@media (max-width: 960px) {
    .kb-hero { overflow: hidden; }
    /* alleen de lichtbundel is zichtbaar; de lampkop valt boven het scherm weg */
    .kb-hero .kb-hero__lamp { display: block; position: absolute; left: 50%; bottom: 11px;
        transform: translateX(-50%); width: 720px; max-width: none; z-index: 1;
        pointer-events: none; }
    .kb-hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column;
        justify-content: flex-end; min-height: 540px; padding-top: 40px; padding-bottom: 34px; }
    .kb-hero__title { order: 1; margin: 0; }
    .kb-hero__title h1 { font-size: clamp(28px, 8.2vw, 40px); line-height: 1.06; }
    .kb-searchbar { order: 2; margin: 26px 0 0; background: #fff; border-radius: 22px;
        padding: 14px; gap: 12px; box-shadow: 0 14px 30px rgba(19, 58, 43, .16); }
    .kb-searchbar input { background: var(--kb-bg-soft); border: 1.5px solid var(--kb-border);
        border-radius: 999px; padding: 13px 18px; font-size: 16px; }
    .kb-searchbar .kb-btn { justify-content: center; padding: calc(14px - var(--kb-btn-nudge)) 22px calc(14px + var(--kb-btn-nudge)); }
}

/* ---------- mobiel menu ---------- */
@media (max-width: 960px) {
    .kb-nav__menu { padding: 18px 24px 26px; }
    /* de links stonden rechts geklemd door de desktopregel margin-left:auto */
    .kb-nav__links { width: 100%; margin: 0; }
    .kb-nav__links a { display: block; width: 100%; text-align: left; font-size: 15px;
        padding: 14px 2px; }
    .kb-nav__right { width: 100%; align-items: stretch; }
    .kb-nav__search { width: 100%; }
    /* legacy typeahead wikkelt het veld in een span met eigen breedte */
    .kb-nav__search .twitter-typeahead { display: block; width: 100%; }
    .kb-nav__search .twitter-typeahead input,
    .kb-nav__search input { width: 100%; box-sizing: border-box; }
    .kb-nav__phone { justify-content: center; padding: calc(13px - var(--kb-btn-nudge)) 22px calc(13px + var(--kb-btn-nudge));
        border-radius: 999px;
        font-size: 15px; }
    .kb-lang { align-self: flex-start; }
    .kb-lang > summary { padding: 8px 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1160px) {
    .kb-object__layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; }
}

@media (max-width: 1080px) {
    .kb-object__layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 40px; }
    .kb-cta-card { --pad: 22px; padding-top: 54px; }
}

@media (max-width: 960px) {
    .kb-object__layout { grid-template-columns: 1fr; gap: 36px; }
    .kb-object__aside { position: static; max-width: 420px; margin: 0 auto; width: 100%; }
    .kb-object { padding-bottom: 110px; }
    .kb-facilities { grid-template-columns: repeat(2, 1fr); }
    .kb-object__nearby { padding-top: 40px; }
}

/* telefoons: kaart niet als hero maar compact tussen de content (pre-redesign gedrag),
   foto's als veegbare carrousel */
@media (max-width: 767px) {
    #kbMapSlot .kb-objecthero { margin: 30px 0 0; border-radius: var(--kb-radius-sm);
        overflow: hidden; background: var(--kb-bg-soft); }
    #kbMapSlot .kb-objecthero #map { height: 220px; }

    .kb-gallery__thumbs, .kb-gallery__nav { display: none; }
    .kb-gallery__swipe img.kb-gallery__slide { aspect-ratio: 4/3; }
}

@media (max-width: 600px) {
    .kb-object { padding-top: 18px; }
    .kb-objecthero #map { height: 240px; }
    .kb-object__titlebar { border-radius: 0 16px 16px 0; padding: 12px 18px 12px var(--kb-bleed);
        min-height: 0; }
    .kb-object__specs { padding-left: 0; margin: 22px 0 20px; }
    .kb-object__jump { gap: 8px; padding-left: 0; margin-bottom: 28px; flex-wrap: nowrap; }
    .kb-pill { min-width: 0; flex: 1 1 0; padding: 0 6px; font-size: 14px; }
    /* op telefoons past de uitstekende knop niet: binnen de kaart houden */
    .kb-cta-card__main.kb-btn { width: 100%; margin-left: 0; height: 64px; }
    .kb-cta-card__ghost.kb-btn { width: calc(100% - 30px); margin-top: 34px; }
    .kb-cta-card__agent { margin-top: 40px; }
    .kb-gallery__thumbs { grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
    .kb-object__addressblock { padding: 24px 0 20px; margin-bottom: 26px; }
    .kb-facilities { grid-template-columns: 1fr; }
    .kb-cta-card__agent img.kb-cta-card__photo { width: 112px; }
}

/* ==========================================================================
   FAVORIETEN (juli 2026)
   Teller in de header, favorietenpagina, lege staat en de undo-balk.
   Staat achteraan zodat deze regels van de eerdere media queries winnen.
   ========================================================================== */

/* [hidden] moet ook winnen van display:grid/flex verderop in dit bestand */
.kb [hidden] { display: none !important; }

/* ---------- teller in de header ---------- */
.kb-nav__logo { order: 1; }
.kb-nav__menu { order: 2; }
.kb-nav__fav {
    order: 3; position: relative; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 999px;
    transition: background .15s ease;
}
.kb-nav__fav:hover { background: #eef2ef; }
.kb-nav__fav svg {
    width: 23px; height: 23px; fill: none;
    stroke: var(--kb-dark); stroke-width: 1.7; stroke-linejoin: round;
    transition: fill .15s ease, transform .15s ease;
}
.kb-nav__fav:not(.is-empty) svg { fill: #ffd233; }
.kb-nav__fav:hover svg { transform: scale(1.08); }
.kb-nav__fav-count {
    position: absolute; top: 1px; right: 0;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--kb-dark); color: #fff;
    font-family: var(--kb-display); font-size: 11px; font-weight: 700;
    line-height: 18px; text-align: center; pointer-events: none;
}
.kb-nav__fav.is-empty .kb-nav__fav-count { display: none; }

/* ---------- favorietenpagina ---------- */
.kb-favorites .kb-section__head { align-items: baseline; }
.kb-favorites__count { font-family: var(--kb-display); font-size: 15px; font-weight: 600;
    color: var(--kb-ink); white-space: nowrap; }
/* kaart faded weg voordat hij uit de DOM verdwijnt */
.kb-favorites .kb-listing { transition: opacity .18s ease, transform .18s ease; }
.kb-favorites .kb-listing.is-removing { opacity: 0; transform: scale(.97); }

.kb-favorites__empty { text-align: center; max-width: 480px; margin: 20px auto 40px; }
.kb-favorites__empty svg { width: 64px; height: 64px; fill: none; stroke: var(--kb-dark);
    stroke-width: 1.2; stroke-linejoin: round; opacity: .35; margin-bottom: 18px; }
.kb-favorites__empty h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 10px; }
.kb-favorites__empty p { color: var(--kb-ink); margin: 0 0 26px; }

/* ---------- toast onderaan (bewaard / verwijderd + actie) ---------- */
.kb-toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 980;
    transform: translate(-50%, 16px);
    display: flex; align-items: center; gap: 18px;
    background: var(--kb-dark); color: #fff; border-radius: 999px;
    padding: 12px 14px 12px 22px; box-shadow: 0 8px 26px rgba(0, 0, 0, .25);
    font-family: var(--kb-display); font-size: 14px;
    opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
    max-width: calc(100vw - 32px);
}
.kb-toast.is-open { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.kb-toast button {
    border: 0; cursor: pointer; background: var(--kb-green); color: var(--kb-dark);
    border-radius: 999px; padding: 8px 18px; white-space: nowrap;
    font-family: var(--kb-display); font-size: 14px; font-weight: 700;
}
.kb-toast button:hover { background: var(--kb-green-bright); }

@media (prefers-reduced-motion: reduce) {
    .kb-favorites .kb-listing, .kb-toast, .kb-nav__fav svg { transition: none; }
}

@media (max-width: 960px) {
    /* hartje links van de hamburger, buiten het uitklapmenu */
    .kb-nav__fav { order: 2; margin-left: auto; }
    .kb-nav__toggle { order: 3; margin-left: 0; }
}

@media (max-width: 767px) {
    .kb-favorites .kb-section__head { flex-direction: column; align-items: flex-start; gap: 4px; }
    .kb-toast { left: 16px; right: 16px; bottom: 16px; transform: translate(0, 16px);
        justify-content: space-between; }
    .kb-toast.is-open { transform: translate(0, 0); }
}

/* ---------- bewaarknop in de titelbalk van de objectpagina ---------- */
/* hergebruikt de .kb-fav-hook, maar is hier geen los icoon op een foto */
.kb-object__save { position: static; width: auto; height: auto; margin-left: auto;
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px;
    padding: 9px 16px 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12);
    color: #fff; font-family: var(--kb-display); font-size: 14px; font-weight: 600;
    transition: background .15s ease; }
.kb-object__save:hover { background: rgba(255, 255, 255, .2); }
.kb-object__save svg { width: 20px; height: 20px; fill: none; stroke: #fff;
    stroke-width: 1.7; stroke-linejoin: round; filter: none; }
.kb-object__save:hover svg { transform: none; }
.kb-object__save.is-fav svg { fill: #ffd233; stroke: #ffd233; }
.kb-fav__text { white-space: nowrap; }

/* ---------- melding: bewaard pand bestaat niet meer ---------- */
.kb-favorites__notice { background: #fff6d9; border: 1px solid #f0dfa6; border-radius: 14px;
    padding: 12px 18px; margin: 0 0 26px; font-size: 15px; color: var(--kb-ink); }

@media (max-width: 767px) {
    /* in de smalle titelbalk past alleen het hartje nog */
    .kb-object__save { padding: 8px; gap: 0; }
    .kb-object__save .kb-fav__text { display: none; }
}


/* ---------------------------------------------------------------------------
   Inklapbare plaatsomschrijving (#introDesc)
   Inkorten gebeurt met CSS, niet met JS: een JS-truncator (readmore.js) haalde
   de tekst uit de gerenderde DOM en daarmee uit de zoekindex. Alle tekst staat
   dus altijd in de HTML; het inklappen is puur visueel.
--------------------------------------------------------------------------- */
.intro-collapse--collapsed {
    max-height: 7.5em;
    overflow: hidden;
    /* Mask i.p.v. een gradient-overlay: werkt op elke achtergrondkleur. */
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}

.intro-collapse.is-expanded {
    max-height: none;
    overflow: visible;
    -webkit-mask-image: none;
            mask-image: none;
}

.intro-collapse__toggle {
    display: inline-block;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.intro-collapse__toggle[hidden] {
    display: none;
}

.kb .object-item__title {
    margin: 0;
    font: inherit;
    color: inherit;
    line-height: inherit;
}


.kb-object__content h1 { font-size: clamp(24px, 2.6vw, 34px); margin-top: 40px; font-weight: 600; }

/* iOS zoomt in op velden met een lettergrootte onder 16px */
@media (max-width: 960px) {
    .kb .form-control, .kb-input, .kb-nav__search input { font-size: 16px; }
}

/* Wijkenblok op stadspagina's (Provincie › Stad › Wijk) */
.kb-areas { margin: 0 0 1.6em; }
.kb-areas ul { list-style: none; margin: 0; padding: 0; }
.kb-areas li { display: inline; }
.kb-areas li + li::before { content: "- "; }
.kb-areas li a { color: var(--kb-green-text); text-decoration: none; }
.kb-areas li a:hover { text-decoration: underline; }

/* ---------- designfeedback oktober 2026 ---------- */
html:has(> body.kb), body.kb { overflow-x: clip; }

.kb-overview h2, .kb-placetext h2 { font-size: clamp(22px, 2.4vw, 30px); }

.kb-filters { gap: 8px clamp(20px, 4vw, 64px); margin: 0 0 22px; }
.kb-filter > summary { padding: 6px 0; border: 0; border-radius: 0; background: none;
    font-weight: 600; }
.kb-filter > summary:hover, .kb-filter[open] > summary,
.kb-filter--active > summary { background: none; color: var(--kb-green-text); }
@media (max-width: 960px) {
    #filterItems.is-mobile-open .kb-filters { gap: 0; }
    #filterItems.is-mobile-open .kb-filter > summary { padding: 12px 0;
        border-bottom: 1px solid var(--kb-border); }
}

@media (min-width: 961px) {
    .kb-overview:not(.kb-overview--fullwidth) { grid-template-columns: minmax(0, 11fr) minmax(0, 7fr); }
    .kb-overview__list { padding-left: clamp(24px, 5.5vw, 80px); }
    .kb-overview__map { background: transparent; }
    .kb-overview__mapbox { top: 104px; height: calc(100vh - 128px); margin: 24px 24px 24px 0;
        border-radius: 24px; overflow: hidden; background: var(--kb-bg-soft); }
}

.kb-searchcta { padding: 0 24px 72px; }
.kb-searchcta__inner { max-width: 1212px; margin: 0 auto; background: var(--kb-dark);
    border-radius: var(--kb-radius); padding: clamp(30px, 3.6vw, 44px) clamp(26px, 4.5vw, 56px);
    display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px; align-items: center; }
.kb p.kb-searchcta__title { margin: 0; max-width: 14ch; color: var(--kb-green);
    font-family: var(--kb-display); font-variation-settings: "wght" 500; font-weight: 500;
    font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; }
.kb p.kb-searchcta__text { margin: 0 0 22px; max-width: 24ch; color: #fff;
    font-family: var(--kb-display); font-variation-settings: "wght" 500; font-weight: 500;
    font-size: clamp(19px, 2vw, 28px); line-height: 1.2; }
.kb-searchcta .kb-btn { color: #fff !important; font-weight: 500; font-size: clamp(17px, 1.6vw, 22px);
    padding-left: 56px; padding-right: 56px; }
.kb-searchcta .kb-btn:hover { color: var(--kb-dark) !important; }
@media (max-width: 767px) {
    .kb-searchcta { padding: 0 16px 48px; }
    .kb-searchcta__inner { grid-template-columns: 1fr; }
    .kb-searchcta .kb-btn { width: 100%; padding-left: 20px; padding-right: 20px; }
}

.kb-placetext { padding: 56px 0 64px; }
.kb-placetext h2, .kb-placetext h3 { margin: 1.4em 0 .4em; }
.kb-placetext h3 { font-size: clamp(18px, 1.8vw, 22px); }
.kb-placetext #introDesc > :first-child { margin-top: 0; }
.kb-placetext ul:not([class]) { padding-left: 1.2em; }
.kb-placetext p a, .kb-placetext ul:not([class]) a { color: var(--kb-green-text); text-decoration: underline; }
.kb-placetext .kb-areas ul { padding: 0; }
.kb-placetext .kb-areas ul a { text-decoration: none; }
.kb-placetext .kb-areas ul a:hover { text-decoration: underline; }

.kb-footer.kb-contactband { padding: 0; }

/* ---------- meer kantoren laden ---------- */
.kb-more { display: flex; flex-direction: column; align-items: center; gap: 14px;
    margin: 36px 0 12px; text-align: center; }
.kb-more__count { margin: 0; color: var(--kb-dark); opacity: .75; font-size: 15px; }
.kb-more__btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.kb-more__first { font-size: 15px; color: var(--kb-dark); text-decoration: underline; }

/* ---------- favorieten: één informatieaanvraag ---------- */
.kb-favorites__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.kb-favorites__actions[hidden], .kb-favreq[hidden] { display: none; }
.kb-favreq { margin: 56px 0 20px; padding: 40px; border-radius: 30px; background: var(--kb-green-soft); }
.kb-favreq h2 { margin: 0 0 8px; font-size: clamp(24px, 2.6vw, 34px); }
.kb-favreq__intro { margin: 0 0 26px; max-width: 640px; }
.kb-favreq__selection { border: 0; padding: 0; margin: 0 0 26px; }
.kb-favreq__selection legend { font-family: var(--kb-display); font-weight: 700; margin-bottom: 12px; }
.kb-favreq__selection ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.kb-favreq__item label { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 12px;
    background: #fff; border-radius: 14px; cursor: pointer; font-weight: 500; }
.kb-favreq__item input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--kb-dark); }
.kb-favreq__item img { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.kb-favreq__item input:not(:checked) ~ span, .kb-favreq__item input:not(:checked) ~ img { opacity: .45; }
.kb-favreq__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.kb-favreq__form button[disabled] { opacity: .5; cursor: not-allowed; }
.kb-favreq-sent { margin: 0 0 28px; padding: 20px 24px; border-radius: 18px; background: var(--kb-green-soft); }

.kb-seldlg { width: min(780px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0;
    border: 0; border-radius: 22px; color: var(--kb-dark); overflow: hidden;
    box-shadow: 0 24px 60px rgba(19, 58, 43, .28); }
.kb-seldlg[open] { display: flex; flex-direction: column; }
.kb-seldlg::backdrop { background: rgba(19, 58, 43, .45); }
.kb-seldlg__head { display: flex; align-items: center; justify-content: space-between;
    padding: 16px 22px; border-bottom: 1px solid rgba(19, 58, 43, .12); }
.kb-seldlg__head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; }
.kb-seldlg__head h2 svg { width: 20px; height: 20px; fill: var(--kb-dark); }
.kb-seldlg__close { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: inherit; }
.kb-seldlg__body { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 0; flex: 1; }
.kb-seldlg__list { list-style: none; margin: 0; padding: 0; overflow-y: auto;
    border-right: 1px solid rgba(19, 58, 43, .12); }
.kb-seldlg__list li { display: flex; align-items: center; border-bottom: 1px solid rgba(19, 58, 43, .1); }
.kb-seldlg__list li:has([aria-pressed="true"]) { background: var(--kb-dark); color: #fff; }
.kb-seldlg__pick { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    text-align: left; padding: 14px 18px; border: 0; background: none; cursor: pointer; color: inherit; font: inherit; }
.kb-seldlg__pick strong { font-size: 17px; font-weight: 600; }
.kb-seldlg__pick span { font-size: 14px; opacity: .75; }
.kb-seldlg__remove { border: 0; background: none; width: 40px; height: 40px; margin-right: 8px;
    border-radius: 50%; cursor: pointer; color: inherit; flex-shrink: 0; opacity: .6; }
.kb-seldlg__remove svg { width: 18px; height: 18px; fill: currentColor; }
.kb-seldlg__remove:hover { opacity: 1; background: rgba(127, 127, 127, .18); }
.kb-seldlg__detail { padding: 20px 22px; overflow-y: auto; }
.kb-seldlg__media { position: relative; margin-bottom: 16px; }
.kb-seldlg__media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.kb-seldlg__price { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 8px;
    background: var(--kb-green); color: var(--kb-dark); font-size: 14px; font-weight: 700; }
.kb-seldlg__detail h3 { margin: 0; font-size: 22px; }
.kb-seldlg__detail h3 a { color: inherit; text-decoration: none; }
.kb-seldlg__place { margin: 2px 0 8px; opacity: .75; }
.kb-seldlg__meta { margin: 0 0 12px; font-weight: 600; }
.kb-seldlg__features { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kb-seldlg__features li { padding: 4px 10px; border: 1px solid rgba(19, 58, 43, .2); border-radius: 999px; font-size: 13px; }
.kb-seldlg__features li::before { content: none; display: none; }
.kb-seldlg__link { color: var(--kb-dark); text-decoration: underline; font-size: 15px; }
.kb-seldlg__foot { display: flex; justify-content: flex-end; padding: 14px 22px;
    border-top: 1px solid rgba(19, 58, 43, .12); }

@media (max-width: 767px) {
    .kb-favreq { padding: 26px 18px; border-radius: 20px; }
    .kb-favreq__fields { grid-template-columns: 1fr; }
    .kb-seldlg { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
    .kb-seldlg__body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
    .kb-seldlg__list { border-right: 0; border-bottom: 1px solid rgba(19, 58, 43, .12); max-height: 34vh; }
    .kb-seldlg__detail { overflow: visible; }
    .kb-seldlg__foot .kb-btn { width: 100%; }
}

/* ==========================================================================
   PUNTEN LIVE GAAN (21 okt 2026)
   ========================================================================== */

.kb-object__unavailable { background: var(--kb-dark); color: #fff; border-radius: var(--kb-radius-sm);
    padding: 20px 24px; margin-bottom: 24px; }
.kb-object__unavailable-title { display: inline-block; font-family: var(--kb-display); font-weight: 700;
    font-size: 15px; background: var(--kb-green); color: var(--kb-dark); border-radius: 8px;
    padding: 4px 12px; margin-bottom: 12px; }
.kb-object__unavailable p { margin: 0; font-size: 17px; line-height: 1.5; }
.kb .kb-object__unavailable a { color: var(--kb-green); text-decoration: underline; }
.kb-object__nearby-all { display: flex; justify-content: center; margin: 32px 0 0; }

.kb-cta-card__agent { padding-left: 0; }

body.kb-owner-area { padding-top: 0; }

@media (max-width: 767px) {
    .kb-share { display: none; }
    .kb-viewswitch { background: var(--kb-page-bg); margin-left: calc(-1 * clamp(16px, 3vw, 40px));
        margin-right: calc(-1 * clamp(16px, 3vw, 40px)); padding-left: clamp(16px, 3vw, 40px);
        padding-right: clamp(16px, 3vw, 40px); }
    .kb-object__nearby-all .kb-btn { width: 100%; justify-content: center; }
}
