/*
 * HOMENEX map-search redesign
 * Reference: /redesign/map-search.html
 * This file deliberately scopes every rule to the home map page only.
 */

.map-search-redesign {
    --map-primary: #003d9b;
    --map-primary-hover: #0052cc;
    --map-surface: #faf9ff;
    --map-surface-lowest: #ffffff;
    --map-surface-low: #f1f3ff;
    --map-surface-container: #e9edff;
    --map-surface-high: #e1e8ff;
    --map-text: #051a3e;
    --map-text-muted: #434652;
    --map-outline: #c3c6d6;
    --map-outline-strong: #737685;
    --map-radius-xs: 4px;
    --map-radius-sm: 6px;
    --map-radius-md: 10px;
    --map-radius-lg: 16px;
    --map-radius-full: 9999px;
    color: var(--map-text);
    background: var(--map-surface);
    font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif;
}

.map-search-redesign .hn-navbar {
    box-shadow: none;
    background: rgba(255, 255, 255, .98);
}

/* --------------------------------------------------------------------------
   Secondary filter bar — same role as redesign/map-search.html
   -------------------------------------------------------------------------- */
.map-search-redesign .home-top-searchbar {
    position: sticky;
    top: 80px;
    z-index: 2000;
    min-height: 64px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--map-surface-lowest);
    border: 0;
    border-bottom: 1px solid var(--map-outline);
    overflow: visible;
}

.map-search-redesign .home-top-searchbar__keyword {
    position: relative;
    flex: 0 1 520px;
    width: min(100%, 520px);
    max-width: 520px;
    min-width: 0;
    height: 38px;
    display: flex;
    align-items: center;
}

.map-search-redesign .home-top-searchbar__keyword>i {
    position: absolute;
    z-index: 1;
    left: 14px;
    color: var(--map-text-muted);
    font-size: 15px;
    pointer-events: none;
}

.map-search-redesign .home-top-searchbar__keyword input {
    width: 100%;
    height: 38px;
    padding: 0 72px 0 40px;
    border: 1px solid var(--map-outline);
    border-radius: 8px;
    background: var(--map-surface-low);
    color: var(--map-text);
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
}

.map-search-redesign .home-top-searchbar__keyword input::placeholder {
    color: #737685;
    font-weight: 500;
}

.map-search-redesign .home-top-searchbar__keyword input:focus {
    outline: 0;
    border-color: var(--map-primary);
    background: var(--map-surface-lowest);
    box-shadow: none;
}

.map-search-redesign .home-top-searchbar__enter {
    position: absolute;
    right: 10px;
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 7px;
    border: 1px solid var(--map-outline);
    border-radius: 4px;
    color: var(--map-text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
    background: var(--map-surface-lowest);
    pointer-events: none;
}

.map-search-redesign .home-top-searchbar__filter {
    min-width: 126px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--map-primary);
    border-radius: 8px;
    background: var(--map-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: none;
}

.map-search-redesign .home-top-searchbar__filter:hover,
.map-search-redesign .home-top-searchbar__filter.is-active {
    background: var(--map-primary-hover);
    border-color: var(--map-primary-hover);
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Main map workspace
   -------------------------------------------------------------------------- */
.map-search-redesign .map-page {
    width: 100%;
    height: calc(100dvh - 144px);
    min-height: 560px;
    display: flex;
    overflow: hidden;
    position: relative;
    background: var(--map-surface);
}

.map-search-redesign .property-panel,
.map-search-redesign #side-list {
    width: 390px;
    min-width: 390px;
    flex: 0 0 390px;
    height: 100%;
    position: relative;
    z-index: 20;
    overflow: hidden;
    background: var(--map-surface-lowest);
    border: 0;
    border-right: 1px solid var(--map-outline);
    box-shadow: none;
    transition: transform .28s ease;
}

.map-search-redesign .property-panel::before,
.map-search-redesign .property-panel::after {
    display: none;
}

.map-search-redesign #side-list.closed,
.map-search-redesign #side-list.is-closed {
    margin-left: 0;
    transform: translateX(-100%);
}

.map-search-redesign .list-scroll {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--map-surface-lowest);
}

.map-search-redesign .panel-head.compact {
    padding: 20px 16px 14px;
    background: var(--map-surface-lowest);
    border: 0;
    position: static;
}

.map-search-redesign .panel-head__eyebrow {
    margin: 0 0 4px;
    color: var(--map-text-muted);
    font-size: 12px;
    font-weight: 600;
}

.map-search-redesign .panel-heading-row {
    align-items: center;
    gap: 12px;
}

.map-search-redesign .panel-head.compact h2 {
    margin: 0;
    color: var(--map-text);
    font-family: Lexend, Pretendard, "Noto Sans KR", sans-serif;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.02em;
}

.map-search-redesign .panel-count {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #dbe1ff;
    border-radius: var(--map-radius-full);
    background: #f1f3ff;
    color: var(--map-primary);
    font-size: 11px;
    font-weight: 800;
}

.map-search-redesign .panel-count strong {
    color: var(--map-primary);
    font-size: 13px;
}

.map-search-redesign .panel-count-label {
    color: var(--map-text-muted);
    font-size: 11px;
    font-weight: 700;
}

.map-search-redesign .home-active-filters {
    min-height: 0;
    margin: 0 16px 12px;
    padding: 0 0 10px;
    gap: 8px;
    border-bottom: 1px solid var(--map-outline);
}

.map-search-redesign .home-active-filter-chip {
    min-height: 30px;
    padding: 0 9px 0 11px;
    border: 1px solid #cbd7ff;
    border-radius: var(--map-radius-full);
    background: #f1f3ff;
    color: var(--map-primary);
    font-size: 11px;
    font-weight: 800;
}

.map-search-redesign .home-active-filter-chip strong,
.map-search-redesign .home-active-filter-chip button {
    color: var(--map-primary);
}

.map-search-redesign .home-active-filter-chip button {
    width: 18px;
    height: 18px;
    background: #dbe1ff;
}

.map-search-redesign .home-list-tabs {
    display: flex;
    gap: 4px;
    margin: 0 16px 16px;
    padding: 4px;
    border: 1px solid var(--map-outline);
    border-radius: var(--map-radius-md);
    background: var(--map-surface-low);
}

.map-search-redesign .home-list-tab {
    flex: 1 1 0;
    min-height: 34px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--map-text-muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.map-search-redesign .home-list-tab:hover {
    color: var(--map-primary);
}

.map-search-redesign .home-list-tab.is-active {
    background: var(--map-primary);
    color: #fff;
    box-shadow: none;
}

.map-search-redesign .property-list-shell {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.map-search-redesign .property-list,
.map-search-redesign #side-list .property-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    overflow-y: auto;
    padding: 0 16px 32px;
    background: var(--map-surface-lowest);
    scrollbar-width: thin;
    scrollbar-color: var(--map-outline) transparent;
}

.map-search-redesign .property-list::-webkit-scrollbar {
    width: 8px;
}

.map-search-redesign .property-list::-webkit-scrollbar-thumb {
    background: var(--map-outline);
    border: 2px solid var(--map-surface-lowest);
    border-radius: var(--map-radius-full);
}

.map-search-redesign .property-scroll-hint,
.map-search-redesign .property-list-actions,
.map-search-redesign .property-list-load-more {
    box-shadow: none;
}

.map-search-redesign .property-card,
.map-search-redesign #side-list .property-card {
    min-height: 118px;
    margin: 0;
    padding: 0;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--map-outline);
    border-radius: var(--map-radius-md);
    background: var(--map-surface-lowest);
    box-shadow: none;
    transform: none;
    transition: border-color .15s ease, background .15s ease;
}

.map-search-redesign .property-card:hover,
.map-search-redesign #side-list .property-card:hover {
    transform: none;
    border-color: var(--map-primary);
    box-shadow: none;
}

.map-search-redesign .property-card.active,
.map-search-redesign .property-card.is-active,
.map-search-redesign #side-list .property-card.active,
.map-search-redesign #side-list .property-card.is-active {
    border: 2px solid var(--map-primary);
    background: #fbfcff;
    box-shadow: none;
}

.map-search-redesign .property-card-image,
.map-search-redesign #side-list .property-card-image {
    width: 124px;
    min-width: 124px;
    background: var(--map-surface-container);
}

.map-search-redesign .property-card-image img {
    transition: transform .25s ease;
}

.map-search-redesign .property-card:hover .property-card-image img {
    transform: scale(1.04);
}

.map-search-redesign .property-card-heart {
    top: 7px;
    right: 7px;
    width: 28px;
    height: 28px;
    border: 1px solid var(--map-outline);
    border-radius: var(--map-radius-full);
    background: rgba(255, 255, 255, .94);
    color: var(--map-text-muted);
    box-shadow: none;
}

.map-search-redesign .property-card-heart:hover,
.map-search-redesign .property-card-heart.is-active,
.map-search-redesign .property-card-heart[aria-pressed="true"] {
    color: #ba1a1a;
    background: #fff7f6;
    border-color: #ffdad6;
    box-shadow: none;
}

.map-search-redesign .property-card-body,
.map-search-redesign #side-list .property-card-body {
    padding: 10px 12px;
    gap: 5px;
    min-width: 0;
    justify-content: space-between;
}

.map-search-redesign .property-card-top {
    display: block;
}

.map-search-redesign .property-card-title-area h3,
.map-search-redesign #side-list .property-card-title-area h3 {
    color: var(--map-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.map-search-redesign .property-card-location,
.map-search-redesign #side-list .property-card-location {
    margin-top: 4px;
    color: var(--map-text-muted);
    font-size: 11px;
    font-weight: 600;
}

.map-search-redesign .property-card-location i {
    color: var(--map-primary);
}

.map-search-redesign .property-card-price,
.map-search-redesign #side-list .property-card-price {
    margin-top: 7px;
    color: var(--map-primary);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
}

.map-search-redesign .property-card-specs {
    margin-top: 5px;
    padding-top: 7px;
    border-top: 1px solid #e1e8ff;
    color: var(--map-text-muted);
    font-size: 11px;
    font-weight: 700;
}

.map-search-redesign .property-card-specs span {
    gap: 4px;
}

.map-search-redesign .property-card-specs i {
    color: var(--map-primary);
}

.map-search-redesign .property-card-stats {
    display: none;
}

.map-search-redesign .map-empty-list {
    margin: 0;
    border: 1px dashed var(--map-outline);
    border-radius: var(--map-radius-md);
    background: var(--map-surface-low);
    color: var(--map-text-muted);
    box-shadow: none;
}

/* Map canvas and maplibre chrome */
.map-search-redesign .map-area {
    min-width: 0;
    flex: 1 1 auto;
    position: relative;
    overflow: hidden;
    background: var(--map-surface-container);
}

.map-search-redesign .map-area>#leafletMap,
.map-search-redesign .map-area>.leaflet-map {
    position: absolute;
    inset: 0;
}

.map-search-redesign .map-info-panel,
.map-search-redesign .map-debug-card {
    display: none !important;
}

.map-search-redesign .map-area .maplibregl-ctrl-bottom-right {
    right: 16px;
    bottom: 16px;
}

.map-search-redesign .map-area .maplibregl-ctrl-group,
.map-search-redesign .map-area .maplibregl-ctrl-group button {
    overflow: hidden;
    border: 1px solid var(--map-outline);
    border-radius: var(--map-radius-sm);
    background: var(--map-surface-lowest);
    box-shadow: none;
}

.map-search-redesign .map-area .maplibregl-ctrl-group button+button {
    border-top: 1px solid var(--map-outline);
}

.map-search-redesign .map-area .maplibregl-ctrl-group button:hover {
    background: var(--map-surface-low);
}

/* --------------------------------------------------------------------------
   Full-width filter drawer (draft values stay isolated until Confirm)
   -------------------------------------------------------------------------- */
.map-search-redesign .home-filter-panel {
    position: fixed;
    inset: 80px 0 0;
    z-index: 2600;
    width: auto;
    max-width: none;
    max-height: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid var(--map-outline);
    border-radius: 0;
    background: var(--map-surface-lowest);
    box-shadow: none;
    backdrop-filter: none;
}

.map-search-redesign .home-filter-panel[hidden] {
    display: none !important;
}

.map-search-redesign .home-filter-panel__head {
    position: relative;
    flex: 0 0 auto;
    min-height: 82px;
    margin: 0;
    padding: 18px 24px 14px;
    border-bottom: 1px solid var(--map-outline);
    background: var(--map-surface-lowest);
}

.map-search-redesign .home-filter-panel__title {
    gap: 3px;
}

.map-search-redesign .home-filter-panel__head strong {
    color: var(--map-text);
    font-family: Lexend, Pretendard, "Noto Sans KR", sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.map-search-redesign .home-filter-panel__title span {
    color: var(--map-text-muted);
    font-size: 12px;
    font-weight: 600;
}

.map-search-redesign .home-filter-panel__close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--map-outline);
    border-radius: var(--map-radius-full);
    background: var(--map-surface-low);
    color: var(--map-text);
    font-size: 16px;
    box-shadow: none;
}

.map-search-redesign .home-filter-panel__close:hover {
    border-color: var(--map-primary);
    color: var(--map-primary);
}

.map-search-redesign .home-filter-panel__body {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: auto;
    background: var(--map-surface-lowest);
}

.map-search-redesign .home-filter-hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 1.35fr 1fr 1fr 1fr;
    gap: 16px;
    margin: 0 0 20px;
}

.map-search-redesign .home-filter-group,
.map-search-redesign .home-filter-group--hero {
    min-width: 0;
    padding: 0;
}

.map-search-redesign .home-filter-group--region {
    grid-column: span 2;
}

.map-search-redesign .home-filter-group__head {
    display: block;
    margin: 0 0 10px;
    padding: 0;
}

.map-search-redesign .home-filter-group__head strong {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--map-text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.map-search-redesign .home-filter-group__head strong i {
    color: var(--map-primary);
    font-size: 14px;
}

.map-search-redesign .home-filter-group__head>span {
    display: none;
}

.map-search-redesign .home-filter-grid,
.map-search-redesign .home-filter-grid--stacked {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.map-search-redesign .home-filter-grid--stacked {
    grid-template-columns: minmax(0, 1fr);
}

.map-search-redesign .home-filter-field {
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.map-search-redesign .home-filter-field>span {
    color: var(--map-text-muted);
    font-size: 11px;
    font-weight: 700;
}

.map-search-redesign .home-filter-field select,
.map-search-redesign .home-filter-field input {
    height: 42px;
    border: 1px solid var(--map-outline);
    border-radius: 8px;
    background: var(--map-surface-low);
    color: var(--map-text);
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.map-search-redesign .home-filter-field select:focus,
.map-search-redesign .home-filter-field input:focus {
    border-color: var(--map-primary);
    background: var(--map-surface-lowest);
    box-shadow: none;
}

.map-search-redesign .home-filter-group:not(.home-filter-group--hero) {
    padding-top: 20px;
    border-top: 1px solid var(--map-outline);
}

.map-search-redesign .home-filter-inline-grid,
.map-search-redesign .home-filter-grid--metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.map-search-redesign .home-filter-grid--metrics {
    margin-top: 16px;
}

.map-search-redesign .home-filter-metric-card,
.map-search-redesign .home-filter-inline-block {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--map-outline);
    border-radius: var(--map-radius-md);
    background: var(--map-surface-lowest);
    box-shadow: none;
}

.map-search-redesign .home-filter-metric-card__head {
    margin-bottom: 12px;
}

.map-search-redesign .home-filter-metric-card__head strong {
    color: var(--map-text);
    font-size: 14px;
    font-weight: 800;
}

.map-search-redesign .home-filter-metric-card__head strong i {
    color: var(--map-primary);
}

.map-search-redesign .home-filter-metric-card__head>span {
    color: var(--map-primary);
    font-size: 13px;
    font-weight: 800;
}

.map-search-redesign .home-filter-segment {
    margin-bottom: 12px;
}

.map-search-redesign .home-filter-segment button,
.map-search-redesign .home-filter-segment [role="button"] {
    border-color: var(--map-outline);
    background: var(--map-surface-low);
    color: var(--map-text-muted);
    box-shadow: none;
}

.map-search-redesign .home-filter-segment button.is-active,
.map-search-redesign .home-filter-segment button[aria-pressed="true"] {
    border-color: var(--map-primary);
    background: var(--map-primary);
    color: #fff;
}

.map-search-redesign .home-filter-meter {
    height: 28px;
}

.map-search-redesign .home-filter-meter__track {
    height: 5px;
    background: var(--map-surface-high);
}

.map-search-redesign .home-filter-meter__fill {
    height: 5px;
    background: var(--map-primary);
}

.map-search-redesign .home-filter-meter__dot {
    width: 20px;
    height: 20px;
    border: 2px solid var(--map-primary);
    background: var(--map-surface-lowest);
    box-shadow: none;
}

.map-search-redesign .home-filter-meter__slider {
    height: 28px;
}

.map-search-redesign .home-filter-meter__slider::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    border: 0;
    box-shadow: none;
}

.map-search-redesign .home-filter-meter-labels {
    color: var(--map-text-muted);
    font-size: 11px;
    font-weight: 700;
}

.map-search-redesign .home-filter-range {
    margin-top: 12px;
}

.map-search-redesign .home-filter-range__input {
    min-width: 0;
    height: 38px !important;
    background: var(--map-surface-low) !important;
}

.map-search-redesign .home-filter-actions {
    position: sticky;
    bottom: -24px;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    width: calc(100% + 48px);
    max-width: none;
    margin: 24px -24px -24px;
    padding: 16px 24px;
    border-top: 1px solid var(--map-outline);
    background: var(--map-surface-low);
}

.map-search-redesign .home-filter-reset,
.map-search-redesign .home-filter-submit {
    min-width: 150px;
    height: 42px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: none;
    transform: none;
}

.map-search-redesign .home-filter-reset {
    border: 1px solid var(--map-outline);
    background: var(--map-surface-lowest);
    color: var(--map-primary);
}

.map-search-redesign .home-filter-submit {
    border: 1px solid var(--map-primary);
    background: var(--map-primary);
    color: #fff;
}

.map-search-redesign .home-filter-reset:hover {
    border-color: var(--map-primary);
}

.map-search-redesign .home-filter-submit:hover {
    background: var(--map-primary-hover);
    border-color: var(--map-primary-hover);
}

/* Keep the content below the map untouched; only map workspace gets redesigned. */
.map-search-redesign .home-intro-shell {
    background: #fff;
}

@media (max-width: 1100px) {

    .map-search-redesign .property-panel,
    .map-search-redesign #side-list {
        width: 340px;
        min-width: 340px;
        flex-basis: 340px;
    }

    .map-search-redesign .home-filter-hero-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .map-search-redesign .home-filter-group--region {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .map-search-redesign .home-top-searchbar {
        top: 80px;
        min-height: 58px;
        padding: 0 12px;
        gap: 8px;
    }

    .map-search-redesign .home-top-searchbar__keyword {
        height: 38px;
        max-width: none;
    }

    .map-search-redesign .home-top-searchbar__enter,
    .map-search-redesign .home-top-searchbar__filter span {
        display: none;
    }

    .map-search-redesign .home-top-searchbar__keyword input {
        padding-right: 14px;
    }

    .map-search-redesign .home-top-searchbar__filter {
        min-width: 42px;
        width: 42px;
        padding: 0;
    }

    .map-search-redesign .map-page {
        height: calc(100dvh - 138px);
        min-height: 480px;
        display: block;
        overflow: hidden;
    }

    .map-search-redesign .map-area {
        height: 100%;
        width: 100%;
    }

    .map-search-redesign .property-panel,
    .map-search-redesign #side-list {
        position: absolute;
        inset: auto 0 0;
        width: 100%;
        min-width: 0;
        height: min(48%, 420px);
        min-height: 230px;
        transform: none;
        border: 1px solid var(--map-outline);
        border-bottom: 0;
        border-radius: 18px 18px 0 0;
        z-index: 40;
    }

    .map-search-redesign #side-list.closed,
    .map-search-redesign #side-list.is-closed {
        transform: translateY(calc(100% - 46px));
        margin-left: 0;
    }

    .map-search-redesign .panel-head.compact {
        padding: 16px 16px 10px;
    }

    .map-search-redesign .panel-head.compact::before {
        content: "";
        display: block;
        width: 38px;
        height: 4px;
        margin: 0 auto 11px;
        border-radius: var(--map-radius-full);
        background: var(--map-outline);
    }

    .map-search-redesign .panel-head.compact h2 {
        font-size: 16px;
    }

    .map-search-redesign .home-list-tabs {
        margin: 0 12px 12px;
    }

    .map-search-redesign .property-list,
    .map-search-redesign #side-list .property-list {
        gap: 10px;
        padding: 0 12px 24px;
    }

    .map-search-redesign .property-card-image,
    .map-search-redesign #side-list .property-card-image {
        width: 108px;
        min-width: 108px;
    }

    .map-search-redesign .home-filter-panel {
        inset: 80px 0 0;
    }

    .map-search-redesign .home-filter-panel__head {
        min-height: 72px;
        padding: 14px 16px 12px;
    }

    .map-search-redesign .home-filter-panel__body {
        padding: 16px;
    }

    .map-search-redesign .home-filter-hero-grid,
    .map-search-redesign .home-filter-inline-grid,
    .map-search-redesign .home-filter-grid--metrics {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .map-search-redesign .home-filter-group--region {
        grid-column: auto;
    }

    .map-search-redesign .home-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .map-search-redesign .home-filter-actions {
        justify-content: stretch;
        width: calc(100% + 32px);
        margin: 20px -16px -16px;
        bottom: -16px;
        padding: 12px 16px;
    }

    .map-search-redesign .home-filter-reset,
    .map-search-redesign .home-filter-submit {
        min-width: 0;
        flex: 1 1 0;
    }
}

@media (max-width: 420px) {
    .map-search-redesign .home-filter-grid {
        grid-template-columns: 1fr;
    }

    .map-search-redesign .property-card-price {
        font-size: 13px;
    }
}

/* --------------------------------------------------------------------------
   Sidebar collapse + grid / list card controls
   -------------------------------------------------------------------------- */
.map-search-redesign .home-list-navigation {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin: 0 16px 16px;
}

.map-search-redesign .home-list-navigation .home-list-tabs {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.map-search-redesign .home-list-layout-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 42px;
    padding: 4px;
    border: 1px solid var(--map-outline);
    border-radius: var(--map-radius-md);
    background: var(--map-surface-low);
}

.map-search-redesign .home-list-layout-btn {
    width: 33px;
    min-width: 33px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--map-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
}

.map-search-redesign .home-list-layout-btn:hover {
    color: var(--map-primary);
}

.map-search-redesign .home-list-layout-btn.is-active {
    background: var(--map-primary);
    color: #fff;
}

.map-search-redesign .map-page {
    --map-sidebar-width: 390px;
}

.map-search-redesign .home-map-sidebar-toggle {
    position: absolute;
    z-index: 85;
    top: 50%;
    left: calc(var(--map-sidebar-width) - 1px);
    width: 27px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 0 9px 9px 0;
    background: var(--map-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 4px 5px 15px rgba(5, 26, 62, .2);
    transition: left .28s ease, background .16s ease;
}

.map-search-redesign .home-map-sidebar-toggle:hover {
    background: var(--map-primary-hover);
}

.map-search-redesign .home-map-sidebar-toggle:focus-visible,
.map-search-redesign .home-list-layout-btn:focus-visible {
    outline: 3px solid rgba(0, 61, 155, .25);
    outline-offset: 2px;
}

.map-search-redesign .map-page.is-sidebar-collapsed .property-panel,
.map-search-redesign .map-page.is-sidebar-collapsed #side-list {
    width: 0;
    min-width: 0;
    flex-basis: 0;
    margin-left: 0;
    border-right-width: 0;
    transform: none;
    transition: width .28s ease, min-width .28s ease, flex-basis .28s ease, border-color .28s ease;
}

.map-search-redesign .map-page.is-sidebar-collapsed .property-panel .list-scroll,
.map-search-redesign .map-page.is-sidebar-collapsed #side-list .list-scroll {
    visibility: hidden;
    pointer-events: none;
}

.map-search-redesign .map-page.is-sidebar-collapsed .home-map-sidebar-toggle {
    left: 0;
}

.map-search-redesign .property-list.is-grid,
.map-search-redesign #side-list .property-list.is-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 10px;
}

.map-search-redesign .property-list.is-grid .property-card,
.map-search-redesign #side-list .property-list.is-grid .property-card {
    min-width: 0;
    min-height: 0;
    flex-direction: column;
}

.map-search-redesign .property-list.is-grid .property-card-image,
.map-search-redesign #side-list .property-list.is-grid .property-card-image {
    width: 100%;
    min-width: 0;
    height: 118px;
}

.map-search-redesign .property-list.is-grid .property-card-image img,
.map-search-redesign #side-list .property-list.is-grid .property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-search-redesign .property-list.is-grid .property-card-body,
.map-search-redesign #side-list .property-list.is-grid .property-card-body {
    min-height: 126px;
    padding: 9px 10px 10px;
}

.map-search-redesign .property-list.is-grid .property-card-title-area h3,
.map-search-redesign #side-list .property-list.is-grid .property-card-title-area h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13px;
}

.map-search-redesign .property-list.is-grid .property-card-location,
.map-search-redesign #side-list .property-list.is-grid .property-card-location {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.map-search-redesign .property-list.is-grid .property-card-price,
.map-search-redesign #side-list .property-list.is-grid .property-card-price {
    margin-top: 6px;
    font-size: 13px;
}

.map-search-redesign .property-list.is-grid .property-card-specs,
.map-search-redesign #side-list .property-list.is-grid .property-card-specs {
    gap: 7px;
    font-size: 10px;
}

.map-search-redesign .property-list.is-grid .property-card-specs span,
.map-search-redesign #side-list .property-list.is-grid .property-card-specs span {
    min-width: 0;
}

@media (max-width: 1100px) {
    .map-search-redesign .map-page {
        --map-sidebar-width: 340px;
    }
}

@media (max-width: 760px) {
    .map-search-redesign .home-list-navigation {
        margin: 0 12px 12px;
    }

    .map-search-redesign .home-list-layout-toggle {
        min-height: 40px;
    }

    .map-search-redesign .home-map-sidebar-toggle {
        display: none;
    }

    .map-search-redesign .map-page.is-sidebar-collapsed .property-panel,
    .map-search-redesign .map-page.is-sidebar-collapsed #side-list {
        width: 100%;
        min-width: 0;
        height: min(48%, 420px);
        flex-basis: auto;
        border-right-width: 1px;
        transform: none;
    }

    .map-search-redesign .map-page.is-sidebar-collapsed .property-panel .list-scroll,
    .map-search-redesign .map-page.is-sidebar-collapsed #side-list .list-scroll {
        visibility: visible;
        pointer-events: auto;
    }

    .map-search-redesign .property-list.is-grid,
    .map-search-redesign #side-list .property-list.is-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .map-search-redesign .property-list.is-grid .property-card-image,
    .map-search-redesign #side-list .property-list.is-grid .property-card-image {
        height: 108px;
    }
}

@media (max-width: 390px) {

    .map-search-redesign .property-list.is-grid,
    .map-search-redesign #side-list .property-list.is-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.map-search-redesign .property-panel,
.map-search-redesign #side-list {
    transition: width .28s ease, min-width .28s ease, flex-basis .28s ease, transform .28s ease, border-color .28s ease;
}

/* ========================================================================== 
   2026-06-23 · New filter drawer + listing card media markers
   Keeps the map/list behaviour untouched; only the filter shell and card UI change.
   ========================================================================== */
.map-search-redesign .home-filter-panel {
    position: fixed !important;
    top: var(--home-filter-panel-top, 80px) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 3200 !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0;
    overflow: hidden !important;
    border: 0 !important;
    border-top: 1px solid #d9e0ef !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: 0 20px 48px rgba(5, 26, 62, .20) !important;
}

.map-search-redesign .home-filter-panel__head--compact {
    position: absolute !important;
    top: 0;
    right: 0;
    z-index: 4;
    width: 64px;
    min-height: 64px !important;
    height: 64px;
    margin: 0 !important;
    padding: 12px !important;
    border: 0 !important;
    background: transparent !important;
}

.map-search-redesign .home-filter-panel__sr-title,
.map-search-redesign .home-filter-native-control,
.map-search-redesign .home-filter-field--sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.map-search-redesign .home-filter-panel__head--compact .home-filter-panel__close {
    position: absolute !important;
    top: 16px;
    right: 16px;
    width: 40px !important;
    height: 40px !important;
    border: 1px solid #cfd7eb !important;
    border-radius: 999px !important;
    background: #f2f5ff !important;
    color: #4d566b !important;
    font-size: 18px !important;
}

.map-search-redesign .home-filter-panel__body--new {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 20px 28px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: auto !important;
    overflow-x: hidden !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.map-search-redesign .home-filter-new-grid,
.map-search-redesign .home-filter-new-detail-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.map-search-redesign .home-filter-new-detail-grid {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #d9e0ef;
}

.map-search-redesign .home-filter-new-range-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 18px;
}

.map-search-redesign .home-filter-group--new,
.map-search-redesign .home-filter-group--new.home-filter-metric-card {
    position: relative;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.map-search-redesign .home-filter-group--new .home-filter-group__head,
.map-search-redesign .home-filter-group--new .home-filter-metric-card__head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 24px;
    margin: 0 0 8px !important;
    padding: 0 !important;
}

.map-search-redesign .home-filter-group--new .home-filter-group__head strong,
.map-search-redesign .home-filter-group--new .home-filter-metric-card__head strong {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: #27334a !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase;
}

.map-search-redesign .home-filter-group--new .home-filter-group__head strong i,
.map-search-redesign .home-filter-group--new .home-filter-metric-card__head strong i {
    color: var(--map-primary) !important;
    font-size: 16px !important;
}

.map-search-redesign .home-filter-group--new .home-filter-metric-card__head>span {
    color: var(--map-primary) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.map-search-redesign .home-filter-location-search {
    position: relative;
    height: 48px;
    display: flex;
    align-items: center;
    border: 1px solid #c6d0e7;
    border-radius: 10px;
    background: #f2f5ff;
}

.map-search-redesign .home-filter-location-search>i {
    position: absolute;
    left: 15px;
    color: #66758f;
    font-size: 15px;
    pointer-events: none;
}

.map-search-redesign .home-filter-location-search input {
    width: 100%;
    height: 100%;
    padding: 0 14px 0 42px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--map-text);
    font-size: 14px;
    font-weight: 700;
}

.map-search-redesign .home-filter-location-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.map-search-redesign .home-filter-location-selects .home-filter-field,
.map-search-redesign .home-filter-field--sort {
    display: block !important;
    min-width: 0;
}

.map-search-redesign .home-filter-location-selects select,
.map-search-redesign .home-filter-field--sort select {
    width: 100%;
    height: 38px;
    padding: 0 32px 0 11px;
    border: 1px solid #d2d9eb;
    border-radius: 8px;
    background: #fff;
    color: #26344d;
    font-size: 12px;
    font-weight: 800;
}

.map-search-redesign .home-filter-pillset,
.map-search-redesign .home-filter-segment--trade,
.map-search-redesign .home-filter-group--beds .home-filter-segment,
.map-search-redesign .home-filter-group--baths .home-filter-segment {
    display: flex !important;
    align-items: stretch;
    gap: 8px;
    min-height: 46px;
    margin: 0 !important;
}

.map-search-redesign .home-filter-pillset,
.map-search-redesign .home-filter-segment--trade {
    flex-wrap: wrap;
}

.map-search-redesign .home-filter-pillset .home-filter-pill,
.map-search-redesign .home-filter-segment--trade .home-filter-segment__button,
.map-search-redesign .home-filter-group--beds .home-filter-segment__button,
.map-search-redesign .home-filter-group--baths .home-filter-segment__button {
    min-width: 0 !important;
    height: 40px;
    padding: 0 17px !important;
    border: 1px solid #c9d1e7 !important;
    border-radius: 999px !important;
    background: #f2f5ff !important;
    color: #30425e !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    box-shadow: none !important;
    white-space: nowrap;
}

.map-search-redesign .home-filter-segment--trade,
.map-search-redesign .home-filter-group--beds .home-filter-segment,
.map-search-redesign .home-filter-group--baths .home-filter-segment {
    gap: 0;
    padding: 4px;
    border: 1px solid #c9d1e7;
    border-radius: 999px;
    background: #f2f5ff;
}

.map-search-redesign .home-filter-segment--trade .home-filter-segment__button,
.map-search-redesign .home-filter-group--beds .home-filter-segment__button,
.map-search-redesign .home-filter-group--baths .home-filter-segment__button {
    flex: 1 1 0;
    height: 36px;
    padding: 0 8px !important;
    border: 0 !important;
    background: transparent !important;
}

.map-search-redesign .home-filter-pillset .home-filter-pill.is-active,
.map-search-redesign .home-filter-segment--trade .home-filter-segment__button.is-active,
.map-search-redesign .home-filter-group--beds .home-filter-segment__button.is-active,
.map-search-redesign .home-filter-group--baths .home-filter-segment__button.is-active {
    border-color: var(--map-primary) !important;
    background: var(--map-primary) !important;
    color: #fff !important;
}

/* The new reference UI does not show an All pill in Property/Transaction. Reset clears it. */
.map-search-redesign .home-filter-group--property [data-filter-choice=""],
.map-search-redesign .home-filter-group--trade [data-filter-choice=""] {
    display: none !important;
}

.map-search-redesign .home-filter-group--price .home-filter-meter,
.map-search-redesign .home-filter-group--area .home-filter-meter {
    height: 34px !important;
    margin: 10px 0 5px !important;
}

.map-search-redesign .home-filter-group--price .home-filter-meter__track,
.map-search-redesign .home-filter-group--area .home-filter-meter__track {
    height: 6px !important;
    border-radius: 999px;
    background: #dce7ff !important;
}

.map-search-redesign .home-filter-group--price .home-filter-meter__fill,
.map-search-redesign .home-filter-group--area .home-filter-meter__fill {
    height: 6px !important;
    border-radius: 999px;
    background: var(--map-primary) !important;
}

.map-search-redesign .home-filter-group--price .home-filter-meter__dot,
.map-search-redesign .home-filter-group--area .home-filter-meter__dot {
    width: 20px !important;
    height: 20px !important;
    border: 2px solid var(--map-primary) !important;
    background: #fff !important;
}

.map-search-redesign .home-filter-group--price .home-filter-meter__slider,
.map-search-redesign .home-filter-group--area .home-filter-meter__slider {
    height: 34px !important;
}

.map-search-redesign .home-filter-group--price .home-filter-meter__slider::-webkit-slider-thumb,
.map-search-redesign .home-filter-group--area .home-filter-meter__slider::-webkit-slider-thumb {
    width: 24px !important;
    height: 24px !important;
}

.map-search-redesign .home-filter-group--price .home-filter-meter-labels,
.map-search-redesign .home-filter-group--area .home-filter-meter-labels {
    display: flex !important;
    justify-content: space-between;
    color: #52627a !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.map-search-redesign .home-filter-group--beds .home-filter-meter,
.map-search-redesign .home-filter-group--baths .home-filter-meter {
    display: none !important;
}

.map-search-redesign .home-filter-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 3;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 70px;
    margin: 18px 0 0 !important;
    padding: 14px 0 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    gap: 12px;
    border-top: 1px solid #d9e0ef !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.map-search-redesign .home-filter-actions::before {
    content: "";
    flex: 1 1 auto;
}

.map-search-redesign .home-filter-reset,
.map-search-redesign .home-filter-submit {
    min-width: 156px !important;
    height: 42px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.map-search-redesign .home-filter-panel,
.map-search-redesign .home-filter-panel__body,
.map-search-redesign .home-filter-panel__body--new {
    overflow-x: hidden !important;
}

body.map-search-redesign,
body.map-search-redesign.home-filter-open {
    overflow-x: hidden !important;
}

/* Listing cards: media carries status/rank/identity badges; bottom always shows 4 specs. */
.map-search-redesign #side-list .property-card,
.map-search-redesign .property-list .property-card {
    position: relative;
    overflow: hidden;
}

.map-search-redesign #side-list .property-card-image,
.map-search-redesign .property-list .property-card-image {
    position: relative;
    overflow: hidden;
    background: #e8edff;
}

.map-search-redesign .property-card-media-marks {
    position: absolute;
    z-index: 4;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px;
    max-width: calc(100% - 52px);
    pointer-events: none;
}

.map-search-redesign .property-card-media-marks .property-card-flags,
.map-search-redesign .property-card-media-marks .property-card-broker-marks {
    display: contents;
    margin: 0 !important;
}

.map-search-redesign .property-card-media-marks .property-card-flag,
.map-search-redesign .property-card-media-marks .property-card-broker-mark {
    min-height: 21px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 2px 7px rgba(5, 26, 62, .15);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.map-search-redesign .property-card-media-marks .property-card-flag.is-new {
    background: #fff7df;
}

.map-search-redesign .property-card-media-marks .property-card-broker-mark.is-identity {
    background: #eef4ff;
}

.map-search-redesign .property-card-media-marks .property-card-broker-mark.is-level1 {
    background: #fff7e6;
}

.map-search-redesign .property-card-media-marks .property-card-broker-mark.is-level2 {
    background: #eff5ff;
}

.map-search-redesign #side-list .property-card-stats,
.map-search-redesign .property-list .property-card-stats {
    display: none !important;
}

.map-search-redesign #side-list .property-card-specs,
.map-search-redesign .property-list .property-card-specs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 0 !important;
    width: 100%;
    margin-top: auto !important;
    padding-top: 9px;
    border-top: 1px solid #dce3f0;
}

.map-search-redesign #side-list .property-card-specs span,
.map-search-redesign .property-list .property-card-specs span {
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #53627b !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-search-redesign #side-list .property-card-specs i,
.map-search-redesign .property-list .property-card-specs i {
    margin-right: 3px;
    color: #6d7d97 !important;
}

.map-search-redesign .property-list.is-grid .property-card-image,
.map-search-redesign #side-list .property-list.is-grid .property-card-image {
    height: 146px !important;
}

.map-search-redesign .property-list.is-grid .property-card-body,
.map-search-redesign #side-list .property-list.is-grid .property-card-body {
    min-height: 136px !important;
    padding: 10px 11px 11px !important;
}

.map-search-redesign .property-list.is-grid .property-card-title-area h3,
.map-search-redesign #side-list .property-list.is-grid .property-card-title-area h3 {
    display: block !important;
    margin-bottom: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.map-search-redesign .property-list:not(.is-grid) .property-card,
.map-search-redesign #side-list .property-list:not(.is-grid) .property-card {
    min-height: 150px !important;
}

.map-search-redesign .property-list:not(.is-grid) .property-card-image,
.map-search-redesign #side-list .property-list:not(.is-grid) .property-card-image {
    width: 148px !important;
    min-width: 148px !important;
}

.map-search-redesign .property-list:not(.is-grid) .property-card-body,
.map-search-redesign #side-list .property-list:not(.is-grid) .property-card-body {
    min-height: 148px !important;
    padding: 12px 13px !important;
}

@media (max-width: 1180px) {

    .map-search-redesign .home-filter-new-grid,
    .map-search-redesign .home-filter-new-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 760px) {
    .map-search-redesign .home-filter-panel__body--new {
        padding: 26px 16px 0 !important;
    }

    .map-search-redesign .home-filter-new-grid,
    .map-search-redesign .home-filter-new-detail-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .map-search-redesign .home-filter-new-detail-grid {
        margin-top: 20px;
        padding-top: 20px;
    }

    .map-search-redesign .home-filter-actions {
        width: calc(100% + 32px) !important;
        margin: 20px -16px 0 !important;
        padding: 12px 16px !important;
    }

    .map-search-redesign .home-filter-reset,
    .map-search-redesign .home-filter-submit {
        flex: 1 1 0;
        min-width: 0 !important;
    }

    .map-search-redesign .property-list.is-grid .property-card-image,
    .map-search-redesign #side-list .property-list.is-grid .property-card-image {
        height: 122px !important;
    }
}

.map-search-redesign .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ========================================================================== 
   2026-06-23 · FINAL DESKTOP WORKSPACE CONTRACT
   This block intentionally comes last. It replaces the older 390px flex
   sidebar rules above with the final redesign geometry:
   - map canvas is always 100% of the workspace
   - property list is a 500px overlay above the map
   - closing the list slides only the panel, never resizes the map
   - drag handle / layout controls use the same CSS variable as the panel
   ========================================================================== */

.map-search-redesign .map-page {
    --map-sidebar-width: 500px;
    position: relative !important;
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    isolation: isolate;
}

/* Keep the map behind the list at all times. */
.map-search-redesign .map-page>.map-area {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
}

.map-search-redesign .map-page>.map-area>#leafletMap,
.map-search-redesign .map-page>.map-area>.leaflet-map {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* The list is a true overlay, not a flex column next to the map. */
.map-search-redesign .map-page>.property-panel,
.map-search-redesign .map-page>#side-list {
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    z-index: 60 !important;
    display: block !important;
    width: var(--map-sidebar-width) !important;
    min-width: var(--map-sidebar-width) !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    flex: none !important;
    flex-basis: auto !important;
    overflow: hidden !important;
    border: 0 !important;
    border-right: 1px solid var(--map-outline) !important;
    border-radius: 0 !important;
    background: var(--map-surface-lowest) !important;
    box-shadow: 8px 0 22px rgba(5, 26, 62, .08) !important;
    transform: translateX(0) !important;
    transition: transform .28s ease, box-shadow .2s ease !important;
    will-change: transform;
}

.map-search-redesign .map-page>.property-panel .list-scroll,
.map-search-redesign .map-page>#side-list .list-scroll {
    visibility: visible !important;
    pointer-events: auto !important;
    height: 100% !important;
}

/* Closing must never reduce the map container's width. */
.map-search-redesign .map-page.is-sidebar-collapsed>.property-panel,
.map-search-redesign .map-page.is-sidebar-collapsed>#side-list,
.map-search-redesign .map-page>#side-list.closed,
.map-search-redesign .map-page>#side-list.is-closed {
    width: var(--map-sidebar-width) !important;
    min-width: var(--map-sidebar-width) !important;
    height: 100% !important;
    margin: 0 !important;
    border-right-width: 1px !important;
    transform: translateX(calc(-1 * var(--map-sidebar-width))) !important;
    pointer-events: none !important;
}

.map-search-redesign .map-page.is-sidebar-collapsed>.property-panel .list-scroll,
.map-search-redesign .map-page.is-sidebar-collapsed>#side-list .list-scroll {
    visibility: visible !important;
    pointer-events: none !important;
}

/* Visible 8px drag target at the same boundary as the sidebar. */
.map-search-redesign .home-map-sidebar-resizer {
    position: absolute !important;
    z-index: 82 !important;
    top: 0 !important;
    bottom: 0 !important;
    left: calc(var(--map-sidebar-width) - 4px) !important;
    width: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: col-resize !important;
    touch-action: none !important;
    background: transparent !important;
    transition: opacity .2s ease, left .28s ease !important;
}

.map-search-redesign .home-map-sidebar-resizer::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 3px;
    width: 2px;
    background: transparent;
    transition: background .15s ease;
}

.map-search-redesign .map-page:not(.is-sidebar-collapsed) .home-map-sidebar-resizer:hover::before,
.map-search-redesign .map-page.is-sidebar-resizing .home-map-sidebar-resizer::before {
    background: rgba(0, 61, 155, .52);
}

.map-search-redesign .map-page.is-sidebar-collapsed .home-map-sidebar-resizer {
    opacity: 0;
    pointer-events: none;
}

/* The blue arrow follows the panel boundary and stays at x=0 when folded. */
.map-search-redesign .home-map-sidebar-toggle {
    position: absolute !important;
    z-index: 90 !important;
    top: 50% !important;
    left: calc(var(--map-sidebar-width) - 1px) !important;
    width: 30px !important;
    height: 70px !important;
    min-width: 30px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 10px 10px 0 !important;
    background: var(--map-primary) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: translateY(-50%) !important;
    box-shadow: 5px 7px 18px rgba(5, 26, 62, .22) !important;
    transition: left .28s ease, background .16s ease !important;
}

.map-search-redesign .map-page.is-sidebar-collapsed .home-map-sidebar-toggle {
    left: 0 !important;
}

.map-search-redesign .home-map-sidebar-toggle:hover {
    background: var(--map-primary-hover) !important;
}

/* Header/nav area: the tab row and view switch must remain on one line. */
.map-search-redesign .home-list-navigation {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 16px 14px !important;
}

.map-search-redesign .home-list-navigation .home-list-tabs {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
}

.map-search-redesign .home-list-layout-toggle {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    padding: 4px !important;
    border: 1px solid var(--map-outline) !important;
    border-radius: 10px !important;
    background: var(--map-surface-low) !important;
}

.map-search-redesign .home-list-layout-btn {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
}

/* Cards always use one stable, scrollable list area. */
.map-search-redesign .property-list-shell {
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
}

.map-search-redesign .property-list,
.map-search-redesign #side-list .property-list {
    height: 100% !important;
    padding: 0 16px 26px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* 2-column card grid. */
.map-search-redesign .property-list.is-grid,
.map-search-redesign #side-list .property-list.is-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-content: start !important;
    gap: 12px !important;
}

.map-search-redesign .property-list.is-grid .property-card,
.map-search-redesign #side-list .property-list.is-grid .property-card {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 250px !important;
    height: 250px !important;
}

.map-search-redesign .property-list.is-grid .property-card-image,
.map-search-redesign #side-list .property-list.is-grid .property-card-image {
    width: 100% !important;
    min-width: 0 !important;
    height: 132px !important;
    flex: 0 0 132px !important;
}

.map-search-redesign .property-list.is-grid .property-card-body,
.map-search-redesign #side-list .property-list.is-grid .property-card-body {
    min-height: 118px !important;
    padding: 9px 10px 10px !important;
}

/* Horizontal list card — stable fixed height, no content-driven expansion. */
.map-search-redesign .property-list.is-list .property-card,
.map-search-redesign .property-list:not(.is-grid) .property-card,
.map-search-redesign #side-list .property-list.is-list .property-card,
.map-search-redesign #side-list .property-list:not(.is-grid) .property-card {
    display: flex !important;
    flex-direction: row !important;
    min-width: 0 !important;
    min-height: 150px !important;
    height: 150px !important;
}

.map-search-redesign .property-list.is-list .property-card-image,
.map-search-redesign .property-list:not(.is-grid) .property-card-image,
.map-search-redesign #side-list .property-list.is-list .property-card-image,
.map-search-redesign #side-list .property-list:not(.is-grid) .property-card-image {
    width: 152px !important;
    min-width: 152px !important;
    height: 148px !important;
    flex: 0 0 152px !important;
}

.map-search-redesign .property-list.is-list .property-card-body,
.map-search-redesign .property-list:not(.is-grid) .property-card-body,
.map-search-redesign #side-list .property-list.is-list .property-card-body,
.map-search-redesign #side-list .property-list:not(.is-grid) .property-card-body {
    min-width: 0 !important;
    min-height: 148px !important;
    padding: 11px 12px 10px !important;
}

/* Text never increases a card height; title, location and price stay compact. */
.map-search-redesign .property-card-title-area,
.map-search-redesign .property-card-top,
.map-search-redesign .property-card-location,
.map-search-redesign .property-card-price {
    min-width: 0 !important;
}

.map-search-redesign .property-card-title-area h3 {
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.map-search-redesign .property-card-location {
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.map-search-redesign .property-card-price {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Four permanent values below the content: beds / baths / parking / area. */
.map-search-redesign .property-card-specs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
    margin-top: auto !important;
    padding-top: 8px !important;
    border-top: 1px solid #dce3f0 !important;
}

.map-search-redesign .property-card-specs span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 10px !important;
}

/* Status/broker marks belong to the image corner; the heart remains opposite. */
.map-search-redesign .property-card-media-marks {
    top: 8px !important;
    left: 8px !important;
    max-width: calc(100% - 50px) !important;
}

.map-search-redesign .property-card-heart {
    z-index: 6 !important;
    top: 8px !important;
    right: 8px !important;
}

/* Responsive fallback retains the existing mobile bottom sheet behavior. */
@media (max-width: 1180px) and (min-width: 761px) {
    .map-search-redesign .map-page {
        --map-sidebar-width: 440px;
    }

    .map-search-redesign .property-list.is-grid .property-card-image,
    .map-search-redesign #side-list .property-list.is-grid .property-card-image {
        height: 118px !important;
        flex-basis: 118px !important;
    }

    .map-search-redesign .property-list.is-grid .property-card {
        min-height: 234px !important;
        height: 234px !important;
    }
}

@media (max-width: 760px) {
    .map-search-redesign .map-page {
        display: block !important;
        --map-sidebar-width: 100%;
    }

    .map-search-redesign .map-page>.map-area {
        position: absolute !important;
        inset: 0 !important;
    }

    .map-search-redesign .map-page>.property-panel,
    .map-search-redesign .map-page>#side-list {
        position: absolute !important;
        inset: auto 0 0 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        height: min(48%, 420px) !important;
        transform: none !important;
        pointer-events: auto !important;
        border-right: 0 !important;
        border-top: 1px solid var(--map-outline) !important;
        border-radius: 18px 18px 0 0 !important;
        box-shadow: 0 -8px 24px rgba(5, 26, 62, .12) !important;
    }

    .map-search-redesign .home-map-sidebar-toggle,
    .map-search-redesign .home-map-sidebar-resizer {
        display: none !important;
    }

    .map-search-redesign .home-list-navigation {
        margin: 0 12px 12px !important;
    }

    .map-search-redesign .property-list,
    .map-search-redesign #side-list .property-list {
        padding: 0 12px 24px !important;
    }

    .map-search-redesign .property-list.is-grid,
    .map-search-redesign #side-list .property-list.is-grid {
        gap: 10px !important;
    }

    .map-search-redesign .property-list.is-grid .property-card,
    .map-search-redesign #side-list .property-list.is-grid .property-card {
        min-height: 226px !important;
        height: 226px !important;
    }

    .map-search-redesign .property-list.is-grid .property-card-image,
    .map-search-redesign #side-list .property-list.is-grid .property-card-image {
        height: 112px !important;
        flex-basis: 112px !important;
    }
}

@media (max-width: 390px) {

    .map-search-redesign .property-list.is-grid,
    .map-search-redesign #side-list .property-list.is-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* ========================================================================== 
   2026-06-23 · FILTER VIEWPORT PLACEMENT / COMPACT HEIGHT FIX
   - Filter is rendered outside .map-area so MapLibre's stacking/overflow cannot
     clip it to the right-hand map canvas.
   - It starts directly below the global header, not below the search row.
   - Desktop height is intentionally compact like the approved new design.
   ========================================================================== */

/* Keep the search row underneath the filter when it is open; do not give it a
   second vertical slot. The fixed panel covers that row from the header down. */
body.map-search-redesign.home-filter-open::before {
    content: "";
    position: fixed;
    top: var(--home-filter-panel-top, 80px);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9400;
    background: rgba(11, 30, 65, .38);
    pointer-events: auto;
}

.map-search-redesign .home-filter-panel,
.map-search-redesign .home-filter-panel.home-filter-panel--viewport {
    position: fixed !important;
    top: var(--home-filter-panel-top, 80px) !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    z-index: 9500 !important;
    width: 100vw !important;
    height: 366px !important;
    max-width: none !important;
    max-height: calc(100dvh - var(--home-filter-panel-top, 80px)) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-top: 1px solid #d9e0ef !important;
    border-bottom: 1px solid #cfd8ea !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: 0 18px 38px rgba(7, 29, 67, .22) !important;
}

.map-search-redesign .home-filter-panel__head--compact {
    position: absolute !important;
    z-index: 5 !important;
    top: 0 !important;
    right: 0 !important;
    width: 64px !important;
    height: 64px !important;
    min-height: 64px !important;
    padding: 10px !important;
    border: 0 !important;
}

.map-search-redesign .home-filter-panel__head--compact .home-filter-panel__close {
    top: 12px !important;
    right: 12px !important;
    width: 42px !important;
    height: 42px !important;
}

.map-search-redesign .home-filter-panel__body--new {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 20px 28px 0 !important;
    overflow: auto !important;
    scrollbar-gutter: stable;
}

.map-search-redesign .home-filter-new-grid,
.map-search-redesign .home-filter-new-detail-grid {
    grid-template-columns: minmax(240px, 1.2fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(250px, 1.15fr) !important;
    gap: 18px !important;
    max-width: 1660px !important;
}

.map-search-redesign .home-filter-new-detail-grid {
    margin-top: 18px !important;
    padding-top: 16px !important;
}

.map-search-redesign .home-filter-group--new .home-filter-group__head,
.map-search-redesign .home-filter-group--new .home-filter-metric-card__head {
    min-height: 21px !important;
    margin: 0 0 8px !important;
}

.map-search-redesign .home-filter-group--new .home-filter-group__head strong,
.map-search-redesign .home-filter-group--new .home-filter-metric-card__head strong {
    font-size: 11px !important;
    letter-spacing: .055em !important;
}

.map-search-redesign .home-filter-location-search {
    height: 40px !important;
}

.map-search-redesign .home-filter-location-selects {
    margin-top: 6px !important;
    gap: 6px !important;
}

.map-search-redesign .home-filter-location-selects select,
.map-search-redesign .home-filter-field--sort select {
    height: 32px !important;
    font-size: 11px !important;
}

.map-search-redesign .home-filter-pillset,
.map-search-redesign .home-filter-segment--trade,
.map-search-redesign .home-filter-group--beds .home-filter-segment,
.map-search-redesign .home-filter-group--baths .home-filter-segment {
    min-height: 40px !important;
}

.map-search-redesign .home-filter-pillset .home-filter-pill,
.map-search-redesign .home-filter-segment--trade .home-filter-segment__button,
.map-search-redesign .home-filter-group--beds .home-filter-segment__button,
.map-search-redesign .home-filter-group--baths .home-filter-segment__button {
    height: 34px !important;
    font-size: 12px !important;
}

.map-search-redesign .home-filter-segment--trade,
.map-search-redesign .home-filter-group--beds .home-filter-segment,
.map-search-redesign .home-filter-group--baths .home-filter-segment {
    padding: 3px !important;
}

.map-search-redesign .home-filter-segment--trade .home-filter-segment__button,
.map-search-redesign .home-filter-group--beds .home-filter-segment__button,
.map-search-redesign .home-filter-group--baths .home-filter-segment__button {
    height: 32px !important;
}

.map-search-redesign .home-filter-group--price .home-filter-meter,
.map-search-redesign .home-filter-group--area .home-filter-meter {
    height: 28px !important;
    margin: 6px 0 2px !important;
}

.map-search-redesign .home-filter-group--price .home-filter-meter__slider,
.map-search-redesign .home-filter-group--area .home-filter-meter__slider {
    height: 28px !important;
}

.map-search-redesign .home-filter-group--price .home-filter-meter__slider::-webkit-slider-thumb,
.map-search-redesign .home-filter-group--area .home-filter-meter__slider::-webkit-slider-thumb {
    width: 20px !important;
    height: 20px !important;
}

.map-search-redesign .home-filter-actions {
    width: calc(100% + 56px) !important;
    min-height: 62px !important;
    height: 62px !important;
    margin: 16px -28px 0 !important;
    padding: 10px 28px !important;
}

.map-search-redesign .home-filter-reset,
.map-search-redesign .home-filter-submit {
    min-width: 142px !important;
    height: 40px !important;
}

@media (max-width: 1180px) {

    .map-search-redesign .home-filter-panel,
    .map-search-redesign .home-filter-panel.home-filter-panel--viewport {
        height: calc(100dvh - var(--home-filter-panel-top, 80px)) !important;
    }

    .map-search-redesign .home-filter-new-grid,
    .map-search-redesign .home-filter-new-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    body.map-search-redesign.home-filter-open::before {
        top: var(--home-filter-panel-top, 64px);
    }

    .map-search-redesign .home-filter-panel,
    .map-search-redesign .home-filter-panel.home-filter-panel--viewport {
        top: var(--home-filter-panel-top, 64px) !important;
        height: calc(100dvh - var(--home-filter-panel-top, 64px)) !important;
        max-height: calc(100dvh - var(--home-filter-panel-top, 64px)) !important;
    }

    .map-search-redesign .home-filter-panel__body--new {
        padding: 18px 16px 0 !important;
    }

    .map-search-redesign .home-filter-actions {
        width: calc(100% + 32px) !important;
        margin: 16px -16px 0 !important;
        padding: 10px 16px !important;
    }
}

/* ========================================================================== 
   2026-06-23 · APPROVED COMPACT FILTER ORDER
   1행: 지역 1차 / 지역 2차 / 매물 유형 / 거래 유형 / 정렬
   2행: 침실 / 욕실 (양쪽 핸들 범위)
   3행: 가격 / 면적 (양쪽 핸들 범위)
   Desktop filter never scrolls internally; controls are fit into its fixed panel.
   ========================================================================== */
@media (min-width: 1181px) {

    .map-search-redesign .home-filter-panel,
    .map-search-redesign .home-filter-panel.home-filter-panel--viewport {
        height: 398px !important;
        max-height: 398px !important;
    }

    .map-search-redesign .home-filter-panel__body--new {
        box-sizing: border-box !important;
        height: 100% !important;
        padding: 18px 88px 0 28px !important;
        overflow: hidden !important;
    }

    .map-search-redesign .home-filter-new-grid--selects {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .map-search-redesign .home-filter-new-detail-grid--ranges,
    .map-search-redesign .home-filter-new-range-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
        width: 100% !important;
        max-width: none !important;
        margin: 14px 0 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .map-search-redesign .home-filter-group--new .home-filter-group__head,
    .map-search-redesign .home-filter-group--new .home-filter-metric-card__head {
        min-height: 18px !important;
        margin: 0 0 7px !important;
    }

    .map-search-redesign .home-filter-group--new .home-filter-group__head strong,
    .map-search-redesign .home-filter-group--new .home-filter-metric-card__head strong {
        gap: 7px !important;
        font-size: 12px !important;
        letter-spacing: .02em !important;
        text-transform: none !important;
    }

    .map-search-redesign .home-filter-group--new .home-filter-group__head strong i,
    .map-search-redesign .home-filter-group--new .home-filter-metric-card__head strong i {
        font-size: 15px !important;
    }

    .map-search-redesign .home-filter-field--select {
        display: block !important;
        min-width: 0 !important;
    }

    .map-search-redesign .home-filter-field--select select {
        display: block !important;
        width: 100% !important;
        height: 42px !important;
        padding: 0 38px 0 13px !important;
        border: 1px solid #c7d1e8 !important;
        border-radius: 10px !important;
        background: #f3f6ff !important;
        color: #1c2b47 !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        outline: 0 !important;
    }

    .map-search-redesign .home-filter-field--select select:focus {
        border-color: #0b4dab !important;
        box-shadow: 0 0 0 3px rgba(11, 77, 171, .12) !important;
    }

    .map-search-redesign .home-filter-group--beds .home-filter-meter,
    .map-search-redesign .home-filter-group--baths .home-filter-meter,
    .map-search-redesign .home-filter-group--price .home-filter-meter,
    .map-search-redesign .home-filter-group--area .home-filter-meter {
        display: block !important;
        height: 28px !important;
        margin: 4px 0 0 !important;
    }

    .map-search-redesign .home-filter-group--beds .home-filter-meter__track,
    .map-search-redesign .home-filter-group--baths .home-filter-meter__track,
    .map-search-redesign .home-filter-group--price .home-filter-meter__track,
    .map-search-redesign .home-filter-group--area .home-filter-meter__track {
        height: 6px !important;
        background: #dce7ff !important;
    }

    .map-search-redesign .home-filter-group--beds .home-filter-meter__fill,
    .map-search-redesign .home-filter-group--baths .home-filter-meter__fill,
    .map-search-redesign .home-filter-group--price .home-filter-meter__fill,
    .map-search-redesign .home-filter-group--area .home-filter-meter__fill {
        height: 6px !important;
        background: #0b4dab !important;
    }

    .map-search-redesign .home-filter-group--beds .home-filter-meter__dot,
    .map-search-redesign .home-filter-group--baths .home-filter-meter__dot,
    .map-search-redesign .home-filter-group--price .home-filter-meter__dot,
    .map-search-redesign .home-filter-group--area .home-filter-meter__dot {
        width: 19px !important;
        height: 19px !important;
        border: 2px solid #0b4dab !important;
        background: #fff !important;
    }

    .map-search-redesign .home-filter-group--beds .home-filter-meter__slider,
    .map-search-redesign .home-filter-group--baths .home-filter-meter__slider,
    .map-search-redesign .home-filter-group--price .home-filter-meter__slider,
    .map-search-redesign .home-filter-group--area .home-filter-meter__slider {
        height: 28px !important;
    }

    .map-search-redesign .home-filter-group--beds .home-filter-meter__slider::-webkit-slider-thumb,
    .map-search-redesign .home-filter-group--baths .home-filter-meter__slider::-webkit-slider-thumb,
    .map-search-redesign .home-filter-group--price .home-filter-meter__slider::-webkit-slider-thumb,
    .map-search-redesign .home-filter-group--area .home-filter-meter__slider::-webkit-slider-thumb {
        width: 22px !important;
        height: 22px !important;
    }

    .map-search-redesign .home-filter-group--beds .home-filter-meter-labels,
    .map-search-redesign .home-filter-group--baths .home-filter-meter-labels,
    .map-search-redesign .home-filter-group--price .home-filter-meter-labels,
    .map-search-redesign .home-filter-group--area .home-filter-meter-labels {
        display: flex !important;
        justify-content: space-between !important;
        margin-top: 1px !important;
        color: #53627b !important;
        font-size: 11px !important;
        font-weight: 800 !important;
    }

    .map-search-redesign .home-filter-actions {
        position: static !important;
        width: calc(100% + 116px) !important;
        min-height: 58px !important;
        height: 58px !important;
        margin: auto -88px 0 -28px !important;
        padding: 9px 88px 9px 28px !important;
        border-top: 1px solid #d9e0ef !important;
        background: #f1f4ff !important;
    }

    .map-search-redesign .home-filter-reset,
    .map-search-redesign .home-filter-submit {
        min-width: 138px !important;
        height: 40px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 1180px) {
    .map-search-redesign .home-filter-panel__body--new {
        overflow: auto !important;
    }

    .map-search-redesign .home-filter-new-grid--selects {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .map-search-redesign .home-filter-new-detail-grid--ranges,
    .map-search-redesign .home-filter-new-range-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .map-search-redesign .home-filter-field--select {
        display: block !important;
    }

    .map-search-redesign .home-filter-field--select select {
        display: block !important;
        width: 100% !important;
    }

    .map-search-redesign .home-filter-group--beds .home-filter-meter,
    .map-search-redesign .home-filter-group--baths .home-filter-meter {
        display: block !important;
    }
}

@media (max-width: 640px) {

    .map-search-redesign .home-filter-new-grid--selects,
    .map-search-redesign .home-filter-new-detail-grid--ranges,
    .map-search-redesign .home-filter-new-range-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* ==========================================================================
   2026-06-23 FINAL FILTER PANEL POLISH
   Keep the popup locked under the header, prevent background scroll,
   remove horizontal overflow, and normalize header / slider / action spacing.
   ========================================================================== */
html.home-filter-open,
body.map-search-redesign.home-filter-open {
    overflow: hidden !important;
    height: 100% !important;
}

body.map-search-redesign.home-filter-open {
    overflow-x: hidden !important;
}

.map-search-redesign .home-top-searchbar {
    gap: 14px !important;
}

.map-search-redesign .home-top-searchbar__keyword {
    flex: 0 1 520px !important;
    max-width: 520px !important;
    min-width: 0 !important;
}

.map-search-redesign .home-top-searchbar__keyword input {
    padding-right: 88px !important;
}

.map-search-redesign .home-top-searchbar__enter {
    right: 12px !important;
}

.map-search-redesign .home-top-searchbar__filter {
    margin-left: 0 !important;
    flex: 0 0 auto !important;
}

.map-search-redesign .home-filter-panel,
.map-search-redesign .home-filter-panel.home-filter-panel--viewport {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.map-search-redesign .home-filter-panel__body--new {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100dvh - var(--home-filter-panel-top, 80px)) !important;
    max-height: calc(100dvh - var(--home-filter-panel-top, 80px)) !important;
    padding: 18px 28px 18px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-gutter: stable !important;
}

.map-search-redesign .home-filter-new-grid--selects {
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr) !important;
    align-items: end !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.map-search-redesign .home-filter-new-detail-grid--ranges,
.map-search-redesign .home-filter-new-range-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 18px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.map-search-redesign .home-filter-group--new {
    min-width: 0 !important;
}

.map-search-redesign .home-filter-group--new .home-filter-group__head,
.map-search-redesign .home-filter-group--new .home-filter-metric-card__head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 24px !important;
    margin: 0 0 10px !important;
}

.map-search-redesign .home-filter-group--new .home-filter-group__head strong,
.map-search-redesign .home-filter-group--new .home-filter-metric-card__head strong {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .02em !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

.map-search-redesign .home-filter-group--new .home-filter-group__head strong i,
.map-search-redesign .home-filter-group--new .home-filter-metric-card__head strong i {
    width: 16px !important;
    text-align: center !important;
    font-size: 15px !important;
}

.map-search-redesign .home-filter-group--new .home-filter-group__head>span,
.map-search-redesign .home-filter-group--new .home-filter-metric-card__head>span {
    flex: 0 0 auto !important;
    min-width: 42px !important;
    text-align: right !important;
    line-height: 1.2 !important;
}

.map-search-redesign .home-filter-field--select {
    display: block !important;
    min-width: 0 !important;
}

.map-search-redesign .home-filter-field--select select {
    display: block !important;
    width: 100% !important;
    height: 46px !important;
    padding: 0 38px 0 16px !important;
    border: 1px solid #c7d1e8 !important;
    border-radius: 12px !important;
    background: #f3f6ff !important;
    color: #1c2b47 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    outline: 0 !important;
}

.map-search-redesign .home-filter-group--beds .home-filter-meter,
.map-search-redesign .home-filter-group--baths .home-filter-meter,
.map-search-redesign .home-filter-group--price .home-filter-meter,
.map-search-redesign .home-filter-group--area .home-filter-meter {
    position: relative !important;
    display: block !important;
    height: 24px !important;
    margin: 0 !important;
}

.map-search-redesign .home-filter-group--beds .home-filter-meter__track,
.map-search-redesign .home-filter-group--baths .home-filter-meter__track,
.map-search-redesign .home-filter-group--price .home-filter-meter__track,
.map-search-redesign .home-filter-group--area .home-filter-meter__track,
.map-search-redesign .home-filter-group--beds .home-filter-meter__fill,
.map-search-redesign .home-filter-group--baths .home-filter-meter__fill,
.map-search-redesign .home-filter-group--price .home-filter-meter__fill,
.map-search-redesign .home-filter-group--area .home-filter-meter__fill {
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 6px !important;
}

.map-search-redesign .home-filter-group--beds .home-filter-meter__dot,
.map-search-redesign .home-filter-group--baths .home-filter-meter__dot,
.map-search-redesign .home-filter-group--price .home-filter-meter__dot,
.map-search-redesign .home-filter-group--area .home-filter-meter__dot {
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 18px !important;
    height: 18px !important;
    border-width: 3px !important;
}

.map-search-redesign .home-filter-group--beds .home-filter-meter__slider,
.map-search-redesign .home-filter-group--baths .home-filter-meter__slider,
.map-search-redesign .home-filter-group--price .home-filter-meter__slider,
.map-search-redesign .home-filter-group--area .home-filter-meter__slider {
    height: 24px !important;
}

.map-search-redesign .home-filter-group--beds .home-filter-meter__slider::-webkit-slider-thumb,
.map-search-redesign .home-filter-group--baths .home-filter-meter__slider::-webkit-slider-thumb,
.map-search-redesign .home-filter-group--price .home-filter-meter__slider::-webkit-slider-thumb,
.map-search-redesign .home-filter-group--area .home-filter-meter__slider::-webkit-slider-thumb {
    width: 20px !important;
    height: 20px !important;
}

.map-search-redesign .home-filter-group--beds .home-filter-meter-labels,
.map-search-redesign .home-filter-group--baths .home-filter-meter-labels,
.map-search-redesign .home-filter-group--price .home-filter-meter-labels,
.map-search-redesign .home-filter-group--area .home-filter-meter-labels {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 18px !important;
    margin-top: 8px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #53627b !important;
}

.map-search-redesign .home-filter-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 78px !important;
    margin: 20px 0 0 !important;
    padding: 16px 0 0 !important;
    border-top: 1px solid #d9e0ef !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 24px) !important;
}

.map-search-redesign .home-filter-actions::before {
    content: none !important;
    display: none !important;
}

.map-search-redesign .home-filter-reset {
    margin-right: auto !important;
}

.map-search-redesign .home-filter-reset,
.map-search-redesign .home-filter-submit {
    min-width: 158px !important;
    height: 48px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

@media (max-width: 1180px) {
    .map-search-redesign .home-filter-panel__body--new {
        height: calc(100dvh - var(--home-filter-panel-top, 80px)) !important;
        max-height: calc(100dvh - var(--home-filter-panel-top, 80px)) !important;
        padding: 18px 16px 16px !important;
    }

    .map-search-redesign .home-filter-new-grid--selects {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .map-search-redesign .home-filter-new-detail-grid--ranges,
    .map-search-redesign .home-filter-new-range-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .map-search-redesign .home-filter-actions {
        margin-top: 18px !important;
        padding-top: 14px !important;
    }
}

@media (max-width: 760px) {
    .map-search-redesign .home-top-searchbar {
        gap: 10px !important;
    }

    .map-search-redesign .home-top-searchbar__keyword {
        flex: 1 1 auto !important;
        max-width: none !important;
    }

    .map-search-redesign .home-filter-new-grid--selects,
    .map-search-redesign .home-filter-new-detail-grid--ranges,
    .map-search-redesign .home-filter-new-range-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .map-search-redesign .home-filter-reset,
    .map-search-redesign .home-filter-submit {
        min-width: 0 !important;
        flex: 1 1 0 !important;
    }
}

/* 2026-06-23 final close-button anchor */
.map-search-redesign .home-filter-panel .home-filter-panel__head--compact {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: 0 !important;
    justify-content: flex-end !important;
    pointer-events: none !important;
}

.map-search-redesign .home-filter-panel .home-filter-panel__close--viewport,
.map-search-redesign .home-filter-panel .home-filter-panel__close[data-home-filter-close] {
    position: absolute !important;
    left: auto !important;
    right: 28px !important;
    top: 10px !important;
    bottom: auto !important;
    inset: 10px 28px auto auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    z-index: 20 !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 999px !important;
    border: 1px solid #d6def0 !important;
    background: #f4f7ff !important;
    color: #e11d48 !important;
    box-shadow: none !important;
    pointer-events: auto !important;
}

@media (max-width: 980px) {

    .map-search-redesign .home-filter-panel .home-filter-panel__close--viewport,
    .map-search-redesign .home-filter-panel .home-filter-panel__close[data-home-filter-close] {
        right: 16px !important;
        inset: 10px 16px auto auto !important;
    }
}

/* 2026-06-23 · Final filter drawer compact alignment */
.map-search-redesign .home-filter-panel,
.map-search-redesign .home-filter-panel.home-filter-panel--viewport {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.map-search-redesign .home-filter-panel__head--compact {
    position: sticky !important;
    top: 0 !important;
    z-index: 8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 10px 28px 0 !important;
    background: #fff !important;
    border: 0 !important;
    overflow: visible !important;
}

.map-search-redesign .home-filter-panel__head--compact .home-filter-panel__close {
    position: absolute !important;
    left: auto !important;
    right: 28px !important;
    top: 10px !important;
    transform: none !important;
    margin: 0 !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 999px !important;
    border: 1px solid #d6def0 !important;
    background: #f4f7ff !important;
    color: #e11d48 !important;
    box-shadow: none !important;
}

.map-search-redesign .home-filter-panel__body--new {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100dvh - var(--home-filter-panel-top, 80px)) !important;
    max-height: calc(100dvh - var(--home-filter-panel-top, 80px)) !important;
    padding: 12px 28px 18px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-gutter: stable !important;
}

.map-search-redesign .home-filter-panel__body--new,
.map-search-redesign .home-filter-panel__body--new * {
    box-sizing: border-box !important;
}

.map-search-redesign .home-filter-new-grid--selects {
    display: grid !important;
    grid-template-columns: minmax(150px, 0.9fr) minmax(150px, 0.9fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.map-search-redesign .home-filter-new-detail-grid--ranges,
.map-search-redesign .home-filter-new-range-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.map-search-redesign .home-filter-group--new {
    min-width: 0 !important;
}

.map-search-redesign .home-filter-group--new.home-filter-metric-card {
    padding: 14px 16px 12px !important;
    border: 1px solid #d8e1f1 !important;
    border-radius: 22px !important;
    background: #fff !important;
}

.map-search-redesign .home-filter-group--new .home-filter-group__head,
.map-search-redesign .home-filter-group--new .home-filter-metric-card__head {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    min-height: 20px !important;
    margin: 0 0 8px !important;
}

.map-search-redesign .home-filter-group--new .home-filter-group__head strong,
.map-search-redesign .home-filter-group--new .home-filter-metric-card__head strong {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #183153 !important;
    white-space: nowrap !important;
    text-align: left !important;
}

.map-search-redesign .home-filter-group--new .home-filter-group__head strong i,
.map-search-redesign .home-filter-group--new .home-filter-metric-card__head strong i {
    width: 16px !important;
    font-size: 15px !important;
    text-align: center !important;
}

.map-search-redesign .home-filter-group--new .home-filter-group__head>span,
.map-search-redesign .home-filter-group--new .home-filter-metric-card__head>span {
    margin-left: auto !important;
    flex: 0 0 auto !important;
    min-width: 42px !important;
    text-align: right !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #1d4fb2 !important;
}

.map-search-redesign .home-filter-group--new .home-filter-group__head strong span,
.map-search-redesign .home-filter-group--new .home-filter-metric-card__head strong span {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.map-search-redesign .home-filter-group--region-secondary .home-filter-group__head strong {
    padding-left: 0 !important;
}

.map-search-redesign .home-filter-field--select {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
}

.map-search-redesign .home-filter-field--select select {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    padding: 0 38px 0 16px !important;
    border: 1px solid #c7d1e8 !important;
    border-radius: 16px !important;
    background: #f5f7ff !important;
    color: #1b2d4b !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.map-search-redesign .home-filter-group--beds .home-filter-meter,
.map-search-redesign .home-filter-group--baths .home-filter-meter,
.map-search-redesign .home-filter-group--price .home-filter-meter,
.map-search-redesign .home-filter-group--area .home-filter-meter {
    position: relative !important;
    display: block !important;
    height: 22px !important;
    margin: 0 !important;
}

.map-search-redesign .home-filter-group--beds .home-filter-meter__track,
.map-search-redesign .home-filter-group--baths .home-filter-meter__track,
.map-search-redesign .home-filter-group--price .home-filter-meter__track,
.map-search-redesign .home-filter-group--area .home-filter-meter__track,
.map-search-redesign .home-filter-group--beds .home-filter-meter__fill,
.map-search-redesign .home-filter-group--baths .home-filter-meter__fill,
.map-search-redesign .home-filter-group--price .home-filter-meter__fill,
.map-search-redesign .home-filter-group--area .home-filter-meter__fill {
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 5px !important;
    border-radius: 999px !important;
}

.map-search-redesign .home-filter-group--beds .home-filter-meter__dot,
.map-search-redesign .home-filter-group--baths .home-filter-meter__dot,
.map-search-redesign .home-filter-group--price .home-filter-meter__dot,
.map-search-redesign .home-filter-group--area .home-filter-meter__dot {
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 16px !important;
    height: 16px !important;
    border-width: 3px !important;
}

.map-search-redesign .home-filter-group--beds .home-filter-meter__slider,
.map-search-redesign .home-filter-group--baths .home-filter-meter__slider,
.map-search-redesign .home-filter-group--price .home-filter-meter__slider,
.map-search-redesign .home-filter-group--area .home-filter-meter__slider {
    height: 22px !important;
}

.map-search-redesign .home-filter-group--beds .home-filter-meter__slider::-webkit-slider-thumb,
.map-search-redesign .home-filter-group--baths .home-filter-meter__slider::-webkit-slider-thumb,
.map-search-redesign .home-filter-group--price .home-filter-meter__slider::-webkit-slider-thumb,
.map-search-redesign .home-filter-group--area .home-filter-meter__slider::-webkit-slider-thumb {
    width: 18px !important;
    height: 18px !important;
}

.map-search-redesign .home-filter-group--beds .home-filter-meter-labels,
.map-search-redesign .home-filter-group--baths .home-filter-meter-labels,
.map-search-redesign .home-filter-group--price .home-filter-meter-labels,
.map-search-redesign .home-filter-group--area .home-filter-meter-labels {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 18px !important;
    margin-top: 6px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #64748b !important;
}

.map-search-redesign .home-filter-field--sr {
    display: none !important;
}

.map-search-redesign .home-filter-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 76px !important;
    margin: 14px 0 0 !important;
    padding: 12px 0 0 !important;
    border-top: 1px solid #d9e0ef !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 22px) !important;
}

.map-search-redesign .home-filter-actions::before {
    content: none !important;
    display: none !important;
}

.map-search-redesign .home-filter-reset {
    margin-right: auto !important;
}

.map-search-redesign .home-filter-reset,
.map-search-redesign .home-filter-submit {
    min-width: 158px !important;
    height: 48px !important;
    border-radius: 16px !important;
}

.map-search-redesign .home-map-shell,
.map-search-redesign .home-map-stage,
.map-search-redesign .home-map-canvas,
.map-search-redesign #map {
    width: 100% !important;
}

.map-search-redesign .home-filter-panel {
    overflow-x: hidden !important;
}

.map-search-redesign .home-filter-panel__body--new::-webkit-scrollbar:horizontal {
    display: none !important;
    height: 0 !important;
}

@media (max-width: 1320px) {
    .map-search-redesign .home-filter-new-grid--selects {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 980px) {
    .map-search-redesign .home-filter-panel__head--compact {
        padding: 10px 16px 0 !important;
    }

    .map-search-redesign .home-filter-panel__head--compact .home-filter-panel__close {
        right: 16px !important;
    }

    .map-search-redesign .home-filter-panel__body--new {
        padding: 12px 16px 16px !important;
    }

    .map-search-redesign .home-filter-new-grid--selects,
    .map-search-redesign .home-filter-new-detail-grid--ranges,
    .map-search-redesign .home-filter-new-range-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {

    .map-search-redesign .home-filter-new-grid--selects,
    .map-search-redesign .home-filter-new-detail-grid--ranges,
    .map-search-redesign .home-filter-new-range-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .map-search-redesign .home-filter-group--region-secondary .home-filter-group__head strong {
        padding-left: 0 !important;
    }
}

.property-modal-backdrop--home-detail {
    z-index: 9800 !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(8px) !important;
}

.property-modal--home-detail {
    top: 24px !important;
    left: 50% !important;
    z-index: 9810 !important;
    width: min(1520px, calc(100vw - 40px)) !important;
    max-width: calc(100vw - 40px) !important;
    max-height: calc(100vh - 48px) !important;
    transform: translateX(-50%) !important;
    border-radius: 28px !important;
    background: #ffffff !important;
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.28) !important;
    overflow: hidden !important;
}

.property-modal--home-detail .property-modal-close {
    top: 24px !important;
    right: 24px !important;
    left: auto !important;
    width: 52px !important;
    height: 52px !important;
    border: 1px solid #c6d0e7 !important;
    background: #eef3ff !important;
    color: #4b5568 !important;
    font-size: 36px !important;
    line-height: 1 !important;
}

.property-modal--home-detail .property-modal-scroll {
    max-height: calc(100vh - 48px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 34px !important;
}

body.modal-open {
    overflow: hidden !important;
}

.home-detail-modal {
    display: grid;
    grid-template-columns: minmax(0, 1.68fr) minmax(360px, 0.92fr);
    gap: 28px;
    align-items: start;
}

.home-detail-modal__main,
.home-detail-modal__aside {
    min-width: 0;
}

.home-detail-modal__gallery,
.home-detail-modal__content,
.home-detail-modal__broker-card {
    border: 1px solid #d7e1f2;
    border-radius: 24px;
    background: #fff;
}

.home-detail-modal__gallery {
    overflow: hidden;
}

.home-detail-modal__gallery-stage {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.home-detail-modal__media {
    position: relative;
    margin: 0;
    min-height: 520px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(145deg, #eef3ff, #f8fbff);
}

.home-detail-modal__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.home-detail-modal__media.is-empty {
    display: grid;
    place-items: center;
}

.home-detail-modal__empty {
    color: #64748b;
    font-size: 28px;
    font-weight: 800;
}

.home-detail-modal__count {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.72);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.home-detail-modal__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 999px;
    background: rgba(97, 121, 53, 0.72);
    color: #fff;
    font-size: 22px;
    transform: translateY(-50%);
    cursor: pointer;
}

.home-detail-modal__nav.is-prev {
    left: 18px;
}

.home-detail-modal__nav.is-next {
    right: 18px;
}

.home-detail-modal__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 10px;
}

.home-detail-modal__thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f7ff;
    cursor: pointer;
}

.home-detail-modal__thumb img {
    display: block;
    width: 100%;
    height: 78px;
    object-fit: cover;
}

.home-detail-modal__thumb.is-active {
    border-color: #1d4fb2;
    box-shadow: 0 0 0 3px rgba(29, 79, 178, 0.12);
}

.home-detail-modal__content {
    margin-top: 18px;
    padding: 28px 30px 30px;
}

.home-detail-modal__price-wrap {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.home-detail-modal__price-label {
    color: #5f708b;
    font-size: 15px;
    font-weight: 700;
}

.home-detail-modal__meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-detail-modal__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.home-detail-modal__badge {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #edf3ff;
    color: #1d4fb2;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.home-detail-modal__badge.is-muted {
    background: #fff7e6;
    color: #b9770e;
}

.home-detail-modal__icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid #d4deef;
    border-radius: 999px;
    background: #fff;
    color: #244eac;
    font-size: 22px;
    cursor: pointer;
}

.home-detail-modal__icon-button.is-active {
    color: #e11d48;
    border-color: #f2b4c2;
}

.home-detail-modal__title {
    margin: 18px 0 12px;
    color: #102748;
    font-size: 52px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.home-detail-modal__address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    color: #5f708b;
    font-size: 18px;
    line-height: 1.55;
}

.home-detail-modal__address i {
    margin-top: 4px;
    color: #1d4fb2;
}

.home-detail-modal__price {
    color: #0f3f99;
    font-size: 30px;
    font-weight: 900;
}

.home-detail-modal__stats .listing-stats {
    margin: 0 0 22px;
}

.home-detail-modal__stats .listing-stat {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #d7e1f2;
    border-radius: 999px;
    background: #fff;
}

.home-detail-modal__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 26px;
    padding: 24px 0;
    border-top: 1px solid #dbe4f2;
    border-bottom: 1px solid #dbe4f2;
}

.home-detail-modal__fact {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 16px 18px;
    border: 1px solid #d7e1f2;
    border-radius: 18px;
    background: #fbfdff;
}

.home-detail-modal__fact i {
    color: #1d4fb2;
    font-size: 22px;
}

.home-detail-modal__fact div {
    display: grid;
    gap: 4px;
}

.home-detail-modal__fact span {
    color: #5f708b;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-detail-modal__fact strong {
    color: #102748;
    font-size: 20px;
    font-weight: 900;
}

.home-detail-modal__amenities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
}

.home-detail-modal__amenity {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #102748;
    font-size: 18px;
    font-weight: 700;
}

.home-detail-modal__amenity i {
    color: #1d4fb2;
    font-size: 18px;
}

.home-detail-modal__section+.home-detail-modal__section {
    margin-top: 28px;
}

.home-detail-modal__section h3 {
    margin: 0 0 14px;
    color: #102748;
    font-size: 22px;
    font-weight: 900;
}

.home-detail-modal__section p {
    margin: 0;
    color: #34445f;
    font-size: 18px;
    line-height: 1.72;
    white-space: pre-wrap;
    word-break: break-word;
}

.home-detail-modal__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.home-detail-modal__location-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    height: 44px;
    border: 1px solid #cdd7ea;
    border-radius: 999px;
    background: #fff;
    color: #1349a8;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.home-detail-modal__broker-card {
    position: sticky;
    top: 0;
    padding: 28px 30px;
}

.home-detail-modal__broker-card.is-locked {
    display: grid;
    gap: 10px;
    min-height: 320px;
    place-content: center;
    text-align: center;
}

.home-detail-modal__login-copy {
    color: #102748;
    font-size: 24px;
    font-weight: 900;
}

.home-detail-modal__broker-head {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid #dbe4f2;
}

.home-detail-modal__broker-photo {
    width: 74px;
    height: 74px;
    border-radius: 999px;
    object-fit: cover;
}

.home-detail-modal__broker-photo.is-placeholder {
    display: grid;
    place-items: center;
    background: #edf2ff;
    color: #5e6d8c;
    font-size: 28px;
}

.home-detail-modal__broker-meta {
    min-width: 0;
}

.home-detail-modal__broker-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.home-detail-modal__broker-badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #edf3ff;
    color: #1d4fb2;
    font-size: 12px;
    font-weight: 800;
}

.home-detail-modal__broker-name {
    display: block;
    color: #102748;
    font-size: 22px;
    font-weight: 900;
}

.home-detail-modal__broker-office {
    margin: 4px 0 0;
    color: #5f708b;
    font-size: 18px;
}

.home-detail-modal__broker-lines {
    display: grid;
    gap: 18px;
    padding: 24px 0 18px;
}

.home-detail-modal__broker-line {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.home-detail-modal__broker-line i {
    margin-top: 3px;
    color: #1d4fb2;
    font-size: 22px;
}

.home-detail-modal__broker-line span {
    display: block;
    margin-bottom: 4px;
    color: #5f708b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-detail-modal__broker-line strong {
    color: #102748;
    font-size: 18px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.home-detail-modal__broker-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.home-detail-modal__broker-stats span {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid #d7e1f2;
    border-radius: 18px;
    background: #f8fbff;
}

.home-detail-modal__broker-stats em {
    color: #5f708b;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.home-detail-modal__broker-stats strong {
    color: #102748;
    font-size: 20px;
    font-weight: 900;
}

.home-detail-modal__broker-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.home-detail-modal__contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 66px;
    border-radius: 18px;
    border: 1px solid transparent;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
}

.home-detail-modal__contact-button.is-call {
    background: #1247a9;
}

.home-detail-modal__contact-button.is-whatsapp {
    background: #22c55e;
}

.home-detail-modal__contact-button[disabled] {
    opacity: 0.45;
    pointer-events: none;
}

@media (max-width: 1280px) {
    .property-modal--home-detail {
        width: min(1360px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
    }

    .home-detail-modal {
        grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
    }

    .home-detail-modal__title {
        font-size: 42px;
    }

    .home-detail-modal__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .property-modal--home-detail {
        top: 12px !important;
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100vh - 24px) !important;
        border-radius: 22px !important;
    }

    .property-modal--home-detail .property-modal-scroll {
        max-height: calc(100vh - 24px) !important;
        padding: 18px !important;
    }

    .property-modal--home-detail .property-modal-close {
        top: 14px !important;
        right: 14px !important;
        width: 46px !important;
        height: 46px !important;
        font-size: 28px !important;
    }

    .home-detail-modal {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-detail-modal__media,
    .home-detail-modal__media img {
        min-height: 320px;
    }

    .home-detail-modal__content,
    .home-detail-modal__broker-card {
        padding: 20px;
    }

    .home-detail-modal__title {
        font-size: 34px;
    }

    .home-detail-modal__address,
    .home-detail-modal__section p,
    .home-detail-modal__broker-line strong {
        font-size: 16px;
    }

    .home-detail-modal__facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-detail-modal__broker-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .home-detail-modal__gallery-stage {
        padding: 12px;
    }

    .home-detail-modal__thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-detail-modal__thumb img {
        height: 60px;
    }

    .home-detail-modal__meta-row {
        flex-wrap: wrap;
    }

    .home-detail-modal__actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }

    .home-detail-modal__title {
        font-size: 28px;
    }

    .home-detail-modal__facts,
    .home-detail-modal__amenities,
    .home-detail-modal__broker-stats,
    .home-detail-modal__broker-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-detail-modal__section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-detail-modal__nav {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
}

/* ========================================================================
   Map Search — Property detail modal redesign
   Reference: redesign/map-search.html (listing card click detail modal)
   ======================================================================== */
.property-modal-backdrop--home-detail {
    background: rgba(15, 23, 42, 0.56) !important;
    backdrop-filter: blur(3px) !important;
}

.property-modal--home-detail {
    top: 50% !important;
    left: 50% !important;
    width: min(1400px, calc(100vw - 64px)) !important;
    max-width: calc(100vw - 64px) !important;
    max-height: min(900px, calc(100vh - 56px)) !important;
    transform: translate(-50%, -50%) !important;
    border: 1px solid #d9e0ec !important;
    border-radius: 18px !important;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28) !important;
}

.property-modal--home-detail .property-modal-scroll {
    max-height: min(900px, calc(100vh - 56px)) !important;
    padding: 30px 22px 28px !important;
    scrollbar-gutter: stable;
}

.property-modal--home-detail .property-modal-close {
    top: 20px !important;
    right: 20px !important;
    width: 44px !important;
    height: 44px !important;
    border: 1px solid #cfd8ea !important;
    border-radius: 999px !important;
    background: #f2f5ff !important;
    color: #475569 !important;
    font-size: 30px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    z-index: 4;
}

.home-detail-modal {
    grid-template-columns: minmax(0, 1.65fr) minmax(390px, 0.88fr) !important;
    gap: 22px !important;
    align-items: start !important;
}

.home-detail-modal__main,
.home-detail-modal__aside {
    min-width: 0;
}

.home-detail-modal__aside {
    position: sticky;
    top: 0;
}

.home-detail-modal__gallery {
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    overflow: visible !important;
}

.home-detail-modal__gallery-stage {
    padding: 0 !important;
}

.home-detail-modal__media {
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
    border: 1px solid #d8e0ee;
    border-radius: 14px !important;
    background: #edf2ff !important;
}

.home-detail-modal__media img {
    min-height: 0 !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-detail-modal__empty {
    color: #667791;
    font-size: 24px;
    font-weight: 800;
}

.home-detail-modal__count {
    top: 16px !important;
    right: 16px !important;
    padding: 6px 12px !important;
    background: rgba(15, 39, 72, 0.55) !important;
    color: #fff !important;
    font-size: 13px !important;
}

.home-detail-modal__nav {
    width: 42px !important;
    height: 42px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    font-size: 17px !important;
    opacity: 0;
    transition: opacity 0.18s ease, background 0.18s ease;
}

.home-detail-modal__media:hover .home-detail-modal__nav,
.home-detail-modal__nav:focus-visible {
    opacity: 1;
}

.home-detail-modal__nav:hover {
    background: rgba(255, 255, 255, 0.48) !important;
}

.home-detail-modal__nav.is-prev {
    left: 16px !important;
}

.home-detail-modal__nav.is-next {
    right: 16px !important;
}

.home-detail-modal__dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(15, 39, 72, 0.22);
    backdrop-filter: blur(8px);
    transform: translateX(-50%);
}

.home-detail-modal__thumb.home-detail-modal__dot {
    display: block;
    width: 10px !important;
    min-width: 10px !important;
    height: 10px !important;
    min-height: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.48) !important;
    box-shadow: none !important;
}

.home-detail-modal__thumb.home-detail-modal__dot.is-active {
    background: #fff !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65) !important;
}

.home-detail-modal__content {
    margin-top: 18px !important;
    padding: 24px !important;
    border: 1px solid #d7e0ee !important;
    border-radius: 14px !important;
    background: #fff !important;
}

.home-detail-modal__meta-row {
    align-items: center !important;
    min-height: 36px;
}

.home-detail-modal__badge {
    height: 30px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    text-transform: uppercase;
}

.home-detail-modal__actions {
    gap: 8px !important;
}

.home-detail-modal__icon-button {
    width: 38px !important;
    height: 38px !important;
    border-color: #d6deee !important;
    color: #244c9d !important;
    font-size: 16px !important;
}

.home-detail-modal__title {
    margin: 16px 0 8px !important;
    color: #0d2e61 !important;
    font-size: clamp(27px, 2.2vw, 36px) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.035em !important;
}

.home-detail-modal__address {
    gap: 8px !important;
    margin: 0 0 14px !important;
    color: #526681 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.home-detail-modal__address i {
    margin-top: 2px !important;
    font-size: 14px !important;
}

.home-detail-modal__price-wrap {
    gap: 2px !important;
    margin-bottom: 16px !important;
}

.home-detail-modal__price-label {
    font-size: 12px !important;
}

.home-detail-modal__price {
    color: #0f4cab !important;
    font-size: clamp(24px, 2vw, 31px) !important;
    line-height: 1.2 !important;
}

/* The sample modal does not show list-stat counters in the property header. */
.home-detail-modal__stats {
    display: none !important;
}

.home-detail-modal__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px 20px !important;
    margin: 0 !important;
    padding: 18px 0 0 !important;
    border-top: 1px solid #d8e0ed !important;
    border-bottom: 0 !important;
}

.home-detail-modal__fact {
    min-height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #152e59;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.home-detail-modal__fact i {
    flex: 0 0 auto;
    color: #1052b1 !important;
    font-size: 17px !important;
}

.home-detail-modal__fact span {
    color: #173662;
    font-size: 14px;
    font-weight: 700;
}

.home-detail-modal__fact div,
.home-detail-modal__fact strong {
    display: contents;
}

.home-detail-modal__section+.home-detail-modal__section {
    margin-top: 28px !important;
}

.home-detail-modal__section h3 {
    margin-bottom: 12px !important;
    font-size: 24px !important;
}

.home-detail-modal__section p {
    color: #3f516d !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
}

/* Description is the primary explanatory section in the target map-search modal. */
.home-detail-modal__section.is-summary {
    display: none !important;
}

.home-detail-modal__amenities {
    gap: 14px 22px !important;
}

.home-detail-modal__amenity {
    gap: 9px !important;
    font-size: 15px !important;
}

.home-detail-modal__amenity i {
    font-size: 16px !important;
}

.home-detail-modal__location-button {
    min-width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #0d4cad !important;
    font-size: 14px !important;
}

.home-detail-modal__broker-card {
    position: sticky !important;
    top: 0 !important;
    padding: 24px !important;
    border: 1px solid #d7e0ee !important;
    border-radius: 14px !important;
    background: #fff !important;
}

.home-detail-modal__broker-head {
    grid-template-columns: 60px minmax(0, 1fr) 42px !important;
    gap: 14px !important;
    padding-bottom: 18px !important;
}

.home-detail-modal__broker-photo {
    width: 60px !important;
    height: 60px !important;
}

.home-detail-modal__broker-photo.is-placeholder {
    font-size: 22px !important;
}

.home-detail-modal__broker-badges {
    gap: 5px !important;
    margin-bottom: 5px !important;
}

.home-detail-modal__broker-badge {
    height: 23px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
}

.home-detail-modal__broker-name {
    font-size: 20px !important;
    line-height: 1.25;
}

.home-detail-modal__broker-office {
    margin-top: 2px !important;
    font-size: 13px !important;
}

.home-detail-modal__broker-quick-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #bfccea;
    border-radius: 999px;
    background: #e8efff;
    color: #0d4dac;
    font-size: 16px;
    text-decoration: none;
}

.home-detail-modal__broker-quick-call[disabled] {
    opacity: 0.45;
}

.home-detail-modal__broker-lines {
    gap: 15px !important;
    padding: 18px 0 0 !important;
}

.home-detail-modal__broker-line {
    grid-template-columns: 22px minmax(0, 1fr) !important;
    gap: 10px !important;
}

.home-detail-modal__broker-line i {
    margin-top: 2px !important;
    font-size: 16px !important;
}

.home-detail-modal__broker-line span {
    margin-bottom: 3px !important;
    font-size: 10px !important;
}

.home-detail-modal__broker-line strong {
    color: #203a63 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

/* Total/active listing counters were not part of the target agent card. */
.home-detail-modal__broker-stats {
    display: none !important;
}

.home-detail-modal__broker-actions {
    gap: 10px !important;
    margin-top: 22px;
}

.home-detail-modal__contact-button {
    min-height: 52px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
}

@media (max-width: 1180px) {
    .property-modal--home-detail {
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
    }

    .home-detail-modal {
        grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.9fr) !important;
    }
}

@media (max-width: 920px) {
    .property-modal--home-detail {
        top: 14px !important;
        transform: translateX(-50%) !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 28px) !important;
    }

    .property-modal--home-detail .property-modal-scroll {
        max-height: calc(100vh - 28px) !important;
        padding: 62px 16px 18px !important;
    }

    .home-detail-modal {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .home-detail-modal__aside,
    .home-detail-modal__broker-card {
        position: static !important;
    }

    .home-detail-modal__media {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 620px) {
    .property-modal--home-detail .property-modal-close {
        top: 12px !important;
        right: 12px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 27px !important;
    }

    .home-detail-modal__content,
    .home-detail-modal__broker-card {
        padding: 18px !important;
    }

    .home-detail-modal__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .home-detail-modal__fact {
        white-space: normal;
    }

    .home-detail-modal__title {
        font-size: 27px !important;
    }

    .home-detail-modal__broker-head {
        grid-template-columns: 54px minmax(0, 1fr) 40px !important;
    }

    .home-detail-modal__broker-photo {
        width: 54px !important;
        height: 54px !important;
    }
}

/* 2026-06-24: type/trade multi-select dropdowns. The native select remains the source of truth. */
.home-filter-group--property .home-filter-field--select>select,
.home-filter-group--trade .home-filter-field--select>select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.home-multi-select {
    position: relative;
    width: 100%;
}

.home-multi-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #c5d3ec;
    border-radius: 12px;
    background: #f3f6ff;
    color: #172d52;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-align: left;
}

.home-multi-select__trigger:focus-visible {
    outline: 3px solid rgba(13, 71, 161, .20);
    outline-offset: 2px;
}

.home-multi-select__trigger i {
    color: #174fa7;
    font-size: 12px;
    transition: transform .18s ease;
}

.home-multi-select__trigger[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.home-multi-select__menu {
    position: absolute;
    z-index: 9805;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    max-height: min(320px, 46vh);
    overflow-y: auto;
    padding: 7px;
    border: 1px solid #cbd8ed;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(23, 52, 96, .20);
}

.home-multi-select__option {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 38px;
    padding: 8px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #20375f;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.home-multi-select__option:hover {
    background: #eef4ff;
}

.home-multi-select__option.is-checked {
    background: #edf4ff;
    color: #0d4ba5;
}

.home-multi-select__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border: 1.5px solid #b7c7e5;
    border-radius: 5px;
    color: transparent;
    background: #fff;
}

.home-multi-select__option.is-checked .home-multi-select__check {
    border-color: #0d4ba5;
    background: #0d4ba5;
    color: #fff;
}

.home-multi-select__check i {
    font-size: 10px;
}

body[data-map-provider="google"] .hn-map-attribution {
    display: none !important;
}

@media (max-width: 760px) {
    .home-multi-select__trigger {
        min-height: 48px;
        border-radius: 12px;
        font-size: 14px;
    }

    .home-multi-select__menu {
        position: fixed;
        top: auto;
        left: 23px;
        right: 23px;
        max-height: 38dvh;
        z-index: 9705;
    }

    .home-filter-panel .home-filter-group--property .home-mobile-filter-pill-group,
    .home-filter-panel .home-filter-group--trade .home-mobile-filter-segment {
        display: none !important;
    }
}

/* ==========================================================================
   2026-06-24 · FILTER LAYOUT / MULTI-SELECT FINAL OVERRIDE
   - One visual control per Property Type / Transaction Type field.
   - The hidden native select remains the API source of truth.
   - Multiple checked values are OR-ed inside their own group.
   - The two groups are still combined with AND, together with all other filters.
   ========================================================================== */
.map-search-redesign .home-filter-field--select.is-home-multi-select {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
}

.map-search-redesign .home-filter-field--select.is-home-multi-select>.home-multi-select {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
}

.map-search-redesign .home-filter-field--select.is-home-multi-select>.home-multi-select>select.home-multi-select__source {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
}

.map-search-redesign .home-multi-select__menu[hidden] {
    display: none !important;
}

@media (min-width: 1181px) {

    /* The old 366px cap was too short for all three filter rows + action row. */
    .map-search-redesign .home-filter-panel,
    .map-search-redesign .home-filter-panel.home-filter-panel--viewport {
        height: 476px !important;
        max-height: min(476px, calc(100dvh - var(--home-filter-panel-top, 80px))) !important;
    }

    .map-search-redesign .home-filter-panel__body--new {
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
        height: 100% !important;
        padding: 18px 28px 0 !important;
        overflow: hidden !important;
    }

    /* 1st row: region 1 / region 2 / property type / transaction type / sort */
    .map-search-redesign .home-filter-new-grid--selects {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 14px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .map-search-redesign .home-filter-group--property,
    .map-search-redesign .home-filter-group--trade {
        position: relative !important;
        z-index: 4 !important;
        min-width: 0 !important;
    }

    .map-search-redesign .home-filter-group--property .home-filter-field--select,
    .map-search-redesign .home-filter-group--trade .home-filter-field--select {
        min-height: 42px !important;
    }

    .map-search-redesign .home-multi-select__trigger {
        min-height: 42px !important;
        height: 42px !important;
        padding: 0 13px !important;
        border-radius: 10px !important;
        font-size: 13px !important;
    }

    .map-search-redesign .home-multi-select__menu {
        z-index: 10060 !important;
        max-height: 270px !important;
    }

    /* 2nd row: beds / baths. 3rd row: price / area. */
    .map-search-redesign .home-filter-new-detail-grid--ranges,
    .map-search-redesign .home-filter-new-range-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
        width: 100% !important;
        margin: 14px 0 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .map-search-redesign .home-filter-metric-card {
        min-height: 84px !important;
        padding: 12px 14px 10px !important;
    }

    .map-search-redesign .home-filter-actions {
        flex: 0 0 58px !important;
        width: calc(100% + 56px) !important;
        min-height: 58px !important;
        height: 58px !important;
        margin: auto -28px 0 !important;
        padding: 9px 28px !important;
        border-top: 1px solid #d9e0ef !important;
        background: #f1f4ff !important;
    }

    .map-search-redesign .home-filter-reset,
    .map-search-redesign .home-filter-submit {
        min-width: 142px !important;
        height: 40px !important;
    }
}

@media (max-width: 1180px) and (min-width: 761px) {
    .map-search-redesign .home-filter-field--select.is-home-multi-select>.home-multi-select>select.home-multi-select__source {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* ==========================================================================
   2026-06-24 · FILTER MULTI-SELECT ANCHOR / ACTION-ROW CORRECTION
   - Custom property/trade menus must be anchored directly below their own
     trigger. They never use the viewport or the filter panel as an anchor.
   - The action row owns the full filter width and remains outside the menu.
   ========================================================================== */
.map-search-redesign .home-filter-panel .home-filter-field--select.is-home-multi-select,
.map-search-redesign .home-filter-panel .home-filter-field--select.is-home-multi-select>.home-multi-select {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
}

.map-search-redesign .home-filter-panel .home-multi-select__menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    transform: none !important;
    transform-origin: top center !important;
}

@media (min-width: 1181px) {

    /* Keep the desktop filter compact, but give its three rows and action bar
       their full dedicated height instead of clipping them. */
    .map-search-redesign .home-filter-panel,
    .map-search-redesign .home-filter-panel.home-filter-panel--viewport {
        height: 512px !important;
        max-height: min(512px, calc(100dvh - var(--home-filter-panel-top, 80px))) !important;
    }

    .map-search-redesign .home-filter-panel__body--new {
        min-height: 0 !important;
        padding: 18px 28px 0 !important;
    }

    .map-search-redesign .home-filter-group--property,
    .map-search-redesign .home-filter-group--trade {
        z-index: 30 !important;
    }

    /* The menu uses the area above the fixed action row and scrolls inside
       itself for long property-type lists. */
    .map-search-redesign .home-multi-select__menu {
        z-index: 10080 !important;
        max-height: 246px !important;
        overflow-y: auto !important;
    }

    .map-search-redesign .home-filter-actions {
        position: static !important;
        flex: 0 0 58px !important;
        align-self: stretch !important;
        width: calc(100% + 56px) !important;
        max-width: none !important;
        min-height: 58px !important;
        height: 58px !important;
        margin: auto -28px 0 !important;
        padding: 9px 28px !important;
        box-sizing: border-box !important;
        justify-content: flex-end !important;
    }

    .map-search-redesign .home-filter-reset {
        margin-right: auto !important;
    }
}

@media (min-width: 761px) and (max-width: 1180px) {

    .map-search-redesign .home-filter-panel .home-filter-field--select.is-home-multi-select,
    .map-search-redesign .home-filter-panel .home-filter-field--select.is-home-multi-select>.home-multi-select {
        position: relative !important;
    }

    .map-search-redesign .home-filter-panel .home-multi-select__menu {
        top: calc(100% + 6px) !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        max-height: min(300px, 42dvh) !important;
        z-index: 10080 !important;
    }
}

/* ========================================================================== 
   2026-06-24 · MULTI-SELECT POPOVER STACKING / TRUE SELECT EDGE
   The menu must be a real select-like layer: directly connected to its own
   trigger, above every later filter row, and capped before the action bar.
   ========================================================================== */
.map-search-redesign .home-filter-panel .home-filter-group--property,
.map-search-redesign .home-filter-panel .home-filter-group--trade {
    position: relative !important;
    isolation: auto !important;
    z-index: 1 !important;
}

.map-search-redesign .home-filter-panel .home-filter-group--property.is-home-multi-open,
.map-search-redesign .home-filter-panel .home-filter-group--trade.is-home-multi-open {
    z-index: 12000 !important;
}

.map-search-redesign .home-filter-panel .home-filter-field--select.is-home-multi-select,
.map-search-redesign .home-filter-panel .home-filter-field--select.is-home-multi-select>.home-multi-select {
    position: relative !important;
    overflow: visible !important;
}

.map-search-redesign .home-filter-panel .home-multi-select__trigger[aria-expanded="true"] {
    position: relative !important;
    z-index: 2 !important;
    border-bottom-color: transparent !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.map-search-redesign .home-filter-panel .home-multi-select__menu {
    position: absolute !important;
    top: calc(100% - 1px) !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    z-index: 3 !important;
    width: 100% !important;
    max-height: var(--home-multi-menu-max-height, 230px) !important;
    margin: 0 !important;
    padding: 7px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border-color: #c5d3ec !important;
    border-top-color: #c5d3ec !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 14px 28px rgba(23, 52, 96, .20) !important;
    box-sizing: border-box !important;
}

.map-search-redesign .home-filter-panel .home-multi-select__menu[hidden] {
    display: none !important;
}

/* The action row is always a full-width sibling; it must not form a clipping
   or stacking layer for an open select popover. */
.map-search-redesign .home-filter-panel .home-filter-actions {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

@media (min-width: 1181px) {
    .map-search-redesign .home-filter-panel .home-filter-actions {
        width: calc(100% + 56px) !important;
        margin-right: -28px !important;
        margin-left: -28px !important;
    }
}


/* ========================================================================
   2026-06-24 · CHECK SELECT: ATTACHED + BOUNDED
   JS calculates the room between the trigger and the fixed action row.
   ======================================================================== */
.map-search-redesign .home-filter-panel .home-multi-select {
    position: relative !important;
    overflow: visible !important;
}

.map-search-redesign .home-filter-panel .home-multi-select__trigger[aria-expanded="true"] {
    position: relative !important;
    z-index: 2 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.map-search-redesign .home-filter-panel .home-multi-select__menu {
    top: calc(100% - 1px) !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    z-index: 200 !important;
    max-height: var(--home-multi-menu-max-height, 220px) !important;
    margin: 0 !important;
    border-top-width: 1px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
}

.map-search-redesign .home-filter-panel .home-multi-select[data-home-multi-direction="up"] .home-multi-select__menu {
    top: auto !important;
    bottom: calc(100% - 1px) !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.map-search-redesign .home-filter-panel .home-multi-select[data-home-multi-direction="up"] .home-multi-select__trigger[aria-expanded="true"] {
    border-top-right-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-right-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}

.map-search-redesign .home-filter-panel .home-filter-actions {
    position: relative !important;
    z-index: 250 !important;
}

/* ========================================================================
   2026-06-24 · MULTI-SELECT POPOVER: NO CONTROL / ACTION-BAR COLLISION
   The checkbox layer is positioned from the real trigger rectangle by JS.
   It remains visually connected to the select, floats above range controls,
   and its height is capped before the reset/apply action row.
   ======================================================================== */
.map-search-redesign .home-filter-panel .home-filter-group--property.is-home-multi-open,
.map-search-redesign .home-filter-panel .home-filter-group--trade.is-home-multi-open {
    position: relative !important;
    isolation: isolate !important;
    z-index: 20000 !important;
}

.map-search-redesign .home-filter-panel .home-multi-select.is-open .home-multi-select__menu {
    position: fixed !important;
    top: var(--home-multi-menu-top, auto) !important;
    right: auto !important;
    bottom: auto !important;
    left: var(--home-multi-menu-left, 0px) !important;
    z-index: 20001 !important;
    width: var(--home-multi-menu-width, auto) !important;
    max-height: var(--home-multi-menu-max-height, 220px) !important;
    min-height: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    border: 1px solid #c5d3ec !important;
    border-radius: 0 0 12px 12px !important;
    background: #fff !important;
    box-shadow: 0 14px 28px rgba(23, 52, 96, .20) !important;
}

.map-search-redesign .home-filter-panel .home-multi-select.is-open[data-home-multi-direction="up"] .home-multi-select__menu {
    top: auto !important;
    bottom: var(--home-multi-menu-bottom, auto) !important;
    border-radius: 12px 12px 0 0 !important;
}

.map-search-redesign .home-filter-panel .home-multi-select.is-open .home-multi-select__trigger {
    position: relative !important;
    z-index: 20002 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.map-search-redesign .home-filter-panel .home-multi-select.is-open[data-home-multi-direction="up"] .home-multi-select__trigger {
    border-top-right-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-right-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}

/* The menu is clipped by its own max-height, not by later sliders or actions. */
.map-search-redesign .home-filter-panel .home-filter-actions {
    z-index: 100 !important;
}

/* ========================================================================
   2026-06-25 · HOME MAP HEADER TOOLS
   The home search input and filter trigger belong to the map header, not a
   separate page strip. The original controls are moved into this mount by
   index.php, so their existing search/filter behaviour stays untouched.
   ======================================================================== */
body.map-search-redesign .hn-navbar.hn-navbar--map-tools {
    height: 144px !important;
    min-height: 144px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow: visible !important;
    z-index: 6100 !important;
}

body.map-search-redesign .hn-navbar.hn-navbar--map-tools .hn-nav-inner {
    flex: 0 0 80px !important;
    width: 100% !important;
    height: 80px !important;
    min-height: 80px !important;
}

body.map-search-redesign .hn-navbar.hn-navbar--map-tools .hn-map-header-tools {
    flex: 0 0 64px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 28px !important;
    border-top: 1px solid #edf1f8 !important;
    border-bottom: 1px solid var(--map-outline) !important;
    background: var(--map-surface-lowest) !important;
    box-sizing: border-box !important;
}

body.map-search-redesign .hn-navbar.hn-navbar--map-tools .home-top-searchbar {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    display: flex !important;
    align-items: center !important;
    width: min(100%, 760px) !important;
    min-height: 0 !important;
    height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

body.map-search-redesign .hn-navbar.hn-navbar--map-tools .home-top-searchbar__keyword {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
}

/* The map now follows one 144px header instead of an 80px header plus an
   unrelated sticky toolbar. */
body.map-search-redesign .hn-navbar.hn-navbar--map-tools+.hn-mobile-drawer+.home-top-searchbar,
body.map-search-redesign .hn-navbar.hn-navbar--map-tools~.home-top-searchbar {
    display: none !important;
}

/* ==========================================================================
   2026-06-25 · DESKTOP SINGLE-ROW MAP HEADER
   - Keep search input, search button and filter trigger on the header line.
   - Remove the separate desktop search strip completely.
   - Mobile remains a two-row header through home-map-mobile.css.
   ========================================================================== */
@media (min-width: 761px) {
    body.map-search-redesign .hn-navbar.hn-navbar--map-tools {
        height: 80px !important;
        min-height: 80px !important;
        display: block !important;
        overflow: visible !important;
    }

    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .hn-nav-inner {
        width: 100% !important;
        height: 80px !important;
        min-height: 80px !important;
        padding: 0 18px !important;
        justify-content: flex-start !important;
        gap: 20px !important;
    }

    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .hn-nav-links {
        margin-left: auto !important;
    }

    /* This mount only exists for the mobile second row. */
    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .hn-map-header-tools {
        display: none !important;
    }

    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .home-top-searchbar {
        position: static !important;
        z-index: auto !important;
        display: flex !important;
        align-items: center !important;
        flex: 1 1 620px !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        width: auto !important;
        max-width: 760px !important;
        min-width: 0 !important;
        height: 50px !important;
        min-height: 50px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .home-top-searchbar__keyword {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 50px !important;
        border: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }

    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .home-top-searchbar__keyword>i {
        position: absolute !important;
        z-index: 1 !important;
        left: 16px !important;
        color: #475467 !important;
        pointer-events: none !important;
    }

    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .home-top-searchbar__keyword input {
        width: 100% !important;
        min-width: 0 !important;
        height: 50px !important;
        padding: 0 16px 0 44px !important;
        border: 1px solid #b8c7e7 !important;
        border-radius: 14px !important;
        background: #f6f8ff !important;
        color: #23344f !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        box-shadow: none !important;
    }

    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .home-top-searchbar__keyword input:focus {
        outline: 0 !important;
        border-color: #0d47a1 !important;
        box-shadow: 0 0 0 3px rgba(13, 71, 161, .12) !important;
    }

    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .home-top-searchbar__submit,
    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .home-top-searchbar__filter {
        flex: 0 0 50px !important;
        width: 50px !important;
        min-width: 50px !important;
        height: 50px !important;
        min-height: 50px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #173f83 !important;
        color: #fff !important;
        box-shadow: none !important;
    }

    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .home-top-searchbar__submit:hover,
    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .home-top-searchbar__submit:focus-visible,
    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .home-top-searchbar__filter:hover,
    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .home-top-searchbar__filter:focus-visible,
    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .home-top-searchbar__filter.is-active {
        background: #0d47a1 !important;
    }

    /* Both action controls are icon-only and visually identical. */
    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .home-top-searchbar__filter {
        gap: 0 !important;
    }

    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .home-top-searchbar__filter span {
        display: none !important;
    }

    /* The workspace now begins directly below the 80px header. */
    body.map-search-redesign .map-page {
        height: calc(100dvh - 80px) !important;
        min-height: 560px !important;
    }
}

@media (min-width: 761px) and (max-width: 1080px) {
    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .hn-nav-inner {
        gap: 12px !important;
    }

    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .home-top-searchbar {
        flex-basis: 440px !important;
    }

    body.map-search-redesign .hn-navbar.hn-navbar--map-tools .hn-nav-btn {
        padding: 0 12px !important;
    }
}



/* --------------------------------------------------------------------------
   2026-06-25 · VIEW LIST CTA
   Keep the original title-row position, but present it as a proper compact
   button rather than an active-listing count chip. The label comes from the
   page locale JSON (viewList).
   -------------------------------------------------------------------------- */
.map-search-redesign .panel-count.panel-view-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid var(--map-primary);
    border-radius: var(--map-radius-full);
    background: var(--map-primary);
    color: #fff;
    box-shadow: 0 5px 12px rgba(15, 77, 171, .16);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.map-search-redesign .panel-count.panel-view-list>i {
    color: currentColor;
    font-size: 12px;
}

.map-search-redesign .panel-count.panel-view-list .panel-count-label {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}