/* topFilterBar sizing/alignment comes from responsive.css (production sync) */
/* Match certified-listing searchbar sizing/spacing behavior on result-filter */
.checkProperty .checkPropertyBox .topFilterBar {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: visible;
    position: relative;
    z-index: 5000;
}
.checkProperty .checkPropertyBox .topFilterBar .searchBar {
    width: 100% !important;
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 45px;
    padding-right: 40px;
}
.checkProperty .checkPropertyBox .topFilterBar .searchBar .search-icon-left {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}
.checkProperty .checkPropertyBox .topFilterBar .searchBar .selected-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    min-width: 0;
    padding: 5px 0;
    min-height: 34px;
    cursor: text;
}
.checkProperty .checkPropertyBox .topFilterBar .searchBar .selected-tags .searchBoxInput {
    flex: 1 1 0;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    padding: 5px 10px 5px 5px;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.checkProperty .checkPropertyBox .topFilterBar .searchBar a.iconClick {
    right: 10px;
}
.checkProperty .checkPropertyBox .topFilterBar .filterBox {
    flex: 0 0 auto;
    width: auto !important;
    min-width: fit-content;
}
.checkProperty .checkPropertyBox .topFilterBar #useMyLocationBtn {
    flex: 0 0 auto;
}
.checkProperty .checkPropertyBox .topFilterBar #search_btn_desktop {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}
#distanceSelectorDropdown {
    display: none;
}
#clearLocationBtn {
    display: none;
}
.rf-user-location-pin {
    width: 20px;
    height: 20px;
    background-color: #4285f4;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
@media (max-width: 991px) {
    .checkProperty .checkPropertyBox .topFilterBar {
        gap: 10px;
        flex-wrap: nowrap;
    }
    .checkProperty .checkPropertyBox .topFilterBar .searchBar {
        width: auto !important;
        flex: 1 1 auto;
    }
    .checkProperty .checkPropertyBox .topFilterBar .filterBox {
        width: auto !important;
        flex: 0 0 auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 8px !important;
    }
    .checkProperty .checkPropertyBox .topFilterBar #useMyLocationBtn .location-text {
        display: none !important;
    }
}
@media (max-width: 767px) {
    .checkProperty .checkPropertyBox .topFilterBar .searchBar {
        padding-left: 40px;
        padding-right: 35px;
    }
    .checkProperty .checkPropertyBox .topFilterBar .filterBox {
        gap: 6px !important;
    }
    .checkProperty .checkPropertyBox .topFilterBar #useMyLocationBtn {
        min-height: 38px;
        padding: 8px;
    }
    .checkProperty .checkPropertyBox .topFilterBar #search_btn_desktop {
        min-width: 38px;
        min-height: 38px;
        padding: 0 8px;
    }
    .checkProperty .checkPropertyBox .topFilterBar .searchBar .search-icon-left {
        left: 12px;
        font-size: 16px;
    }
    .checkProperty .checkPropertyBox .topFilterBar .searchBar a.iconClick {
        right: 8px;
        width: 28px;
        height: 28px;
    }
    .checkProperty .checkPropertyBox .topFilterBar .searchBar a.iconClick i {
        font-size: 14px;
    }
}
/* Responsive: center Near Me distance popup under controls */
@media (max-width: 991px) {
    .checkProperty #distanceSelectorDropdown.distance-selector-dropdown {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        transform-origin: top center !important;
        width: min(360px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 16px) !important;
        min-width: 0 !important;
    }
}

/* Sort by (right header) */
.toptabSec .sort-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.toptabSec .tab-content .featured-header {
    font-size: 20px !important;
    margin-bottom: 10px;
}
.toptabSec .sort-wrapper .sort-label-text {
    font-size: 14px;
    color: #555;
    margin: 0;
}
.toptabSec .sort-wrapper .sort-select {
    font-size: 14px;
    line-height: 1.2;
    min-width: 150px;
    width: auto;
    min-height: 38px;
    height: 38px;
    padding: 6px 28px 6px 12px;
    border: 1px solid #005395;
    border-radius: 6px;
    color: #005395;
    background-color: #fff;
    background-clip: padding-box;
    box-sizing: border-box;
}
.toptabSec #sortSelect {
    width: auto !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 6px 28px 6px 12px !important;
    border-color: #005395 !important;
    color: #005395 !important;
}

.por-only-filter {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 83, 149, 0.22);
    border-radius: 10px;
    background: #f7fbff;
}
.por-only-filter .por-only-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    user-select: none;
}
.por-only-filter .checkbox__input {
    width: 16px;
    height: 16px;
    accent-color: #005395;
    flex: 0 0 auto;
}
.por-only-filter .checkbox__label {
    font-size: 14px;
    line-height: 1.2;
    color: #0f172a;
    margin: 0;
}
.por-only-filter:hover {
    border-color: rgba(0, 83, 149, 0.35);
    background: #eef7ff;
}

.construction-status-box {
    margin-top: 6px;
}
.construction-status-box > p {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}
.construction-status-box .construction-status-select {
    width: 100%;
    font-size: 14px;
    line-height: 1.2;
    min-height: 38px;
    height: auto;
    padding: 8px 32px 8px 12px;
    border: 1px solid rgba(0, 83, 149, 0.35);
    border-radius: 8px;
    color: #005395;
    background-color: #fff;
    box-sizing: border-box;
}
.construction-status-box .construction-status-select:focus {
    border-color: #005395;
    box-shadow: 0 0 0 2px rgba(0, 83, 149, 0.15);
    outline: 0;
}
.rightListSec .propertyCard .mt-2,
.rightListSec .propertyCard label.compareBoxOpen,
.rightListSec .propertyCard label.checkbox.compareBoxOpen.mb-0 {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
.location-btn {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 8px 12px;
    color: var(--blue-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 1px solid var(--blue-color);
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    font-family: 'Inter-Medium', sans-serif;
    min-height: 45px;
    justify-content: center;
    white-space: nowrap;
}
.location-btn:hover { background-color: var(--blue-color); color: #fff; }
.checkProperty .checkPropertyBox .topFilterBar .filterBox a.location-btn,
.checkProperty .checkPropertyBox .topFilterBar .filterBox a.location-btn:hover,
.checkProperty .checkPropertyBox .topFilterBar .filterBox a.location-btn:focus,
.checkProperty .checkPropertyBox .topFilterBar .filterBox a.location-btn:active {
    background: transparent !important;
    color: var(--blue-color) !important;
    border-color: var(--blue-color) !important;
    box-shadow: none !important;
}
.location-btn.active { background-color: var(--blue-color); color: #fff; border-color: var(--blue-color); }
.location-btn.active:hover { background-color: #0071cb; border-color: #0071cb; }
.location-btn.loading { opacity: 0.7; cursor: not-allowed; }
.location-btn i { font-size: 18px; }
.property-count { font-weight: 500; margin-left: 4px; font-size: 0.9em; }

.propertyCard.propertyCardModal {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
}
.propertyCard.propertyCardModal * { pointer-events: none; }
.propertyCard.propertyCardModal .heartIconFill,
.propertyCard.propertyCardModal .show-login-toastr {
    pointer-events: auto !important;
    z-index: 10;
    position: relative;
}
@media (max-width: 991px) {
    .propertyCard.propertyCardModal { z-index: 2; }
    .right_propertyBox .row .propertyCard { position: relative; z-index: 1; }
}

.proertyMapBox { position: relative; z-index: 1; }
.proertyMapBox #map { position: relative; z-index: 1; }
.checkProperty .main_property .left_propertyBox .proertyMapBox { position: relative; z-index: 1; }

#toggleMapBtn.map-toggle-btn {
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    min-height: 38px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: 1px solid #005395 !important;
    color: #005395 !important;
    background: #fff !important;
    border-radius: 6px !important;
    transition: none !important;
    box-sizing: border-box !important;
}
@media (min-width: 992px) { #toggleMapBtn.map-toggle-btn { display: inline-flex !important; } }
#toggleMapBtn.map-toggle-btn:hover,
#toggleMapBtn.map-toggle-btn:focus,
#toggleMapBtn.map-toggle-btn:active {
    background: #fff !important;
    color: #005395 !important;
    border-color: #005395 !important;
    transform: none !important;
    box-shadow: none !important;
}
#toggleMapBtn.map-toggle-btn.map-hidden {
    background: #f0f7ff !important;
    border-color: #005395 !important;
}
.map-toggle-btn i { font-size: 16px; }

.checkProperty .toptabSec .tabflex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px;
    flex-wrap: nowrap;
}
.checkProperty .toptabSec .tab-scroll-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}
.checkProperty .toptabSec .tab-scroll-area {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    min-width: 0;
    flex: 1 1 auto;
}
.checkProperty .toptabSec .tab-scroll-area::-webkit-scrollbar { display: none; }
.checkProperty .toptabSec .tab-scroll-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #cfe0f1;
    border-radius: 10px;
    background: #fff;
    color: #005395;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.checkProperty .toptabSec .tab-scroll-btn:hover { background: #f4f9ff; border-color: #b7d1ea; }
.checkProperty .toptabSec .tab-scroll-btn.disabled { opacity: 0.45; pointer-events: none; }
.checkProperty .toptabSec .tab-scroll-btn-left { display: none; }
.checkProperty .toptabSec .nav-pills {
    display: flex !important;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
    align-items: center;
    list-style: none;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.checkProperty .toptabSec .tabflex > .d-flex {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.checkProperty .rightListSec .toptabSec .nav-pills .nav-link {
    padding: 10px 20px !important;
    border-radius: 0 !important;
    font-weight: 500 !important;
    transition: color 0.2s ease, border-color 0.2s ease !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    background: transparent !important;
    margin-bottom: -2px;
}
.checkProperty .rightListSec .toptabSec .nav-pills .nav-link:hover {
    background: transparent !important;
    color: var(--blue-color) !important;
    border-bottom-color: rgba(0, 83, 149, 0.35) !important;
}
.checkProperty .rightListSec .toptabSec .nav-pills .nav-link.active {
    background: transparent !important;
    color: var(--blue-color) !important;
    border-bottom-color: var(--blue-color) !important;
}
.checkProperty .rightListSec .toptabSec .nav-pills .nav-link.active i {
    color: var(--blue-color) !important;
}
#pills-home-tab,
#pills-profile-tab {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    pointer-events: auto !important;
}
.checkProperty .rightListSec .toptabSec .nav-pills .nav-link i,
.checkProperty .rightListSec .toptabSec .nav-pills .nav-link span {
    pointer-events: auto;
}
.checkProperty .toptabSec .nav-pills .nav-link .property-count {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
    margin-left: 4px;
}
.checkProperty .toptabSec .nav-pills .nav-link.active .property-count {
    color: rgba(255, 255, 255, 0.9);
}
.checkProperty .main_property,
.checkProperty #mapContainer,
.checkProperty #project-list { transition: all 0.3s ease; }
.checkProperty .rightListSec .tab-content .row {
    row-gap: 20px;
    column-gap: 0;
}
@media (min-width: 1200px) {
    .checkProperty .main_property:not(.map-view-toggle) .rightListSec .tab-content .row > [class*="col-md-6"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .checkProperty .main_property.map-view-toggle .rightListSec .tab-content .row > [class*="col-md-6"],
    .checkProperty .main_property.map-view-toggle .rightListSec .tab-content .row > [class*="col-md-3"] {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}
.checkProperty .main_property.map-view-toggle .rightListSec .tab-content .row .col-md-6,
.checkProperty .main_property.map-view-toggle .rightListSec .tab-content .row .col-md-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
}
@media (max-width: 1199px) {
    .checkProperty .main_property.map-view-toggle .rightListSec .tab-content .row .col-md-6,
    .checkProperty .main_property.map-view-toggle .rightListSec .tab-content .row .col-md-3 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
}
@media (max-width: 991px) {
    .checkProperty .main_property.map-view-toggle .rightListSec .tab-content .row .col-md-6,
    .checkProperty .main_property.map-view-toggle .rightListSec .tab-content .row .col-md-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}
@media (max-width: 767px) {
    .checkProperty .main_property.map-view-toggle .rightListSec .tab-content .row .col-md-6,
    .checkProperty .main_property.map-view-toggle .rightListSec .tab-content .row .col-md-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}
.checkProperty .porpertyFilter {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
@media (max-width: 1199px) {
    .checkProperty .toptabSec .tabflex {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    .checkProperty .toptabSec .nav-pills { width: auto; justify-content: flex-start; }
    .checkProperty .toptabSec .tabflex > .d-flex { justify-content: flex-end; width: auto; }
    .map-toggle-btn { width: auto; }
}
@media (max-width: 767px) {
    .checkProperty .toptabSec .tab-scroll-btn {
        min-width: 30px;
        height: 30px;
        border-radius: 8px;
    }
}
@media (max-width: 479px) {
    .rightListSec .propertyCard .mt-2 {
        justify-content: flex-start !important;
    }
}

/* Reuse listing-style loader for result-filter page */
.listing-global-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.listing-loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
}

.listing-loader-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.listing-loader-content p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

@media (max-width: 767px) {
    .listing-loader-content {
        width: calc(100% - 40px);
        padding: 16px 18px;
    }
}

/* Inline-style cleanup helpers */
.rf-hidden { display: none !important; }
.rf-ml-5 { margin-left: 5px; }
.rf-flex-1 { flex: 1; }
.rf-sort-label-blue { color: #005395; }
.rf-sort-select-inline {
    width: auto !important;
    border-color: #005395 !important;
    color: #005395 !important;
}
.rf-map-toggle-inline {
    border-color: #005395 !important;
    color: #005395 !important;
}
.rf-featured-header {
    font-size: 20px;
    margin-bottom: 10px;
}
.rf-whats-new-help { line-height: 1.5; }
