
        #map-container {
            height: 490px;
            width: 100%;
            border-radius: var(--radius-lg);
            margin-bottom: 40px;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--c-border);
            position: relative;
            z-index: 1;
        }
        #prop-map {
            width: 100%;
            height: 100%;
        }

/* Premium Page Header */
.properties-page-header {
    padding: 80px 0 50px;
    position: relative;
    overflow: hidden;
    background: #fafafb;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.properties-page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.98) 6%, rgba(255, 255, 255, 0.9) 42%, rgba(255, 248, 249, 0.84) 100%),
        radial-gradient(circle at top right, rgba(192, 10, 39, 0.16), transparent 28%),
        radial-gradient(circle at left center, rgba(15, 23, 42, 0.04), transparent 34%);
    pointer-events: none;
    z-index: 0;
}

.properties-page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.8) 38%, rgba(255, 255, 255, 0.38) 100%),
        url("../images/heroimages/hero_index.png") right center / cover no-repeat;
    opacity: 0.34;
    mix-blend-mode: normal;
    pointer-events: none;
    z-index: 0;
}

.properties-page-header .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 14px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
    color: var(--c-accent-hover);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-title-glossy {
    margin: 0 0 10px;
    color: var(--c-primary) !important;
    font-size: clamp(2.75rem, 5.4vw, 4.35rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 18px 42px rgba(192, 10, 39, 0.16);
    background: none;
    -webkit-text-fill-color: initial;
}

.page-copy-glossy {
    margin: 0 auto 22px;
    color: #475467 !important;
    max-width: 820px;
    font-size: 1.12rem;
    line-height: 1.88;
    text-align: justify;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 11px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--c-border-soft);
    box-shadow: var(--shadow-sm);
    color: var(--c-text);
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform var(--t-smooth), box-shadow var(--t-smooth);
}

.hero-pill:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.3);
}

.hero-pill i {
    width: 16px;
    height: 16px;
    color: var(--c-accent);
}

/* Premium Filter Bar */
.filter-box {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    transition: all var(--t-fast);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) inset;
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
}

.filter-box:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: var(--shadow-sm);
}

.filter-box:focus-within {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 4px var(--c-accent-soft);
}

.filter-box i {
    width: 16px;
    height: 16px;
    color: var(--c-primary);
    margin-right: 10px;
    flex-shrink: 0;
    opacity: 0.8;
}

.filter-select-clean {
    border: none !important;
    background: transparent !important;
    width: 100%;
    height: 100%;
    font-size: 0.88rem;
    color: var(--c-text);
    outline: none;
    padding: 0 20px 0 0 !important;
    cursor: pointer;
    box-sizing: border-box;
    line-height: normal;
}

.filter-shell-premium {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 24px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-row {
    display: grid;
    gap: 12px;
    align-items: center;
}

/* Row 1: Post By | Intent (2 cols) */
.filter-row:nth-child(1) {
    grid-template-columns: 1fr 1fr;
}

/* Row 2: State | City | Zone | Locality (4 cols) */
.filter-row:nth-child(2) {
    grid-template-columns: repeat(4, 1fr);
}

/* Row 3: Category | Builders | Price Group (3 groups) */
.filter-row:nth-child(3) {
    grid-template-columns: 1fr 1fr 1.5fr;
}

.filter-grid-collapse {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.c2p-catalog-search {
    grid-column: span 3;
    margin-bottom: 0;
}

.catalog-budget-group {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

@media (max-width: 1200px) {
    .filter-shell-premium {
        grid-template-columns: repeat(3, 1fr);
    }
    .c2p-catalog-search { grid-column: span 3; }
    #filter-builder { grid-column: span 1; }
    .catalog-budget-group { grid-column: span 2; }
}

@media (max-width: 900px) {
    .filter-shell-premium {
        grid-template-columns: 1fr;
    }
    .c2p-catalog-search { grid-column: span 1; }
    .filter-grid-collapse {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .catalog-budget-group { grid-column: span 2; }
}

/* AI Promo Banner */
.ai-promo-banner {
    position: relative;
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 24px 32px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    z-index: 2;
}

.ai-promo-bg-glow {
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-xl) + 2px);
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 20%, #A1C4FD 50%, #C2E9FB 80%, #96E6A1 100%);
    z-index: -1;
    opacity: 0.7;
    animation: gradientSpin 8s linear infinite;
    background-size: 300% 300%;
}

@keyframes gradientSpin {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ai-promo-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ai-mode-badge {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    background-clip: padding-box;
    position: relative;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.ai-mode-badge::before {
    content: "";
    position: absolute;
    inset: -1.5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #FF9A9E, #A1C4FD, #96E6A1);
    z-index: -1;
}

.ai-mode-icon-wrapper {
    position: relative;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-search-icon {
    width: 24px;
    height: 24px;
    color: #4b5563;
    stroke-width: 2.5;
}

.ai-sparkle-icon {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    color: #3b82f6;
    fill: #3b82f6;
    animation: sparklePulse 2s infinite ease-in-out;
}

@keyframes sparklePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.ai-mode-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: -0.01em;
}

.ai-promo-text h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    color: #111827;
    font-weight: 700;
}

.ai-promo-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
    max-width: 500px;
    text-align: justify;
}

.btn-ai-action {
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    color: #fff;
    border: none;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.15);
    white-space: nowrap;
    padding: 12px 24px;
    font-weight: 600;
}

.btn-ai-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.2);
}

@media (max-width: 900px) {
    .ai-promo-banner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 24px;
    }
    
    .ai-promo-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .ai-promo-action {
        width: 100%;
    }
    
    .btn-ai-action {
        width: 100%;
    }
}
/* -----------------------------------
   MAP FULLSCREEN FUNCTIONALITY
--------------------------------------*/
#map-container.map-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    z-index: 9999 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
}

.leaflet-control-fullscreen {
    background-color: #fff;
    border: 2px solid rgba(0,0,0,0.2);
    background-clip: padding-box;
    border-radius: 4px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.leaflet-control-fullscreen:hover {
    background-color: #f4f4f4;
}

.leaflet-control-fullscreen svg {
    width: 18px;
    height: 18px;
    color: #333;
}
