.properties-page {
    --properties-header-height: 76px;
    --properties-shell-gap: 12px;
    width: 100%;
    max-width: 1920px;
    height: calc(100dvh - var(--properties-header-height));
    min-height: calc(100dvh - var(--properties-header-height));
    margin: 0 auto;
    background: var(--color-white);
    overflow: hidden;
}

.properties-page + .site-footer {
    display: block;
}

.properties-shell {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: var(--properties-shell-gap);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: var(--properties-shell-gap);
}

.properties-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    min-width: 0;
}

.properties-toolbar strong {
    display: block;
    color: var(--color-text);
    font-weight: 900;
}

.properties-toolbar span {
    color: var(--color-muted);
    font-size: 14px;
}

.properties-pane-switchers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.properties-pane-switchers button,
.properties-apply-btn,
.properties-pagination button,
.properties-filters-panel > .properties-pane-head [data-clear-properties-filters] {
    border: 1px solid var(--color-line);
    background: var(--color-white);
    color: var(--color-muted);
    border-radius: var(--radius-pill);
    padding: 10px 15px;
    font-family: var(--font-medium);
    cursor: pointer;
    transition: all .2s ease;
}

.properties-pane-switchers button.is-active,
.properties-apply-btn,
.properties-pagination button:hover,
.properties-filters-panel > .properties-pane-head [data-clear-properties-filters]:hover {
    background: var(--color-olive);
    border-color: var(--color-olive);
    color: var(--color-white);
    font-size: var(--fs-sm);
}
.properties-filters-panel {
    position: relative;
}
.properties-layout {
    display: grid;
    gap: var(--properties-shell-gap);
    align-items: stretch;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.properties-layout.show-filters.show-list.show-map {
    grid-template-columns: minmax(260px, 320px) minmax(330px, 430px) minmax(520px, 1fr);
}

.properties-layout.show-filters.show-list:not(.show-map) {
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
}

.properties-layout.show-filters.show-map:not(.show-list) {
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
}

.properties-layout.show-list.show-map:not(.show-filters) {
    grid-template-columns: minmax(520px, .9fr) minmax(640px, 1.1fr);
}

.properties-layout:not(.show-filters) [data-pane="filters"],
.properties-layout:not(.show-list) [data-pane="list"],
.properties-layout:not(.show-map) [data-pane="map"] {
    display: none;
}

.properties-filters-panel,
.properties-results-panel,
.properties-map-panel {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.properties-filter-form,
.properties-results-panel,
.properties-map-card {
    min-width: 0;
}

.properties-results-panel {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.properties-filter-form {
    height: 100%;
    max-height: 100%;
    padding: 18px;
    gap: 16px;
    align-content: start;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    position: absolute;
    padding: 80px 20px 80px 4px;
}

.results-head,
.filter-range-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.results-head h2 {
    margin: 0;
    font-family: var(--font-bold);
    color: var(--color-text);
    letter-spacing: -.04em;
}

.properties-filter-form label,
.filter-range-card {
    display: grid;
    gap: 6px;
    min-width: 0;
    margin: 0 0 12px;
}

.properties-filter-form label > span,
.filter-range-head span,
.filter-chip-group > span {
    color: #8d8d8d;
    font-family: var(--font-medium);
    font-size: var(--fs-micro);
}

.properties-filter-form input,
.properties-filter-form select {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: #f2f2f200;
    color: var(--color-text);
    padding: 14px 14px;
    font: inherit;
    font-weight: 700;
    outline: none;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
}

.filter-two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.filter-range-card,
.filter-details {
    border-radius: var(--radius-xl);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    padding: 14px;
    min-width: 0;
}

.filter-details {
    margin: 0 0 20px;
}

.filter-range-head small {
    color: var(--color-olive);
    font-family: var(--font-thin);
    font-size: var(--fs-xxs);
}

.filter-details summary {
    cursor: pointer;
    color: var(--color-text);
    font-weight: 900;
    list-style: none;
}

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

.filter-details-grid {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.filter-chip-group {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.filter-chip-group > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    display: inline-flex !important;
    align-items: center;
    gap: 8px !important;
    width: auto !important;
    padding: 9px 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-pill);
    background: var(--color-white);
    color: var(--color-text);
    cursor: pointer;
}

.filter-chip input {
    width: 15px;
    height: 15px;
    padding: 0;
    accent-color: var(--color-olive);
}

.properties-apply-btn {
    width: 100%;
    justify-content: center;
}

.properties-results-panel {
    height: 100%;
    padding: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.results-head {
    margin-bottom: 14px;
}

.results-head p,
[data-results-status] {
    margin: 4px 0 0;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 700;
}

.properties-results-grid {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 14px;
    padding: 20px;
    scrollbar-width: thin;
}

.properties-layout.show-filters.show-list.show-map .properties-results-grid {
    grid-template-columns: 1fr;
}

.listing-property-card {
    display: grid;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--color-line);
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow-extra-soft);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    border-radius: var(--radius-xl);
}

.listing-property-image,.listing-property-image-wrap {
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
}

.listing-property-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--color-olive) 45%, var(--color-line));
    box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px;
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
}

.listing-property-image-wrap {
    position: relative;
    aspect-ratio: 1.45 / 1;
    background: var(--color-white-extra-soft);
    overflow: hidden;
}

.listing-property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    overflow: hidden;
}

.listing-property-card:hover .listing-property-image {
    transform: scale(1.045);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
}

.listing-property-badge,
.listing-property-sold {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 900;
    background-color: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--color-white);
    box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px;
}

.listing-property-sold {
    left: auto;
    right: 12px;
    background: var(--color-text);
    color: var(--color-white);
}

.listing-property-body {
    display: grid;
    gap: 9px;
    padding: 14px;
}

.listing-property-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 850;
}

.listing-property-body h3 {
    margin: 0;
    color: var(--color-text);
    font-size: 18px;
    line-height: 1.22;
    letter-spacing: -.04em;
}

.listing-property-body p,
.listing-property-location {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.55;
    font-size: 13px;
}

.listing-property-price {
    color: var(--color-text);
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.04em;
}

.listing-property-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--color-line);
}

.listing-property-spec {
    min-width: 0;
    display: grid;
    gap: 2px;
    justify-items: start;
    color: var(--color-muted);
    font-size: 11px;
}

.listing-property-spec > span {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
}

.listing-property-spec-icon-img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.listing-property-spec strong {
    color: var(--color-text);
    font-size: 14px;
}

.listing-property-spec small {
    color: var(--color-muted);
    white-space: nowrap;
}

.properties-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-line);
}

.properties-pagination button.is-active {
    background: var(--color-olive);
    color: var(--color-white);
}

.properties-map-card {
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: block;
    background: #eef1f3;
    isolation: isolate;
}

.properties-map {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #eef1f3;
    z-index: 1;
}

.properties-map.leaflet-container,
#propertiesMap.leaflet-container {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    background: #eef1f3 !important;
}

#propertiesMap .leaflet-pane,
#propertiesMap .leaflet-map-pane,
#propertiesMap .leaflet-tile-pane,
#propertiesMap .leaflet-overlay-pane,
#propertiesMap .leaflet-marker-pane,
#propertiesMap .leaflet-shadow-pane {
    max-width: none !important;
}

#propertiesMap img,
#propertiesMap .leaflet-tile,
#propertiesMap .leaflet-marker-icon,
#propertiesMap .leaflet-marker-shadow {
    max-width: none !important;
    max-height: none !important;
}

#propertiesMap .leaflet-tile {
    width: 256px !important;
    height: 256px !important;
    display: block !important;
}

#propertiesMap .leaflet-tile-container,
#propertiesMap .leaflet-marker-pane,
#propertiesMap .leaflet-map-pane {
    backface-visibility: hidden;
}

#propertiesMap .leaflet-tile {
    backface-visibility: hidden;
}

#propertiesMap .properties-smooth-map-tile,
#propertiesMap .properties-fast-map-tile {
    transform-origin: center center;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

#propertiesMap.leaflet-fade-anim .leaflet-tile {
    transition: opacity .16s ease-out !important;
}

#propertiesMap .leaflet-tile-container {
    backface-visibility: hidden;
}

#propertiesMap .properties-map-tile-buffer {
    z-index: 180 !important;
    pointer-events: none !important;
    opacity: 1 !important;
    transition: none !important;
    filter: none !important;
}

#propertiesMap .properties-map-tile-buffer img,
#propertiesMap .properties-map-tile-buffer .leaflet-tile,
#propertiesMap .properties-map-tile-buffer .leaflet-tile-loaded {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
    display: block !important;
}

#propertiesMap.is-smooth-zooming .leaflet-tile-pane,
#propertiesMap.is-smooth-zooming .leaflet-layer,
#propertiesMap.is-smooth-zooming .leaflet-tile-container {
    will-change: transform;
}

#propertiesMap.leaflet-zoom-anim .leaflet-zoom-animated {
    will-change: transform;
}

#propertiesMap.is-smooth-zooming .leaflet-tile,
#propertiesMap.is-smooth-zooming .leaflet-tile-container,
#propertiesMap.is-smooth-zooming .leaflet-map-pane {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

#propertiesMap.is-smooth-zooming .leaflet-marker-pane {
    will-change: transform;
}

.map-privacy-note {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 450;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--color-white) 88%, transparent);
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
    border: 1px solid var(--color-line);
    box-shadow: var(--shadow-extra-soft);
    backdrop-filter: blur(12px);
}

.map-price-marker {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: 0 !important;
}

.map-price-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    min-height: 34px;
    padding: 8px 13px;
    border-radius: 7px;
    background: #20242d;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.02em;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .24);
    border: 0;
    text-decoration: none;
    white-space: nowrap;
    transition: none;
    backface-visibility: hidden;
}

.map-price-tag::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 0;
    margin-left: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #20242d;
}

.map-price-tag:hover {
    background: #161a22;
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(15, 23, 42, .3);
}

.map-price-tag:hover::after {
    border-top-color: #161a22;
}

.leaflet-popup-content-wrapper {
    border-radius: var(--radius-xl) !important;
}

.map-property-popup {
    display: grid;
    grid-template-columns: 76px 160px;
    gap: 10px;
    align-items: center;
    cursor: pointer;
}

.map-property-popup img {
    width: 76px !important;
    height: 58px !important;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.map-property-popup strong {
    display: block;
    color: var(--color-text);
    font-size: 13px;
    line-height: 1.25;
}

.map-property-popup span {
    display: block;
    color: var(--color-olive);
    font-weight: 900;
    margin-top: 4px;
}

.properties-empty {
    border: 1px dashed var(--color-line);
    border-radius: var(--radius-xl);
    padding: 38px 18px;
    text-align: center;
    color: var(--color-muted);
    background: var(--color-white-soft);
    font-weight: 800;
}

[data-filter-scope][hidden] {
    display: none !important;
}

.is-empty-filter {
    display: none !important;
}

@media (max-width: 1440px) {
    .properties-layout.show-filters.show-list.show-map {
        grid-template-columns: minmax(250px, 300px) minmax(300px, 380px) minmax(440px, 1fr);
    }
}

@media (max-width: 1180px) {
    .properties-page {
        height: auto;
        min-height: calc(100dvh - var(--properties-header-height));
        overflow: visible;
    }

    .properties-shell {
        min-height: calc(100dvh - var(--properties-header-height));
        height: auto;
    }

    .properties-layout,
    .properties-layout.show-filters.show-list.show-map,
    .properties-layout.show-filters.show-list:not(.show-map),
    .properties-layout.show-filters.show-map:not(.show-list),
    .properties-layout.show-list.show-map:not(.show-filters) {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }

    .properties-filter-form,
    .properties-results-panel {
        max-height: min(720px, calc(100dvh - 140px));
    }

    .properties-map-panel,
    .properties-map-card {
        height: min(680px, calc(100dvh - 140px));
        min-height: 420px;
    }

    .properties-results-grid,
    .properties-layout.show-filters.show-list.show-map .properties-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .properties-layout[data-visible-count="2"] .properties-results-grid,
    .properties-layout[data-visible-count="3"] .properties-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.enteco-properties-view .properties-page,
    .properties-page {
        height: calc(100dvh - var(--properties-header-height)) !important;
        min-height: calc(100dvh - var(--properties-header-height)) !important;
        max-height: calc(100dvh - var(--properties-header-height)) !important;
        overflow: hidden !important;
    }

    body.enteco-properties-view .properties-shell,
    .properties-shell {
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        overflow: hidden !important;
    }

    .properties-layout,
    .properties-layout.show-filters.show-list.show-map,
    .properties-layout.show-filters.show-list:not(.show-map),
    .properties-layout.show-filters.show-map:not(.show-list),
    .properties-layout.show-list.show-map:not(.show-filters),
    .properties-layout.show-list:not(.show-filters):not(.show-map),
    .properties-layout.show-map:not(.show-filters):not(.show-list),
    .properties-layout.show-filters:not(.show-list):not(.show-map) {
        grid-template-columns: minmax(0, 1fr) !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .properties-results-panel {
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        box-shadow: none;
        border: none;
        outline: none;
    }

    .properties-results-grid,
    .properties-layout.show-filters.show-list.show-map .properties-results-grid,
    .properties-layout.show-list.show-map:not(.show-filters) .properties-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .properties-filters-panel,
    .properties-map-panel {
        position: fixed;
        top: var(--properties-header-height);
        bottom: 0;
        z-index: 980;
        height: calc(100dvh - var(--properties-header-height));
        max-height: calc(100dvh - var(--properties-header-height));
        padding: 12px;
        background: var(--color-white);
        opacity: 0;
        pointer-events: none;
        transition: transform .32s cubic-bezier(.22, .61, .36, 1), opacity .22s ease;
    }

    .properties-filters-panel {
        left: 0;
        width: min(420px, 88vw);
        transform: translateX(calc(-100% - 18px));
    }

    .properties-map-panel {
        right: 0;
        width: min(720px, 94vw);
        transform: translateX(calc(100% + 18px));
    }

    body.enteco-filter-sidebar-open .properties-filters-panel {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    body.enteco-map-sidebar-open .properties-map-panel {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    .properties-sidebar-overlay {
        position: fixed;
        left: 0;
        right: 0;
        top: var(--properties-header-height);
        bottom: 0;
        z-index: 970;
        background: rgba(15, 23, 42, .28);
        backdrop-filter: blur(4px);
        opacity: 0;
        transition: opacity .22s ease;
    }

    body.enteco-filter-sidebar-open .properties-sidebar-overlay,
    body.enteco-map-sidebar-open .properties-sidebar-overlay {
        display: block;
        opacity: 1;
    }

    .properties-floating-pane-btn {
        position: fixed;
        top: 50%;
        z-index: 960;
        width: 42px;
        height: 54px;
        display: inline-grid;
        place-items: center;
        border: 1px solid var(--color-line);
        background: var(--color-white);
        color: var(--color-olive);
        box-shadow: var(--shadow-soft);
        cursor: pointer;
        transform: translateY(-50%);
        transition: transform .2s ease, background .2s ease, color .2s ease;
        justify-content: center;
        align-content: center;
        align-items: center;
        justify-items: center;
    }

    .properties-floating-pane-btn:nth-of-type(2) img{
        width: 25px !important;
    }

    .properties-floating-pane-btn:hover {
        background: var(--color-olive);
        color: var(--color-white);
    }

    .properties-floating-pane-btn--filters {
        left: 0;
        border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    }

    .properties-floating-pane-btn--map {
        right: 0;
        border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    }

    .properties-floating-pane-btn span {
        font-size: 20px;
        font-weight: 900;
        line-height: 1;
    }

    .properties-map-panel .properties-map-card,
    .properties-filters-panel .properties-filter-form {
        min-height: 0;
        height: 100%;
    }
    .properties-toolbar {
        align-items: center;
        flex-direction: row;
    }
    html.enteco-properties-view,
    body.enteco-properties-view {
        height: auto !important;
        min-height: 100% !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: auto !important;
    }

    body.enteco-properties-view .properties-page,
    .properties-page {
        height: auto !important;
        min-height: calc(100dvh - var(--properties-header-height)) !important;
        max-height: none !important;
        overflow: visible !important;
    }

    body.enteco-properties-view .properties-shell,
    .properties-shell {
        height: auto !important;
        min-height: calc(100dvh - var(--properties-header-height)) !important;
        max-height: none !important;
        overflow: visible !important;
        grid-template-rows: auto auto !important;
    }

    .properties-pane-switchers,
    body.enteco-properties-view .properties-pane-switchers,
    .properties-toolbar .properties-pane-switchers {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .properties-layout,
    .properties-layout.show-filters.show-list.show-map,
    .properties-layout.show-filters.show-list:not(.show-map),
    .properties-layout.show-filters.show-map:not(.show-list),
    .properties-layout.show-list.show-map:not(.show-filters),
    .properties-layout.show-list:not(.show-filters):not(.show-map),
    .properties-layout.show-map:not(.show-filters):not(.show-list),
    .properties-layout.show-filters:not(.show-list):not(.show-map) {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .properties-results-panel {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
    }

    .properties-results-grid,
    .properties-layout.show-filters.show-list.show-map .properties-results-grid,
    .properties-layout.show-list.show-map:not(.show-filters) .properties-results-grid,
    .properties-layout[data-visible-count="2"] .properties-results-grid,
    .properties-layout[data-visible-count="3"] .properties-results-grid {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
        min-height: 0 !important;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        padding-right: 0 !important;
        padding: 0;
    }

    .properties-filters-panel,
    .properties-map-panel {
        display: block !important;
        position: fixed !important;
        top: var(--properties-header-height) !important;
        bottom: 0 !important;
        z-index: 980 !important;
        height: calc(100dvh - var(--properties-header-height)) !important;
        max-height: calc(100dvh - var(--properties-header-height)) !important;
        overflow: visible !important;
        opacity: 0;
        pointer-events: none;
    }

    .properties-filters-panel {
        left: 0 !important;
        width: min(420px, 86vw) !important;
        transform: translateX(calc(-100% - 20px));
    }

    .properties-map-panel {
        right: 0 !important;
        width: min(720px, 88vw) !important;
        transform: translateX(calc(100% + 20px));
    }

    .properties-pane-close {
        display: inline-grid;
        place-items: center;
        flex: 0 0 auto;
    }

    .properties-pane-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .properties-floating-pane-btn {
        display: inline-grid !important;
    }

    .properties-map-panel .properties-map-card,
    .properties-filters-panel .properties-filter-form {
        height: 100% !important;
        max-height: 100% !important;
        overflow: auto !important;
    }

    .properties-pagination {
        position: static;
        margin-top: 20px;
        padding: 16px 0 4px;
    }
    body.enteco-properties-view {
        padding-top: var(--properties-header-height, 76px) !important;
    }

    body.enteco-properties-view .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1050 !important;
        transform: translateZ(0);
    }
}

@media (max-width: 760px) {
    .properties-page {
        --properties-shell-gap: 10px;
    }

    .properties-toolbar {
        align-items: flex-start;
        flex-direction: column;
        border-radius: var(--radius-xl);
    }

    .properties-filter-form,
    .properties-results-panel,
    .properties-map-card {
        border-radius: var(--radius-xl);
    }

    .filter-two-cols {
        grid-template-columns: 1fr;
    }

    .properties-results-grid,
    .properties-layout.show-filters.show-list.show-map .properties-results-grid {
        grid-template-columns: 1fr;
    }

    .properties-map-panel,
    .properties-map-card {
        height: min(560px, 72dvh);
        min-height: 360px;
    }

    .map-privacy-note {
        left: 8px;
        right: 8px;
        bottom: 8px;
        border-radius: var(--radius-lg);
    }
    .properties-no-stock {
        min-height: 640px;
        padding: 18px;
    }

    .properties-no-stock-card {
        padding: 30px 18px;
    }

    .properties-no-stock-actions {
        width: 100%;
    }

    .properties-no-stock-actions a {
        width: 100%;
    }

    .properties-layout[data-visible-count="2"] .properties-results-grid,
    .properties-layout[data-visible-count="3"] .properties-results-grid {
        grid-template-columns: 1fr;
    }
    .properties-toolbar {
        gap: 10px;
    }

    .properties-results-grid,
    .properties-layout.show-filters.show-list.show-map .properties-results-grid,
    .properties-layout.show-list.show-map:not(.show-filters) .properties-results-grid {
        grid-template-columns: 1fr;
    }

    .properties-map-panel {
        width: min(100vw, 100%);
    }

    .properties-filters-panel {
        width: min(390px, 92vw);
    }
    .properties-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .properties-results-grid,
    .properties-layout.show-filters.show-list.show-map .properties-results-grid,
    .properties-layout.show-list.show-map:not(.show-filters) .properties-results-grid,
    .properties-layout[data-visible-count="2"] .properties-results-grid,
    .properties-layout[data-visible-count="3"] .properties-results-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .listing-property-card {
        display: grid !important;
        grid-template-rows: auto auto;
        min-height: 0;
        overflow: visible;
    }

    .listing-property-image-wrap {
        aspect-ratio: auto !important;
        height: clamp(210px, 46vw, 300px) !important;
        min-height: 210px;
        max-height: 300px;
    }

    .listing-property-body {
        display: grid !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        padding: 14px 14px 16px;
    }

    .listing-property-body h3 {
        font-size: clamp(18px, 5.2vw, 24px);
        line-height: 1.18;
    }

    .listing-property-body p,
    .listing-property-location {
        font-size: 14px;
        line-height: 1.5;
    }
    .properties-results-grid,
    .properties-layout.show-filters.show-list.show-map .properties-results-grid,
    .properties-layout.show-list.show-map:not(.show-filters) .properties-results-grid,
    .properties-layout[data-visible-count="2"] .properties-results-grid,
    .properties-layout[data-visible-count="3"] .properties-results-grid {
        grid-template-columns: 1fr !important;
    }

    .listing-property-card {
        height: max-content !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-rows: auto auto !important;
    }

    .listing-property-image-wrap {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 1.45 / 1 !important;
    }

    .listing-property-body {
        display: grid !important;
        height: auto !important;
        min-height: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
    }

    .properties-pagination button {
        min-width: 38px;
        height: 38px;
        border-radius: 10px;
        padding: 0 10px;
    }
}


/* Listing viewport states */
.properties-shell.has-no-stock {
    grid-template-rows: auto minmax(700px, 1fr);
}

.properties-shell.has-no-stock .properties-layout {
    display: none !important;
}

.properties-shell.has-no-stock .properties-pane-switchers {
    display: none !important;
}

.properties-no-stock[hidden] {
    display: none !important;
}

.properties-no-stock {
    min-height: 700px;
    height: 100%;
    display: grid;
    place-items: center;
    padding: clamp(24px, 4vw, 54px);
}

.properties-no-stock-card {
    width: min(820px, 100%);
    text-align: center;
    border: 1px solid var(--color-line);
    border-radius: 22px;
    background: linear-gradient(145deg, var(--color-white), var(--color-white-soft));
    box-shadow: var(--shadow-soft);
    padding: clamp(34px, 6vw, 72px);
    display: grid;
    justify-items: center;
    gap: 18px;
}

.properties-no-stock-mark {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: var(--color-olive-soft);
    color: var(--color-olive);
    font-size: 34px;
    font-weight: 900;
}

.properties-no-stock-card h1 {
    margin: 0;
    color: var(--color-text);
    font-family: var(--font-bold);
    font-size: clamp(30px, 4vw, 52px);
    letter-spacing: -.04em;
    line-height: 1.05;
}

.properties-no-stock-card p {
    margin: 0;
    max-width: 680px;
    color: var(--color-muted);
    line-height: 1.75;
    font-weight: 750;
}

.properties-no-stock-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.properties-no-stock-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 900;
    border: 1px solid var(--color-olive);
    background: var(--color-olive);
    color: var(--color-white);
    transition: all .2s ease;
}

.properties-no-stock-actions a + a {
    background: var(--color-white);
    color: var(--color-olive);
}

.properties-no-stock-actions a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Strong Leaflet fallback. It keeps the map usable even if the external Leaflet CSS is blocked. */
.properties-map-card,
#propertiesMap {
    contain: layout size;
}

#propertiesMap.leaflet-container {
    position: relative !important;
    overflow: hidden !important;
    touch-action: pan-x pan-y;
    font-family: var(--font-primary);
}

#propertiesMap .leaflet-pane,
#propertiesMap .leaflet-tile,
#propertiesMap .leaflet-marker-icon,
#propertiesMap .leaflet-marker-shadow,
#propertiesMap .leaflet-tile-container,
#propertiesMap .leaflet-pane > svg,
#propertiesMap .leaflet-pane > canvas,
#propertiesMap .leaflet-zoom-box,
#propertiesMap .leaflet-image-layer,
#propertiesMap .leaflet-layer {
    position: absolute !important;
    left: 0;
    top: 0;
}

#propertiesMap .leaflet-container,
#propertiesMap .leaflet-tile-pane,
#propertiesMap .leaflet-overlay-pane,
#propertiesMap .leaflet-shadow-pane,
#propertiesMap .leaflet-marker-pane,
#propertiesMap .leaflet-tooltip-pane,
#propertiesMap .leaflet-popup-pane,
#propertiesMap .leaflet-map-pane {
    position: absolute !important;
    left: 0;
    top: 0;
}

#propertiesMap .leaflet-map-pane {
    z-index: 400;
}

#propertiesMap .leaflet-tile-pane {
    z-index: 200;
    background: var(--color-white-extra-soft);
}

#propertiesMap .leaflet-overlay-pane {
    z-index: 400;
}

#propertiesMap .leaflet-shadow-pane {
    z-index: 500;
}

#propertiesMap .leaflet-marker-pane {
    z-index: 600;
}

#propertiesMap .leaflet-tooltip-pane {
    z-index: 650;
}

#propertiesMap .leaflet-popup-pane {
    z-index: 700;
}

#propertiesMap .leaflet-control {
    position: relative;
    z-index: 800;
    pointer-events: auto;
    float: left;
    clear: both;
}

#propertiesMap .leaflet-top,
#propertiesMap .leaflet-bottom {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
}

#propertiesMap .leaflet-top { top: 0; }
#propertiesMap .leaflet-bottom { bottom: 0; }
#propertiesMap .leaflet-left { left: 0; }
#propertiesMap .leaflet-right { right: 0; }
#propertiesMap .leaflet-right .leaflet-control { float: right; }
#propertiesMap .leaflet-top .leaflet-control { margin-top: 10px; }
#propertiesMap .leaflet-left .leaflet-control { margin-left: 10px; }
#propertiesMap .leaflet-right .leaflet-control { margin-right: 10px; }
#propertiesMap .leaflet-bottom .leaflet-control { margin-bottom: 10px; }

#propertiesMap .leaflet-control-zoom a {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-white);
    border-bottom: 1px solid var(--color-line);
    font-weight: 900;
}

#propertiesMap .leaflet-control-zoom {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-extra-soft);
}

#propertiesMap .leaflet-control-attribution {
    background: color-mix(in srgb, var(--color-white) 82%, transparent);
    padding: 3px 7px;
    border-radius: var(--radius-sm);
    color: var(--color-muted);
    font-size: 11px;
}

#propertiesMap .leaflet-tile {
    width: 256px !important;
    height: 256px !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: block !important;
}

#propertiesMap img {
    max-width: none !important;
    max-height: none !important;
}

.properties-layout[data-visible-count="2"] .properties-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.properties-layout[data-visible-count="3"] .properties-results-grid {
    grid-template-columns: 1fr;
}


/* Empty listing state: keep it clean and prevent map/filter remnants from appearing when no properties exist. */
.properties-shell.has-no-stock {
    grid-template-rows: minmax(700px, 1fr);
}

.properties-shell.has-no-stock .properties-toolbar {
    display: none !important;
}

/* Pane layout, viewport lock and responsive sidebars */
html.enteco-properties-view,
body.enteco-properties-view {
    min-height: 100%;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
}

body.enteco-properties-view .properties-page {
    height: calc(100dvh - var(--properties-header-height));
    min-height: calc(100dvh - var(--properties-header-height));
    max-height: calc(100dvh - var(--properties-header-height));
    overflow: hidden;
}

body.enteco-properties-view .properties-shell {
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.properties-layout {
    grid-template-columns: minmax(0, 1fr);
    transition: grid-template-columns .28s cubic-bezier(.22, .61, .36, 1);
}

.properties-layout.show-filters.show-list.show-map {
    grid-template-columns: minmax(250px, 320px) minmax(340px, 440px) minmax(520px, 1fr);
}

.properties-layout.show-filters.show-list:not(.show-map) {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.properties-layout.show-filters.show-map:not(.show-list) {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.properties-layout.show-list.show-map:not(.show-filters) {
    grid-template-columns: minmax(520px, .95fr) minmax(560px, 1.05fr);
}

.properties-layout.show-list:not(.show-filters):not(.show-map),
.properties-layout.show-map:not(.show-filters):not(.show-list),
.properties-layout.show-filters:not(.show-list):not(.show-map) {
    grid-template-columns: minmax(0, 1fr);
}

.properties-filters-panel,
.properties-results-panel,
.properties-map-panel {
    min-height: 0;
    height: 100%;
    max-height: 100%;
    transition: opacity .22s ease, transform .22s ease;
}

.properties-filters-panel,
.properties-map-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
}

.properties-results-panel {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.properties-pane-head {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
}

.properties-filters-panel > .properties-pane-head [data-clear-properties-filters]:hover  {
    color: var(--color-white);
}

.properties-results-panel > .properties-pane-head {
    padding: 0 0 8px;
    border: 0;
    border-bottom: 1px solid #e8e6df3b;
    border-radius: 0;
    box-shadow: none;
}

.properties-filters-panel .properties-pane-head button {
    font-size: var(--fs-xxs);
}

.properties-filters-panel > .properties-pane-head {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
}

.properties-pane-head > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.properties-pane-head > div > span {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 850;
}

.properties-pane-switch {
    position: relative;
    flex: 0 0 auto;
    width: 54px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-pill);
    background: var(--color-white-soft);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.properties-pane-switch span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 3px 10px rgba(15, 23, 42, .18);
    transition: transform .22s cubic-bezier(.22, .61, .36, 1);
}

.properties-pane-switch.is-active {
    background: var(--color-olive);
    border-color: var(--color-olive);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--color-olive) 28%, transparent);
}

.properties-pane-switch.is-active span {
    transform: translateX(24px);
}

.properties-filter-form,
.properties-map-card {
    height: 100%;
    max-height: 100%;
}

.properties-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.properties-layout.show-filters.show-list.show-map .properties-results-grid {
    grid-template-columns: 1fr;
}

.properties-layout.show-list.show-map:not(.show-filters) .properties-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.properties-layout.show-list:not(.show-filters):not(.show-map) .properties-results-grid,
.properties-layout.show-filters.show-list:not(.show-map) .properties-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
}

.properties-empty {
    grid-column: 1 / -1;
}

.properties-map-card {
    min-height: 0;
}

.properties-floating-pane-btn,
.properties-sidebar-overlay {
    display: none;
}

.leaflet-container a {
    color: var(--color-olive) !important;
}

@media (max-width: 1380px) {
    .properties-layout.show-filters.show-list.show-map {
        grid-template-columns: minmax(240px, 300px) minmax(320px, 400px) minmax(430px, 1fr);
    }

    .properties-layout.show-list.show-map:not(.show-filters) {
        grid-template-columns: minmax(460px, .9fr) minmax(500px, 1.1fr);
    }
}


/* Central pane switchers: always visible and clear, even when a pane is hidden. */
.properties-toolbar {
    position: relative;
    z-index: 40;
}

.properties-pane-switchers {
    align-items: center;
    gap: 10px;
}

.properties-pane-switchers button {
    position: relative;
    min-width: 112px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 48px 8px 14px;
    border: none;
    border-radius: var(--radius-sm, var(--radius-xl));
    color: var(--color-line, #e8e6df);
    background: none !important;
    line-height: 1;
    isolation: isolate;
}

.properties-pane-switchers button::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 8px;
    width: 32px;
    height: 18px;
    border-radius: 999px;
    background: var(--color-white-soft, #f8f7f3);
    border: 1px solid var(--color-line, #e8e6df);
    box-shadow: inset 0 1px 3px rgba(30, 35, 28, .10);
    transform: translateY(-50%);
    transition: background .22s ease, border-color .22s ease, box-shadow .22s ease;
    z-index: 1;
}

.properties-pane-switchers button::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 25px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-white, #fff);
    box-shadow: 0 3px 9px rgba(30, 35, 28, .25);
    transform: translateY(-50%);
    transition: right .22s cubic-bezier(.22, .61, .36, 1), background .22s ease, box-shadow .22s ease;
    z-index: 2;
}

.properties-pane-switchers button.is-active {
    background: var(--color-olive);
    border-color: var(--color-olive);
    color: var(--color-olive, #5f6f35);
    box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}

.properties-pane-switchers button.is-active::after {
    background: var(--color-olive);
    border-color: rgba(255, 255, 255, .45);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .12);
}

.properties-pane-switchers button.is-active::before {
    right: 10px;
    background: var(--color-white, #fff);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .22);
}

.properties-pane-switchers button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(30, 35, 28, .11);
}

.properties-pane-switchers button.is-active:hover {
    box-shadow: 0 14px 32px var(--color-olive-35, rgba(95, 111, 53, .35));
}

.properties-pane-switchers button.is-required {
    animation: paneRequiredPulse .42s ease;
}

@keyframes paneRequiredPulse {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
}

/* The switches now live permanently in the top toolbar, so panel headers only show titles. */
.properties-pane-head .properties-pane-switch {
    display: none !important;
}


.listing-property-image[src$="no-image.webp"],
.map-property-popup img[src$="no-image.webp"] {
    object-fit: cover;
    background: var(--color-white);
}


.filter-range-card--compact {
    gap: 12px;
}

.filter-details-range {
    background: var(--color-white);
}

.filter-two-cols > label:only-child {
    grid-column: 1 / -1;
}

/* Responsive corrections: keep listing cards readable on small screens. */


/* Final responsive listing behavior with sidebars and page-level pagination */
.properties-pane-close {
    display: none;
    width: 35px;
    height: 35px;
    border: none;
    background: none;
    font-weight: 800;
    cursor: pointer;
}

.property-mobile-nav{
    width: 18px;
    height: auto;
    object-fit: contain;
    aspect-ratio: 1/1;
}

.properties-pane-close-icon {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
    pointer-events: none;
}

.properties-pagination {
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.properties-pagination button {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    font-weight: 900;
}

.properties-pagination button:disabled {
    opacity: .42;
    cursor: not-allowed;
    background: var(--color-white-extra-soft);
    color: var(--color-muted);
}

.properties-pagination button.properties-pagination-icon {
    font-size: 22px;
    line-height: 1;
}

.properties-pagination-ellipsis {
    min-width: 24px;
    display: inline-grid;
    place-items: center;
    color: var(--color-muted);
    font-weight: 900;
}


/* Keep the mobile header fixed on the properties page while the page itself scrolls. */


/* Final readability/footer-scroll corrections for desktop properties layout. */
@media (min-width: 1181px) {
    html.enteco-properties-view,
    body.enteco-properties-view {
        height: auto !important;
        min-height: 100% !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body.enteco-properties-view .properties-page {
        height: calc(100dvh - var(--properties-header-height)) !important;
        min-height: calc(100dvh - var(--properties-header-height)) !important;
        max-height: calc(100dvh - var(--properties-header-height)) !important;
        overflow: hidden !important;
    }

    body.enteco-properties-view .properties-page + .site-footer {
        display: block !important;
        position: relative !important;
        z-index: 1;
    }

    .properties-layout.show-filters.show-list.show-map .properties-results-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: max-content !important;
        align-content: start !important;
    }

    .properties-layout.show-filters.show-list.show-map .listing-property-card {
        height: max-content !important;
        min-height: 0 !important;
        grid-template-rows: auto auto !important;
    }

    .properties-layout.show-filters.show-list.show-map .listing-property-image-wrap {
        aspect-ratio: 1.55 / 1 !important;
        height: auto !important;
        min-height: 180px !important;
        max-height: 260px !important;
    }

    .properties-layout.show-filters.show-list.show-map .listing-property-body {
        display: grid !important;
        height: auto !important;
        min-height: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
        padding: 14px 14px 16px !important;
    }

    .properties-layout.show-filters.show-list.show-map .listing-property-body h3,
    .properties-layout.show-filters.show-list.show-map .listing-property-body p,
    .properties-layout.show-filters.show-list.show-map .listing-property-location,
    .properties-layout.show-filters.show-list.show-map .listing-property-price,
    .properties-layout.show-filters.show-list.show-map .listing-property-specs {
        display: revert !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Properties page final-only fixes: keep listing specs horizontal and remove footer trailing gap. */
.listing-property-specs,
.properties-layout.show-filters.show-list.show-map .listing-property-specs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: 8px !important;
}

.listing-property-spec,
.properties-layout.show-filters.show-list.show-map .listing-property-spec {
    display: grid !important;
    min-width: 0 !important;
}

body.enteco-properties-view .properties-page + .site-footer {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.enteco-properties-view .properties-page + .site-footer .footer-main {
    margin-bottom: 0 !important;
}
