/* ═══════════════════════════════════════════════════════════════════════════
   HousifyHub — Map Page (Funda-style full-screen layout)
   assets/css/map.css  |  depends on style.css (loaded first)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Navbar: shadow + gap below before filter bar ───────────────────────── */
.hk-plugin-nav {
    box-shadow: 0 2px 6px rgba(0, 0, 0, .20);
    margin-bottom: 8px; /* desktop: gap between nav and .hk-mappage */
}

/* ── Full-screen page wrapper ────────────────────────────────────────────── */
.hk-mappage {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px); /* 52px navbar + 8px gap */
    background: #f8faf8;
    font-family: var(--hk-font, 'Plus Jakarta Sans', system-ui, sans-serif);
}
.hk-mappage * { box-sizing: border-box; }

/* WordPress admin bar offsets (heights subtract admin bar + navbar 52px + gap 8px) */
.admin-bar .hk-mappage {
    height: calc(100vh - 92px);  /* 32px admin bar + 52px navbar + 8px gap */
    height: calc(100dvh - 92px);
}
@media (max-width: 782px) {
    .admin-bar .hk-mappage {
        height: calc(100vh - 106px);  /* 46px admin bar + 52px navbar + 8px gap */
        height: calc(100dvh - 106px);
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   FILTER BAR
   ══════════════════════════════════════════════════════════════════════════ */

.hk-mapbar {
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    flex-shrink: 0;
    position: relative;
    z-index: 1000;
    padding-top: 8px;  /* raised: must be above .hk-maplayout (z-index:1) so pill
                       panels inside this stacking context paint above the map */
}

/* Horizontally scrollable inner row */
.hk-mapbar-scroll {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    height: 52px;
    overflow-x: auto;
    overflow-y: visible;   /* allow pill panels to overflow below */
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hk-mapbar-scroll::-webkit-scrollbar { display: none; }

/* ── Pill button (shared: filter pills, action pills, utility pills) ─────── */
.hk-pill {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 20px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 1.4;
    transition: border-color .15s, background .15s, color .15s;
}
.hk-pill:hover {
    border-color: #2d6a4f;
    color: #2d6a4f;
    text-decoration: none;
}

/* Pill with an active filter value */
.hk-pill.hk-pill--active {
    background: #f0fdf4;
    border-color: #2d6a4f;
    color: #166534;
    font-weight: 600;
}
.hk-pill.hk-pill--active .hk-pill-caret { color: #166534; }

/* Caret arrow inside pill */
.hk-pill-caret {
    width: 10px;
    height: 6px;
    flex-shrink: 0;
    color: #9ca3af;
    transition: transform .2s;
}
.hk-pill-wrap.is-open > .hk-pill .hk-pill-caret { transform: rotate(180deg); }
.hk-pill-wrap.is-open > .hk-pill {
    border-color: #2d6a4f;
    color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, .12);
}

/* All Filters pill */
.hk-pill--allfilters {
    border-color: #2d6a4f;
    color: #2d6a4f;
    font-weight: 600;
}
.hk-pill--allfilters:hover {
    background: #2d6a4f;
    color: #fff;
}

/* Reset pill */
.hk-pill--reset { color: #6b7280; border-color: #e5e7eb; }
.hk-pill--reset:hover { color: #dc2626; border-color: #dc2626; }

/* List toggle pill */
.hk-pill--list { background: #f9fafb; }

/* + List Property pill (amber CTA) */
.hk-pill--submit {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff !important;
    font-weight: 700;
}
.hk-pill--submit:hover {
    background: #d97706;
    border-color: #d97706;
    color: #fff !important;
}

/* Vertical divider between filters and utility buttons */
.hk-mapbar-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
    flex-shrink: 0;
    margin: 0 3px;
}

/* ── Pill dropdown wrapper ───────────────────────────────────────────────── */
.hk-pill-wrap {
    position: relative;
    flex-shrink: 0;
}

/* ── Pill panel (dropdown list) ─────────────────────────────────────────── */
/*
   BELANGRIJK: position:fixed i.p.v. absolute.
   De .hk-mapbar-scroll heeft overflow-x:auto; per CSS-spec forceert dat de browser
   overflow-y naar 'auto' — waardoor absolute panels worden afgekapt.
   Met fixed positioneert het panel ten opzichte van de viewport; JS (positionPanel)
   stelt top/left in via getBoundingClientRect() zodat het panel altijd
   precies onder de pill-knop verschijnt.
*/
.hk-pill-panel {
    display: none;
    position: fixed;
    top: 0;             /* overridden by positionPanel() in the inline script */
    left: 0;            /* overridden by positionPanel() in the inline script */
    min-width: 170px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
    z-index: 99999 !important; /* portaled to <body>; beats all stacking contexts */
    overflow: hidden;
    /* Scroll long lists on small screens */
    max-height: 260px;
    overflow-y: auto;
}
.hk-pill-wrap.is-open .hk-pill-panel { display: block; }

/* Prevent document-click close when interacting inside panel */
.hk-pill-panel { pointer-events: auto; }

.hk-pill-option {
    display: block;
    width: 100%;
    padding: 9px 16px;
    text-align: left;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 13px;
    font-family: inherit;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    transition: background .1s;
}
.hk-pill-option:hover { background: #f9fafb; }
.hk-pill-option.is-active {
    color: #166534;
    font-weight: 600;
    background: #f0fdf4;
}

/* Price pill panel — Van / Tot number inputs (Funda-style) */
.hk-pill-panel--price {
    min-width: 260px;
    max-height: none;
    overflow: visible;
    padding: 0;
}

/* ── Price Van/Tot inputs ─────────────────────────────────────────────────── */
.hk-price-inputs        { padding: 12px; min-width: 240px; }
.hk-price-row           { display: flex; gap: 12px; }
.hk-price-field         { display: flex; flex-direction: column; gap: 4px; }
.hk-price-field label   { font-size: 12px; color: #666; }
.hk-price-field input   {
    width: 100px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    /* Hide spin buttons */
    -moz-appearance: textfield;
}
.hk-price-field input::-webkit-outer-spin-button,
.hk-price-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hk-price-field input:focus {
    outline: none;
    border-color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, .10);
}
.hk-price-field input::placeholder { color: #aaa; }

/* "Wissen" clear link */
.hk-price-clear {
    font-size: 13px;
    color: #2d6a4f;
    margin-top: 8px;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}
.hk-price-clear:hover { text-decoration: underline; color: #1a5c38; }

/* ══════════════════════════════════════════════════════════════════════════
   RESULTS STRIP
   ══════════════════════════════════════════════════════════════════════════ */

.hk-results-compact {
    padding: 5px 14px;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    font-size: 12px;
    flex-shrink: 0;
}

/* ── Place-search row — visible on all viewports ──────────────────────── */
.hk-search-row {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    border-bottom: 1px solid #f3f4f6;
}
.hk-search-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    height: 38px;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 20px;
    padding: 0 10px;
    gap: 6px;
    transition: background .15s, border-color .15s;
}
.hk-search-wrap:focus-within {
    background: #fff;
    border-color: #2d6a4f;
}
.hk-search-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #9ca3af;
    transition: color .15s;
}
.hk-search-wrap:focus-within .hk-search-icon { color: #2d6a4f; }
.hk-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    color: #374151;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.hk-search-input::placeholder { color: #9ca3af; }
.hk-search-input::-webkit-search-cancel-button,
.hk-search-input::-webkit-search-decoration { -webkit-appearance: none; }

/* ── Mobile two-button action row — hidden on desktop ───────────────────── */
.hk-mobile-actions { display: none; }

/* ══════════════════════════════════════════════════════════════════════════
   MAP LAYOUT (fills all remaining space)
   ══════════════════════════════════════════════════════════════════════════ */

.hk-maplayout {
    flex: 1;
    position: relative;
    min-height: 0;          /* critical: lets flex child shrink below content */
    z-index: 1;             /* creates a stacking context that traps ALL Leaflet
                               pane z-indexes (200-700) inside it, so they can
                               no longer compete with .hk-mapbar in the root
                               stacking context */
}

/* Map fills the entire layout div */
.hk-map-full {
    width: 100%;
    height: 100%;
}

/* Override border + border-radius from style.css on the map page */
#hk-app.hk-mappage #hk-map {
    border: none !important;
    border-radius: 0 !important;
}

/* ── Keep Leaflet container below the filter bar ─────────────────────────── */
/* Leaflet or theme CSS could give .leaflet-container a high z-index; cap it  */
/* at 1 so the entire map stack stays inside .hk-maplayout's stacking context */
.hk-mappage .leaflet-container {
    z-index: 1 !important;
}

/* Loading overlay — absolute, covers the map */
#hk-app.hk-mappage #hk-loading {
    position: absolute;
    inset: 0;
    z-index: 400;
    background: rgba(255, 255, 255, .70);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── List panel on map page ─────────────────────────────────────────────── */
#hk-app.hk-mappage .hk-list-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    max-height: none;
    border-radius: 0;
    border: none;
    border-left: 1px solid #e5e7eb;
    box-shadow: -4px 0 20px rgba(0, 0, 0, .08);
    overflow-y: auto;
    z-index: 300;
    background: #fff;
}

/* ── Mobile (≤ 768px): full-screen map/list toggle ───────────────────── */
@media (max-width: 768px) {

    /* 1. Fixed filter bar — 8px gap below the navbar; 12px inner top-pad
       creates the white breathing room between nav and the search/buttons */
    .hk-mapbar {
        position: fixed;
        top: 60px; /* 52px navbar + 8px gap */
        left: 0;
        right: 0;
        z-index: 9999;
        padding-top: 12px;
    }
    .admin-bar .hk-mapbar {
        top: 106px; /* 46px admin bar + 52px navbar + 8px gap */
    }

    /* Pin the entire app to the viewport.
       position:fixed removes .hk-mappage from page flow entirely, so
       theme wrappers (padding, margin, overflow) cannot create scroll space.
       top:60px = 52px navbar + 8px gap before the filter bar.
       padding-top = extra-top-pad (12px mapbar) + search-row (~52px)
                     + action-row (~52px) = 116px */
    .hk-mappage {
        position: fixed;
        top: 60px; /* 52px navbar + 8px gap */
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        overflow: hidden;
        z-index: 1;
        box-sizing: border-box;
        padding-top: 116px;
    }
    /* Specificity fix: @media(max-width:782px) .admin-bar .hk-mappage sets
       height:calc(100dvh-106px) with higher specificity — override it here. */
    .admin-bar .hk-mappage {
        height: auto;
        top: 106px; /* 46px admin bar + 52px navbar + 8px gap */
    }

    /* Hide count/legend strip — reclaim vertical space for the map */
    .hk-results-compact {
        display: none;
    }

    /* 2. Pills row: hidden by default on mobile — revealed by the Filters drawer */
    .hk-mapbar-scroll {
        display: none;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }

    /* 3. Funda-style two-button action row */
    .hk-mobile-actions {
        display: flex;
        align-items: stretch;
        gap: 8px;
        padding: 8px 10px 7px;
        box-sizing: border-box;
    }

    .hk-mobile-btn {
        -webkit-appearance: none;
        appearance: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        flex: 1 1 0;
        min-height: 40px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        white-space: nowrap;
        line-height: 1;
        transition: background .15s;
        -webkit-tap-highlight-color: transparent;
    }

    .hk-mobile-btn--filters {
        background: #2d6a4f;
        color: #fff;
        border: none;
    }
    .hk-mobile-btn--filters:hover,
    .hk-mobile-btn--filters.is-active {
        background: #1a5c38;
        color: #fff;
    }

    .hk-mobile-btn--list {
        background: #fff;
        color: #2d6a4f;
        border: 2px solid #2d6a4f;
    }
    .hk-mobile-btn--list:hover {
        background: #f0fdf4;
    }
    .hk-mobile-btn--list.is-active {
        background: #2d6a4f;
        border-color: #2d6a4f;
        color: #fff;
    }

    .hk-mobile-btn svg { flex-shrink: 0; }

    /* 4. Place-search row */
    .hk-search-row {
        display: flex;
        align-items: center;
        padding: 7px 10px 6px;
        border-bottom: 1px solid #f3f4f6;
    }
    .hk-search-wrap {
        display: flex;
        align-items: center;
        flex: 1;
        height: 38px;
        background: #fff;
        border: 1.5px solid #d1d5db;
        border-radius: 20px;
        padding: 0 10px;
        gap: 6px;
        transition: background .15s, border-color .15s;
    }
    .hk-search-wrap:focus-within {
        background: #fff;
        border-color: #2d6a4f;
    }
    .hk-search-icon {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        color: #9ca3af;
        transition: color .15s;
    }
    .hk-search-wrap:focus-within .hk-search-icon { color: #2d6a4f; }
    .hk-search-input {
        flex: 1;
        min-width: 0;
        border: none;
        background: transparent;
        font-size: 14px;
        font-family: inherit;
        color: #374151;
        outline: none;
        -webkit-appearance: none;
        appearance: none;
    }
    .hk-search-input::placeholder { color: #9ca3af; }
    /* Hide browser-native × clear button (type=search) */
    .hk-search-input::-webkit-search-cancel-button,
    .hk-search-input::-webkit-search-decoration { -webkit-appearance: none; }

    /* List panel stretches to fill the entire layout area */
    #hk-app.hk-mappage .hk-list-panel {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border-left: none;
        border-top: none;
        border-radius: 0;
        box-shadow: none;
        overflow-y: auto;
    }

    /* When .hk-show-list is active: hide the map so list occupies full screen */
    #hk-app.hk-mappage .hk-maplayout.hk-show-list #hk-map {
        display: none !important;
    }

    /* Toggle button — highlight when list view is active */
    #hk-list-toggle.hk-pill--active {
        background: #2d6a4f;
        border-color: #2d6a4f;
        color: #fff;
        font-weight: 600;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   ALL FILTERS MODAL
   ══════════════════════════════════════════════════════════════════════════ */

.hk-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 9000;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 16px 24px;
}
.hk-modal-overlay.is-open { display: flex; }

.hk-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Modal header */
.hk-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 16px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.hk-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    font-family: var(--hk-font, inherit);
}
.hk-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    border-radius: 6px;
    transition: background .15s, color .15s;
    font-family: inherit;
    padding: 0;
}
.hk-modal-close:hover { background: #f3f4f6; color: #111827; }

/* Modal body (scrollable) */
.hk-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 22px 4px;
}
.hk-modal-row { margin-bottom: 22px; }
.hk-modal-row:last-child { margin-bottom: 8px; }

.hk-modal-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-family: var(--hk-font, inherit);
}

/* Chip group (listing type) */
.hk-modal-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hk-chip {
    -webkit-appearance: none;
    appearance: none;
    padding: 7px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 20px;
    background: #fff;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.hk-chip:hover:not(.is-active) { border-color: #2d6a4f; color: #2d6a4f; }
.hk-chip.is-active {
    background: #2d6a4f;
    border-color: #2d6a4f;
    color: #fff;
    font-weight: 600;
}

/* Modal select */
.hk-modal-select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #374151;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s;
}
.hk-modal-select:focus { outline: none; border-color: #2d6a4f; }

/* Modal price inputs — re-use .hk-price-inputs / .hk-price-input (defined above) */

/* Modal footer */
.hk-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.hk-modal-reset {
    background: none;
    border: none;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    padding: 4px 0;
    transition: color .15s;
}
.hk-modal-reset:hover { color: #111827; }

.hk-modal-apply {
    flex: 1;
    max-width: 200px;
    background: #2d6a4f;
    color: #fff;
    border: none;
    padding: 11px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
}
.hk-modal-apply:hover { background: #1a5c38; }

/* Prevent body scroll while modal open */
body.hk-modal-open { overflow: hidden; }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .hk-mapbar-scroll {
        padding: 0 8px;
        height: 48px;
        gap: 4px;
    }
    /* mapbar padding-top 12px + search-row ~52px + action-row ~48px = 112px */
    .hk-mappage {
        padding-top: 112px;
    }
    .hk-mobile-actions {
        padding: 5px 8px;
    }
    .hk-mobile-btn {
        min-height: 38px;
        font-size: 13px;
    }
    .hk-maptab  { font-size: 12px; padding: 5px 11px; }
    .hk-pill    { font-size: 12px; padding: 5px 10px; gap: 4px; }

    /* Hide "+ List Property" on very small screens (save room) */
    .hk-pill--submit { display: none; }

    /* Modal slides up from bottom on mobile */
    .hk-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .hk-modal {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        max-height: 90vh;
        max-height: 90dvh;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    /* Pill panel: don't exceed viewport when near right edge */
    .hk-pill-wrap:last-of-type .hk-pill-panel,
    .hk-pill-wrap:nth-last-of-type(2) .hk-pill-panel {
        left: auto;
        right: 0;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE FILTERS DRAWER + LIST VIEW
   ══════════════════════════════════════════════════════════════════════════ */

/* Drawer — display toggled by JS: none → flex.
   flex-direction set here so it applies as soon as JS sets display:flex. */
#hk-filter-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: #fff;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--hk-font, 'Plus Jakarta Sans', system-ui, sans-serif);
}
@media (max-width: 782px) {
    .admin-bar #hk-filter-drawer { top: 46px; height: calc(100% - 46px); }
}

/* List view — fills map area; display toggled by JS: none → block */
#hk-list-view {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    z-index: 2;
}
/* Wrapper row — flex so heart sits outside the <a> */
.hk-list-view-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    transition: background .12s;
}
.hk-list-view-item:hover { background: #f9fafb; }
.hk-list-view-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.hk-list-view-card:hover,
.hk-list-view-card:visited { color: inherit; text-decoration: none; }
/* Heart button inside list-view rows */
.hk-list-view-item .hk-heart-btn {
    margin-right: 12px;
    flex-shrink: 0;
}
.hk-list-view-thumb {
    width: 80px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f3f4f6;
}
.hk-list-view-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hk-list-view-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #9ca3af;
}
.hk-list-view-body { flex: 1; min-width: 0; }
.hk-list-view-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hk-list-view-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hk-list-view-type { font-size: 12px; color: #9ca3af; margin-bottom: 4px; }
.hk-list-view-price { font-size: 14px; font-weight: 700; color: #166534; }
.hk-list-view-price small { font-size: 11px; font-weight: 400; color: #6b7280; }
.hk-list-view-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.hk-mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 16px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.hk-mobile-drawer-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}
.hk-mobile-drawer-close {
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #2d6a4f;
    font-family: inherit;
    cursor: pointer;
    padding: 4px 0;
    line-height: 1;
    transition: color .15s;
}
.hk-mobile-drawer-close:hover { color: #1a5c38; text-decoration: underline; }

/* ── Scrollable body ─────────────────────────────────────────────────────── */
.hk-mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px;
}
.hk-mobile-drawer-section {
    padding: 20px 0;
    border-bottom: 1px solid #f3f4f6;
}
.hk-mobile-drawer-section:last-child { border-bottom: none; }
.hk-mobile-drawer-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: .6px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-family: inherit;
}

/* ── Radio chips (Aanbodtype) ────────────────────────────────────────────── */
.hk-mobile-drawer-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hk-mobile-chip { cursor: pointer; }
.hk-mobile-chip input[type="radio"] { display: none; }
.hk-mobile-chip span {
    display: inline-block;
    padding: 9px 20px;
    border: 1.5px solid #d1d5db;
    border-radius: 20px;
    font-size: 14px;
    font-family: inherit;
    color: #374151;
    cursor: pointer;
    line-height: 1.4;
    transition: background .15s, border-color .15s, color .15s;
}
.hk-mobile-chip:hover span { border-color: #2d6a4f; color: #2d6a4f; }
.hk-mobile-chip input[type="radio"]:checked + span {
    background: #2d6a4f;
    border-color: #2d6a4f;
    color: #fff;
    font-weight: 600;
}

/* ── Selects ─────────────────────────────────────────────────────────────── */
.hk-mobile-drawer-select {
    width: 100%;
    padding: 13px 40px 13px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #374151;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    box-sizing: border-box;
}
.hk-mobile-drawer-select:focus {
    outline: none;
    border-color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, .10);
}
/* ── Drawer selects: explicit size so arrow never clips text (beats Astra overrides) ── */
#hk-filter-drawer .hk-mobile-drawer-select {
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 44px 0 12px !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    overflow: visible;
    max-height: none;
    background-position: right 12px center !important;
    background-size: 16px !important;
}

/* ── Price inputs ────────────────────────────────────────────────────────── */
.hk-drawer-price-row { display: flex; gap: 12px; }
.hk-drawer-price-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hk-drawer-price-field > label {
    font-size: 12px;
    color: #6b7280;
    font-family: inherit;
    font-weight: 500;
}
.hk-drawer-price-field input {
    width: 100%;
    height: 48px;
    padding: 0 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #374151;
    -moz-appearance: textfield;
    box-sizing: border-box;
}
.hk-drawer-price-field input::-webkit-outer-spin-button,
.hk-drawer-price-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hk-drawer-price-field input:focus {
    outline: none;
    border-color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, .10);
}
.hk-drawer-price-field input::placeholder { color: #aaa; }

/* ── Sticky footer ───────────────────────────────────────────────────────── */
.hk-mobile-drawer-foot {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.hk-mobile-drawer-apply {
    width: 100%;
    background: #2d6a4f;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
}
.hk-mobile-drawer-apply:hover,
.hk-mobile-drawer-apply:active { background: #1a5c38; }

body.hk-drawer-body-open { overflow: hidden; }
