/* ========================================= */
/* ALL MOBILE RESPONSIVE RULES (Max 768px)   */
/* ========================================= */
@media screen and (max-width: 768px) {
    
    
    /* 🚨 1. NAVIGATION BAR FIXES 🚨 */
    header.glass nav {
        position: static !important;
        transform: none !important;
        left: auto !important;
    }
    
    .nav-links {
        position: fixed !important; 
        right: 0px !important; 
        left: auto !important; 
        height: 100vh !important; 
        top: 65px !important; 
        display: flex !important; 
        flex-direction: column !important; 
        align-items: center !important; 
        width: 100% !important;
        z-index: 9998 !important;
        
        transform: translateX(100%) !important; 
        transition: transform 0.4s ease-in-out !important;
        
        background: rgba(12, 13, 15, 0.98) !important; 
        backdrop-filter: blur(25px) !important; 
        padding-top: 40px !important; 
    }
    
    .nav-links li { margin: 15px 0; width: 70%; }
    .nav-links a { display: block; padding: 15px 20px; background: rgba(255, 255, 255, 0.02); border-radius: 4px !important; text-align: center; }
    
    .nav-links.nav-active { transform: translateX(0%) !important; }
    
    .burger { display: block; }
    .search-bar { right: 0; width: 100%; justify-content: center; }
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    /* 🚨 2. HERO SECTION (USING DEDICATED Mhome.webp) 🚨 */
    .hero {
        height: 100vh !important; 
        width: 100% !important;
        padding-top: 80px !important;
        
        /* 🚨 THE FIX: Pulls Mhome.webp and perfectly covers the phone screen! 🚨 */
        background: linear-gradient(rgba(12, 13, 15, 0.6), rgba(12, 13, 15, 0.8)), 
                    url('../images/Mhome.webp') no-repeat center center !important;
        background-size: cover !important; 
        
        background-attachment: scroll !important; 
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    .hero-logo { max-width: 180px !important; } 
    .hero h2 { font-size: 1.8rem !important; } 
    .hero-buttons .cta-button { 
        width: 100% !important; 
        padding: 14px !important; 
        font-size: 1rem !important;
    }

    /* 🚨 3. BOXES (ABOUT, SHOWCASE, DESCRIPTION) 🚨 */
    .about-box, .property-showcase-box, .description-box {
        width: 92vw !important; 
        margin-left: calc(50% - 46vw) !important;
        padding: 30px 20px !important; 
        border-radius: 4px !important; 
    }

    /* 🚨 4. SHOWCASE BOX & BUTTONS LOGIC 🚨 */
    .property-showcase-box { 
        height: 300px !important; 
        aspect-ratio: auto !important; 
        background-position: center !important; 
        margin-bottom: 140px !important; 
        display: flex !important; 
        flex-direction: column !important;
        justify-content: flex-end !important; 
        overflow: visible !important; 
    }

    .showcase-buttons { 
        display: grid !important; 
        grid-template-columns: 1fr 1fr !important; 
        gap: 10px !important; 
        position: absolute !important; 
        bottom: -110px !important; 
        left: 0 !important;
        width: 100% !important;
    }

    .showcase-buttons .glass-btn {
        padding: 12px 5px !important;
        font-size: 0.85rem !important; 
        border-radius: 4px !important;
    }

    .description-box h3 { font-size: 1.3rem !important; }
    .description-box p { font-size: 1rem !important; }

    /* 🚨 5. DESTINATIONS / CITY BUTTONS 🚨 */
    .city-buttons-container {
        flex-direction: column !important; 
        align-items: center !important;
        gap: 15px !important;
    }
    .city-btn {
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
        border-radius: 4px !important;
    }
    
    /* 🚨 6. FOOTER / GET IN TOUCH SECTION POLISH 🚨 */
    .social-buttons {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .social-btn {
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
        padding: 14px 20px !important;
        border-radius: 4px !important;
        font-size: 1.1rem !important;
        display: flex !important;
        justify-content: center !important; 
        align-items: center !important;
        gap: 12px !important; 
    }

    /* 🚨 7. PROPERTIES GRID OVERRIDES (Kirkuk/Dubai pages) 🚨 */
    .list-row { flex-direction: column; align-items: flex-start; padding: 20px 0; }
    .list-img {
        width: 100%; height: 150px; margin-right: 0; margin-bottom: 15px;
        background-size: contain !important; background-repeat: no-repeat !important; border-radius: 4px !important;
    }
    .list-body { flex-direction: column; align-items: flex-start; width: 100%; }
    .list-action { align-items: flex-start; margin-top: 15px; width: 100%; }
    .list-action .cta-button { width: 100%; text-align: center; }
}

/* ========================================= */
/* ABOUT SECTION SCROLL ANIMATION (MOBILE)   */
/* ========================================= */

@media screen and (max-width: 768px) {
    #about .section-title {
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.8s ease-out;
    }

    #about .about-box {
        opacity: 0;
        transform: translateY(-50px);
        transition: all 0.8s ease-out;
        position: relative;
        padding-bottom: 60px !important; 
        overflow: hidden; 
    }

    #about.animate-now .about-box {
        opacity: 1;
        transform: translateY(0);
        animation: zoomInOnce 0.8s ease-out forwards;
        animation-delay: 0.8s;
    }

    .para-1 { display: block; animation: quickFadeIn 0.4s ease; font-size: 15px; line-height: 1.6; margin: 0; text-align: center; }
    .para-2 { display: none; animation: quickFadeIn 0.4s ease; font-size: 15px; line-height: 1.6; margin: 0; text-align: center; }

    .about-box.show-para-2 .para-1 { display: none; }
    .about-box.show-para-2 .para-2 { display: block; }

    @keyframes quickFadeIn {
        from { opacity: 0; transform: translateY(5px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .toggle-text-btn {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;
        background: rgba(211, 84, 0, 0.05); 
        border: none;
        border-top: 1px solid rgba(211, 84, 0, 0.15); 
        color: #D35400; 
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 0; 
        border-radius: 0 0 4px 4px !important;
    }

    .toggle-text-btn svg { transition: transform 0.4s ease; }
    .about-box.show-para-2 .toggle-text-btn svg { transform: rotate(180deg); }
    
    #about.animate-now .section-title { opacity: 1; transform: translateY(0); }
    #about.animate-now .about-box p:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
    #about.animate-now .about-box p:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.9s; }

    @keyframes zoomInOnce {
        0% { transform: translateY(0) scale(1); }
        100% { transform: translateY(0) scale(1.02); } 
    }
}
/* ========================================= */
/* FIX: UNSQUEEZE BOX IMAGES ON MOBILE       */
/* ========================================= */
@media screen and (max-width: 768px) {
    
    /* Reverts back to 'cover' so the images don't look squished on tall phones */
    .about-box {
        background-size: cover !important;
        background-position: center !important;
    }
    
    .property-showcase-box {
        background-size: cover !important;
        background-position: center !important;
    }
}
/* ========================================= */
/* FIX: MOBILE SCREENS (Tablets & Normal Phones) */
/* ========================================= */
@media screen and (max-width: 768px) {
    
    .about-box, .description-box {
        aspect-ratio: auto !important;
        height: auto !important;
        width: 100% !important; 
        margin: 0 auto 30px auto !important; 
        padding: 40px 20px !important;
        box-sizing: border-box !important;
    }

    /* 🚨 THE SEPARATION FIX 🚨 */
    .property-showcase-box {
        aspect-ratio: auto !important;
        height: 300px !important; /* Keeps the picture tall and clear */
        width: 100% !important; 
        
        /* 🚨 Massive 140px margin pushes the Description Box far away! 🚨 */
        margin: 0 auto 140px auto !important; 
        padding: 20px !important;
        box-sizing: border-box !important;
        
        /* Allows the buttons to fall outside the bottom of the picture */
        overflow: visible !important; 
    }
    
    /* 🚨 THE BUTTON GRID FIX 🚨 */
    .showcase-buttons {
        position: absolute !important;
        bottom: -110px !important; /* Drops them completely out of the picture */
        left: 0 !important;
        
        /* Arranges them into a perfect 2-by-2 grid so they don't smash together */
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; 
        gap: 12px !important; /* Clean space between every button */
        width: 100% !important;
    }
    
    .showcase-buttons .glass-btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 0.95rem !important;
        margin: 0 !important; 
    }
}