/* Property listing with map: 3 view states (list only, map only, list + map) */
/* No horizontal scroll on list; list flows with page; map always visible when scrolling (sticky) */
/* Avoid overflow-hidden on ancestors of the map so position:sticky works */

.property-listing-map__toolbar {
    margin-bottom: 1em;
}

.property-listing-map__view-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25em;
    align-items: center;
}
.property-listing-map__view-toggle svg {
    height: 1em;
    fill: var(--black-color);
}
.property-listing-map__view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.65em;;
    border: 1px solid var(--grey-color);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
    color: #333;
}

.property-listing-map__view-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.property-listing-map__view-btn.active {
    background: #333;
    border-color: #333;
    color: #fff;
}
.property-listing-map__view-btn.active svg {
    fill: #fff;
}

/* Panels wrapper - no overflow here so map sticky works */
.property-listing-map__panels {
    position: relative;
    min-height: 320px;
}

/* List panel: no inner scroll; clip horizontal overflow only so sticky ancestor is not affected */
.property-listing-map__list-panel {
    transition: opacity 0.2s ease, visibility 0.2s ease;
    overflow-x: clip;
    overflow-y: visible;
}

/* Grid: each column between min and max thumb width; as many columns as fit; no horizontal scroll */
.property-listing-map__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--plm-min-thumb-width, 280px), var(--plm-max-thumb-width, 400px)));
    gap: var(--plm-gap, 16px);
    min-width: 0;
    justify-content: center;
    padding: 0 20px;
}

.property-listing-map__grid > * {
    min-width: 0;
    max-width: 100%;
}

.property-listing-map__map-panel {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 400px;
}

.property-listing-map__map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: #e8e8e8;
}
.property-listing-map__map.leaflet-container {
    font-size: 12px;
}

.property-listing-map__map-loading,
.property-listing-map__map-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 90%;
}

.property-listing-map__map-loading-media {
    flex-shrink: 0;
}

.property-listing-map__map-loading-img {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.property-listing-map__map-loading-video {
    max-width: 160px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.property-listing-map__map-loading-text {
    margin: 0;
    font-size: 1em;
    color: #555;
    font-weight: 500;
}

.property-listing-map__map-error {
    color: #c00;
}

/* State: list only (default) */
.property-listing-map--list .property-listing-map__list-panel {
    display: block;
    opacity: 1;
    visibility: visible;
}

.property-listing-map--list .property-listing-map__map-panel {
    display: none;
}

/* State: map only */
.property-listing-map--map .property-listing-map__list-panel {
    display: none;
}

.property-listing-map--map .property-listing-map__map-panel {
    display: block;
    position: relative;
    min-height: 500px;
    height: 70vh;
    overflow: hidden;
}

.property-listing-map--map .property-listing-map__map {
    min-height: 500px;
    height: 100%;
}

/* State: split (list + map) - list flows with page; map always visible (sticky to viewport) */
@media (min-width: 768px) {
    .property-listing-map--split .property-listing-map__panels {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        min-height: 0;
    }

    .property-listing-map--split .property-listing-map__list-panel {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
        padding-right: 0.75em;
        overflow-x: clip;
        overflow-y: visible;
    }

    /* Map panel: sticky so it stays visible when scrolling; top >= #top height so not hidden under header */
    .property-listing-map--split .property-listing-map__map-panel {
        display: block;
        position: sticky;
        top: var(--plm-map-sticky-top, 0);
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;
        min-width: 0;
        min-height: 400px;
        height: 100vh;
        max-height: 100vh;
        align-self: flex-start;
        z-index: 1;
    }

    .property-listing-map--split .property-listing-map__map {
        position: sticky;
        top: 0;
        width: 100%;
        min-height: 400px;
        height: 100%;
        max-height: 100vh;
    }
}

/* Cluster icon override if needed */
.property-listing-map__map .marker-cluster-small,
.property-listing-map__map .marker-cluster-medium,
.property-listing-map__map .marker-cluster-large {
    background-color: rgba(0, 100, 180, 0.5);
}

.property-listing-map__map .marker-cluster div {
    background-color: rgba(0, 100, 180, 0.85);
    color: #fff;
}

/* FIX: Leaflet controls are hidden under header */
.property-listing-map__map .leaflet-control-container .leaflet-top.leaflet-left {
    z-index: 998;
}

/* Map popup: property card (ficha) with photos, videos, info */
.property-listing-map__map .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.property-listing-map__map .leaflet-popup-content {
    margin: 0;
    min-width: 280px;
    max-width: 380px;
    max-height: 75vh;
    overflow-y: auto;
}
.property-listing-map__map .leaflet-popup-content .property-thumb-card {
    box-shadow: none;
    margin: 0;
}
.property-listing-map__map .leaflet-popup-content .plm-popup-loading,
.property-listing-map__map .leaflet-popup-content .plm-popup-error {
    margin: 0;
}
/* PLM: PLP-compatible filter styles (from productlist_progressive, #plm-filter-mount) */
/* PLP catalog filters */
#plm-filter-mount.plp-filter-mount {
    transition: opacity 0.22s ease;
    margin-top: 20px;
}
#plm-filter-mount.plp-filter-mount.plp-filter-mount--fade-out {
    opacity: 0;
}
.plp-listing-zone--off { display: contents; }
.plp-listing-zone--top { display: block; overflow: visible; }
.plp-listing-zone--top #plm-filter-mount.plp-filter-mount {
    margin-top: 0;
}
/* Filters bar at top: horizontal flex row, each filter block grows with a minimum width */
.plp-listing-zone--top .plp-filter-mount {
    --plp-filter-top-col-min: 260px;
    --plp-filter-top-col-max: 458px;
    --plp-filter-top-gap: 12px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    gap: var(--plp-filter-top-gap);
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
    box-sizing: border-box;
    overflow: visible;
    position: relative;
    /*
     * Below fixed main nav (.header_fixed_nav z-index 999 in header.css) so the menu stays on top.
     * Above sort/view row: override select.css .select-box (998) and .plp-view-toggle (997) in this template.
     */
    z-index: 998;
}
.property-listing-map .option-group .select-box {
    z-index: 997;
}
.plp-listing-zone--top .plp-listing-main {
    position: relative;
    z-index: 0;
}
.plp-listing-zone--top .plp-filter-mount > .plp-filter-accordion.ui-accordion,
.plp-listing-zone--top .plp-filter-mount > .plm-filter-accordion.ui-accordion {
    display: contents;
    margin-bottom: 0;
}
.plp-listing-zone--top .plp-filter-mount > .plp-filter-search-standalone,
.plp-listing-zone--top .plp-filter-mount > .plp-filter-bool-switch-standalone {
    flex: 1 1 var(--plp-filter-top-col-min);
    min-width: var(--plp-filter-top-col-min);
    max-width: var(--plp-filter-top-col-max);
    margin-bottom: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    overflow: visible;
}
.plp-listing-zone--top .plp-filter-mount .plp-filter-panel.plp-filter-panel {
    flex: 1 1 var(--plp-filter-top-col-min);
    min-width: var(--plp-filter-top-col-min);
    max-width: var(--plp-filter-top-col-max);
    margin-bottom: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    overflow: visible;
}
/* Horizontal top row: override global PLP + Bootstrap panel-group vertical gaps */
.plp-listing-zone--top .plp-filter-mount .plp-filter-accordion.ui-accordion .panel.plp-filter-panel {
    margin-bottom: 0;
}
.plp-listing-zone--top .plp-filter-mount .panel-group.plp-filter-accordion .panel + .panel {
    margin-top: 0;
}
/* Expanded body overlays the page; row height stays at header only (no flex reflow) */
.plp-listing-zone--top .plp-filter-mount .plp-filter-panel.plp-filter-panel:has(.collapse.in),
.plp-listing-zone--top .plp-filter-mount .plp-filter-panel.plp-filter-panel:has(.collapse.show) {
    z-index: 40;
}
/*
 * Overlay body under the header. Must override Bootstrap's .collapsing { position: relative }
 * during the height transition; otherwise the row grows while animating and only snaps to overlay
 * when .collapsing is removed.
 */
.plp-listing-zone--top .plp-filter-mount .plp-filter-panel .panel-collapse.collapse {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    margin-top: 0;
    margin-bottom: 0;
    z-index: 2;
    border: 1px solid var(--lightgrey-color, #ddd);
    border-top: none;
    border-radius: 0 0 4px 4px;
    background-color: var(--white-color, #fff);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
    transition: none !important;
}
.plp-listing-zone--top .plp-filter-mount > .plp-filter-actions {
    flex: 1 1 100%;
    min-width: min(100%, var(--plp-filter-top-col-min));
    margin-top: 0;
    justify-content: flex-end;
}
.plp-listing-zone--left { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 16px; align-items: start; }
.plp-listing-zone--right { display: grid; grid-template-columns: 1fr minmax(220px, 280px); gap: 16px; align-items: start; }
/* order must apply to the grid item (.plp-filter-mount-slot), not the nested #plm-filter-mount */
.plp-listing-zone--right .plp-filter-mount-slot { order: 2; }
.plp-listing-zone--right .plp-listing-main { order: 1; min-width: 0; }
.plp-listing-zone--left .plp-listing-main { min-width: 0; }
/* Bootstrap .row uses negative horizontal margins (~-15px); inside a grid track that widens the row past 100% and overlaps the filter column */
.plp-listing-zone--left .plp-listing-main,
.plp-listing-zone--right .plp-listing-main {
    max-width: 100%;
}
.plp-listing-main > .row {
    margin-left: 0;
    margin-right: 0;
}
.plp-listing-main #product-list-plp.plp-thumbs-wrap {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.plp-listing-main .plp-grid,
.plp-listing-main .plp-list.plp-view-list {
    min-width: 0;
    max-width: 100%;
}
/* Side column (left/right, desktop+): sticky under #top; --plm-map-sticky-top on #property-listing-map-container */
@media (min-width: 768px) {
    .plp-listing-zone--left .plp-filter-mount-slot,
    .plp-listing-zone--right .plp-filter-mount-slot {
        position: -webkit-sticky;
        position: sticky;
        align-self: start;
        top: var(--plm-map-sticky-top, 0);
        z-index: 1;
        min-height: 0;
        max-height: min(
            calc(100dvh - var(--plm-map-sticky-top, 0px) - 1rem),
            calc(100vh - var(--plm-map-sticky-top, 0px) - 1rem)
        );
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 100px;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
        scrollbar-gutter: stable;
        scrollbar-width: thin;
        scrollbar-color: transparent transparent;
        transition: scrollbar-color 0.22s ease;
    }
    .plp-listing-zone--left .plp-filter-mount-slot:hover,
    .plp-listing-zone--right .plp-filter-mount-slot:hover {
        scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
    }
}
@media (min-width: 768px) and (prefers-color-scheme: dark) {
    .plp-listing-zone--left .plp-filter-mount-slot:hover,
    .plp-listing-zone--right .plp-filter-mount-slot:hover {
        scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
    }
}
@media (min-width: 768px) {
    .plp-listing-zone--left .plp-filter-mount-slot::-webkit-scrollbar,
    .plp-listing-zone--right .plp-filter-mount-slot::-webkit-scrollbar {
        width: 5px;
        height: 5px;
    }
    .plp-listing-zone--left .plp-filter-mount-slot::-webkit-scrollbar-track,
    .plp-listing-zone--right .plp-filter-mount-slot::-webkit-scrollbar-track {
        background: transparent;
    }
    .plp-listing-zone--left .plp-filter-mount-slot::-webkit-scrollbar-thumb,
    .plp-listing-zone--right .plp-filter-mount-slot::-webkit-scrollbar-thumb {
        background-color: transparent;
        border-radius: 100px;
        transition: background-color 0.22s ease;
    }
    .plp-listing-zone--left .plp-filter-mount-slot:hover::-webkit-scrollbar-thumb,
    .plp-listing-zone--right .plp-filter-mount-slot:hover::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.15);
    }
    .plp-listing-zone--left .plp-filter-mount-slot:hover::-webkit-scrollbar-thumb:hover,
    .plp-listing-zone--right .plp-filter-mount-slot:hover::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0, 0, 0, 0.26);
    }
}
@media (min-width: 768px) and (prefers-color-scheme: dark) {
    .plp-listing-zone--left .plp-filter-mount-slot:hover::-webkit-scrollbar-thumb,
    .plp-listing-zone--right .plp-filter-mount-slot:hover::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.18);
    }
    .plp-listing-zone--left .plp-filter-mount-slot:hover::-webkit-scrollbar-thumb:hover,
    .plp-listing-zone--right .plp-filter-mount-slot:hover::-webkit-scrollbar-thumb:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }
}
/* Minimal filter scrollbars: sheet + accordion bodies (always visible when scrolling) */
.plp-filter-sheet__body,
.plp-filter-accordion .panel-body.plp-filter-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}
@media (prefers-color-scheme: dark) {
    .plp-filter-sheet__body,
    .plp-filter-accordion .panel-body.plp-filter-body {
        scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
    }
}
.plp-filter-sheet__body::-webkit-scrollbar,
.plp-filter-accordion .panel-body.plp-filter-body::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
.plp-filter-sheet__body::-webkit-scrollbar-track,
.plp-filter-accordion .panel-body.plp-filter-body::-webkit-scrollbar-track {
    background: transparent;
}
.plp-filter-sheet__body::-webkit-scrollbar-thumb,
.plp-filter-accordion .panel-body.plp-filter-body::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 100px;
}
.plp-filter-sheet__body::-webkit-scrollbar-thumb:hover,
.plp-filter-accordion .panel-body.plp-filter-body::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.26);
}
@media (prefers-color-scheme: dark) {
    .plp-filter-sheet__body::-webkit-scrollbar-thumb,
    .plp-filter-accordion .panel-body.plp-filter-body::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.18);
    }
    .plp-filter-sheet__body::-webkit-scrollbar-thumb:hover,
    .plp-filter-accordion .panel-body.plp-filter-body::-webkit-scrollbar-thumb:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }
}
.plp-listing-zone--left .plp-filter-accordion.ui-accordion .panel-body.plp-filter-body,
.plp-listing-zone--right .plp-filter-accordion.ui-accordion .panel-body.plp-filter-body {
    max-height: none;
    overflow: visible;
}
.plp-filter-accordion.ui-accordion { margin-bottom: 8px; }
.plp-filter-accordion.ui-accordion .panel.plp-filter-panel { margin-bottom: 6px; }
/* max-height: top bar uses inline plm* viewport helper; side columns use slot scroll instead */
.plp-filter-accordion.ui-accordion .panel-body.plp-filter-body {
    max-height: min(70vh, 28rem);
    overflow: auto;
    box-sizing: border-box;
}
/* Price panel: compact content — no inner scroll; height follows content */
.plp-filter-accordion.ui-accordion .plp-filter-panel[data-plm-block="price"] .panel-body.plp-filter-body {
    max-height: none;
    overflow: visible;
}
.plp-filter-accordion.ui-accordion .panel-body.plp-filter-body input[type="checkbox"] { 
    width: 18px; 
    height: 18px;
    margin: 0;
}

.plp-filter-accordion .plm-filter-switch-row.form-group-v2,
.plp-filter-bool-switch-standalone .plm-filter-switch-row.form-group-v2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 6px 0 2px;
    width: 100%;
}

.plp-filter-accordion .plm-filter-switch-row .control-label-v2,
.plp-filter-bool-switch-standalone .plm-filter-switch-row .control-label-v2 {
    position: static;
    transform: none;
    font-size: 14px;
    line-height: 1.35;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.plp-filter-accordion .plm-filter-switch-row .switch.form-control-v2,
.plp-filter-bool-switch-standalone .plm-filter-switch-row .switch.form-control-v2 {
    margin: 0;
    flex-shrink: 0;
}

.plp-filter-accordion .plm-filter-switch-row .switch input[type="checkbox"],
.plp-filter-bool-switch-standalone .plm-filter-switch-row .switch input[type="checkbox"] {
    width: 0;
    height: 0;
    margin: 0;
}
.plp-filter-accordion.ui-accordion .panel-heading { padding: 0; }
.plp-filter-accordion.ui-accordion .panel-title { font-size: 14px; font-weight: 600; margin: 0; }
.plp-filter-accordion.ui-accordion .panel-title > a.accordion-toggle { display: block; text-decoration: none; cursor: pointer; }
ul.plp-filter-cat-tree { list-style: none; padding-left: 0; margin: 0; }
.plp-filter-cat-item { list-style: none; margin: 2px 0; }
.plp-filter-cat-row { 
    display: flex; 
    align-items: flex-start; 
    gap: 6px; 
    align-items: center;

}
.plp-filter-cat-toggle {
    flex: 0 0 22px; 
    width: 22px; 
    height: 22px; 
    padding: 0; 
    margin: 0;
    border: none; background: transparent; cursor: pointer; line-height: 1;
    color: var(--black-color, #333);
}
.plp-filter-cat-toggle--leaf { flex: 0 0 22px; width: 22px; visibility: hidden; pointer-events: none; }
.plp-filter-cat-toggle-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid var(--black-color, #333);
    box-sizing: border-box;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    user-select: none;
}
.plp-filter-cat-toggle-symbol-plus,
.plp-filter-cat-toggle-symbol-minus { display: block; }
.plp-filter-cat-toggle[aria-expanded="true"] .plp-filter-cat-toggle-symbol-plus { display: none; }
.plp-filter-cat-toggle[aria-expanded="true"] .plp-filter-cat-toggle-symbol-minus { display: block; }
.plp-filter-cat-toggle[aria-expanded="false"] .plp-filter-cat-toggle-symbol-plus { display: block; }
.plp-filter-cat-toggle[aria-expanded="false"] .plp-filter-cat-toggle-symbol-minus { display: none; }
.plp-filter-cat-children { padding-left: 12px; margin: 0; }
.plp-filter-cat-children.plp-filter-cat-children--collapsed { display: none; }
.plp-filter-cat-row label { flex: 1; min-width: 0; margin: 0; }
.plp-filter-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.plp-filter-bulk {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
}
.plp-filter-search-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}
.plp-filter-search-row .plp-filter-search-wrap {
    flex: 1 1 auto;
    min-width: 0;
}
.plp-filter-search-row .plp-filter-search-wrap .form-control {
    width: 100%;
}
.plp-filter-search-row .plp-filter-search-clear {
    flex: 0 0 auto;
}
.plp-filter-price-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 0;
    box-sizing: border-box;
}
.plp-filter-price-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.plp-filter-price-field__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--black-color, #333);
}
.plp-filter-price-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}
.plp-filter-price-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
}
.plp-filter-price-input-wrap .form-control {
    width: 100%;
}
.plp-filter-price-row .plp-filter-price-input-clear {
    flex: 0 0 auto;
}
.plp-filter-bulk__btn.plp-filter-bulk__btn--with-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-color: var(--lightgrey-color);
    background: transparent;
}
.plp-filter-bulk__btn.plp-filter-bulk__btn--with-label:hover {
    background-color: var(--lightgrey-color);
    border-color: var(--grey-color);
}

.plp-filter-bulk__btn.plp-filter-bulk__btn--with-label .plp-filter-bulk__btn-text {
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}
.plp-filter-bulk__btn.plp-filter-bulk__btn--with-label svg {
    display: block;
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    fill: var(--black-color);
}
.plp-filter-bulk__btn.plp-filter-bulk__btn--icon,
.plp-filter-price-input-clear.plp-filter-bulk__btn--icon,
.plp-filter-search-clear.plp-filter-bulk__btn--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
}
.plp-filter-bulk__btn.plp-filter-bulk__btn--icon:hover,
.plp-filter-price-input-clear.plp-filter-bulk__btn--icon:hover,
.plp-filter-search-clear.plp-filter-bulk__btn--icon:hover {
    background: var(--lightgrey-color);
    border: 1px solid var(--grey-color);
}
.plp-filter-bulk__btn.plp-filter-bulk__btn--icon svg,
.plp-filter-price-input-clear.plp-filter-bulk__btn--icon svg,
.plp-filter-search-clear.plp-filter-bulk__btn--icon svg {
    display: block;
    width: 1.4em;
    height: 1.4em;
    fill: var(--black-color);
}
@media (max-width: 767px) {
    .plp-listing-zone--left, .plp-listing-zone--right { grid-template-columns: 1fr; }
    .plp-listing-zone--right .plp-filter-mount-slot { order: 0; }
    .plp-listing-zone--top .plp-filter-mount .plp-filter-panel.plp-filter-panel {
        flex: 1 1 100%;
        min-width: 0;
    }
    .plp-listing-zone--top .plp-filter-mount > .plp-filter-search-standalone,
    .plp-listing-zone--top .plp-filter-mount > .plp-filter-bool-switch-standalone {
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
    }
}
.plp-filter-panel.panel-default .panel-heading {
    background-color: transparent;
    color: var(--black-color);
}
.plp-filter-panel.panel-default .panel-heading:hover {
    background-color: var(--lightgrey-color);
}
.plp-filter-panel.panel-default .panel-heading .panel-title a {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
}
.plp-filter-panel.panel-default .panel-heading .panel-title a:hover {
    color: var(--black-color);
}
/* Active filter group: accent bar + subtle fill (all PLP filter positions) */
.plp-filter-panel.plp-filter-panel--has-selection > .panel-heading {
    background-color: rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--black-color, #333);
    box-sizing: border-box;
}
.plp-filter-panel.plp-filter-panel--has-selection > .panel-heading:hover {
    background-color: rgba(0, 0, 0, 0.08);
}
/* Listing search / boolean switches: direct children of filter mount, not inside accordion */
.plp-filter-search-standalone,
.plp-filter-bool-switch-standalone {
    margin-bottom: 8px;
    box-sizing: border-box;
}
.plp-filter-search-standalone.plp-filter-search-standalone--has-selection,
.plp-filter-bool-switch-standalone.plp-filter-bool-switch-standalone--has-selection {
    border-left: 3px solid var(--black-color, #333);
    padding-left: 9px;
    box-sizing: border-box;
}
.plp-filter-bool-switch-standalone .plm-filter-switch-row.form-group-v2 {
    margin: 0;
}
.plp-filter-accordion label {
    font-weight: normal;
    display: flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
}
.plp-filter-accordion .plp-filter-price-input-wrap input.plp-f-pmin,
.plp-filter-accordion .plp-filter-price-input-wrap input.plp-f-pmax {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    text-align: right;
    box-sizing: border-box;
}
/* Mobile: floating filter button + sheet (filters hidden in flow; mount moved into sheet via JS) */
.plp-filter-fab {
    display: none;
    position: fixed;
    z-index: 100060;
    width: 56px;
    height: 56px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    background-color: var(--plp-filter-fab-bg, #6bafe8);
    color: var(--plp-filter-fab-fg, #ffffff);
    cursor: move;
    cursor: grab;
    align-items: center;
    justify-content: center;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    top: 30%;
    bottom: auto;
    left: auto;
    right: 24px;
}
.plp-filter-fab:active {
    cursor: grabbing;
}
.plp-filter-fab__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.plp-filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 100070;
    display: none;
    align-items: stretch;
    justify-content: stretch;
}
.plp-filter-sheet[hidden] {
    display: none !important;
}
.plp-filter-sheet.plp-filter-sheet--open {
    display: flex !important;
}
.plp-filter-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.plp-filter-sheet__dialog {
    position: relative;
    margin: 0 0 0 auto;
    width: min(100%, 420px);
    max-width: 100%;
    height: 100%;
    background: var(--white-color, #fff);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.plp-filter-sheet__header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--lightgrey-color, #ddd);
}
.plp-filter-sheet__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}
.plp-filter-sheet__close {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    color: var(--black-color, #333);
}
.plp-filter-sheet__body {
    flex: 1 1 auto;
    overflow: auto;
    min-height: 0;
    padding: 12px 14px;
}
.plp-filter-sheet__body #plm-filter-mount {
    margin-top: 0;
}
.plp-filter-sheet__body #plm-filter-mount .plp-filter-actions {
    display: none !important;
}
#plm-filter-mount .plm-filter-currency-row {
    margin-top: 10px;
}
#plm-filter-mount .plm-filter-currency-row .plm-filter-currency-label {
    display: block;
    font-weight: normal;
}
#plm-filter-mount .plm-filter-currency-row .form-control.plm-f-cur {
    max-width: 100%;
    margin-top: 4px;
}
.plp-filter-sheet__footer {
    flex: 0 0 auto;
    padding: 12px 14px 20px;
    border-top: 1px solid var(--lightgrey-color, #ddd);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
@media (max-width: 767px) {
    .property-listing-map--plm-filter-mobile .plp-filter-mount-slot {
        display: none !important;
    }
    .property-listing-map--plm-filter-mobile .plp-filter-fab { display: flex; }
}
