/* Listings Page Styles - Elegant & Lead-Optimized */
.listings-page {
    background: #ffffff;
    min-height: 100vh;
    padding-top: 0;
    position: relative;
}

/* Focus Banner for Listings - Luxury Enhanced */
.listings-banner {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    z-index: 1;
}

.listings-banner .focus-banner-image {
    height: 380px;
    position: relative;
}

/* Dynamic banner background (React passes --focus-bg and --focus-min-h) */
.listings-banner .focus-banner-image.focus-banner-bg-dynamic {
    height: auto;
    background-image: var(--focus-bg);
    background-size: cover;
    background-position: center;
    min-height: var(--focus-min-h, 380px);
}

.listings-banner .focus-content {
    position: relative;
    z-index: 2;
}

.listings-banner .focus-content h3 {
    font-size: 48px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.listings-banner .focus-cta-group {
    z-index: 2;
    position: absolute;
    display: flex;
    gap: 16px;
    justify-content: center;
    
}

.listings-banner .focus-cta-primary {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.listings-banner .focus-cta-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

.listings-banner .focus-cta-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.listings-banner .focus-cta-secondary:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.3);
}

/* Banner Content Styles */
.listings-banner .focus-content {
    padding: 0px 0px 0px;
}

.listings-banner .focus-brand {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.listings-banner .focus-brand h3 {
    margin: 0px 0 0 0;
    line-height: 1.2;
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    font-family: serif;
    letter-spacing: -0.02em;
}

.listings-banner .focus-brand-subtitle {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: serif;
}

.listings-banner .focus-details {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    margin-top: 10px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
}

.listings-banner .focus-badge {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.listings-banner .focus-banner-image {
    overflow: hidden;
}

/* Laptop & desktop (≥769px): centered hero + row CTAs — mobile stays in responsive.css */
@media (min-width: 769px) {
    .listings-banner .focus-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 3;
        width: 100%;
        max-width: min(1200px, 100%);
        padding: 20px;
        box-sizing: border-box;
        text-align: center;
    }

    .listings-banner .focus-brand {
        margin-bottom: 12px;
    }

    .listings-banner .focus-details {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 10px;
        justify-content: center;
        align-items: center;
    }

    .listings-banner .focus-cta-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        top: auto;
        bottom: var(--spacing-xl, 32px);
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: min(1200px, calc(100% - 40px));
        margin-top: 0;
        padding: 0 20px;
        z-index: 4;
        justify-content: center;
        align-items: center;
    }

    .listings-banner .focus-cta-primary,
    .listings-banner .focus-cta-secondary {
        width: auto;
        min-width: auto;
        padding: 14px 32px;
        font-size: 1rem;
        min-height: auto;
    }
}

@media (max-width: 47.99rem) {
    .focus-banner.listings-banner .focus-banner-image {
        min-height: clamp(14.5rem, 43svh, 18.5rem);
    }

    .focus-banner.listings-banner .focus-badge {
        margin-top: 0.55rem;
        min-height: 1.65rem;
        padding: 0.32rem 0.85rem;
        font-size: 0.68rem;
        letter-spacing: 0.05em;
    }

    .focus-banner.listings-banner .focus-content {
        display: grid;
        height: calc(100% - 1.4rem);
        margin-bottom: 0.5rem;
        gap: 0.5rem;
        grid-template-rows: auto 1fr auto;
        justify-items: center;
    }

    .listings-banner .focus-content-inner {
        position: absolute;
        top: 70px;
        align-self: center;
        max-width: min(100%, 25rem);
    }

    .focus-banner.listings-banner .focus-content h3,
    .focus-banner.listings-banner .focus-brand h3 {
        font-size: clamp(1.7rem, 6vw, 2.1rem);
        line-height: 1.02;
        letter-spacing: 0.015em;
    }

    .focus-banner.listings-banner .focus-brand-subtitle {
        margin-top: 0.2rem;
        font-size: clamp(0.88rem, 2.8vw, 1rem);
        letter-spacing: 0.03em;
    }

    .focus-banner.listings-banner .focus-details {
        flex-direction: column;
        align-items: center;
        gap: 0.08rem;
    }

    .listings-banner .focus-cta-group {
        position: absolute;
        bottom: 0.65rem;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.45rem;
        max-width: min(100%, 20.5rem);
    }

    .focus-banner.listings-banner .focus-cta {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        min-height: 2.22rem;
        padding: 0.5rem 0.45rem;
        font-size: 0.82rem;
        line-height: 1.05;
        border-radius: 0.58rem;
        letter-spacing: 0.02em;
        white-space: nowrap;
        text-align: center;
    }

    .focus-banner.listings-banner .focus-cta-secondary i {
        font-size: 0.7rem;
    }
}

.listings-search-section {
    position: relative;
    z-index: 2;
}

.listings-container {
    position: relative;
    z-index: 2;
}

/* Listing Price, Location, Developer, Configuration Styles - See line 1325+ */
/* About Section Styles - See line 1513+ */
/* Listing Map Styles - See line 1633+ */

/* Expanded Card View Details Button */
.listing-actions .btn-view-property {
    flex: 1;
    padding: 12px 16px;
    background: #dc2626;
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    white-space: nowrap;
}

.listing-actions .btn-view-property span {
    display: block;
    line-height: 1.2;
    white-space: nowrap;
}

.listing-actions .btn-view-property:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Inset Image Styles */
.inset-image {
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.inset-image .listing-img {
    pointer-events: none;
}

/* Main Image Container - Consolidated (removed duplicate) */

.close-expanded-btn {
    z-index: 11 !important;
}

/* Property Badge Styles */
.property-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.property-badge.status-ready-to-move {
    background: #10b981;
}

.property-badge.status-new-launch {
    background: #dc2626;
}

.property-badge.status-pre-launch {
    background: #f59e0b;
}

.property-badge.status-available {
    background: #9333ea;
}

.property-badge.status-default {
    background: #6b7280;
}

/* RERA Badge */
.rera-badge-main {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    background: #c2185b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Listings Grid Styles */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 20px 0;
    width: 100%;
}

.listings-grid.list-view {
    grid-template-columns: 1fr;
}

/* Advanced Search Section */
.listings-search-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 15px 0;
    position: relative;
    z-index: 2;
    margin-top: 0;
}

.advanced-search-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(220, 38, 38, 0.05);
    position: relative;
    border-top: 3px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(37, 211, 102, 0.1));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.search-header {
    text-align: center;
    margin-bottom: 24px;
}

.search-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.01em;
}

.search-header h3 i {
    background: linear-gradient(135deg, #DC2626 0%, #25D366 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
}

.search-header p {
    color: #6b6b6b;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
}

.search-fields {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-field label {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-field label i {
    color: #DC2626;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.search-field:focus-within label i {
    opacity: 1;
    color: #DC2626;
}

.search-input,
.search-select {
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.2s;
    background: #f8f9fa;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.search-input:focus,
.search-select:focus {
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1), 0 2px 8px rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.search-submit-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.search-submit-btn i {
    font-size: 12px;
    transition: transform 0.3s;
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.search-submit-btn:hover i {
    transform: translateX(4px);
}

/* No Results Message */
.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.no-results-message i {
    font-size: 48px;
    color: #DC2626;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-results-message h3 {
    font-size: 24px;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    font-family: 'Playfair Display', serif;
}

.no-results-message p {
    font-size: 14px;
    color: #6b6b6b;
    margin: 0;
}

/* Property Type Filters - Combined with Search Section */
.advanced-search-card .property-type-filters {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    padding: 0 0 24px 0;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.listings-search-section .property-type-filters {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    padding: 0 0 24px 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.property-type-container {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.type-filter-btn {
    padding: 12px 24px;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    color: #6b6b6b;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.type-filter-btn i {
    font-size: 12px;
}

.type-filter-btn:hover {
    color: #1a1a1a;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.type-filter-btn.active {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25);
    transform: translateY(-2px);
}

.type-filter-btn.active i {
    color: #ffffff;
}

/* Main Container */
.listings-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    position: relative;
    z-index: 2;
    transition: grid-template-columns 0.3s ease;
    box-sizing: border-box;
}

/* Filter Sidebar - Elegant & Clean */
.filter-sidebar {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    height: fit-content;
    position: sticky;
    top: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(220, 38, 38, 0.05);
    transition: all 0.3s ease;
    overflow-y: visible;
    overflow-x: hidden;
    min-width: 320px;
    border-top: 3px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(37, 211, 102, 0.05));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.filter-sidebar:hover {
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.08), 0 4px 16px rgba(0, 0, 0, 0.1);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: none;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.filter-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.01em;
    position: relative;
    padding-left: 16px;
}

.filter-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    background: linear-gradient(180deg, #DC2626 0%, #B91C1C 100%);
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.filter-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.filter-toggle i {
    pointer-events: none;
}

.filter-toggle:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.filter-toggle i {
    color: #6b6b6b;
    font-size: 14px;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-title {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}

.filter-title i {
    font-size: 12px;
    color: #DC2626;
    opacity: 0.7;
}

.filter-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(220, 38, 38, 0.2), transparent);
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
   
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #6b6b6b;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #DC2626;
}

.filter-checkbox.checked {
    color: #DC2626;
    font-weight: 500;
}

.price-slider-container {
    margin-top: 16px;
}

.price-slider {
    position: relative;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin-bottom: 8px;
}

.price-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1a1a1a;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1a1a1a;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b6b6b;
}

.room-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.room-tab {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #6b6b6b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.room-tab:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.room-tab.active {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.room-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.room-options.hidden {
    display: none;
}

.room-btn {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #6b6b6b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.room-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.room-btn.active {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: #ffffff;
    border-color: #DC2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.add-room-btn {
    width: 100%;
    padding: 10px;
    border: 1px dashed #e5e7eb;
    background: #ffffff;
    color: #6b6b6b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.add-room-btn:hover {
    color: #1a1a1a;
    background: #f0f0f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Main Content Area */
.listings-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.listings-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
    pointer-events: auto;
    overflow: visible;
}

.location-search {
    flex: 1;
}

.location-input {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    background: #f8f9fa;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.location-input:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.05), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.top-bar-actions {
    display: flex;
    gap: 8px;
    margin-left: 12px;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    overflow: visible;
    flex-shrink: 0;
}

.action-icon-btn-wrap {
    position: relative;
    z-index: 10002;
    cursor: pointer;
    display: inline-flex;
    overflow: visible;
}

.action-icon-btn-wrap .action-icon-btn {
    z-index: 10002;
}

.action-icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    pointer-events: auto;
    overflow: visible;
}

.action-icon-btn i,
.action-icon-btn span {
    pointer-events: none;
}

.action-icon-btn:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.action-icon-btn.active {
    background: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.action-icon-btn.active i {
    color: #ffffff;
}

.action-icon-btn.active:hover {
    background: #2d2d2d;
}

.action-icon-btn i {
    color: #6b6b6b;
    font-size: 16px;
}

.action-icon-btn:hover i {
    color: #1a1a1a;
}

.compare-count,
.wishlist-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    box-sizing: border-box;
    background: #dc2626;
    color: #ffffff;
    border-radius: 10px;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
    z-index: 2;
    border: 2px solid #ffffff;
    line-height: 1;
}

/* Listing Action Buttons Container */
.listing-action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-view-property {
    flex: 1;
    padding: 10px 16px;
    background: #ffffff;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-compare {
    width: 40px;
    height: 40px;
    padding: 0;
    background: #ffffff;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.btn-view-property:hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-compare:hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-view-property i {
    font-size: 12px;
}

.btn-compare i {
    font-size: 14px;
}

/* Primary action - View Property */
.btn-view-property {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.btn-view-property:hover {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Listing Price - Consolidated */
.listing-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.listing-price .price-text {
    font-size: 24px;
    font-weight: 700;
    color: #cf2f2f;
    font-family: 'Playfair Display', serif;
}

.listing-price .rera-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #10b981;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    transition: all 0.3s ease;
}

.listings-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.listings-grid.grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.listing-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    border: 1px solid transparent;
}

.listing-card:hover {
    border-color: rgba(220, 38, 38, 0.1);
}

.listing-card:hover {
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.12), 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.listing-card.expanded {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    animation: expandCard 0.4s ease;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    background: #ffffff;
    position: relative;
}

@keyframes expandCard {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.listing-card.compact {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.listing-map-embed {
    border: 0;
    border-radius: 8px;
}

.main-image .listing-img.listing-img-expanded-main {
    cursor: pointer;
}

.listing-card.list-view-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    max-width: 100%;
}

.listing-card.list-view-card .listing-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.listing-card.list-view-card .listing-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .listing-card.list-view-card {
        grid-template-columns: 1fr;
    }
    
    .listing-card.list-view-card .listing-image {
        height: 200px;
    }
}

/* Expanded Listing Styles - Enhanced */
.listing-images {
    position: relative;
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.main-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    flex-shrink: 0;
}

.main-image > a {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
}

.main-image img,
.main-image .listing-img,
.main-image img[data-nimg] {
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform 0.4s;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.listing-card.expanded:hover .main-image img {
    transform: scale(1.05);
}

/* Close Button for Expanded Card */
.close-expanded-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.close-expanded-btn:hover {
    background: #1a1a1a;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.close-expanded-btn i {
    color: #1a1a1a;
    font-size: 14px;
    transition: color 0.3s;
}

.close-expanded-btn:hover i {
    color: #ffffff;
}

.inset-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    height: auto;
    flex-shrink: 0;
}

.inset-image {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    height: auto;
    min-height: 150px;
    position: relative;
}

.inset-image:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.inset-image img,
.inset-image .listing-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.inset-image:hover img {
    transform: scale(1.05);
}

.listing-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    overflow-y: auto;
    max-height: 100%;
}

.listing-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.listing-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.listing-location,
.listing-developer,
.listing-configuration {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.listing-location i,
.listing-developer i,
.listing-configuration i {
    color: #9ca3af;
    font-size: 12px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* Rating Badge in Header - Luxury Enhanced */
.listing-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
    padding: 6px 16px;
    border-radius: 20px;
    margin-top: 10px;
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.15);
    backdrop-filter: blur(10px);
}

.listing-rating-badge i {
    color: #fbbf24;
    font-size: 12px;
}

.listing-rating-badge span {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
}

.listing-tabs {
    display: flex;
    gap: 8px;
    border-bottom: none;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.listing-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #6b6b6b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listing-tab:hover {
    color: #1a1a1a;
    background: #f8f9fa;
}

.listing-tab.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
    font-weight: 600;
}

.listing-tab-content {
    display: none;
}

.listing-tab-content.active {
    display: block;
}

.listing-description {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

/* Reviews Section */
.reviews-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.review-item:hover {
    background: #f0f0f0;
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.reviewer-info h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    font-family: 'Playfair Display', serif;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating i {
    color: #fbbf24;
    font-size: 11px;
}

.review-date {
    font-size: 11px;
    color: #6b6b6b;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.review-text {
    font-size: 12px;
    color: #6b6b6b;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
    font-family: 'Inter', sans-serif;
}

/* About Section */
.about-section {
    padding: 12px 0;
}

.about-section h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.about-section p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.detail-item:hover {
    background: #f0f0f0;
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.detail-item i {
    color: #6b6b6b;
    font-size: 14px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.detail-item span {
    font-size: 13px;
    color: #1a1a1a;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

.detail-item strong {
    color: #1a1a1a;
    font-weight: 600;
}

.room-size {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.room-size-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 600;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: none;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.room-size-item:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.room-size-item i {
    color: #6b6b6b;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Listing Features Section */
.listing-features {
    margin: 16px 0;
    padding: 12px 0;
    border-top: none;
    border-bottom: none;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05), 0 1px 0 rgba(0, 0, 0, 0.05);
}

.listing-features h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: none;
    transition: all 0.3s;
    font-size: 14px;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    background: #f0f0f0;
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.feature-item i {
    color: #6b6b6b;
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.feature-item span {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
}

.listing-map {
    margin: 12px 0;
}

.map-placeholder {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    display: block;
}

.map-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6b6b6b;
}

.map-fallback i {
    font-size: 32px;
    opacity: 0.5;
}

.map-fallback p {
    font-size: 12px;
    margin: 0;
}

.map-labels {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.map-label {
    font-size: 10px;
    color: #6b6b6b;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
}

.map-points {
    position: absolute;
    width: 100%;
    height: 100%;
}

.map-point {
    position: absolute;
    cursor: pointer;
}

.map-point i {
    color: #6b6b6b;
    font-size: 16px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.point-label {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.2s;
}

.map-point:hover .point-label {
    opacity: 1;
}

.listing-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: none;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* Action Buttons on Listing Cards - Luxury Enhanced */
.btn-contact,
.btn-schedule {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
    white-space: nowrap;
}

.btn-contact span,
.btn-schedule span {
    display: block;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-contact,
.btn-schedule {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.btn-contact::before,
.btn-schedule::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-contact:hover::before,
.btn-schedule:hover::before {
    left: 100%;
}

.btn-contact {
    background: #ffffff;
    color: #1a1a1a;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-contact:hover {
    background: #f8f9fa;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-schedule {
    background: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-schedule:hover {
    background: #2d2d2d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-contact i,
.btn-schedule i {
    transition: transform 0.3s;
    font-size: 12px;
}

.btn-contact:hover i,
.btn-schedule:hover i {
    transform: translateX(4px);
}

/* Compact Listing Styles - Luxury Enhanced */


.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1);
    cursor: pointer;
}

.listing-card:hover .listing-image img {
    transform: scale(1.12);
    filter: brightness(1.05);
}

.listing-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.listing-card:hover .listing-image::after {
    opacity: 1;
}

/* Listing Overlay */
.listing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.listing-card:hover .listing-overlay {
    opacity: 1;
}

/* View Details Button - Luxury Enhanced */
.view-details-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.view-details-btn:hover {
    background: #2d2d2d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.view-details-btn i {
    transition: transform 0.3s;
    font-size: 12px;
}

.view-details-btn:hover i {
    transform: translateX(4px);
}

.listing-location-small {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b6b6b;
    margin-top: 6px;
}

.listing-location-small i {
    color: #6b6b6b;
    font-size: 12px;
}

/* Wishlist Button on Listing Cards */
.wishlist-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1.5px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: auto !important;
}

.wishlist-btn * {
    pointer-events: none;
}

.wishlist-btn:hover {
    background: #f8f9fa;
    border-color: #DC2626;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.wishlist-btn i {
    font-size: 16px;
    color: #6b6b6b;
    transition: all 0.3s ease;
}

.wishlist-btn:hover i {
    color: #DC2626;
}

.wishlist-btn.active {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    border-color: #DC2626;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3), 0 0 0 4px rgba(220, 38, 38, 0.1);
    transform: scale(1.05);
}

.wishlist-btn.active i {
    color: #ffffff;
}

.wishlist-btn.active:hover {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4), 0 0 0 4px rgba(220, 38, 38, 0.15);
}

/* Pulse animation for wishlist button when added */
@keyframes wishlistPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.3);
    }
    100% {
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3), 0 0 0 4px rgba(220, 38, 38, 0.1);
    }
}

.wishlist-btn.animating {
    animation: wishlistPulse 0.5s ease-out;
}

.listing-rating {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(12px);
    padding: 8px 14px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.05);
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    font-family: 'Inter', sans-serif;
}

.listing-rating:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

.listing-rating i {
    color: #fbbf24;
    font-size: 12px;
}

.listing-info {
    padding: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.listing-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    font-family: 'Playfair Display', serif;
    transition: color 0.3s;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.listing-card:hover .listing-info h3 {
    color: #1a1a1a;
}

.listing-price-small {
    font-size: 16px;
    font-weight: 700;
    color: #d72f2f;
    font-family: 'Playfair Display', serif;
    margin-bottom: 8px;
    display: block;
}

/* Enhanced Listing Title */
/* Already updated above */

/* Enhanced Filter Checkboxes */
.filter-checkbox {
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s;
}

.filter-checkbox:hover {
    background: #f8f9fa;
}

.filter-checkbox.checked {
    background: #f8f9fa;
    font-weight: 600;
    color: #1a1a1a;
}

.filter-checkbox input[type="checkbox"]:checked {
    accent-color: #1a1a1a;
}

/* Enhanced Room Buttons */
.room-btn {
    transition: all 0.3s;
    font-weight: 600;
}

.room-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.room-btn.active {
    background: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced Add Room Button */
.add-room-btn {
    transition: all 0.3s;
    font-weight: 600;
}

.add-room-btn:hover {
    background: #f0f0f0;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Enhanced Price Slider */
.price-slider input[type="range"]::-webkit-slider-thumb {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 3px solid #ffffff;
}

.price-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Collapsed Sidebar */
.filter-sidebar.collapsed {
    width: 0;
    min-width: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    border: none;
    transition: all 0.3s ease;
}

.filter-sidebar.collapsed .filter-section,
.filter-sidebar.collapsed .filter-header h3,
.filter-sidebar.collapsed .filter-header::before {
    display: none;
}

/* Keep toggle button visible even when collapsed */
.filter-sidebar.collapsed .filter-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    margin: 0;
    border: none;
}

.filter-sidebar.collapsed .filter-toggle {
    display: flex;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .listings-container {
        grid-template-columns: 280px 1fr;
    }
    
    .search-fields {
        grid-template-columns: 1fr 1fr;
    }
    
    .search-submit-btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    .listings-container {
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }
}

@media (max-width: 968px) {
    .listings-container {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .filter-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 20px;
        min-width: 0;
        width: 100%;
    }

    .listing-card.expanded {
        grid-template-columns: 1fr;
    }

    .listing-images {
        min-height: 300px;
    }

    .main-image {
        height: auto;
    }

    .inset-images {
        height: auto;
    }
}

@media (max-width: 768px) {
    .listings-container {
        padding: 12px;
    }
}

/* ============================================
   COMPACT LISTING CARD STYLES
   ============================================ */
.listing-image-compact {
    position: relative;
}

.property-badge-compact {
    position: absolute;
    top: 12px;
    
    padding: 4px 12px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.property-badge-compact.status-ready-to-move {
    background: #10b981;
}

.property-badge-compact.status-new-launch {
    background: #dc2626;
}

.property-badge-compact.status-pre-launch {
    background: #f59e0b;
}

.property-badge-compact.status-available {
    background: #9333ea;
}

.property-badge-compact.status-default {
    background: #6b7280;
}

.rera-badge-compact {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    background: #c2185b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.wishlist-btn-compact {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.wishlist-btn-compact:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.wishlist-btn-compact i {
    color: #6b7280;
    font-size: 14px;
}

.wishlist-btn-compact.active i {
    color: #dc2626;
}

.listing-title-link {
    text-decoration: none;
    color: inherit;
}

.listing-title-compact {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-location-compact {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-location-icon {
    color: #dc2626;
    font-size: 12px;
}

.listing-developer-compact {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.listing-developer-icon {
    color: #9ca3af;
    font-size: 12px;
}

.property-details-compact {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.property-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-detail-icon {
    color: #9ca3af;
    font-size: 12px;
}

.property-price-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.price-compact {
    font-size: 18px;
    font-weight: 700;
    color: #dc2626;
}

.rera-badge-inline {
    color: #10b981;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.listing-action-buttons-compact {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-view-property-compact {
    flex: 1;
    padding: 10px 16px;
    background: #dc2626;
    color: white;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-view-property-compact:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-compare-compact {
    padding: 10px 14px;
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-compare-compact:hover {
    background: #e5e7eb;
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* Compare button – green when property is selected for comparison */
.btn-compare-compact.btn-compare-selected,
.btn-compare.btn-compare-selected {
    background: #2b49b5;
    color: #ffffff;
}

.btn-compare-compact.btn-compare-selected:hover,
.btn-compare.btn-compare-selected:hover {
    background: #2b49b5;
    color: #ffffff;
}

/* ============================================
   WISHLIST MODAL STYLES
   ============================================ */
.wishlist-empty-guide {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.wishlist-guide-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wishlist-guide-icon {
    color: #dc3545;
}

.wishlist-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.wishlist-guide-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.wishlist-guide-number {
    width: 40px;
    height: 40px;
    background: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    flex-shrink: 0;
}

.wishlist-guide-step-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.wishlist-guide-step-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.wishlist-heart-icon {
    color: #dc3545;
}

.wishlist-pro-tip {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #dc3545;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wishlist-pro-tip-icon {
    font-size: 1.5rem;
    color: #dc3545;
}

.wishlist-pro-tip-title {
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
}

.wishlist-pro-tip-text {
    color: #666;
    font-size: 0.95rem;
}

/* ============================================
   ADVANCED LEAD GENERATION FEATURES
   ============================================ */

/* Floating Lead Generation Buttons - Luxury Premium Design */
.floating-lead-buttons {
    position: fixed;
    right: calc(20px + env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #ffffff;
    position: relative;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.floating-btn i {
    font-size: 20px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.floating-btn span {
    display: none !important;
}

.floating-call i {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-whatsapp i {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-inquiry i {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-schedule i {
    background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-message i {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

.floating-call:hover i {
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-whatsapp:hover i {
    background: linear-gradient(135deg, #4DD865 0%, #25D366 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-inquiry:hover i {
    background: linear-gradient(135deg, #42A5F5 0%, #2196F3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-schedule:hover i {
    background: linear-gradient(135deg, #FF7043 0%, #FF5722 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-message:hover i {
    background: linear-gradient(135deg, #BA68C8 0%, #9C27B0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-btn:hover i {
    transform: scale(1.1);
}

.floating-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Lead Generation Modals - Matching Homepage Style */
.lead-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lead-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.lead-modal-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lead-modal-overlay.show .lead-modal-container {
    transform: scale(1) translateY(0);
}

.lead-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
    border-radius: 12px 12px 0 0;
}

.lead-modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lead-modal-header h3 i {
    font-size: 14px;
    color: #6b6b6b;
}

.lead-modal-header p {
    font-size: 13px;
    color: #6b6b6b;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin: 0;
}

.lead-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1a1a1a;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.lead-modal-close:hover {
    background: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    transform: rotate(90deg);
}

.lead-modal-close i {
    font-size: 14px;
}

.lead-modal-body {
    padding: 24px;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lead-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.lead-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lead-form label {
    font-size: 11px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.lead-form .required {
    color: #6b6b6b;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.5;
    width: 100%;
}

.lead-form textarea {
    resize: vertical;
    min-height: 80px;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.05);
}

.lead-form .checkbox-group {
    margin-top: 4px;
}

.lead-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    color: #1a1a1a;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.5;
}

.lead-form .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #1a1a1a;
    flex-shrink: 0;
}

/* Lead Form Submit Button - Matching Homepage btn-luxury */
.btn-lead-submit {
    width: 100%;
    background: #1a1a1a;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.04);
    font-family: 'Inter', sans-serif;
}

.btn-lead-submit:hover {
    background: #2d2d2d;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.1);
}

.btn-lead-submit i {
    transition: transform 0.3s;
    font-size: 12px;
}

.btn-lead-submit:hover i {
    transform: translateX(4px);
}

.form-privacy {
    text-align: center;
    font-size: 12px;
    color: #6b6b6b;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}

.form-privacy i {
    color: #1a1a1a;
    font-size: 12px;
}

/* Newsletter Popup (Exit Intent) */
.newsletter-popup {
    max-width: 500px;
}

/* Lead Generation Sidebar */
.lead-sidebar {
    position: fixed;
    right: -320px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 16px 0 0 16px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: right 0.4s;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-right: none;
    pointer-events: auto;
}

.lead-sidebar.active,
.lead-sidebar.open {
    right: 0;
}

.lead-sidebar-header {
    background: #1a1a1a;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 0 0 0;
}

.lead-sidebar-header h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Playfair Display', serif;
}

.lead-sidebar-header h4 i {
    font-size: 14px;
}

.lead-sidebar-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
}

.lead-sidebar-toggle i {
    pointer-events: none;
}

.lead-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lead-sidebar.active .lead-sidebar-toggle i,
.lead-sidebar.open .lead-sidebar-toggle i {
    transform: rotate(180deg);
}

.lead-sidebar-content {
    padding: 20px;
}

.lead-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 12px;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
    pointer-events: auto;
}

.lead-sidebar-item:hover {
    background: #e5e7eb;
    transform: translateX(-4px);
}

.lead-sidebar-item i {
    font-size: 16px;
    color: #6b6b6b;
    width: 24px;
    text-align: center;
}

.lead-sidebar-item strong {
    display: block;
    color: #3e3c3c;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.lead-sidebar-item a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.lead-sidebar-item a:hover {
    color: #6b6b6b;
}

.lead-sidebar-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: none;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.lead-sidebar-form h5 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
}

.lead-sidebar-form input {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 12px;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: rgba(26, 26, 26, 0.5);
    color: #ffffff;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.lead-sidebar-form input::placeholder {
    color: #666666;
}

.lead-sidebar-form input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.05);
}

/* Sidebar Submit Button - Matching Homepage Style */
.btn-sidebar-submit {
    width: 100%;
    background: #1a1a1a;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.btn-sidebar-submit:hover {
    background: #2d2d2d;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.1);
}

.btn-sidebar-submit i {
    transition: transform 0.3s;
    font-size: 12px;
}

.btn-sidebar-submit:hover i {
    transform: translateX(4px);
}

/* Lead Notifications */
.lead-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s;
    border-left: 4px solid #28a745;
}

.lead-notification.show {
    transform: translateX(0);
}

.lead-notification i {
    font-size: 16px;
    color: #28a745;
}

.lead-notification span {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.lead-notification-error {
    border-left-color: #1a1a1a;
}

.lead-notification-error i {
    color: #6b6b6b;
}

@media (max-width: 768px) {
    .listings-search-section {
        padding: 0px 0;
    }
    
    .advanced-search-card {
        padding: 24px;
    }
    
    .search-fields {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .search-header h3 {
        font-size: 18px;
    }
    
    .property-type-container {
        padding: 0 0px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
    }
    .property-price .price {
        font-size: 12px;
    }

    .property-type-container::-webkit-scrollbar {
        display: none;
    }
    
    .type-filter-btn {
        padding: 10px 20px;
        font-size: 13px;
        white-space: nowrap;
    }

    .listings-container {
        padding: 0px;
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 20px;
        display: none;
    }

    .listings-grid {
        /* grid-template-columns: 1fr; */
        display: flex !important;
        flex-direction: column;
    }

    .listing-card.expanded {
        grid-column: 1;
    }

    .listing-actions {
        flex-direction: row;
    }

    .listing-action-buttons {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .btn-view-property,
    .btn-compare {
        width: 50% !important;

    }
    .btn-view-property-compact {
        padding: 10px 10px;
        font-size: 12px;

    }

    .btn-contact,
    .btn-schedule {
        width: 60%;
    }

    /* Listings hero mobile: see responsive.css .focus-banner.listings-banner (matches home) */

    /* Mobile Lead Generation */
    .floating-lead-buttons {
        left: calc(12px + env(safe-area-inset-left, 0px));
        right: auto;
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        gap: 8px;
    }
    
    .floating-btn {
        width: 44px;
        height: 44px;
        font-size: 10px;
    }
    
    .floating-btn i {
        font-size: 18px;
    }

    .lead-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .lead-sidebar.open {
        right: 0;
        width: 100%;
    }
    .listing-price .price-text {
        font-size: 18px;
    }

}

/* Extra Small Devices (phones in portrait, 320px-479px) */
@media (max-width: 479px) {
    /* Listings hero: responsive.css .focus-banner.listings-banner @ 479px */

    .advanced-search-card {
        padding: 16px;
    }

    .type-filter-btn {
        padding: 8px 14px;
        font-size: 12px;
        min-width: 80px;
    }

    .listing-card.expanded {
        padding: 16px;
    }

    .listing-tabs {
        gap: 8px;
    }

    .listing-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .floating-btn span {
        display: none;
    }
    
    .btn-contact,
    .btn-schedule {
        padding: 0px 20px;
        font-size: 10px;
    }
    
    .lead-modal-container {
        max-width: 100%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .lead-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .lead-sidebar {
        width: 280px;
        right: -280px;
    }
}

