/* =========================================
   LUMINA PROPERTIES - INDEX PAGE STYLES
   Production Ready - No Errors
   ========================================= */

/* 1. NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-light);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Refined Logo */
.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    line-height: 1;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.8);
    margin-top: 2px;
    transition: color var(--transition-fast);
}

.navbar.scrolled .logo-text {
    color: var(--text-primary);
}

.navbar.scrolled .logo-sub {
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.navbar.scrolled .nav-link {
    color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-light);
}

.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-auth-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-light);
}

.navbar.scrolled .nav-auth-btn {
    background: var(--bg-dark);
    border-color: var(--bg-dark);
    color: var(--text-light);
}

.nav-auth-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: var(--text-light);
}

.navbar.scrolled .nav-auth-btn:hover {
    background: #000000;
    border-color: #000000;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.navbar.scrolled .hamburger span {
    background: var(--text-primary);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 2. HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.3) 0%, rgba(17, 17, 17, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin: 0 auto 48px;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Refined Hero Search Bar */
.hero-search {
    background: var(--bg-primary);
    padding: 10px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-xl);
    max-width: 900px;
    margin: 0 auto;
}

.hero-search .search-field {
    flex: 1;
    padding: 12px 20px;
    text-align: left;
}

.hero-search label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

/* Custom Select Wrapper */
.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.hero-search .form-input {
    border: none;
    padding: 4px 24px 4px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: transparent;
    width: 100%;
    cursor: pointer;
    appearance: none; /* Removes default browser arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
}

.hero-search .form-input:focus {
    box-shadow: none;
    color: var(--text-primary);
}

.select-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    pointer-events: none;
}

.search-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

.search-btn {
    background: var(--bg-dark);
    color: var(--text-light);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-left: 10px;
}

.search-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: scale(1.05);
}

/* 3. DESTINATIONS SECTION */
.destinations-section {
    padding: 120px 0;
    background: var(--bg-primary);
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 300px 300px;
    gap: 20px;
}

.destination-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.destination-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.destination-card:hover img {
    transform: scale(1.05);
}

.destination-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--text-light);
}

.destination-overlay h3 {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.destination-overlay span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 4. PROPERTIES SECTION (ZILLOW GRID) */
.properties-section {
    padding: 100px 0 120px;
    background: var(--bg-secondary);
}

/* Filter Chips */
.filter-chip {
    padding: 10px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-chip:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.filter-chip.active {
    background: var(--bg-dark);
    border-color: var(--bg-dark);
    color: var(--text-light);
}

/* Property Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

/* Property Card */
.property-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    position: relative;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.property-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image {
    transform: scale(1.04);
}

.property-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.favorite-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-primary);
    font-size: 1.1rem;
    border: none;
}

.favorite-btn:hover {
    background: var(--bg-primary);
    transform: scale(1.1);
}

.favorite-btn.active {
    color: #E0245E;
}

.property-details {
    padding: 24px;
}

.property-price {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.property-title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.property-address {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.property-features {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.feature i {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.property-card .btn {
    width: 100%;
    margin-top: 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.property-card .btn:hover {
    background: var(--bg-dark);
    color: var(--text-light);
    border-color: var(--bg-dark);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* 5. FOOTER */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-dark);
}

.footer-brand .logo-text {
    color: var(--text-light);
}

.footer-brand .logo-sub {
    color: var(--text-muted);
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
    max-width: 350px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted);
}

.footer-legal a:hover {
    color: var(--text-light);
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE FIXES)
   ========================================= */
@media (max-width: 1024px) {
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .destination-card.large {
        grid-column: span 2;
        grid-row: span 1;
        height: 400px;
    }
    .destination-card {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Premium Mobile Hamburger Button */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px !important;
        height: 44px !important;
        background: var(--bg-dark) !important;
        border-radius: 8px !important;
        padding: 0 !important;
        position: relative;
        z-index: 1001;
        border: none !important;
        cursor: pointer;
    }
    
    .hamburger span {
        display: block;
        width: 20px !important;
        height: 2px !important;
        background: var(--text-light) !important;
        margin: 0 !important;
        position: absolute;
        transition: all 0.3s ease !important;
    }
    
    .hamburger span:nth-child(1) { top: 14px !important; }
    .hamburger span:nth-child(2) { top: 21px !important; }
    .hamburger span:nth-child(3) { top: 28px !important; }
    
    .hamburger.active span:nth-child(1) {
        top: 21px !important;
        transform: rotate(45deg) !important;
    }
    .hamburger.active span:nth-child(2) { opacity: 0 !important; }
    .hamburger.active span:nth-child(3) {
        top: 21px !important;
        transform: rotate(-45deg) !important;
    }

    /* Slide-in Menu from Right */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto !important;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 32px 32px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links .nav-link {
        color: var(--text-primary);
        font-size: 1.05rem;
        padding: 18px 0;
        border-bottom: 1px solid var(--border-light);
        width: 100%;
    }

    .nav-links .nav-link:hover {
        color: var(--accent);
    }

    /* Force Sign In Button to Show */
    .nav-auth-btn, .nav-auth-btn.mobile-signin {
        display: block !important;
        width: 100% !important;
        margin-top: 24px !important;
        padding: 14px 24px !important;
        text-align: center;
    }

    /* Mobile Menu Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Hero Mobile */
    .hero {
        min-height: 700px;
    }

    .hero-search {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-radius: var(--radius-lg);
    }

    .hero-search .search-field {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-light);
    }

    .hero-search .search-field:last-of-type {
        border-bottom: none;
    }

    .search-divider {
        display: none;
    }

    .search-btn {
        width: 100%;
        height: 50px;
        border-radius: var(--radius-md);
        margin-left: 0;
        margin-top: 10px;
    }

    /* Destinations Mobile */
    .destinations-section {
        padding: 80px 0;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
    }

    .destination-card.large {
        grid-column: span 1;
        height: 300px;
    }

    /* Properties Mobile */
    .properties-section {
        padding: 60px 0 80px;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Footer Mobile */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        padding: 16px;
    }
}