/* Property /all page chrome — compact Zillow-style type (Open Sans) */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

.properties-filter-page {
    --pg-ink: #0f172a;
    --pg-muted: #64748b;
    --pg-line: #e2e8f0;
    --pg-bg: #f8fafc;
    --pg-accent: #16a34a;
    --pg-accent-ink: #15803d;
    --pg-radius: 10px;
    --pg-font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--pg-bg) !important;
    font-family: var(--pg-font) !important;
}
.properties-filter-page .progress-wrap,
.pg-page .map-btn-fixed,
.pg-page .box-title-listing { display: none !important; }

.pg-page {
    font-family: var(--pg-font) !important;
    color: var(--pg-ink);
    font-size: 12px;
}

/* Hero */
.pg-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    background: #0f172a;
}
.pg-hero__photo {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=2000&q=80') center 40% / cover no-repeat;
    transform: scale(1.03);
}
.pg-hero__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,.40) 0%, rgba(15,23,42,.82) 100%);
}
.pg-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 1.75rem;
}
.pg-hero__brand {
    margin: 0;
    font-family: var(--pg-font);
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1;
}
.pg-hero__brand em {
    font-style: normal;
    color: #4ade80;
}
.pg-hero__title {
    margin: 0.55rem 0 0;
    max-width: 34ch;
    font-size: clamp(0.92rem, 1.6vw, 1.05rem) !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,.9) !important;
    line-height: 1.4 !important;
}

/* Search — 12px radius (not pill) */
.pg-search {
    margin-top: 1.1rem;
    display: flex;
    align-items: stretch;
    max-width: 580px;
    background: #fff;
    border-radius: var(--pg-radius);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,.24);
    border: 1px solid rgba(255,255,255,.2);
}
.pg-search__types {
    display: flex;
    flex-shrink: 0;
    background: #f1f5f9;
}
.pg-search__types label {
    margin: 0;
    cursor: pointer;
    display: flex;
}
.pg-search__types input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.pg-search__types span {
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #64748b;
    white-space: nowrap;
    min-height: 44px;
}
.pg-search__types label + label span { border-left: 1px solid #e2e8f0; }
.pg-search__types input:checked + span {
    background: #fff;
    color: var(--pg-accent-ink);
}
.pg-search__field {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1;
    min-width: 0;
    padding: 0 1rem;
}
.pg-search__field svg {
    color: var(--pg-accent);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}
.pg-search__field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0.75rem 0;
    font-family: var(--pg-font) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: var(--pg-ink) !important;
}
.pg-search__field input::placeholder {
    color: #94a3b8 !important;
    font-size: 0.88rem !important;
}
.pg-search__btn {
    border: 0;
    cursor: pointer;
    margin: 6px;
    padding: 0 1rem;
    border-radius: 8px;
    background: var(--pg-accent);
    color: #fff;
    font-family: var(--pg-font) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
}
.pg-search__btn:hover { background: var(--pg-accent-ink); }

@media (max-width: 720px) {
    .pg-hero { min-height: 280px; }
    .pg-hero__inner { padding: 2rem 1rem 1.35rem; }
    .pg-search { flex-direction: column; border-radius: var(--pg-radius); max-width: 100%; }
    .pg-search__types { width: 100%; }
    .pg-search__types label { flex: 1; }
    .pg-search__types span {
        flex: 1;
        justify-content: center;
        min-height: 40px;
        font-size: 0.8rem !important;
    }
    .pg-search__btn {
        margin: 0 8px 8px;
        padding: 0.7rem 0.9rem;
        border-radius: 8px;
    }
}

/* Sticky bar */
/* Sticky toolbar — equal-height controls, perfect vertical alignment */
.pg-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pg-line);
}
.pg-bar__inner {
    --pg-bar-h: 38px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: calc(var(--pg-bar-h) + 1.3rem);
}
.pg-bar__left,
.pg-bar__right,
.pg-bar__sort {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    min-height: var(--pg-bar-h);
}
.pg-bar__count {
    display: inline-flex !important;
    align-items: center !important;
    height: var(--pg-bar-h);
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: var(--pg-ink) !important;
    white-space: nowrap;
}
.pg-bar__count strong {
    font-size: inherit !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}
.pg-bar__count span {
    color: var(--pg-muted);
    font-weight: 500;
    line-height: 1 !important;
}

.pg-chip {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: var(--pg-bar-h);
    min-height: var(--pg-bar-h);
    margin: 0;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: var(--pg-ink);
    border-radius: 10px;
    padding: 0 0.9rem;
    font-family: var(--pg-font) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer;
}
.pg-chip:hover {
    border-color: #94a3b8;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
.pg-chip svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: block;
}

.pg-bar__sort label {
    display: inline-flex;
    align-items: center;
    height: var(--pg-bar-h);
    margin: 0 !important;
    padding: 0;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: var(--pg-muted);
    line-height: 1 !important;
    white-space: nowrap;
}
.pg-bar__sort select {
    box-sizing: border-box;
    height: var(--pg-bar-h);
    min-height: var(--pg-bar-h);
    margin: 0;
    border: 1px solid #cbd5e1;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    border-radius: 10px;
    padding: 0 1.85rem 0 0.85rem;
    font-family: var(--pg-font) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: var(--pg-ink) !important;
    line-height: var(--pg-bar-h) !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    min-width: 128px;
}
.pg-bar__sort select:focus {
    outline: none;
    border-color: #94a3b8;
}

@media (max-width: 575px) {
    .pg-bar__inner {
        flex-wrap: wrap;
        gap: 0.65rem;
    }
    .pg-bar__left,
    .pg-bar__right {
        width: 100%;
        justify-content: space-between;
    }
}

/* Workspace */
.pg-workspace {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.15rem 1.25rem 3rem !important;
}

/* Filter drawer */
.pg-filters-host {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
    visibility: hidden;
}
.pg-filters-host.is-open,
.pg-filters-host:has(.search-box-offcanvas.active) {
    pointer-events: auto;
    visibility: visible;
}
.pg-filters-host .search-box-offcanvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
    visibility: visible !important;
    z-index: 1 !important;
}
.pg-filters-host .search-box-offcanvas-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.45) !important;
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 1 !important;
}
.pg-filters-host.is-open .search-box-offcanvas-backdrop,
.pg-filters-host:has(.search-box-offcanvas.active) .search-box-offcanvas-backdrop { opacity: 1; }
.pg-filters-host .search-box-offcanvas-content {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(360px, 92vw) !important;
    max-width: 360px !important;
    height: 100% !important;
    background: #fff !important;
    box-shadow: -12px 0 40px rgba(0,0,0,.18);
    transform: translateX(104%) !important;
    transition: transform .3s cubic-bezier(.22,1,.36,1) !important;
    overflow: auto !important;
    padding: 1.1rem !important;
    z-index: 2 !important;
    font-family: var(--pg-font) !important;
    font-size: 12px !important;
}
.pg-filters-host.is-open .search-box-offcanvas-content,
.pg-filters-host .search-box-offcanvas.active .search-box-offcanvas-content {
    transform: translateX(0) !important;
}
.pg-filters-host .filter-wrap-01-shared .noUi-connect {
    background: linear-gradient(90deg, var(--pg-accent), var(--pg-accent-ink)) !important;
}
.pg-filters-host .filter-wrap-01-shared .noUi-handle { border-color: var(--pg-accent) !important; }
.pg-filters-host .filter-reset-btn-01-shared {
    background: var(--pg-accent) !important;
    border-color: var(--pg-accent) !important;
}
.pg-filters-host .filter-section-01-shared:has(#sort_by) { display: none !important; }

.pg-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--pg-line);
}
.pg-drawer-head strong {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
}
.pg-drawer-close {
    border: 0;
    background: #f1f5f9;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.pg-empty {
    text-align: center;
    padding: 4rem 1.5rem;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
}
.pg-empty strong {
    display: block;
    font-size: 1.45rem !important;
    margin-bottom: .4rem;
}
.pg-empty span {
    color: var(--pg-muted);
    font-size: 1.05rem !important;
}

/* ═══════════════════════════════════════════════════════════
   Zillow-style split list + map (/property/all half-map)
   ═══════════════════════════════════════════════════════════ */
.properties-filter-page:has(.pg-zillow-split) {
    background: #fff !important;
    overflow-x: hidden;
}
.properties-filter-page:has(.pg-zillow-split) .main-content,
.properties-filter-page:has(.pg-zillow-split) #main,
.properties-filter-page:has(.pg-zillow-split) .page-content {
    padding-bottom: 0 !important;
}
.properties-filter-page:has(.pg-zillow-split) footer,
.properties-filter-page:has(.pg-zillow-split) .footer {
    display: none !important;
}

.pg-zillow-split {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 72px);
    background: #fff;
}

/* Sticky top search bar */
.pg-zbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid var(--pg-line);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.pg-zbar__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 16px;
    max-width: 100%;
}
.pg-zbar__search {
    display: flex;
    align-items: stretch;
    flex: 1 1 420px;
    min-width: 260px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.pg-zillow-split .pg-search__types {
    display: flex;
    flex-shrink: 0;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}
.pg-zillow-split .pg-search__types label {
    margin: 0;
    cursor: pointer;
    display: flex;
}
.pg-zillow-split .pg-search__types input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.pg-zillow-split .pg-search__types span {
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 42px;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #64748b;
    white-space: nowrap;
}
.pg-zillow-split .pg-search__types input:checked + span {
    background: #ecfdf5;
    color: #15803d;
}
.pg-zbar__field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    min-width: 0;
}
.pg-zbar__field svg {
    flex-shrink: 0;
    color: #94a3b8;
}
.pg-zbar__field input {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    width: 100%;
    height: 42px;
    font-family: var(--pg-font) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: var(--pg-ink) !important;
    background: transparent !important;
}
.pg-zbar__go {
    flex-shrink: 0;
    border: 0;
    background: var(--pg-accent);
    color: #fff;
    font-family: var(--pg-font) !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    padding: 0 16px;
    height: 42px;
    cursor: pointer;
}
.pg-zbar__go:hover { background: var(--pg-accent-ink); }

.pg-zbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pg-zillow-split .pg-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: var(--pg-ink);
    font-family: var(--pg-font) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    cursor: pointer;
}
.pg-zillow-split .pg-chip svg {
    width: 14px;
    height: 14px;
}
.pg-zillow-split .pg-chip:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}
.pg-zillow-split .pg-chip--map {
    display: none;
}
.pg-zillow-split .pg-bar__sort {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pg-zillow-split .pg-bar__sort label {
    margin: 0;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: var(--pg-muted);
}
.pg-zillow-split .pg-bar__sort select {
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 10px;
    font-family: var(--pg-font) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    background: #fff;
    color: var(--pg-ink);
}

/* Split panes */
.pg-zillow-split .wrapper-layout.layout-2.pg-split,
.properties-filter-page .pg-zillow-split .wrapper-layout.layout-2 {
    display: flex !important;
    position: relative !important;
    width: 100% !important;
    height: calc(100vh - 72px - 62px) !important;
    min-height: 480px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
}
.pg-zillow-split .wrap-left.pg-split__list,
.properties-filter-page .pg-zillow-split .wrapper-layout.layout-2 .wrap-left {
    width: 48% !important;
    max-width: 48% !important;
    height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 12px 14px 28px !important;
    position: relative !important;
    background: #fff !important;
}
.pg-zillow-split .wrap-left.pg-split__list::-webkit-scrollbar { width: 8px; }
.pg-zillow-split .wrap-left.pg-split__list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}
.pg-zillow-split .wrap-right.pg-split__map,
.properties-filter-page .pg-zillow-split .wrapper-layout.layout-2 .wrap-right {
    width: 52% !important;
    max-width: 52% !important;
    height: 100% !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    border-left: 1px solid var(--pg-line);
    background: #e2e8f0;
}
.pg-zillow-split .wrap-right #map,
.pg-zillow-split .pg-split__map #map {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.pg-split__list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 2px 2px 8px;
    border-bottom: 1px solid #f1f5f9;
}
.pg-zillow-split .pg-bar__count {
    font-size: 0.8125rem !important;
    color: var(--pg-ink);
}
.pg-zillow-split .pg-bar__count strong {
    font-weight: 700 !important;
    font-size: 0.875rem !important;
}
.pg-zillow-split .pg-bar__count span {
    color: var(--pg-muted);
    font-weight: 500;
}

/* Hide noisy Homzen listing-top chrome; keep selects for AJAX sync */
.pg-split__legacy-top .box-title-listing {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}
.pg-split__legacy-top .mobile-location-filter-row,
.pg-split__legacy-top .nav-tab-filter,
.pg-split__legacy-top .btn-filter-mobile,
.pg-split__legacy-top .reset-filter-btn,
.pg-split__legacy-top [data-bb-toggle="pagination-info"] {
    display: none !important;
}
.pg-split__legacy-top .box-filter-tab {
    justify-content: flex-end !important;
    gap: 6px !important;
    margin: 0 !important;
}
.pg-split__legacy-top .list-page,
.pg-split__legacy-top .list-sort,
.pg-split__legacy-top .nice-select {
    height: 32px !important;
    min-height: 32px !important;
    font-size: 0.75rem !important;
    border-radius: 8px !important;
}

/* Dense 2-col gallery inside left pane */
.pg-zillow-split .pg-gallery .property-cards-row {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 14px;
}
.pg-zillow-split .pg-gallery .row > [class*="col"] {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Filters drawer (reuse existing host styles) */
.pg-zillow-split .pg-filters-host { z-index: 80; }

@media (max-width: 991px) {
    .pg-zillow-split .pg-chip--map {
        display: inline-flex !important;
    }
    .pg-zillow-split .wrapper-layout.layout-2.pg-split,
    .properties-filter-page .pg-zillow-split .wrapper-layout.layout-2 {
        height: calc(100vh - 72px - 110px) !important;
        flex-direction: column !important;
    }
    .pg-zillow-split .wrap-left.pg-split__list,
    .properties-filter-page .pg-zillow-split .wrapper-layout.layout-2 .wrap-left {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        padding: 10px 12px 24px !important;
    }
    .pg-zillow-split .wrap-right.pg-split__map,
    .properties-filter-page .pg-zillow-split .wrapper-layout.layout-2 .wrap-right {
        display: none !important;
        width: 100% !important;
        max-width: 100% !important;
        position: fixed !important;
        inset: 72px 0 0 0 !important;
        height: auto !important;
        z-index: 35;
        border-left: 0;
    }
    html.pg-map-open .pg-zillow-split .wrap-right.pg-split__map {
        display: block !important;
    }
    html.pg-map-open .pg-zillow-split .wrap-left.pg-split__list {
        visibility: hidden;
    }
    .pg-zillow-split .pg-gallery .row > [class*="col"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .pg-zillow-split .wrap-left.pg-split__list,
    .properties-filter-page .pg-zillow-split .wrapper-layout.layout-2 .wrap-left {
        width: 46% !important;
        max-width: 46% !important;
    }
    .pg-zillow-split .wrap-right.pg-split__map,
    .properties-filter-page .pg-zillow-split .wrapper-layout.layout-2 .wrap-right {
        width: 54% !important;
        max-width: 54% !important;
    }
}

/* Filter drawer — compact Zillow-style typography */
.pg-filters-host .filter-wrap-01-shared {
    font-family: var(--pg-font) !important;
    font-size: 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
}
.pg-filters-host .filter-title-01-shared {
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
}
.pg-filters-host .filter-checkbox-label-01-shared,
.pg-filters-host .filter-search-01-shared,
.pg-filters-host .filter-price-label-01-shared,
.pg-filters-host .filter-reset-btn-01-shared {
    font-size: 0.75rem !important;
}
.pg-filters-host .filter-reset-btn-01-shared {
    font-weight: 600 !important;
    padding: 0.55rem 0.75rem !important;
}
