/* ==========================================================================
Zah.nl — gebouwd op het Treehouse/Huurwoningen design system
(colors_and_type.css tokens + site-specifieke componenten)
========================================================================== */

:root {
    /* Yellow — "Sunshine" */
    --hw-yellow-900: #584006;
    --hw-yellow-800: #8b6b1d;
    --hw-yellow-700: #d4a531;
    --hw-yellow-600: #f5b11a;
    --hw-yellow-500: #ffbf22;
    --hw-yellow-400: #ffc63b;
    --hw-yellow-300: #ffd56e;
    --hw-yellow-200: #ffe29d;
    --hw-yellow-100: #ffedcb;
    --hw-yellow-50: #fff6e2;

    /* Blue — "Key" */
    --hw-blue-900: #114866;
    --hw-blue-800: #176088;
    --hw-blue-700: #097aa2;
    --hw-blue-600: #098ebd;
    --hw-blue-500: #0c9dd0;
    --hw-blue-400: #55bbdf;
    --hw-blue-300: #85cee7;
    --hw-blue-200: #cee9f4;
    --hw-blue-100: #dbf0f8;
    --hw-blue-50: #ebf6fa;

    /* Green — "Grass" */
    --hw-green-800: #366d47;
    --hw-green-700: #408254;
    --hw-green-600: #3db864;
    --hw-green-500: #64cb85;
    --hw-green-300: #d7f1df;

    /* Red — "Post" */
    --hw-red-600: #6d1204;
    --hw-red-500: #ca4732;
    --hw-red-300: #f99680;

    /* Neutrals */
    --hw-offwhite: #f9fcfe;
    --grey-10: #111;
    --grey-20: #333;
    --grey-30: #767676;
    --grey-40: #bbb;
    --grey-50: #e5e5e5;
    --grey-60: #f5f5f5;
    --hw-bg: var(--hw-blue-50);
    --hw-cards: var(--hw-offwhite);
    --hw-fg-1: var(--grey-10);
    --hw-fg-2: var(--grey-20);
    --hw-fg-3: var(--grey-30);
    --hw-brand: var(--hw-blue-700);
    --hw-brand-hover: var(--hw-blue-800);
    --hw-border: var(--grey-50);
    --hw-font-family:
        "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
    --hw-text-label: 14px;
    --hw-radius-xs: 3px;
    --hw-radius-sm: 7px;
    --hw-radius-md: 13px;
    --hw-radius-lg: 17px;
    --hw-radius-pill: 999px;
    --hw-shadow-button: 0 3px 0 0 rgb(17 17 17 / 8%);
    --hw-shadow-soft:
        0 12px 16px -4px rgb(17 72 102 / 8%), 0 4px 6px -2px rgb(17 72 102 / 3%);
    --hw-shadow-inner: inset 0 2px 12px rgb(17 17 17 / 15%);
    --hw-shadow-focus-yellow: 0 0 0 3px rgb(255 198 59 / 45%);
    --hw-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --hw-dur-fast: 120ms;
    --hw-dur-base: 200ms;
    --hw-container: 1200px;
    --hw-header-h: 72px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--hw-font-family);
    font-size: 16px;
    line-height: 1.5;
    color: var(--hw-fg-1);
    background: var(--hw-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

a {
    color: var(--hw-brand);
}

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

.section {
    padding: 48px 24px;
}

/* Typography helpers */
.hw-h2 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.hw-h3 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
}

.hw-h4 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
}

.hw-p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--hw-fg-1);
}

.hw-lead {
    font-size: 18px;
    line-height: 1.65;
    color: var(--hw-fg-2);
}

.hw-support {
    font-size: 16px;
    color: var(--hw-fg-2);
}

.hw-link {
    color: var(--hw-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--hw-yellow-400);
}

.hw-link:hover {
    color: var(--hw-brand-hover);
    text-decoration-color: var(--hw-yellow-500);
}

/* Buttons (design system: radius 3px, shadow at rest, inner on press) */
.hw-btn {
    font-family: var(--hw-font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    border-radius: var(--hw-radius-xs);
    padding: 12px 22px;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--hw-shadow-button);
    transition:
        background-color var(--hw-dur-base) var(--hw-ease-out),
        box-shadow var(--hw-dur-fast) var(--hw-ease-out);
}

.hw-btn:active {
    box-shadow: var(--hw-shadow-inner);
}

.hw-btn:focus-visible {
    outline: none;
    box-shadow: var(--hw-shadow-button), var(--hw-shadow-focus-yellow);
}

.hw-btn-primary {
    background: var(--hw-yellow-400);
    color: var(--grey-10);
}

.hw-btn-primary:hover {
    background: var(--hw-yellow-500);
}

.hw-btn-secondary {
    background: var(--hw-offwhite);
    color: var(--hw-blue-700);
    border: 1px solid var(--hw-blue-500);
    padding: 13px 23px;
}

.hw-btn-secondary:hover {
    background: var(--hw-blue-50);
}

.hw-btn-icon {
    display: inline-flex;
    width: 1.15em;
    height: 1.15em;
}

.hw-btn-icon > svg {
    width: 100%;
    height: 100%;
}

/* Badges */
.hw-badge {
    font-weight: 600;
    font-size: var(--hw-text-label);
    line-height: 18px;
    border-radius: var(--hw-radius-sm);
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hw-badge-yellow {
    background: var(--hw-yellow-400);
    color: var(--hw-yellow-900);
}

.hw-badge-blue {
    background: var(--hw-blue-200);
    color: var(--hw-blue-900);
}

.hw-badge-green {
    background: var(--hw-green-300);
    color: var(--hw-green-800);
}

/* Chips */
.hw-chip {
    font-weight: 600;
    font-size: var(--hw-text-label);
    line-height: 18px;
    color: var(--grey-20);
    background: var(--hw-yellow-100);
    border: 1px solid var(--hw-yellow-200, #ffe29d);
    border-radius: var(--hw-radius-pill);
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background-color var(--hw-dur-base) var(--hw-ease-out);
}

.hw-chip-interactive {
    cursor: pointer;
    box-shadow: var(--hw-shadow-button);
}

.hw-chip-interactive:hover {
    background: var(--hw-yellow-200);
}

.hw-chip-remove {
    font-size: 16px;
    font-weight: 700;
    color: var(--grey-30);
    margin-left: 2px;
    text-decoration: none;
}

.chip-count {
    color: var(--grey-30);
    font-weight: 400;
}

/* ---------------- Header ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(249 252 254 / 92%);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--hw-border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--hw-header-h);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-mark {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    color: var(--hw-blue-900);
    letter-spacing: -0.02em;
}

.logo-text .logo-dot {
    color: var(--hw-blue-700);
    font-weight: 700;
}

.logo-text-white {
    color: #fff;
}

.main-nav {
    margin-left: auto;
    display: flex;
    gap: 24px;
}

.main-nav a {
    color: var(--hw-fg-1);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.main-nav a:hover {
    color: var(--hw-brand);
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    background: var(--hw-yellow-50);
    padding: 72px 0 88px;
}

/* Decoratieve laag knipt de cirkels; de hero zelf knipt niets meer,
    zodat de autocomplete-dropdown eroverheen kan vallen. */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
}

.hero-circle-yellow {
    right: -120px;
    top: -120px;
    width: 460px;
    height: 460px;
    background: var(--hw-yellow-400);
    opacity: 0.9;
}

.hero-circle-blue {
    right: 40px;
    top: 60px;
    width: 220px;
    height: 220px;
    background: var(--hw-blue-700);
    opacity: 0.12;
}

.hero-inner {
    position: relative;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 20px;
    max-width: 720px;
}

.hero-title .hl {
    background: linear-gradient(
        180deg,
        transparent 65%,
        var(--hw-yellow-400) 65%
    );
    padding: 0 4px;
}

.hero-lead {
    font-size: 18px;
    line-height: 1.65;
    color: var(--hw-fg-2);
    max-width: 560px;
    margin: 0 0 36px;
}

.searchbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--hw-offwhite);
    border-radius: var(--hw-radius-lg);
    padding: 10px;
    box-shadow: var(--hw-shadow-soft);
    max-width: 880px;
}

.searchbar-toggle {
    display: flex;
    gap: 4px;
    background: var(--hw-blue-100);
    border-radius: var(--hw-radius-pill);
    padding: 4px;
}

.toggle-option {
    padding: 8px 16px;
    border-radius: var(--hw-radius-pill);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

.toggle-option:has(input:checked) {
    background: var(--hw-blue-700);
    color: #fff;
}

.toggle-option input {
    position: absolute;
    opacity: 0;
}

.searchbar-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    flex: 1;
    min-width: 200px;
}

.searchbar-field input {
    border: none;
    outline: none;
    flex: 1;
    font: inherit;
    font-weight: 500;
    background: transparent;
    color: var(--hw-fg-1);
}

.searchbar-select {
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    color: var(--hw-fg-2);
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius-sm);
    padding: 10px 12px;
    background: var(--hw-offwhite);
}

.hero-popular {
    display: flex;
    gap: 18px;
    margin-top: 28px;
    flex-wrap: wrap;
    color: var(--hw-fg-2);
}

.hero-popular a {
    color: var(--hw-brand);
    text-decoration: none;
    font-weight: 600;
}

.hero-popular a:hover {
    text-decoration: underline;
    text-decoration-color: var(--hw-yellow-400);
    text-decoration-thickness: 2px;
}

/* ---------------- Cards ---------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.linkchips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.listing-card {
    background: var(--hw-cards);
    border-radius: var(--hw-radius-lg);
    overflow: hidden;
    box-shadow: var(--hw-shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform var(--hw-dur-base) var(--hw-ease-out);
}

.listing-card:hover {
    transform: translateY(-3px);
}

.listing-img-link {
    position: relative;
    display: block;

    /* Eén vast formaat voor álle kaartfoto's (koop + huur, home + SERP);
        flex-shrink:0 voorkomt dat de foto meerekt bij langere kaart-bodies. */
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--hw-blue-100);
    overflow: hidden;
}

/* Fallback voor engines die aspect-ratio op een flex-item negeren (o.a. oudere
    Safari): leg de 16/10-verhouding vast via padding zodat de box-hoogte niet
    afhangt van de intrinsieke fotohoogte. */
@supports not (aspect-ratio: 16 / 10) {
    .listing-img-link {
        height: 0;
        padding-bottom: 62.5%;
    }
}

/* Foto/placeholder absoluut binnen de box: hun intrinsieke hoogte mag de
    box-hoogte niet bepalen. Zonder dit rekt een portretfoto in Safari de hele
    kaart op (aspect-ratio wordt daar op flex-items genegeerd). */
.listing-img-link img,
.listing-img-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}

.listing-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.listing-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--hw-blue-900);
}

.listing-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.listing-title a {
    color: var(--hw-fg-1);
    text-decoration: none;
}

.listing-title a:hover {
    color: var(--hw-brand);
}

.listing-address {
    font-size: 14px;
    color: var(--hw-fg-2);
}

.listing-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid var(--hw-border);
    font-size: 14px;
    color: var(--hw-fg-2);
}

.listing-specs strong {
    color: var(--hw-fg-1);
}

/* ---------------- SERP ---------------- */
.serp-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 64px;
}

.serp-h1 {
    font-size: 30px;
    margin-bottom: 20px;
}

.sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-links a {
    color: var(--hw-brand);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.sidebar-links a:hover {
    text-decoration: underline;
    text-decoration-color: var(--hw-yellow-400);
    text-decoration-thickness: 2px;
}

.sidebar-links .count {
    color: var(--grey-30);
    font-size: 13px;
}

.sidebar-links li.active {
    font-weight: 800;
    color: var(--hw-blue-900);
    font-size: 14px;
}

.sidebar-links a.remove {
    color: var(--hw-red-500);
    font-size: 13px;
}

.price-selects {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-selects select {
    font: inherit;
    font-size: 14px;
    padding: 8px 10px;
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius-sm);
    background: var(--hw-offwhite);
}

.serp-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--hw-fg-2);
    font-size: 14px;
}

.serp-sort a {
    color: var(--hw-brand);
    text-decoration: none;
    font-weight: 600;
}

.serp-sort a.active {
    color: var(--hw-blue-900);
    font-weight: 800;
}

.serp-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.pagination {
    display: flex;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.pagination .page {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: var(--hw-radius-sm);
    background: var(--hw-cards);
    box-shadow: var(--hw-shadow-button);
    text-decoration: none;
    font-weight: 700;
    color: var(--hw-brand);
}

.pagination .page.current {
    background: var(--hw-blue-700);
    color: #fff;
}

.pagination .page:hover:not(.current) {
    background: var(--hw-blue-50);
}

.no-results {
    background: var(--hw-cards);
    border-radius: var(--hw-radius-md);
    box-shadow: var(--hw-shadow-soft);
    padding: 32px;
}

.seo-text {
    margin-top: 40px;
    background: var(--hw-cards);
    border-radius: var(--hw-radius-md);
    box-shadow: var(--hw-shadow-soft);
    padding: 28px 32px;
    max-width: 720px;
}

.static-page {
    max-width: 720px;
}

.links-list {
    line-height: 2;
}

/* ---------------- Footer ---------------- */
.site-footer {
    background: var(--hw-blue-900);
    color: #fff;
    padding: 56px 0 28px;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.75;
    max-width: 320px;
}

.footer-title {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 14px;
    color: var(--hw-yellow-400);
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer a {
    color: #fff;
    opacity: 0.85;
    text-decoration: none;
    font-size: 14px;
}

.site-footer a:hover {
    opacity: 1;
    text-decoration: underline;
    text-decoration-color: var(--hw-yellow-400);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgb(255 255 255 / 12%);
    font-size: 13px;
    opacity: 0.65;
}

/* Drawer-toggle (checkbox, geen JS) */
.filter-toggle-cb {
    display: none;
}

/* ---------------- Responsive ---------------- */
@media (width <=900px) {
    .two-col {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-title {
        font-size: 42px;
    }

    .main-nav {
        gap: 14px;
    }

    .header-inner {
        gap: 14px;
    }
}

/* ---------------- Header-zoekbalk + autocomplete ---------------- */
.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 420px;
    margin-left: 16px;
}

.header-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    background: var(--hw-offwhite);
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius-sm);
    padding: 8px 12px;
}

.header-search-field:focus-within {
    border-color: var(--hw-blue-500);
    box-shadow: var(--hw-shadow-focus, 0 0 0 3px rgb(9 122 162 / 25%));
}

.header-search-field input {
    border: none;
    outline: none;
    flex: 1;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    background: transparent;
    color: var(--hw-fg-1);
    min-width: 0;
}

.header-search-btn {
    padding: 9px 12px;
}

.ac-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 100;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--hw-cards);
    border-radius: var(--hw-radius-md);
    box-shadow: var(--hw-shadow-soft);
    border: 1px solid var(--hw-border);
    max-height: 324px;
    overflow-y: auto;
}

.ac-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--hw-radius-sm);
    cursor: pointer;
    font-size: 15px;
}

.ac-item:hover,
.ac-item.ac-active {
    background: var(--hw-blue-50);
}

.ac-name {
    font-weight: 700;
    color: var(--hw-fg-1);
}

.ac-meta {
    font-size: 13px;
    color: var(--hw-fg-3);
    white-space: nowrap;
}

@media (width <= 700px) {
    .header-search {
        margin-left: 8px;
        max-width: none;
    }

    .header-search-btn {
        display: none;
    }
}

/* ---------------- Laatste zoekopdracht ---------------- */
.last-search {
    margin: 20px 0 0;
    font-size: 15px;
    color: var(--hw-fg-2);
}

.last-search-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
    color: var(--hw-brand);
    font-weight: 600;
    text-decoration: none;
}

.last-search-link:hover {
    text-decoration: underline;
    text-decoration-color: var(--hw-yellow-400);
    text-decoration-thickness: 2px;
}

/* ---------------- Filterbalk (huur, cf. huurwoningen.nl) ---------------- */
.filterbar {
    grid-column: 1 / -1;
    order: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--hw-cards);
    border-radius: var(--hw-radius-md);
    box-shadow: var(--hw-shadow-soft);
    padding: 12px 16px;
    margin-bottom: 20px;
}

.filterbar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    background: var(--hw-yellow-400);
    color: var(--grey-10);
    border-radius: var(--hw-radius-xs);
    padding: 10px 18px;
    cursor: pointer;
    box-shadow: var(--hw-shadow-button);
}

.filterbar-toggle:hover {
    background: var(--hw-yellow-500);
}

.filterbar-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: var(--hw-radius-pill);
    background: var(--hw-yellow-600);
    color: var(--grey-10);
    font-size: 13px;
    font-weight: 800;
}

.filterbar-dropdown {
    position: relative;
}

.filterbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    color: var(--hw-fg-1);
    background: var(--hw-offwhite);
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius-sm);
    padding: 10px 14px;
    cursor: pointer;
}

.filterbar-btn:hover,
.filterbar-btn.open {
    border-color: var(--hw-blue-500);
    color: var(--hw-brand);
}

.filterbar-btn.open svg {
    transform: rotate(180deg);
}

.filterbar-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 90;
    min-width: 220px;
    background: var(--hw-cards);
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius-md);
    box-shadow: var(--hw-shadow-soft);
    padding: 14px 16px;
}

.filterbar-panel-title {
    font-weight: 800;
    font-size: 14px;
    color: var(--hw-blue-900);
    margin-bottom: 8px;
}

/* ---------------- Filter-drawer (huur, cf. huurwoningen.nl) ---------------- */
.filter-drawer {
    display: none;
}

.filter-toggle-cb:checked ~ .filter-drawer {
    display: block;
}

.filter-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--hw-overlay, rgb(17 72 102 / 50%));
    cursor: pointer;
}

.filter-drawer-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 210;
    width: min(420px, 92vw);
    display: flex;
    flex-direction: column;
    background: var(--hw-cards);
    box-shadow: var(--hw-shadow-soft);
}

.filter-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--hw-border);
}

.filter-drawer-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--hw-fg-1);
}

.filter-drawer-close {
    display: inline-flex;
    padding: 6px;
    cursor: pointer;
    color: var(--hw-fg-1);
    border-radius: var(--hw-radius-sm);
}

.filter-drawer-close:hover {
    background: var(--hw-blue-50);
}

.filter-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 22px;
}

.drawer-section {
    border-bottom: 1px solid var(--hw-border);
}

.drawer-section summary {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    font-size: 17px;
    font-weight: 800;
    color: var(--hw-fg-1);
    padding: 16px 0;
    cursor: pointer;
}

.drawer-section summary::-webkit-details-marker {
    display: none;
}

.drawer-section summary::after {
    content: "";
    margin-left: auto;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--hw-fg-1);
    border-bottom: 2px solid var(--hw-fg-1);
    transform: rotate(45deg);
    transition: transform var(--hw-dur-base) var(--hw-ease-out);
}

.drawer-section[open] summary::after {
    transform: rotate(225deg);
}

.drawer-section-body {
    padding: 0 0 16px;
}

.drawer-section .sidebar-links {
    gap: 10px;
}

.drawer-section .sidebar-links a {
    font-size: 15px;
}

.price-selects-row {
    flex-direction: row;
}

.price-selects-row select {
    flex: 1;
    min-width: 0;
}

.filter-drawer-foot {
    padding: 14px 22px;
    border-top: 1px solid var(--hw-border);
}

.filter-drawer-show {
    width: 100%;
    text-align: center;
}

/* ── Long-tail linkarchitectuur (linking v2) ─────────────────────────── */
.breadcrumb {
    font-size: 13px;
    color: var(--hw-fg-3);
    margin-bottom: 12px;
    line-height: 1.7;
}

.breadcrumb a {
    color: var(--hw-blue-700);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .crumb-current {
    color: var(--hw-fg-2);
    font-weight: 600;
}

.breadcrumb .crumb-sep {
    color: var(--hw-fg-3);
    margin: 0 6px;
}

.serp-hub,
.serp-links {
    margin-top: 32px;
    background: var(--hw-cards);
    border-radius: var(--hw-radius-md);
    box-shadow: var(--hw-shadow-soft);
    padding: 24px 28px;
    max-width: 960px;
}

.serp-hub > h2,
.serp-links > h2 {
    margin: 0;
}

.serp-linkgroup {
    margin-top: 20px;
}

.serp-linkgroup h3 {
    margin: 0;
    color: var(--hw-fg-2);
}

/* "Toon alles"-toggle: chip die bij openen de rest onder zich toont. */
.linkchips-more {
    align-self: flex-start;
}

.linkchips-more > summary {
    list-style: none;
    cursor: pointer;
    background: var(--hw-blue-50);
    border-color: var(--hw-blue-200, #cee9f4);
    color: var(--hw-blue-800);
}

.linkchips-more > summary::-webkit-details-marker {
    display: none;
}

.linkchips-more[open] {
    flex: 1 1 100%;
}

.linkchips-more[open] > summary {
    margin-bottom: 8px;
}

.linkchips-more > .linkchips {
    margin-top: 0;
}
