
/* =========================================
   Mobile Menu Styles
   ========================================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: var(--gold);
    margin: 3px 0;
    transition: 0.4s;
}

.mobile-only-btn {
    display: none;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
    .advisor-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .modal-body { flex-direction: column; }
    .modal-gallery { min-height: 400px; }
    
    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Global Adjustments */
    .container { padding: 0 20px; }
    
    /* Navigation */
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: 0;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%; /* Full width */
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        z-index: 1000;
        padding-top: 60px; /* Space for close button if needed, or just centering */
    }

    .nav-links.active {
        transform: translateX(0%);
    }

    .nav-links li {
        margin: 20px 0;
        opacity: 0; /* Fade in effect */
    }

    .nav-links.active li {
        animation: navLinkFade 0.5s ease forwards 0.3s;
    }

    .desktop-only-btn {
        display: none;
    }

    .mobile-only-btn {
        display: inline-block;
        margin-top: 20px;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    /* Top Bar */
    .top-bar { display: none; }

    /* Hero */
    .hero-bg {
        background-attachment: scroll; /* Fix for mobile browsers */
        background-position: center;
        background-size: cover;
        height: 100vh;
        width: 100%;
    }
    .hero-logo img { width: 280px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; padding: 0 20px; }
    .hero-cta { flex-direction: column; width: 100%; padding: 0 20px; }
    .hero-cta .btn-gold, .hero-cta .btn-transparent { width: 100%; margin-bottom: 15px; }

    /* Sections */
    .features-section, .listings-section, .contact-section, .advisor-section {
        padding: 60px 0;
        overflow-x: hidden; /* Prevent AOS overflow */
    }
    
    .contact-wrapper {
        padding: 30px 15px; /* Reduce padding to prevent overflow */
    }
    
    .section-title { font-size: 2.2rem; word-break: break-word; }

    /* Advisor */
    .advisor-name { font-size: 2.5rem; }
    .advisor-image { padding: 0; }
    .image-frame:before, .image-frame:after { display: none; } /* Simplify on mobile */

    /* Footer */
    .footer-top { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-brand img { margin: 0 auto 20px; }
    .footer-brand p { margin: 0 auto; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
    .newsletter-form { justify-content: center; }

    /* Modal */
    .modal-content { width: 95%; margin: 10px auto; }
    .modal-info { padding: 20px; }
    .modal-gallery { min-height: 250px; }
    .modal-price-tag { font-size: 1.5rem; padding: 10px 20px; bottom: 10px; left: 10px; }
    .close-modal { top: 10px; right: 10px; font-size: 2rem; background: rgba(0,0,0,0.5); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
    
    /* Carousel Arrows */
    .carousel-btn { width: 35px; height: 35px; font-size: 0.9rem; }
    .carousel-btn.prev { left: 10px; }
    .carousel-btn.next { right: 10px; }

    /* Loader Mobile Fix */
    #loader-wrapper {
        justify-content: center;
        align-items: center;
    }
    
    .blob-1 { 
        width: 300px; 
        height: 300px; 
        top: -50px; 
        left: -50px; 
    }
    
    .blob-2 { 
        width: 350px; 
        height: 350px; 
        bottom: -50px; 
        right: -50px; 
    }
    
    .blob-3 { 
        width: 200px; 
        height: 200px; 
    }
    
    .loader-logo img { 
        width: 140px; 
        margin-bottom: 20px;
    }
    
    .loading-text { 
        font-size: 1.1rem; 
        letter-spacing: 4px; 
    }
}

@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
