#filter-offcanvas-mobile.offcanvas,
#filter-offcanvas-mobile.offcanvas.show {
    height: 100dvh !important;
    max-height: 100dvh !important;
    position: fixed !important;
    z-index: 1055 !important;
    display: flex !important;
    flex-direction: column !important;
}

#filter-offcanvas-mobile .offcanvas-header {
    flex-shrink: 0;
}

#filter-offcanvas-mobile .offcanvas-body {
    flex: 1 1 auto;
    height: auto;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 120px !important;
}

.mobile-filter-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 16px 20px;
    border-top: 1px solid #dee2e6;
    z-index: 1060;
    box-sizing: border-box;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-filter-footer #apply-filters-mobile {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.floating-filter-btn {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1030 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    visibility: visible;
    opacity: 1;
}

.floating-filter-btn.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px) !important;
}

#kaart {
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.filter-option .form-check-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    cursor: pointer;
}

.filter-count {
    font-size: 0.78rem;
    color: #6c757d;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-option.is-zero .form-check-label {
    opacity: 0.48;
}

.filter-option.is-zero .filter-count {
    color: #adb5bd;
}

.filter-show-more {
    font-size: 0.82rem;
    color: var(--ht-primary-hover, #3e948b);
    font-weight: 500;
}

.filter-show-more:hover,
.filter-show-more:focus-visible {
    color: #26726b;
    text-decoration: underline !important;
}

.land-regios-subtree {
    margin: 0.25rem 0 0.5rem 0.45rem;
    padding-left: 0.85rem;
    border-left: 2px solid #e9ecef;
}

.land-regios-subtree[hidden] {
    display: none !important;
}

.land-regios-subtree .form-check {
    margin-bottom: 0.2rem;
}

.land-regios-subtree .form-check-label {
    font-size: 0.92rem;
}

.land-tree-item.has-selected-regios > .filter-option .form-check-input:checked {
    background-color: #8c959f;
    border-color: #8c959f;
}

.land-tree-item.has-selected-regios > .filter-option .form-check-input:checked:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

.land-tree-item.has-selected-regios > .filter-option .filter-count {
    display: none;
}

.afstand-badge {
    min-width: 96px;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.dual-range-slider {
    position: relative;
    height: 28px;
    display: flex;
    align-items: center;
}

.dual-range-track,
.dual-range-fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 999px;
    pointer-events: none;
}

.dual-range-track {
    left: 0;
    right: 0;
    background-color: #dee2e6;
    z-index: 1;
}

.dual-range-fill {
    left: 0;
    width: 100%;
    background-color: var(--ht-primary, #4db6ac);
    z-index: 2;
}

.dual-range-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 3;
}

.dual-range-input:focus {
    outline: none;
}

.dual-range-input::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
    border: none;
}

.dual-range-input::-moz-range-track {
    height: 6px;
    background: transparent;
    border: none;
}

.dual-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border-radius: 50%;
    background-color: var(--ht-primary, #4db6ac);
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.dual-range-input::-webkit-slider-thumb:hover,
.dual-range-input:focus-visible::-webkit-slider-thumb {
    transform: scale(1.08);
    background-color: var(--ht-primary-hover, #3e948b);
    box-shadow: 0 0 0 0.2rem rgba(77, 182, 172, 0.25);
}

.dual-range-input::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--ht-primary, #4db6ac);
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.dual-range-input::-moz-range-thumb:hover,
.dual-range-input:focus-visible::-moz-range-thumb {
    transform: scale(1.08);
    background-color: var(--ht-primary-hover, #3e948b);
    box-shadow: 0 0 0 0.2rem rgba(77, 182, 172, 0.25);
}

.afstand-bounds {
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.active-filters-bar[hidden] {
    display: none !important;
}

.active-filters-mobile-toggle {
    display: inline-flex;
    align-items: center;
    background: #edf7f6;
    color: #26726b;
    border: 1px solid #b5dfd9;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.3rem 0.75rem;
    line-height: 1.25;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.active-filters-mobile-toggle:hover,
.active-filters-mobile-toggle:focus-visible {
    background: #dcf0ee;
    color: #26726b;
    border-color: var(--ht-primary, #4db6ac);
}

.active-filters-chevron {
    display: inline-block;
    transition: transform 0.2s ease;
}

.active-filters-bar.is-expanded .active-filters-chevron {
    transform: rotate(180deg);
}

.active-filter-pills-list {
    display: none;
}

.active-filters-bar.is-expanded .active-filter-pills-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    gap: 0.4rem;
    padding: 0.5rem 0 0.2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.active-filters-bar.is-expanded .active-filter-pills-list::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .active-filter-pills-list,
    .active-filters-bar.is-expanded .active-filter-pills-list {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.45rem;
        overflow: visible;
        padding: 0;
    }
}

.active-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    flex-shrink: 0;
    background: #edf7f6;
    color: #26726b;
    border: 1px solid #b5dfd9;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.active-filter-pill:hover,
.active-filter-pill:focus-visible {
    background: #dcf0ee;
    border-color: var(--ht-primary, #4db6ac);
    outline: none;
}

.active-filter-pill:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(77, 182, 172, 0.25);
}

.active-filter-pill-remove {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.75;
    transition: opacity 0.15s ease;
}

.active-filter-pill:hover .active-filter-pill-remove,
.active-filter-pill:focus-visible .active-filter-pill-remove {
    opacity: 1;
}

.active-filters-clear-all {
    font-size: 0.82rem;
    color: #6c757d;
    white-space: nowrap;
}

.active-filters-clear-all:hover,
.active-filters-clear-all:focus-visible {
    color: var(--ht-primary-hover, #3e948b);
    text-decoration: underline !important;
}

.search-tabs-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    border-bottom: 1px solid var(--gc-divider, #e5e7eb);
}

.search-tabs-toolbar .gc-tabs.nav {
    border-bottom: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.search-sort-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding-bottom: 0.45rem;
    margin-left: auto;
    flex-shrink: 0;
}

.search-sort-label {
    font-size: 0.84rem;
    font-weight: 500;
    color: #6c757d;
    white-space: nowrap;
    margin: 0;
}

.search-sort-select {
    width: auto;
    min-width: 155px;
    max-width: 275px;
    font-size: 0.84rem;
    color: #212529;
    border-color: #dee2e6;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-sort-select:hover {
    border-color: var(--ht-primary, #4db6ac);
}

.search-sort-select:focus {
    border-color: var(--ht-primary, #4db6ac);
    box-shadow: 0 0 0 0.2rem rgba(77, 182, 172, 0.25);
}

@media (max-width: 575.98px) {
    .search-tabs-toolbar {
        border-bottom: 0;
        gap: 0.65rem;
    }

    .search-tabs-toolbar .gc-tabs.nav {
        width: 100%;
        border-bottom: 1px solid var(--gc-divider, #e5e7eb);
    }

    .search-sort-wrap {
        width: 100%;
        padding-bottom: 0;
        justify-content: space-between;
    }

    .search-sort-select {
        flex: 1 1 auto;
        max-width: none;
    }
}
