/* --- Global Layout --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: 'Inter', sans-serif; color: #333; line-height: 1.6; display: flex; flex-direction: column; background-color: #fff; }
.content-wrapper { flex: 1 0 auto; }
footer { flex-shrink: 0; background-color: #1a1a1a; color: #f1f1f1; padding: 50px 8% 30px; }

:root {
    --brand-blue: #2A5C9A;
    --rent-green: #4CAF50;
    --buy-orange: #FF5722;
}

.brand-text { font-weight: 700; color: inherit; }

/* Ensure transitions are smooth for all interactive elements */
a, button, .app-btn, .btn-light-brand, .download-nav-btn, .property-card {
    transition: all 0.3s ease;
}

/* ========================================= */
/* --- GLOBAL HOVER EFFECTS (The Orange Pop) --- */
/* ========================================= */

/* 1. Text & Icon Links (Turns Orange) */
/* Added :not(.download-nav-btn) so it doesn't break the button's white text */
nav#nav-menu a:not(.download-nav-btn):hover,
.social-links a:hover,
.footer-links a:hover,
.footer-bottom a:hover,
.contact-info-box a:hover,
.read-more-link:hover,
.wishlist-btn:hover {
    color: var(--buy-orange) !important;
}

/* 2. Buttons (Background turns Orange + Lifts up slightly + White text) */
nav#nav-menu a.download-nav-btn:hover,
.app-btn:hover,
.btn-light-brand:hover {
    background: var(--buy-orange) !important;
    color: #fff !important; 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 87, 34, 0.3); /* Adds a soft orange glow */
}

/* --- Navbar --- */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 2%; 
    background: #fff; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    height: 100px;
}
.logo-img { height: 85px; width: auto; display: block; }

.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--brand-blue);
}

nav#nav-menu ul { display: flex; list-style: none; gap: 25px; align-items: center; }
nav#nav-menu a { text-decoration: none; color: #555; font-weight: 600; font-size: 14px; }
.download-nav-btn { background: var(--rent-green); color: #fff !important; padding: 10px 22px; border-radius: 8px; }

/* --- Standard Hero Section (Desktop) --- */
.hero { 
    height: 60vh; 
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?q=80&w=2000'); 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: #fff; 
    padding: 20px; 
}
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 10px; }
.app-btn { background: #000; color: #fff; padding: 14px 28px; text-decoration: none; border-radius: 10px; margin: 10px; font-weight: 700; display: inline-block; }

/* --- Video Hero Section Styles (About Us) --- */
.video-hero {
    position: relative;
    height: 40vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}
.hero-content h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 10px; }
.hero-content p { font-size: 1.2rem; }

/* --- About Us Text Content (Desktop) --- */
.about-text-content { padding: 80px 15%; background-color: #fff; }
.about-text-content h2 { color: var(--brand-blue); font-size: 2.2rem; margin: 40px 0 20px; }
.about-text-content h3 { color: #333; font-size: 1.5rem; margin: 30px 0 15px; }
.about-text-content p { font-size: 1.1rem; color: #555; margin-bottom: 20px; line-height: 1.8; }
.about-text-content ul { margin: 0 0 30px 40px; }
.about-text-content li { font-size: 1.1rem; color: #555; margin-bottom: 10px; }

.contact-info-box {
    background-color: #f4f7f6;
    padding: 40px;
    border-radius: 20px;
    margin-top: 60px;
    border-left: 5px solid var(--brand-blue);
}
.contact-info-box a { color: var(--brand-blue); text-decoration: none; font-weight: 600; }

/* --- Marketplace --- */
.marketplace { padding: 80px 8%; background-color: #f9f9f9; }
.section-header { text-align: center; margin-bottom: 60px; }
.listings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 35px; }
.property-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); cursor: pointer; }
.property-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.img-container { position: relative; height: 250px; background-color: #eee; }
.img-container img { width: 100%; height: 100%; object-fit: cover; }
.status-tag { position: absolute; bottom: 15px; left: 15px; padding: 6px 12px; color: #fff; font-weight: 700; font-size: 11px; border-radius: 6px; }
.rent { background: var(--rent-green); }
.buy { background: var(--buy-orange); }
.verified-tag { position: absolute; top: 15px; left: 15px; background: var(--brand-blue); color: #fff; padding: 6px 12px; font-size: 11px; font-weight: 700; border-radius: 6px; }
.wishlist-btn { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.8); border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer;}
.property-info { padding: 25px; }
.property-info h3 { font-size: 24px; margin-bottom: 5px; }

/* --- Mockup Section (Desktop) --- */
.app-mockup-section { padding: 100px 8%; background: #fff; }
.mockup-container { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 50px; }
.mockup-text { max-width: 500px; }
.mockup-text h2 { font-size: 3rem; color: var(--brand-blue); margin-bottom: 20px; }
.qr-area { margin-top: 20px; }
.qr-area img { width: 140px; border-radius: 10px; margin-bottom: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.phone-mockup { width: 320px; border-radius: 40px; border: 8px solid #333; box-shadow: 0 40px 80px rgba(0,0,0,0.2); }

/* --- Landlord Section --- */
.landlord-section { padding: 100px 8%; background-color: var(--brand-blue); color: #fff; text-align: center; }
.btn-light-brand { display: inline-block; background: #fff; color: var(--brand-blue); padding: 16px 45px; border-radius: 12px; text-decoration: none; font-weight: 700; margin-top: 25px; }

/* --- Footer --- */
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #333; }
.footer-logo { height: 75px; width: auto; margin-bottom: 20px; display: block; }
.footer-col h3 { font-size: 18px; margin-bottom: 20px; color: #fff; }
.footer-col p { font-size: 14px; color: #bbb; }
.social-links { display: flex; gap: 20px; margin-bottom: 30px; }
.social-links a { color: #fff; font-size: 28px; }
.footer-bottom { text-align: center; padding-top: 30px; color: #666; font-size: 13px; }

/* ========================================= */
/* --- MOBILE RESPONSIVE FIXES (Max 768px) --- */
/* ========================================= */
@media screen and (max-width: 768px) {
    .navbar { padding: 10px 5%; height: 75px; }
    .logo-img { height: 45px; }
    .hamburger { display: block !important; }

    nav#nav-menu {
        display: none; 
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    nav#nav-menu.active { display: block !important; }
    nav#nav-menu ul { flex-direction: column !important; gap: 0 !important; }
    nav#nav-menu ul li { width: 100%; text-align: center; border-bottom: 1px solid #eee; }
    nav#nav-menu a { padding: 15px; font-size: 16px; display: block; }

    /* Standard Hero Fixes */
    .hero { height: 55vh !important; padding-top: 20px !important; }
    .hero h1 { font-size: 1.9rem !important; line-height: 1.2; }

    /* Video Hero Fixes */
    .video-hero { height: 50vh !important; padding: 0 20px; }
    .video-hero .hero-content h1 { font-size: 2rem !important; }
    .video-hero .hero-content p { font-size: 1rem !important; }

    .cta-buttons { display: flex; flex-direction: column; align-items: center; gap: 8px; }
    .app-btn { width: 85%; margin: 5px 0; }

    /* --- SIDE-BY-SIDE MOBILE APP MOCKUP FIX --- */
    .mockup-container { 
        display: flex; 
        flex-direction: row; 
        align-items: center; 
        justify-content: space-between;
        gap: 15px; 
        padding: 40px 10px; 
    }
    .mockup-text {
        flex: 1; 
        text-align: left; 
    }
    .mockup-text h2 { font-size: 1.4rem !important; margin-bottom: 10px; line-height: 1.2; }
    .mockup-text p { font-size: 0.9rem; margin-bottom: 15px; }
    .qr-area { 
        display: flex; 
        flex-direction: column; 
        align-items: flex-start; 
        margin-top: 10px; 
    }
    .qr-area img { width: 80px; margin-bottom: 5px; }
    .qr-area p { font-size: 0.8rem; margin: 0; }
    .mockup-image {
        flex: 1; 
        display: flex;
        justify-content: flex-end; 
    }
    .phone-mockup { 
        width: 100%; 
        max-width: 160px; 
        border-radius: 20px; 
        border: 4px solid #333; 
        margin: 0;
    }

    /* --- SIDE-BY-SIDE MOBILE LISTINGS FIX --- */
    .marketplace { padding: 40px 10px; }
    .section-header { margin-bottom: 30px; }
    
    .listings-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 5px;
    }

    .property-card { border-radius: 12px; }
    .img-container { height: 140px !important; }
    
    .property-info { padding: 12px !important; }
    .property-info h3 { font-size: 16px !important; margin-bottom: 4px; }
    
    .property-info .title { 
        font-size: 12px !important; 
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis; 
    }
    
    .property-info .location { font-size: 11px !important; }
    .status-tag, .verified-tag { font-size: 9px !important; padding: 4px 8px !important; }
    .wishlist-btn { width: 30px; height: 30px; top: 10px; right: 10px; font-size: 12px; }

    /* --- ABOUT US MOBILE OPTIMIZATION --- */
    .about-text-content { padding: 30px 20px !important; }
    .about-text-content h2 { font-size: 1.6rem !important; margin-top: 30px !important; line-height: 1.3; }
    .about-text-content h3 { font-size: 1.3rem !important; margin-top: 20px !important; }
    .about-text-content p { font-size: 1rem !important; line-height: 1.7 !important; margin-bottom: 15px !important; color: #444; }
    .about-text-content ul { margin-left: 15px !important; margin-bottom: 20px !important; }
    .about-text-content li { font-size: 1rem !important; margin-bottom: 10px !important; }
    .contact-info-box { padding: 25px 20px !important; margin-top: 40px !important; border-radius: 15px !important; }
}