/* ========================================= */
/* 1. UNIVERSAL RESET & BACKGROUND           */
/* ========================================= */
html, body, main {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    background: #0d1117 !important;
    background-attachment: fixed !important; 
    color: #c9d1d9 !important;
}

/* ========================================= */
/* 2. TOP NAVIGATION BAR (GLASS)             */
/* ========================================= */
header.glass {
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important; 
    box-sizing: border-box !important;
    
    padding: 10px 5% !important; 
    min-height: 65px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    
    background: rgba(13, 17, 23, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: none !important;
}

header.glass nav {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
}

header.glass nav:empty, .search-btn, #search-bar {
    display: none !important;
}

header.glass .nav-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header-actions {
    display: flex !important;
    justify-content: flex-end !important;
}

/* ========================================= */
/* 3. HERO SECTION                           */
/* ========================================= */
.hero {
    height: 100vh;
    width: 100%;
    margin: 0 !important; 
    padding: 0 !important; 
    
    background: linear-gradient(rgba(13, 17, 23, 0.25), rgba(13, 17, 23, 0.35)), url('../images/home.webp') no-repeat center center;
    background-size: cover; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: #ffffff; 
}
    
.hero h2 { 
    font-size: 3rem; 
    margin-bottom: 30px; 
    text-shadow: 0 4px 20px rgba(0,0,0,0.9), 0 2px 5px rgba(0,0,0,0.8); 
}

.hero-logo {
    max-width: 250px; 
    height: auto;
    margin-bottom: 10px; 
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.8)); 
}

.hero-buttons {
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important;    
    gap: 15px !important;              
    margin-top: 30px !important;
    width: 100% !important;
}

.hero-buttons .cta-button {
    display: block !important;         
    width: 250px !important;           
}

/* ========================================= */
/* 4. ABOUT ALSHARQ (OFFSET GLASS STACK)     */
/* ========================================= */

.about-box {
    background: url('../images/about.webp') no-repeat center center !important;
    background-size: cover !important; 
    border-radius: 6px !important; 
    
    width: 85vw !important;
    max-width: 1200px !important;
    margin: 0 auto !important; 
    box-sizing: border-box !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    
    opacity: 0 !important;
    transform: translateY(40px) !important;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, box-shadow 0.4s ease, border 0.4s ease !important;
}

.about-box.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.about-box:hover {
    border: 1px solid rgba(255, 106, 0, 0.6) !important;
    box-shadow: 0 0 40px rgba(255, 106, 0, 0.15) !important;
}

/* Offset Logic for Desktop */
@media screen and (min-width: 769px) {
    .about-box {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important; /* This keeps the boxes on the right side of the screen */
        justify-content: center !important;
        padding: 60px 80px !important;
        direction: ltr !important; /* Force LTR so flex-end means physical right side */
    }

    .about-box p {
        display: block !important; 
        width: 100% !important;
        max-width: 48% !important; 
        
        background: rgba(22, 27, 34, 0.85) !important;
        backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #c9d1d9 !important;
        
        padding: 35px !important;
        border-radius: 6px !important;
        margin-bottom: 20px !important;
        
        text-align: start !important; /* Adapts automatically to Arabic (RTL) or English (LTR) */
        
        transition: all 0.4s ease !important;
        font-size: 1.15rem; 
        line-height: 1.8;
        cursor: pointer !important; 
    }

    /* THE DIMMING LOGIC */
    .about-box p.para-1 { opacity: 1 !important; }
    .about-box p.para-2 { opacity: 0.5 !important; }

    .about-box.right-active p.para-1 { opacity: 0.5 !important; }
    .about-box.right-active p.para-2 { opacity: 1 !important; }

    .about-box p:hover {
        border: 1px solid rgba(255, 106, 0, 0.6) !important;
        box-shadow: 0 0 30px rgba(255, 106, 0, 0.15) !important;
        transform: translateX(-10px) !important;
        opacity: 1 !important; 
    }
    
    
    .toggle-text-btn { display: none !important; }
}
/* ========================================= */
/* 5. SHOWCASE BOX                           */
/* ========================================= */
.property-showcase-box {
    background: url('../images/showcase.webp') no-repeat center center !important; 
    background-size: cover !important; 
    border-radius: 6px !important; 
    
    width: 85vw !important;
    max-width: 1200px !important;
    margin: 40px auto 20px auto !important;
    box-sizing: border-box !important;
    aspect-ratio: 16 / 9 !important; 
    height: auto !important;
    
    position: relative; 
    overflow: hidden;
    display: flex; 
    align-items: flex-end; 
    padding: 40px; 

    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    
    opacity: 0 !important;
    transform: translateY(40px) !important;
    transition: opacity 1s ease-out, transform 1s ease-out, box-shadow 0.4s ease, border 0.4s ease !important;
}

.property-showcase-box.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.property-showcase-box:hover {
    border: 1px solid rgba(255, 106, 0, 0.6) !important;
    box-shadow: 0 0 40px rgba(255, 106, 0, 0.15) !important;
}

.property-showcase-box::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, rgba(13, 17, 23, 0.95), transparent); z-index: 1; pointer-events: none;
}

.showcase-buttons { 
    display: flex; 
    gap: 15px; 
    width: 100%; 
    justify-content: center; 
    z-index: 3; 
}

/* ========================================= */
/* 6. DESCRIPTION PANEL                      */
/* ========================================= */
.description-box { 
    padding: 40px; 
    border-radius: 6px; 
    /* 🚨 SMART ALIGNMENT FIX 🚨 */
    text-align: start !important; 
    
    width: 85vw !important;
    max-width: 1200px !important;
    margin: 0 auto 40px auto !important;
    box-sizing: border-box !important;
    
    background: rgba(22, 27, 34, 0.85) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #c9d1d9 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.description-box h3 { color: #ffffff !important; text-shadow: none !important; }

/* ========================================= */
/* 7. DESTINATIONS SECTION (CITY CARDS)      */
/* ========================================= */
.city-cards-container {
    display: flex;
    gap: 15px; 
    width: 100% !important;
    max-width: 1200px !important;
    margin: 10px auto 40px auto !important; 
    padding-top: 20px !important; 
    padding-bottom: 30px !important; 
    
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.city-cards-container::-webkit-scrollbar { display: none; }

.city-card {
    flex: 1; 
    min-width: 250px; 
    height: 340px;    
    border-radius: 6px !important; 
    background-size: cover !important;
    background-position: center !important;
    position: relative;
    
    overflow: hidden !important;
    transform: translateZ(0) !important; 
    background-clip: padding-box !important;
    scroll-snap-align: center; 
    
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    padding: 20px; 
    box-sizing: border-box;
    
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
    transition: transform 0.4s ease, border 0.4s ease, box-shadow 0.4s ease !important;
}

.city-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 65%; 
    background: linear-gradient(to top, rgba(13,17,23,0.95), transparent); 
    z-index: 1; pointer-events: none;
    border-radius: 0 0 6px 6px !important;
}

.city-card:hover {
    border: 1px solid rgba(255, 106, 0, 0.6) !important;
    transform: translateY(-8px) translateZ(0) !important; 
    box-shadow: 0 0 25px rgba(255, 106, 0, 0.15) !important;
}

.city-card-content { position: relative; z-index: 2; text-align: center; }

.city-card-title {
    color: #ffffff !important; font-size: 1.5rem !important; margin-bottom: 15px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8) !important; font-weight: 600 !important; letter-spacing: 1px !important;
}

.city-card .city-btn { width: 100% !important; display: block !important; padding: 12px 0 !important; }

/* ========================================= */
/* 8. MOBILE SIZING LOGIC (MAX 768px)        */
/* ========================================= */
@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;
    }

    .about-box {
        padding: 40px 20px !important;
        background: linear-gradient(rgba(13, 17, 23, 0.75), rgba(13, 17, 23, 0.85)), url('../images/about.webp') no-repeat center center !important;
        background-size: cover !important; 
    }
    
    .about-box p { 
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
    }

    .property-showcase-box {
        aspect-ratio: auto !important;
        height: 300px !important;
        width: 100% !important; 
        margin: 0 auto 140px auto !important; 
        padding: 20px !important;
        box-sizing: border-box !important;
        overflow: visible !important; 
    }
    
    .showcase-buttons {
        position: absolute !important;
        bottom: -110px !important; 
        left: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; 
        gap: 12px !important; 
        width: 100% !important;
    }
    
    .showcase-buttons .glass-btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 0.95rem !important;
        margin: 0 !important; 
    }
    
    .city-card {
        flex: 0 0 80% !important; 
        min-width: 240px !important;
        height: 300px !important; 
    }
}