:root {
        --primary-gold: #c5a059; /* A sophisticated gold accent */
        --dark-slate: #1a1a1a;
        --light-gray: #f8f9fa;
    }

    body { font-family: 'Inter', sans-serif; color: var(--dark-slate); }

    h1, h2, h3, .luxury-title { font-family: 'Playfair Display', serif; }

    .display-3 {
        font-family: FreightDisplayProBook;
            font-size: 62px;
            letter-spacing: 1.35px;
            line-height: 52px;
            margin-bottom: 30px;
            text-transform:Capitalize;
    }

    /* 1. Cinematic Hero Overlay */
    .hero-caption {
        background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 2. Glassmorphic Search Bar (Quick Modern Look) */
    .search-container {
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        transform: translateY(-50%); /* Pulls it up into the hero image */
        z-index: 10;
    }

    /* 3. The Property Card "Competitive Advantage" Design */
    .property-card {
        border: none;
        /* border-radius: 12px; */
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        background: #fff;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

    /*Desktop grid alignment */
    #properties .row {
        margin-right: 0;
        margin-left: 0;
    }

    /* Make hit-zones visible on hover */
    .gallery-nav-zone::after {
    content: '\f053'; /* Left Arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    }

    .property-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }

    .property-card img {
    /* height: 240px; */
    aspect-ratio: 16 / 9;
    width: 100%;
    transition: transform 0.5s ease;
}

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

    .card-badge {
        position: absolute;
        top: 15px;
        left: 15px;
        background: var(--primary-gold);
        color: white;
        padding: 5px 12px;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .property-price {
        font-size: 1.25rem;
        color: var(--primary-gold);
        font-weight: 600;
    }

    .property-meta {
        font-size: 0.85rem;
        color: #6c757d;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }

    /* Golden Luxury "View All" Button */
    .btn-view-all {
    background-color: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 14px 45px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    }

    .btn-view-all:hover {
        background-color: var(--primary-gold);
        color: #fff !important;
        box-shadow: 0 10px 25px rgba(197, 160, 89, 0.3);
        transform: translateY(-5px);
    }

    .btn-view-all i {
        transition: transform 0.3s ease;
    }

    .btn-view-all:hover i {
        transform: translateX(8px);
    } /* <--- THIS WAS THE MISSING BRACE */

    .search-bar-wrapper {
    position: relative;
    z-index: 1020; /* High enough to sit over hero slides */
    margin-top: -120px; /* Pulls it UP over the hero on Desktop */
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
    }

    .bg-dark-card {
        background-color: rgba(0, 3, 5, 0.98) !important; /* Increased opacity for visibility */
        backdrop-filter: blur(15px);
        border: 1px solid rgba(197, 160, 89, 0.2) !important; /* Subtle gold border */
    }

    /* Fix for Mobile/Small Displays */
    @media (max-width: 991.98px) {
    .search-bar-wrapper {
        margin-top: -40px !important; /* Slight overlap on mobile for better UX */
        padding: 0 20px;
    }
    
    .bg-dark-card {
        background-color: #000305 !important; /* Solid black on mobile to prevent bleed */
        margin-bottom: 20px;
    }

    .hero-slide {
        height: 60vh !important; /* Slightly shorter hero on mobile to keep search visible */
    }
    }
    .gallery-nav-zone {
        position: absolute; top: 0; height: 100%; width: 40%; z-index: 5;
        cursor: pointer;
    }
    /* Fix: Anchor the zones to the extreme left and right */
    .prev-zone { left: 0; }
    .next-zone { right: 0; }

    .next-zone::after { content: '\f054'; right: 10px; }
    .prev-zone::after { content: '\f053'; left: 10px; }

    /* Show arrows when hovering over the card */
    .property-card:hover .gallery-nav-zone::after {
        opacity: 0.8;
    }

    /* Dots Styling */
    .dot {
        width: 6px;
        height: 6px;
        background: rgba(255, 255, 255, 0.4);
        border-radius: 50%;
        transition: all 0.3s;
    }
    .dot.active {
        background: white;
        width: 15px;
        border-radius: 10px;
    }

    .video-badge-home {
        position: absolute; top: 12px; right: 12px;
        background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px);
        color: white; padding: 4px 10px; border-radius: 4px;
        font-size: 11px; font-weight: bold; z-index: 6; cursor: pointer;
    }

    .listing-img { transition: opacity 0.2s ease-in-out; /* Faster transition for snappiness */
        will-change: opacity;
    } 

    /* 1. Prevent "White Flash" Flicker */
    .property-card .position-relative {
        background-color: #f8f9fa; /* Matches the page background */
    }
        .photo-dots-container {
        position: absolute; bottom: 10px; width: 100%;
        display: flex; justify-content: center; gap: 4px; z-index: 5;
    }
    .dot { width: 6px; height: 6px; background: rgba(255,255,255,0.5); border-radius: 50%; }
    .dot.active { background: #fff; width: 12px; border-radius: 10px; }
    
    /* Badges */
    .badge-available { background: var(--primary-gold); color: white; position: absolute; top: 15px; left: 15px; padding: 6px 12px; font-weight: bold; font-size: 12px; }
    .video-btn-tab { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.7); color: white; padding: 6px 12px; border-radius: 4px; font-size: 12px; }
    .photo-count-tag { position: absolute; bottom: 15px; right: 15px; background: rgba(0,0,0,0.6); color: white; padding: 4px 10px; font-size: 11px; border-radius: 20px; }