


.btn-search-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: color 0.2s;
}

.btn-search-icon:hover {
    color: var(--primary-blue);
}


.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 2000;
    padding-top: 100px;
}

.search-modal-content {
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 700px;
    box-shadow: var(--shadow-xl);
}

.search-modal-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 1rem;
}

.search-modal-header input {
    flex: 1;
    border: none;
    font-size: 1.125rem;
    outline: none;
    padding: 0.5rem;
}

.btn-close-search {
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-close-search:hover {
    background: var(--border-color);
}


.properties-page-new {
    padding-top: 80px;
    min-height: 100vh;
    background: #F9FAFB;
    display: flex;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}


.properties-sidebar {
    width: 280px;
    flex-shrink: 0;
    padding: 0;
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.button-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.properties-sidebar .filter-btn,
.button-filters .filter-btn,
.filter-btn {
    padding: 0.5rem 1.25rem !important;
    border: 1px solid #E5E7EB;
    border-radius: 50px;
    background: white;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
    min-width: auto !important;
    width: auto !important;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.filter-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.checkbox-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-dropdown {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    background: white;
    font-size: 0.875rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-dropdown:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-prefix .prefix {
    position: absolute;
    left: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-gray);
    pointer-events: none;
}

.filter-input {
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 2rem;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    background: white;
    font-size: 0.875rem;
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.btn-save-filters {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--primary-blue);
    border-radius: var(--radius-md);
    background: white;
    color: var(--primary-blue);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.btn-save-filters:hover {
    background: var(--primary-blue);
    color: white;
}


.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    background: #F9FAFB;
}

.price-input-wrap .prefix {
    padding: 0 0.25rem 0 0.625rem;
    font-size: 0.875rem;
    color: #9CA3AF;
}

.price-input-wrap .filter-input {
    border: none;
    background: none;
    padding: 0.5rem 0.5rem 0.5rem 0;
    font-size: 0.875rem;
    width: 100%;
}

.price-range-sep {
    color: #9CA3AF;
    font-size: 0.875rem;
    flex-shrink: 0;
}


.properties-main-content {
    flex: 1;
    padding: 2rem 0;
}


.property-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}


.property-card-new {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.property-card-new:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.property-image-link {
    display: block;
    text-decoration: none;
}

.property-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.property-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.property-card-new:hover .property-image-container img {
    transform: scale(1.05);
}

.property-badge-new {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.property-badge-new.for-sale {
    background: #10B981;
    color: white;
}

.property-badge-new.for-rent {
    background: #F59E0B;
    color: white;
}

.property-badge-new.sold {
    background: #EF4444;
    color: white;
}


.watch-list-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.375rem 0.625rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.watch-list-btn:hover:not(:disabled) {
    background: white;
    color: var(--primary-blue);
}


.watch-list-btn.watched {
    background: var(--primary-blue);
    color: white;
}

.watch-list-btn.watched svg {
    color: white;
    fill: white;
}

.watch-list-btn.watched:hover:not(:disabled) {
    background: #1d4ed8;
}

.watch-list-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.watch-list-btn svg {
    flex-shrink: 0;
}

.watch-list-btn-new {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.375rem 0.625rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.watch-list-btn-new:hover {
    background: white;
    color: var(--primary-blue);
}

.watch-list-btn-new.active {
    background: var(--primary-blue);
    color: white;
}

.watch-list-btn-new.active svg {
    fill: white;
}

.watch-list-btn-new svg {
    flex-shrink: 0;
}

.days-ago-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
}


.property-details-new {
    padding: 1rem 1.25rem 1.25rem;
}

.property-address-new {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.property-address-new:hover {
    color: var(--primary-blue);
}

.property-type-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.property-type-row svg {
    color: #9CA3AF;
    flex-shrink: 0;
}

.property-price-new {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0.75rem 0;
}

.property-features-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #F3F4F6;
}

.feature-icon-text {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-gray);
}

.feature-icon-text svg {
    color: #9CA3AF;
    flex-shrink: 0;
}


.loading-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.property-card-skeleton {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-content {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results svg {
    color: #D1D5DB;
    margin-bottom: 1.5rem;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.no-results p {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}


.pagination-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.pagination-new .page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-dark);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pagination-new .page-btn:hover:not(:disabled) {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.pagination-new .page-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.pagination-new .page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


.map-search-btn-floating {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    transition: all 0.3s;
    z-index: 100;
}

.map-search-btn-floating:hover {
    background: #1976D2;
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.5);
    transform: translateY(-2px);
}

.map-search-btn-floating svg {
    flex-shrink: 0;
}


@media (max-width: 1400px) {
    .property-grid-new,
    .loading-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .properties-page-new {
        flex-direction: column;
    }

    .properties-sidebar {
        width: 100%;
        padding: 1rem 0;
    }

    .filter-section {
        margin-bottom: 1.5rem;
    }

    .property-grid-new,
    .loading-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .map-search-btn-floating {
        bottom: 5rem;
    }
}

@media (max-width: 640px) {
    .properties-page-new {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .property-grid-new,
    .loading-grid {
        grid-template-columns: 1fr;
    }

    .watch-list-btn-new {
        font-size: 0;
        padding: 0.625rem;
    }

    .watch-list-btn-new svg {
        margin: 0;
    }

    .map-search-btn-floating {
        bottom: 1rem;
        right: 1rem;
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }

    .watch-list-btn {
        font-size: 0;
        padding: 0.625rem;
    }

    .watch-list-btn svg {
        margin: 0;
    }
}




.filter-drawer-footer,
.filter-drawer-close,
.filter-drawer-handle,
.filter-section-desktop-only,
.mob-filter-bar,
.mob-mini-map {
    display: none;
}


.filter-drawer-body {
    display: block;
    padding: 0.5rem 0 2rem;
}


.filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 0.25rem;
}

.filter-drawer-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0A1929;
}

.filter-drawer-reset {
    display: inline-block;
    background: none;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-drawer-reset:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}


.properties-sidebar .filter-btn {
    padding: 0.35rem 0.6rem !important;
    height: 34px;
    font-size: 0.8rem;
}


.filter-section-search {
    display: block;
}

.filter-search-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    background: white;
}

.filter-search-input svg {
    color: #9CA3AF;
    flex-shrink: 0;
}

.filter-search-input input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.875rem;
    color: var(--text-dark);
    background: transparent;
}

.filter-search-input input::placeholder {
    color: #9CA3AF;
}

.filter-search-clear {
    background: none;
    border: none;
    font-size: 0.75rem;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.2s;
}

.filter-search-clear:hover {
    color: var(--primary-blue);
}


.sqft-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.sqft-chip {
    padding: 0.25rem 0.625rem;
    border: 1px solid #E5E7EB;
    border-radius: 50px;
    background: white;
    font-size: 0.75rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.sqft-chip:hover,
.sqft-chip.active {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: #EFF6FF;
}




.type-checkbox-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.type-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
    transition: color 0.15s;
    padding: 0;
    border: none;
    background: transparent;
}

.type-checkbox-label:hover {
    color: #083169;
}

.type-checkbox-label.checked {
    color: #083169;
    font-weight: 600;
}

.type-checkbox-label::before {
    content: '';
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid #D1D5DB;
    border-radius: 4px;
    background: #fff;
    transition: all 0.15s;
}

.type-checkbox-label.checked::before {
    border-color: #083169;
    background: #083169;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 5l3.5 3.5L11 1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.type-checkbox-label input[type="checkbox"] { display: none; }


.range-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.range-separator {
    display: none;
}

.range-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    background: #F9FAFB;
    transition: border-color 0.2s;
}

.range-input-wrap:focus-within {
    border-color: var(--primary-blue);
}

.range-prefix {
    padding: 0 0.25rem 0 0.75rem;
    font-size: 0.875rem;
    color: #9CA3AF;
    flex-shrink: 0;
}

.range-input {
    flex: 1;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    outline: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #1F2937;
    width: 100%;
    background: #F9FAFB;
    transition: border-color 0.2s;
}

.range-input:focus {
    border-color: var(--primary-blue);
}

.range-input-wrap .range-input {
    border: none;
    border-radius: 0;
    background: none;
    padding-left: 0.25rem;
}


@media (max-width: 768px) {


    .properties-page-new {
        flex-direction: column;
        padding-top: 64px;
        padding-left: 0;
        padding-right: 0;
        gap: 0;
    }


    .properties-sidebar {
        display: none;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 60px;
        width: 100% !important;
        height: 80dvh;
        max-height: calc(100dvh - 120px);
        z-index: 600;
        background: #fff;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
        padding: 0;
        overflow: hidden;
        flex-direction: column;
        animation: mob-slideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1) both;
    }

    .properties-sidebar.is-open { display: flex; }

    @keyframes mob-slideUp {
        from { transform: translateY(110%); }
        to   { transform: translateY(0); }
    }


    .filter-section-mob-only {
        display: block;
    }
    .filter-section-desktop-only {
        display: none;
    }


    .filter-drawer-body {
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow-y: auto;
        padding: 0.75rem 1.25rem 0.5rem;
        scrollbar-width: none;
    }
    .filter-drawer-body::-webkit-scrollbar { display: none; }


    .filter-drawer-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem 1.25rem 0.875rem;
        flex-shrink: 0;
        border-bottom: 1px solid #F3F4F6;
        position: relative;
    }

    .filter-drawer-handle {
        position: absolute;
        left: 50%;
        top: 0.5rem;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: #D1D5DB;
    }

    .filter-drawer-title {
        font-size: 1rem;
        font-weight: 700;
        color: #0A1929;
        flex: 1;
    }

    .filter-drawer-reset {
        display: inline-block;
        background: none;
        border: none;
        font-size: 0.8125rem;
        font-weight: 500;
        color: #083169;
        cursor: pointer;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    .filter-drawer-close {
        background: #F3F4F6;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #374151;
        flex-shrink: 0;
    }


    .filter-section-search { display: block; margin-bottom: 0.25rem; }

    .filter-search-input {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        padding: 0.75rem 1rem;
        border: 1px solid #E5E7EB;
        border-radius: 12px;
        background: #F9FAFB;
    }

    .filter-search-input svg { flex-shrink: 0; color: #9CA3AF; }

    .filter-search-input input {
        border: none;
        background: none;
        outline: none;
        font-size: 0.9rem;
        width: 100%;
        color: #1F2937;
    }


    .type-checkbox-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .type-checkbox-label {
        padding: 0.625rem 0.875rem;
        border: 1.5px solid #E5E7EB;
        border-radius: 10px;
        background: #fff;
        justify-content: flex-start;
    }

    .type-checkbox-label::before {
        display: none;
    }

    .type-checkbox-label.checked {
        border-color: #083169;
        background: #EFF6FF;
    }


    .range-inputs {
        flex-direction: row;
        align-items: center;
    }

    .range-separator {
        display: block;
        color: #9CA3AF;
        font-size: 0.875rem;
        flex-shrink: 0;
    }


    .filter-drawer-footer {
        display: flex;
        gap: 0.75rem;
        padding: 0.875rem 1.25rem;
        flex-shrink: 0;
        border-top: 1px solid #F3F4F6;
        background: #fff;
    }

    .filter-drawer-clear {
        flex: 1;
        padding: 0.8125rem;
        border: 1.5px solid #E5E7EB;
        border-radius: 12px;
        background: #fff;
        font-size: 0.875rem;
        font-weight: 600;
        color: #374151;
        cursor: pointer;
    }

    .filter-drawer-apply {
        flex: 2;
        padding: 0.8125rem;
        border: none;
        border-radius: 12px;
        background: #083169;
        color: #fff;
        font-size: 0.8125rem;
        font-weight: 600;
        cursor: pointer;
    }


    .mob-filter-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 599;
        animation: fadeIn 0.2s ease both;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to   { opacity: 1; }
    }


    .mob-filter-bar {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        overflow-x: auto;
        padding: 0.75rem 1rem;
        background: #fff;
        border-bottom: 1px solid #F3F4F6;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        position: sticky;
        top: 64px;
        z-index: 100;
    }
    .mob-filter-bar::-webkit-scrollbar { display: none; }

    .mob-filter-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.5rem 0.875rem;
        border-radius: 50px;
        font-size: 0.8125rem;
        font-weight: 500;
        white-space: nowrap;
        cursor: pointer;
        border: 1px solid #E5E7EB;
        background: #fff;
        color: #374151;
        transition: all 0.2s;
        flex-shrink: 0;
    }

    .mob-filter-chip-main { background: #F9FAFB; font-weight: 600; color: #1F2937; }
    .mob-filter-chip-main.has-filters { background: #083169; color: #fff; border-color: #083169; }
    .mob-filter-chip-tag { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }
    .mob-filter-chip-tag span { font-size: 1rem; line-height: 1; opacity: 0.7; }


    .mob-mini-map {
        display: block;
        position: relative;
        height: 200px;
        background: #E5E7EB;
        overflow: hidden;
    }

    .mob-mini-map #properties-mini-map { width: 100%; height: 100%; }

    .mob-mini-map-expand {
        position: absolute;
        bottom: 0.75rem;
        right: 0.75rem;
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.5rem 0.875rem;
        border-radius: 50px;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(8px);
        font-size: 0.8125rem;
        font-weight: 600;
        color: #083169;
        text-decoration: none;
        box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    }


    .properties-main-content { padding: 0.75rem 1rem 5rem; width: 100%; }

    .property-grid-new,
    .loading-grid { grid-template-columns: 1fr; gap: 0.875rem; }

    .map-search-btn-floating {
        display: none;
        bottom: 5.5rem;
        right: 1rem;
        left: auto;
        transform: none;
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        z-index: 99;
    }

    .map-search-btn-floating.visible {
        display: flex;
    }

    .properties-count { font-size: 0.875rem; color: #6B7280; margin-bottom: 0.75rem; }
}


.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


.watchlist-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 500;
    z-index: 3000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

.watchlist-toast.toast-success {
    background: #10B981;
    color: white;
}

.watchlist-toast.toast-error {
    background: #EF4444;
    color: white;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}



.map-search-layout {
    padding-top: 72px;
    height: 100vh;
    display: flex;
    background: #F9FAFB;
    overflow: hidden;
}

.map-search-layout .properties-sidebar {
    width: 240px;
    flex-shrink: 0;
    overflow-y: auto;
    border-right: 1px solid #E5E7EB;
    background: white;
    position: static;
    top: auto;
    align-self: auto;
}

.map-search-layout .mob-filter-bar {
    display: none;
}

.map-search-layout .filter-drawer-footer {
    display: none;
}

.map-search-layout .filter-section {
    margin-bottom: 1.25rem;
}

.map-search-layout .filter-title {
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

.map-search-layout .filter-btn {
    padding: 0.35rem 0.75rem !important;
    height: 34px;
    font-size: 0.8125rem;
}

.map-search-layout .filter-dropdown {
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
}

.map-search-layout .filter-drawer-header {
    display: none;
}

.map-search-layout .filter-drawer-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.map-search-layout .btn-save-filters {
    margin: 0 1rem 1rem;
    font-size: 0.875rem;
}


.map-filters-sidebar {
    width: 200px;
    flex-shrink: 0;
    padding: 1.25rem 1rem;
    overflow-y: auto;
    border-right: 1px solid #E5E7EB;
    background: white;
}

.map-filters-sidebar .filter-section {
    margin-bottom: 1.5rem;
}

.map-filters-sidebar .filter-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.625rem;
}

.map-filters-sidebar .button-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.map-filters-sidebar .filter-btn {
    padding: 0.375rem 0.75rem !important;
    height: 34px;
    font-size: 0.8125rem;
    min-width: auto !important;
}

.map-filters-sidebar .checkbox-label {
    font-size: 0.875rem;
}

.map-filters-sidebar .filter-dropdown {
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
}

.map-filters-sidebar .btn-save-filters {
    font-size: 0.875rem;
    padding: 0.625rem;
}

.sold-history-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-input-plain {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    background: white;
    font-size: 0.8125rem;
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.filter-input-plain:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.map-filters-sidebar .filter-input {
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem 0.5rem 1.75rem;
}

.map-filters-sidebar .input-with-prefix .prefix {
    left: 0.75rem;
    font-size: 0.8125rem;
}


.zone-filter-wrapper {
    position: relative;
}

.zone-filter-wrapper input {
    padding-right: 2rem;
}

.zone-clear-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9CA3AF;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.zone-clear-btn:hover {
    color: #EF4444;
    background: #FEE2E2;
}

.zone-active-badge {
    display: inline-block;
    margin-top: 0.375rem;
    padding: 0.125rem 0.5rem;
    background: #E8F0FE;
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
}


.pac-container {
    z-index: 10000 !important;
    font-family: inherit;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 1px solid #E5E7EB;
    margin-top: 4px;
}

.pac-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    cursor: pointer;
}

.pac-item:hover {
    background: #F3F4F6;
}


.map-property-cards {
    width: 320px;
    flex-shrink: 0;
    overflow-y: auto;
    padding: 0.75rem;
    background: #F9FAFB;
}

.map-property-cards::-webkit-scrollbar {
    width: 4px;
}

.map-property-cards::-webkit-scrollbar-track {
    background: transparent;
}

.map-property-cards::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}


.map-property-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.map-property-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.map-property-card.selected {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.map-card-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.map-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.map-card-details {
    padding: 0.75rem 1rem 1rem;
}

.map-card-details h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.375rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.map-card-details .property-type-row {
    margin-bottom: 0.375rem;
    font-size: 0.75rem;
}

.map-card-details .property-price-new {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.map-card-details .property-features-row {
    gap: 0.75rem;
    padding-top: 0.625rem;
}

.map-card-details .feature-icon-text {
    font-size: 0.8125rem;
}


.map-card-skeleton {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.map-card-skeleton .skeleton-image {
    height: 160px;
}

.map-card-skeleton .skeleton-content {
    padding: 0.75rem 1rem;
}

.map-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-gray);
}

.map-no-results svg {
    color: #D1D5DB;
    margin-bottom: 1rem;
}

.map-no-results .btn-secondary {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-blue);
    border-radius: var(--radius-md);
    background: white;
    color: var(--primary-blue);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}


.map-view-container {
    flex: 1;
    position: relative;
    min-width: 0;
}

.map-view-inner {
    width: 100%;
    height: 100%;
    z-index: 1;
}


.map-street-view-panel {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: #1a1a2e;
}


.map-sv-label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(8, 49, 105, 0.9);
    color: white;
    padding: 0.4rem 0.625rem 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    max-width: calc(100% - 6rem);
    pointer-events: none;
}

.map-sv-address {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.map-sv-close {
    pointer-events: all;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
    opacity: 0.8;
    flex-shrink: 0;
    border-radius: 50%;
    transition: opacity 0.15s, background 0.15s;
}

.map-sv-close:hover { opacity: 1; background: rgba(255,255,255,0.2); }


.map-sv-back-btn {
    display: none;
}

@keyframes sv-spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .map-sv-back-btn {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        position: absolute;
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 25;
        background: white;
        color: #083169;
        border: none;
        border-radius: 50px;
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
        font-weight: 700;
        box-shadow: 0 4px 20px rgba(0,0,0,0.25);
        cursor: pointer;
        white-space: nowrap;
    }

    .map-sv-back-btn:active {
        transform: translateX(-50%) scale(0.97);
    }


    .map-sv-open .map-tools-panel {
        display: none;
    }
}

.map-view-container .map-loading,
.map-view-container .map-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #F9FAFB;
    z-index: 5;
    pointer-events: none;
}

.map-view-container .map-loading .spinner,
.map-view-container .map-loading-overlay .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E5E7EB;
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


.map-tools-panel {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 20;
}

.map-tool-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.map-tool-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.map-tool-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}


.map-layer-picker-wrapper {
    position: relative;
}

.layer-dropdown {
    position: absolute;
    right: calc(100% + 0.5rem);
    bottom: 0;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-width: 130px;
    z-index: 20;
}

.layer-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 0.875rem;
    background: none;
    border: none;
    font-size: 0.8125rem;
    font-family: inherit;
    color: var(--text-dark, #1a1a2e);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.layer-option:hover {
    background: var(--bg-light, #F3F4F6);
}

.layer-option.selected {
    background: #EFF6FF;
    color: var(--primary-blue);
    font-weight: 600;
}

.layer-option + .layer-option {
    border-top: 1px solid #F3F4F6;
}


.close-map-btn {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 20;
    box-shadow: 0 4px 16px rgba(8, 49, 105, 0.3);
    z-index: 10;
    transition: all 0.2s;
}

.close-map-btn:hover {
    background: #062550;
    box-shadow: 0 6px 20px rgba(8, 49, 105, 0.4);
}


.map-listings-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}


.price-marker .marker-content {
    padding: 0.375rem 0.75rem;
    background: white;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-sm, 4px);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark, #1a1a2e);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    cursor: pointer;
}

.price-marker.highlighted .marker-content,
.price-marker:hover .marker-content {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
    transform: scale(1.15);
}


.price-marker.for-sale .marker-content {
    border-color: #10B981;
}

.price-marker.for-rent .marker-content {
    border-color: #F59E0B;
}

.price-marker.sold .marker-content {
    border-color: #EF4444;
    background: #FEF2F2;
}


.price-marker.watched .marker-content {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

.price-marker.watched::after {
    content: '\2665';
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 10px;
    color: #EF4444;
    background: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}


@keyframes clusterPop {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.cluster-marker {
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
    animation: clusterPop 0.2s ease-out;
    /* color/size set inline by JS based on count */
}

.cluster-marker:hover { transform: scale(1.12) !important; }

/* legacy .cluster-inner — kept for server-side clusters from API */
.cluster-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue, #083169);
    color: white;
    border-radius: 50%;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    box-shadow: 0 3px 12px rgba(8, 49, 105, 0.4);
    line-height: 1;
    gap: 1px;
}

.cluster-count {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.cluster-price {
    font-size: 0.6rem;
    font-weight: 500;
    opacity: 0.85;
    white-space: nowrap;
    color: #fff;
}


.map-price-range {
    position: absolute;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-blue, #083169);
    z-index: 10;
    pointer-events: none;
}


.map-view-inner .leaflet-control-zoom {
    display: none;
}


.map-mobile-filter-bar,
.map-mobile-filter-panel,
.map-mobile-listings-count,
.map-mobile-property-card,
.mobile-filter-backdrop {
    display: none;
}


@media (max-width: 1200px) {
    .map-filters-sidebar {
        width: 180px;
    }

    .map-property-cards {
        width: 280px;
    }
}

@media (max-width: 1024px) {
    .map-search-layout {
        flex-direction: column;
        height: auto;
    }

    .map-filters-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none;
        border-bottom: 1px solid #E5E7EB;
        padding: 0.75rem 1rem;
        white-space: nowrap;
    }

    .map-filters-sidebar .filter-section {
        display: inline-block;
        margin-bottom: 0;
        margin-right: 1.5rem;
        vertical-align: top;
    }

    .map-property-cards {
        width: 100%;
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.75rem;
        gap: 0.75rem;
        height: auto;
        max-height: none;
    }

    .map-property-card {
        min-width: 260px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .map-view-container {
        height: 50vh;
    }
}

@media (max-width: 768px) {

    .map-filters-sidebar {
        display: none !important;
    }

    .map-property-cards {
        display: none !important;
    }


    html:has(.map-search-layout),
    html:has(.map-search-layout) body,
    html:has(.map-search-layout) .landing-wrapper,
    html:has(.map-search-layout) .map-page-wrapper {
        overflow: hidden;
        height: 100dvh;
        min-height: unset;
    }

    html:has(.map-search-layout) .bottom-nav,
    html:has(.map-search-layout) .landing-footer {
        display: none !important;
    }

    .map-search-layout {
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        padding-top: 60px;
        padding-bottom: 0;
    }

    .map-view-container {
        flex: 1;
        height: auto !important;
        min-height: 0;
    }


    .map-mobile-filter-bar {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        overflow-x: auto;
        background: white;
        border-bottom: 1px solid #E5E7EB;
        z-index: 20;
        flex-shrink: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .map-mobile-filter-bar::-webkit-scrollbar {
        display: none;
    }

    .mobile-filter-chip {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.4375rem 0.875rem;
        border: 1.5px solid #E5E7EB;
        border-radius: 20px;
        background: white;
        font-size: 0.8125rem;
        font-weight: 500;
        color: var(--text-dark);
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.2s;
    }

    .mobile-filter-chip.active,
    .mobile-filter-chip.filter-toggle-chip.active {
        background: #E8F0FE;
        border-color: var(--primary-blue);
        color: var(--primary-blue);
    }

    .mobile-filter-chip svg {
        flex-shrink: 0;
    }


    .mobile-filter-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 29;
    }


    .map-mobile-filter-panel {
        display: block;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 30;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
        border-radius: 0 0 12px 12px;
        max-height: 70vh;
        overflow-y: auto;
    }

    .mobile-filter-panel-content {
        padding: 1rem;
    }

    .mobile-filter-row {
        margin-bottom: 1rem;
    }

    .mobile-filter-label {
        display: block;
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--text-dark);
        margin-bottom: 0.5rem;
    }

    .mobile-filter-row .filter-dropdown {
        width: 100%;
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    .mobile-filter-row .button-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .mobile-filter-row .checkbox-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .mobile-filter-row .checkbox-label {
        font-size: 0.875rem;
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }

    .mobile-filter-row .sold-history-inputs {
        display: flex;
        gap: 0.5rem;
    }

    .mobile-filter-row .sold-history-inputs input {
        flex: 1;
    }

    .mobile-filter-row .input-with-prefix {
        position: relative;
    }

    .mobile-filter-row .input-with-prefix .prefix {
        position: absolute;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.8125rem;
        color: var(--text-gray);
    }

    .mobile-filter-row .input-with-prefix .filter-input {
        width: 100%;
        padding-left: 1.75rem;
    }

    .mobile-filter-apply-btn {
        width: 100%;
        padding: 0.75rem;
        background: var(--primary-blue);
        color: white;
        border: none;
        border-radius: var(--radius-md);
        font-size: 0.9375rem;
        font-weight: 600;
        cursor: pointer;
        margin-top: 0.5rem;
    }


    .map-mobile-listings-count {
        display: block;
        position: fixed;
        bottom: 70px;
        left: 50%;
        transform: translateX(-50%);
        background: white;
        padding: 0.5rem 1.25rem;
        border-radius: 20px;
        font-size: 0.8125rem;
        color: var(--text-dark);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
        z-index: 15;
        white-space: nowrap;
    }

    .map-mobile-listings-count strong {
        font-weight: 700;
        color: var(--primary-blue);
    }


    .map-mobile-property-card {
        display: block;
        position: fixed;
        bottom: 70px;
        left: 0;
        right: 0;
        z-index: 20;
        padding: 0 0.75rem;
    }

    .mobile-card-inner {
        background: white;
        border-radius: var(--radius-lg, 12px);
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.12);
        overflow: hidden;
        display: flex;
        cursor: pointer;
    }

    .mobile-card-image {
        width: 120px;
        min-height: 120px;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
    }

    .mobile-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-card-image .property-badge-new {
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
    }

    .mobile-card-info {
        flex: 1;
        padding: 0.625rem 0.75rem;
        min-width: 0;
    }

    .mobile-card-info h4 {
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--text-dark);
        margin: 0 0 0.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-card-info .property-type-row {
        font-size: 0.6875rem;
        margin-bottom: 0.25rem;
        display: flex;
        align-items: center;
        gap: 0.25rem;
        color: var(--text-gray);
    }

    .mobile-card-info .property-price-new {
        font-size: 0.875rem;
        margin: 0.25rem 0;
        color: var(--text-dark);
    }

    .mobile-watch-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.25rem 0.625rem;
        background: #E8F0FE;
        color: var(--primary-blue);
        border: none;
        border-radius: 4px;
        font-size: 0.6875rem;
        font-weight: 600;
        cursor: pointer;
    }

    .mobile-watch-btn.watched {
        background: var(--primary-blue);
        color: white;
    }

    .mobile-card-stats {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.375rem;
        padding: 0.5rem;
        border-left: 1px solid #F3F4F6;
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--text-dark);
    }

    .mobile-card-stats span {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #F3F4F6;
        border-radius: 50%;
        font-size: 0.75rem;
    }


    .mobile-card-pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.375rem;
        padding: 0.5rem 0.75rem;
        background: white;
        border-radius: 0 0 var(--radius-lg, 12px) var(--radius-lg, 12px);
    }

    .mobile-card-nav {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #F3F4F6;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        color: var(--text-dark);
    }

    .mobile-card-nav:disabled {
        opacity: 0.3;
        cursor: default;
    }

    .mobile-card-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #D1D5DB;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: all 0.2s;
    }

    .mobile-card-dot.active {
        background: var(--primary-blue);
        width: 10px;
        height: 10px;
    }


    .map-mobile-property-card ~ .map-mobile-listings-count {
        display: none;
    }


    .close-map-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.875rem;
        bottom: 1rem;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        gap: 0.25rem;
        z-index: 20;
    }


    .map-tools-panel {
        top: 0.5rem;
        right: 0.5rem;
    }

    .map-tool-btn {
        width: 36px;
        height: 36px;
    }
}


[data-theme="dark"] .search-modal-content {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .search-modal-input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .search-modal-input::placeholder {
    color: #64748b;
}

[data-theme="dark"] .filter-chip {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

[data-theme="dark"] .filter-chip:hover {
    background: #475569;
}

[data-theme="dark"] .filter-chip.active {
    background: var(--primary-gold, #d4a853);
    color: white;
}

[data-theme="dark"] .properties-list-card,
[data-theme="dark"] .property-list-item {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .properties-list-card:hover,
[data-theme="dark"] .property-list-item:hover {
    border-color: #475569;
}

[data-theme="dark"] .map-tools-panel {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .map-tool-btn {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .map-tool-btn:hover {
    background: #334155;
    color: #e2e8f0;
}


.user-location-dot {
    width: 18px;
    height: 18px;
    background: #4285F4;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(66, 133, 244, 0.5);
    position: relative;
}

.location-pulse {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(66, 133, 244, 0.2);
    animation: locationPulse 2s infinite;
}

@keyframes locationPulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}


.map-save-area-btn {
    position: absolute;
    bottom: 4.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #083169;
    color: white;
    border: none;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(8, 49, 105, 0.4);
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.map-save-area-btn:hover:not(:disabled) {
    background: #0a4a9e;
    transform: translateX(-50%) scale(1.02);
}

.map-save-area-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

[data-theme="dark"] .map-save-area-btn {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

[data-theme="dark"] .map-save-area-btn:hover:not(:disabled) {
    background: #3b82f6;
}



[data-theme="dark"] .properties-page-new {
    background: #0f172a;
}


[data-theme="dark"] .properties-sidebar {
    background: #0f172a;
}

[data-theme="dark"] .filter-drawer-header {
    border-bottom-color: #334155;
}

[data-theme="dark"] .filter-drawer-title {
    color: #e2e8f0;
}

[data-theme="dark"] .filter-drawer-reset {
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .filter-drawer-reset:hover {
    border-color: #4a7ab5;
    color: #93c5fd;
}


[data-theme="dark"] .filter-title {
    color: #e2e8f0;
}


[data-theme="dark"] .filter-search-input {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .filter-search-input input {
    color: #e2e8f0;
}

[data-theme="dark"] .filter-search-input input::placeholder {
    color: #64748b;
}

[data-theme="dark"] .filter-search-input svg {
    color: #64748b;
}

[data-theme="dark"] .filter-search-clear {
    color: #64748b;
}


[data-theme="dark"] .type-checkbox-label {
    color: #cbd5e1;
}

[data-theme="dark"] .type-checkbox-label::before {
    border-color: #475569;
    background: #1e293b;
}

[data-theme="dark"] .type-checkbox-label.checked {
    color: #93c5fd;
}

[data-theme="dark"] .type-checkbox-label.checked::before {
    border-color: #4a7ab5;
    background: #4a7ab5;
}


[data-theme="dark"] .range-input-wrap {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .range-prefix {
    color: #64748b;
}

[data-theme="dark"] .range-input {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .range-input::placeholder {
    color: #64748b;
}

[data-theme="dark"] .range-input-wrap .range-input {
    background: transparent;
}


[data-theme="dark"] .filter-btn {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .filter-btn:hover {
    border-color: #4a7ab5;
    color: #93c5fd;
}

[data-theme="dark"] .filter-btn.active {
    background: #4a7ab5;
    border-color: #4a7ab5;
    color: white;
}


[data-theme="dark"] .filter-dropdown {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}


[data-theme="dark"] .filter-input {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}


[data-theme="dark"] .sqft-chip {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .sqft-chip:hover,
[data-theme="dark"] .sqft-chip.active {
    border-color: #4a7ab5;
    color: #93c5fd;
    background: #1e3a5f;
}


[data-theme="dark"] .btn-save-filters {
    border-color: #4a7ab5;
    color: #93c5fd;
    background: transparent;
}

[data-theme="dark"] .btn-save-filters:hover {
    background: #4a7ab5;
    color: white;
}


[data-theme="dark"] .checkbox-label {
    color: #cbd5e1;
}

[data-theme="dark"] .checkbox-label input[type="checkbox"] {
    accent-color: #4a7ab5;
}


[data-theme="dark"] .property-card-new {
    background: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

[data-theme="dark"] .property-address-new {
    color: #e2e8f0;
}

[data-theme="dark"] .property-address-new:hover {
    color: #93c5fd;
}

[data-theme="dark"] .property-type-row {
    color: #64748b;
}

[data-theme="dark"] .property-price-new {
    color: #e2e8f0;
}

[data-theme="dark"] .property-features-row {
    border-top-color: #334155;
}

[data-theme="dark"] .feature-icon-text {
    color: #94a3b8;
}


[data-theme="dark"] .watch-list-btn {
    background: rgba(30, 41, 59, 0.95);
    color: #cbd5e1;
}

[data-theme="dark"] .watch-list-btn:hover:not(:disabled) {
    background: #1e293b;
    color: #93c5fd;
}


[data-theme="dark"] .no-results h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .no-results p {
    color: #64748b;
}


[data-theme="dark"] .pagination-new .page-btn {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .pagination-new .page-btn:hover {
    background: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .pagination-new .page-btn.active {
    background: #4a7ab5;
    border-color: #4a7ab5;
    color: white;
}


[data-theme="dark"] .properties-main-content {
    background: #0f172a;
}


[data-theme="dark"] .mob-filter-chip {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .mob-filter-chip.has-filters {
    background: #1e3a5f;
    border-color: #4a7ab5;
    color: #93c5fd;
}



.sfm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.sfm-modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sfm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 1rem;
}

.sfm-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0A1929;
    margin: 0;
}

.sfm-close {
    width: 32px;
    height: 32px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6B7280;
    transition: all 0.2s;
}

.sfm-close:hover {
    background: #F3F4F6;
    color: #374151;
}

.sfm-divider {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 0;
}

.sfm-section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem 0.5rem;
}

.sfm-section-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.sfm-new-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-blue, #083169);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}

.sfm-new-link:hover { opacity: 0.75; }

.sfm-list {
    padding: 0 1.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sfm-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 0.9375rem;
    color: #1F2937;
    background: white;
}

.sfm-add-to-btn {
    width: 36px;
    height: 36px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6B7280;
    transition: all 0.2s;
}

.sfm-add-to-btn:hover {
    border-color: var(--primary-blue, #083169);
    color: var(--primary-blue, #083169);
    background: #EFF6FF;
}

.sfm-new-form {
    padding: 1rem 1.5rem 1.5rem;
}

.sfm-new-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.sfm-save-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    background: #E5E7EB;
    color: #9CA3AF;
    transition: all 0.2s;
}

.sfm-save-btn.active {
    background: #083169;
    color: white;
}

.sfm-save-btn.active:hover {
    background: #0a4a9e;
}

.sfm-save-btn:disabled:not(.active) {
    cursor: default;
}

.sfm-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.sfm-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #D1D5DB;
    border-radius: 10px;
    font-size: 0.9375rem;
    color: #1F2937;
    background: white;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.sfm-input:focus {
    border-color: var(--primary-blue, #083169);
    box-shadow: 0 0 0 3px rgba(8, 49, 105, 0.08);
}

.sfm-loading {
    padding: 2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}


[data-theme="dark"] .sfm-modal {
    background: #1e293b;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

[data-theme="dark"] .sfm-header h3 { color: #e2e8f0; }

[data-theme="dark"] .sfm-close {
    border-color: #334155;
    background: #1e293b;
    color: #94a3b8;
}

[data-theme="dark"] .sfm-close:hover { background: #334155; color: #e2e8f0; }

[data-theme="dark"] .sfm-divider { border-top-color: #334155; }

[data-theme="dark"] .sfm-section-label { color: #cbd5e1; }

[data-theme="dark"] .sfm-list-item {
    background: #253347;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .sfm-add-to-btn {
    border-color: #334155;
    background: #1e293b;
    color: #94a3b8;
}

[data-theme="dark"] .sfm-add-to-btn:hover {
    border-color: #4a7ab5;
    color: #93c5fd;
    background: #1e3a5f;
}

[data-theme="dark"] .sfm-input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .sfm-input:focus {
    border-color: #4a7ab5;
    box-shadow: 0 0 0 3px rgba(74,122,181,0.15);
}

[data-theme="dark"] .sfm-label { color: #cbd5e1; }

[data-theme="dark"] .sfm-save-btn { background: #334155; color: #64748b; }

[data-theme="dark"] .sfm-save-btn.active { background: #4a7ab5; color: white; }


[data-theme="dark"] .search-modal-content,
[data-theme="dark"] .property-card-new,
[data-theme="dark"] .property-card-skeleton,
[data-theme="dark"] .map-property-card,
[data-theme="dark"] .map-card-skeleton {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .property-card-new:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

[data-theme="dark"] .search-filter-pill,
[data-theme="dark"] .search-filter-input,
[data-theme="dark"] .search-bar-input,
[data-theme="dark"] .search-location-input,
[data-theme="dark"] .search-price-input,
[data-theme="dark"] .filter-option-btn,
[data-theme="dark"] .sort-dropdown-select,
[data-theme="dark"] .map-search-input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .search-filter-pill:hover,
[data-theme="dark"] .filter-option-btn:hover {
    background: #334155;
}

[data-theme="dark"] .watch-list-btn:hover:not(:disabled),
[data-theme="dark"] .watch-list-btn-new:hover {
    background: #334155;
}


[data-theme="dark"] .map-tool-btn,
[data-theme="dark"] .map-search-bar,
[data-theme="dark"] .map-tool-tooltip {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .map-tool-btn:hover {
    background: #334155;
}

[data-theme="dark"] .price-marker .marker-content {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .cluster-badge {
    background: #1e293b;
    color: #e2e8f0;
}


[data-theme="dark"] .map-panel-sidebar {
    background: #1e293b;
    border-right-color: #334155;
}

[data-theme="dark"] .map-panel-search {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}


@media (max-width: 768px) {
    [data-theme="dark"] .mobile-filter-bar,
    [data-theme="dark"] .mobile-filter-pill,
    [data-theme="dark"] .mobile-map-bottom-card,
    [data-theme="dark"] .mobile-card-inner,
    [data-theme="dark"] .mobile-back-btn {
        background: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }
}


[data-theme="dark"] .map-filters-sidebar {
    background: #1e293b;
    border-right-color: #334155;
}

[data-theme="dark"] .map-property-cards {
    background: #0f172a;
}

[data-theme="dark"] .map-card-details {
    color: #e2e8f0;
}

[data-theme="dark"] .map-card-details h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .map-card-details .property-type-row {
    color: #94a3b8;
}

[data-theme="dark"] .map-card-details .property-price-new {
    color: #cbd5e1;
}

[data-theme="dark"] .map-card-details .property-features-row {
    color: #94a3b8;
}

[data-theme="dark"] .filter-input-plain {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .checkbox-label span {
    color: #cbd5e1;
}

[data-theme="dark"] .input-with-prefix .prefix {
    color: #94a3b8;
}


@media (max-width: 768px) {
    [data-theme="dark"] .map-mobile-filter-bar {
        background: #1e293b;
        border-bottom-color: #334155;
    }

    [data-theme="dark"] .mobile-filter-chip {
        background: #0f172a;
        border-color: #334155;
        color: #e2e8f0;
    }

    [data-theme="dark"] .mobile-filter-chip.active {
        background: #1e3a5f;
        border-color: #4a7ab5;
        color: #93c5fd;
    }

    [data-theme="dark"] .map-mobile-filter-panel {
        background: #1e293b;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }

    [data-theme="dark"] .mobile-filter-panel-content {
        background: #1e293b;
    }

    [data-theme="dark"] .mobile-filter-label {
        color: #cbd5e1;
    }

    [data-theme="dark"] .mobile-filter-row .filter-dropdown,
    [data-theme="dark"] .mobile-filter-row .filter-input,
    [data-theme="dark"] .mobile-filter-row .filter-input-plain {
        background: #0f172a;
        border-color: #334155;
        color: #e2e8f0;
    }

    [data-theme="dark"] .mobile-filter-apply-btn {
        background: var(--primary-blue, #083169);
        color: white;
    }

    [data-theme="dark"] .map-mobile-property-card {
        background: #1e293b;
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.3);
    }

    [data-theme="dark"] .map-mobile-property-card .mobile-card-inner {
        background: #1e293b;
        color: #e2e8f0;
    }

    [data-theme="dark"] .map-mobile-property-card .mobile-card-info h4 {
        color: #e2e8f0;
    }

    [data-theme="dark"] .map-mobile-property-card .property-price-new {
        color: #cbd5e1;
    }

    [data-theme="dark"] .map-mobile-listings-count {
        background: #1e293b;
        color: #e2e8f0;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    }

    [data-theme="dark"] .mobile-card-pagination {
        background: #1e293b;
        border-top-color: #334155;
    }

    [data-theme="dark"] .mobile-card-nav {
        color: #94a3b8;
    }

    [data-theme="dark"] .mobile-card-dot {
        background: #475569;
    }

    [data-theme="dark"] .mobile-card-dot.active {
        background: #93c5fd;
    }
}


/* ═══════════════════════════════════════════════════
   LIS-003: Buy / Rent / Sold Tabs
════════════════════════════════════════════════════ */
.prop-status-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #E5E7EB;
    background: #fff;
    padding: 0 1.5rem;
    position: sticky;
    top: 72px;
    z-index: 50;
}

.prop-status-tab {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #6B7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -1px;
    white-space: nowrap;
}

.prop-status-tab:hover { color: #1d3a8a; }
.prop-status-tab.active { color: #1d3a8a; border-bottom-color: #1d3a8a; font-weight: 600; }

@media (max-width: 768px) {
    .prop-status-tabs { padding: 0 0.75rem; top: 64px; }
    .prop-status-tab { padding: 0.75rem 0.875rem; font-size: 0.875rem; }
}

/* ═══════════════════════════════════════════════════
   LIS-004: Toolbar
════════════════════════════════════════════════════ */
.prop-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.prop-toolbar-count {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

.prop-toolbar-chips {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.prop-chip-active {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.75rem;
    background: #eaf0fb;
    border: 1px solid #c0d2f5;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1d3a8a;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.prop-chip-active:hover { background: #d5e3f8; }
.prop-chip-active span { font-size: 0.9rem; opacity: 0.7; }

.prop-chip-clear {
    padding: 0.3125rem 0.75rem;
    background: none;
    border: none;
    font-size: 0.8125rem;
    color: #6B7280;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prop-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-left: auto;
}

.prop-sort-select {
    padding: 0.4375rem 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #374151;
    background: #fff;
    cursor: pointer;
    outline: none;
}

.prop-sort-select:focus { border-color: #1d3a8a; }

.prop-view-toggle {
    display: flex;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
}

.prop-view-toggle button,
.prop-view-toggle-map {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.prop-view-toggle button + button,
.prop-view-toggle button + a { border-left: 1px solid #E5E7EB; }
.prop-view-toggle button:hover,
.prop-view-toggle-map:hover { background: #F9FAFB; color: #374151; }
.prop-view-toggle button.active { background: #1d3a8a; color: #fff; }
.prop-view-toggle-map { color: #9CA3AF; }
.prop-view-toggle-map:hover { color: #374151; }

@media (max-width: 768px) {
    .prop-toolbar { padding: 0.5rem 0; gap: 0.5rem; }
    .prop-toolbar-right { margin-left: 0; width: 100%; justify-content: flex-end; }
    .prop-sort-select { font-size: 0.8125rem; padding: 0.375rem 0.5rem; }
}

/* ═══════════════════════════════════════════════════
   LIS-005: Card Redesign
════════════════════════════════════════════════════ */
/* Badge: brand navy instead of green */
.property-badge-new.for-sale { background: #1d3a8a; color: #fff; }
.property-badge-new.for-rent { background: #d97706; color: #fff; }
.property-badge-new.sold     { background: #6B7280; color: #fff; }

/* Heart button */
.card-heart-btn {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9CA3AF;
    transition: all 0.2s;
    z-index: 3;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.card-heart-btn:hover { color: #e11d48; transform: scale(1.1); }
.card-heart-btn.saved { color: #e11d48; }
.card-heart-btn.saved svg { fill: #e11d48; }
.card-heart-btn:disabled { opacity: 0.6; cursor: wait; }

/* Price: large bold, no "List:" */
.property-price-new {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
    margin: 0 0 0.25rem;
}

/* Address single-line truncate */
.property-address-new {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

/* Type row smaller/gray */
.property-type-row {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-bottom: 0.5rem;
}

/* Stats: bold value */
.feature-icon-text b { color: #111827; }

/* Ensure image container is relative for heart button */
.property-card-new { position: relative; }

/* List mode */
.property-grid-new.list-mode {
    grid-template-columns: 1fr;
}

.property-grid-new.list-mode .property-card-new {
    display: grid;
    grid-template-columns: 200px 1fr;
}

.property-grid-new.list-mode .property-image-link {
    display: block;
}

.property-grid-new.list-mode .property-image-container {
    height: 100%;
    min-height: 140px;
}

/* ═══════════════════════════════════════════════════
   LIS-009: Property Type Chip Grid
════════════════════════════════════════════════════ */
.type-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.type-chip {
    padding: 0.3125rem 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 50px;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.type-chip:hover { border-color: #1d3a8a; color: #1d3a8a; }
.type-chip.active { background: #1d3a8a; border-color: #1d3a8a; color: #fff; }
.type-chip-more { border-style: dashed; color: #6B7280; }
.type-chip-more:hover { border-color: #1d3a8a; color: #1d3a8a; border-style: dashed; background: #fff; }

/* ═══════════════════════════════════════════════════
   LIS-011: Accordion Filter Groups
════════════════════════════════════════════════════ */
.filter-accordion {
    border-top: 1px solid #F3F4F6;
}

.filter-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6B7280;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.15s;
}

.filter-accordion-header:hover { color: #374151; }
.filter-accordion.open .filter-accordion-header { color: #111827; }

.accordion-icon {
    font-size: 1rem;
    font-weight: 400;
    color: #9CA3AF;
    line-height: 1;
}

.filter-accordion-body {
    padding-bottom: 0.75rem;
}

/* ═══════════════════════════════════════════════════
   Mobile bottom nav — 5 tabs
════════════════════════════════════════════════════ */
.bottom-nav-items { grid-template-columns: repeat(5, 1fr); }

/* ═══════════════════════════════════════════════════
   LIS-024: Map transaction type tabs
════════════════════════════════════════════════════ */
.map-tab-bar {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.25rem;
    padding: 0.3rem;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    z-index: 10;
    white-space: nowrap;
}
.map-tab {
    padding: 0.375rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}
.map-tab.active {
    background: #1d3a8a;
    color: #fff;
    border-color: #1d3a8a;
}
.map-tab:hover:not(.active) { border-color: #1d3a8a; color: #1d3a8a; }

/* LIS-024: lease marker color — orange */
.price-marker.for-lease .marker-content { border-color: #ea580c; background: #fff7ed; color: #ea580c; }

/* ═══════════════════════════════════════════════════
   LIS-021: Map loading skeleton & spinner
════════════════════════════════════════════════════ */
.map-loading-overlay {
    position: absolute;
    inset: 0;
    background: #f3f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.map-skeleton-pulse {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 400px 100%;
    animation: skeleton-pulse 1.4s ease infinite;
}
.map-load-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #1d3a8a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 1;
}
.map-load-error {
    z-index: 1;
    background: #fff;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    text-align: center;
}
.map-load-error p { margin: 0 0 0.5rem; font-size: 0.9rem; color: #374151; }
.map-load-error button {
    background: #1d3a8a; color: #fff; border: none;
    border-radius: 6px; padding: 0.375rem 1rem;
    font-size: 0.875rem; cursor: pointer;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════
   LIS-019: Skeleton gradient pulse
════════════════════════════════════════════════════ */
@keyframes skeleton-pulse {
    0%   { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}
.skeleton-image, .skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 400px 100%;
    animation: skeleton-pulse 1.4s ease infinite;
}
.property-card-skeleton .skeleton-image {
    aspect-ratio: 4/3;
    width: 100%;
    border-radius: 0.5rem;
}

/* LIS-013: Split view */
.split-view-layout {
    display: flex;
    height: calc(100vh - 140px);
    gap: 0;
    margin: 0 -1rem;
}

.split-map-panel {
    width: 55%;
    position: sticky;
    top: 70px;
    height: calc(100vh - 140px);
    flex-shrink: 0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.split-map-inner {
    width: 100%;
    height: 100%;
}

.split-list-panel {
    width: 45%;
    overflow-y: auto;
    padding: 0 0.75rem;
}

.split-list-panel .property-grid-new {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

@media (max-width: 900px) {
    .split-view-layout {
        flex-direction: column;
        height: auto;
        margin: 0;
    }
    .split-map-panel {
        width: 100%;
        height: 45vh;
        position: relative;
        top: 0;
    }
    .split-list-panel {
        width: 100%;
        overflow-y: visible;
        padding: 0;
    }
}

/* ═══════════════════════════════════════════════════
   Dark mode — missing elements
════════════════════════════════════════════════════ */
[data-theme="dark"] .property-image-container {
    background: #1e293b;
}

[data-theme="dark"] .type-chip {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .type-chip:hover {
    border-color: #4a7ab5;
    color: #93c5fd;
}

[data-theme="dark"] .type-chip-more {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .type-chip-more:hover {
    border-color: #4a7ab5;
    color: #93c5fd;
    background: #1e293b;
}

[data-theme="dark"] .prop-toolbar-count {
    color: #e2e8f0;
}

[data-theme="dark"] .prop-chip-active {
    background: #1e3a5f;
    border-color: #4a7ab5;
    color: #93c5fd;
}

[data-theme="dark"] .prop-chip-active:hover {
    background: #1d3a8a;
}

[data-theme="dark"] .prop-chip-clear {
    color: #64748b;
}

[data-theme="dark"] .prop-sort-select {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .prop-sort-select:focus {
    border-color: #4a7ab5;
}

[data-theme="dark"] .prop-view-toggle {
    border-color: #334155;
}

[data-theme="dark"] .prop-view-toggle button,
[data-theme="dark"] .prop-view-toggle-map {
    background: #1e293b;
    color: #64748b;
}

[data-theme="dark"] .prop-view-toggle button + button,
[data-theme="dark"] .prop-view-toggle button + a {
    border-left-color: #334155;
}

[data-theme="dark"] .prop-view-toggle button:hover,
[data-theme="dark"] .prop-view-toggle-map:hover {
    background: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .prop-view-toggle button.active {
    background: #1d3a8a;
    color: #fff;
}

[data-theme="dark"] .filter-accordion {
    border-top-color: #1e293b;
}

[data-theme="dark"] .filter-accordion-header {
    color: #94a3b8;
}

[data-theme="dark"] .filter-accordion-header:hover {
    color: #cbd5e1;
}

[data-theme="dark"] .filter-accordion.open .filter-accordion-header {
    color: #e2e8f0;
}

[data-theme="dark"] .accordion-icon {
    color: #64748b;
}

[data-theme="dark"] .mob-filter-chip-tag {
    background: #1e3a5f;
    border-color: #4a7ab5;
    color: #93c5fd;
}

[data-theme="dark"] .map-tab-bar {
    background: #1e293b;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

[data-theme="dark"] .map-tab {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .map-tab.active {
    background: #1d3a8a;
    color: #fff;
    border-color: #1d3a8a;
}

[data-theme="dark"] .map-tab:hover:not(.active) {
    border-color: #4a7ab5;
    color: #93c5fd;
}

[data-theme="dark"] .skeleton-image,
[data-theme="dark"] .skeleton-line {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 400px 100%;
}

[data-theme="dark"] .map-loading-overlay {
    background: #0f172a;
}

[data-theme="dark"] .map-load-error {
    background: #1e293b;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

[data-theme="dark"] .map-load-error p {
    color: #94a3b8;
}

[data-theme="dark"] .prop-status-tabs {
    background: #0f172a;
    border-bottom-color: #1e293b;
}

[data-theme="dark"] .prop-status-tab {
    color: #64748b;
}

[data-theme="dark"] .prop-status-tab:hover {
    color: #93c5fd;
}

[data-theme="dark"] .prop-status-tab.active {
    color: #93c5fd;
    border-bottom-color: #4a7ab5;
}

[data-theme="dark"] .card-heart-btn {
    background: rgba(15, 23, 42, 0.9);
    color: #64748b;
}

[data-theme="dark"] .card-heart-btn:hover {
    color: #e11d48;
}

[data-theme="dark"] .card-heart-btn.saved {
    color: #e11d48;
}
