/* 1. الأساسيات */
:root {
    --primary-core-blue: #24CAE6;
    --primary-core-dark: #111827;
    --accent-cyan: #7DF9FF;
    --light-blue-bg: #E6F7FA;
    --deep-blue: #1B3A4B;
}
html[dir="rtl"] body { font-family: 'Zain', sans-serif; }
html[dir="ltr"] body { font-family: 'Inter', sans-serif; }
body { margin: 0; background-color: var(--primary-core-dark); color: #fff; overflow-x: hidden; }

/* 2. الهيدر (الشاشات الكبيرة) */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--primary-core-dark);
    position: sticky;
    top: 0;
    z-index: 2000; /* أعلى من أي شيء آخر */
    border-bottom: 1px solid var(--deep-blue);
}
/* تنسيق حاوية اللوجو */
.logo-wrapper {
    display: flex;
    flex-direction: column; /* ترتيب السطور فوق بعض */
    text-decoration: none;
    line-height: 1;
}

/* النص الإنجليزي الكبير */
.logo-main {
    font-family: 'Inter', sans-serif;
    font-size: 32px; /* كبرت الحجم شوية */
    font-weight: 800; /* خط سميك جداً */
    letter-spacing: 4px; /* مسافات بين الحروف زي الصورة */
    color: #000000; /* اللون الأسود السادة طبق الأصل */
    display: block;
    text-transform: uppercase; /* حروف كبيرة */
}

/* النقطة اللي في آخر الكلمة */
.logo-main .dot {
    color: #000000; /* اللون الأسود السادة طبق الأصل */}

/* النص العربي الصغير تحت */
.logo-sub {
    font-family: 'Zain', sans-serif;
    font-size: 11px; /* حجم صغير جداً وراقي */
    font-weight: 400;
    color: #000000; /* اللون الأسود السادة طبق الأصل */
    letter-spacing: 1px;
    margin-top: 5px;
    display: block;
    opacity: 0.8;
    text-align: justify; /* عشان يفرش تحت الكلمة */
}

/* تظبيط اللوجو في الموبايل */
@media (max-width: 480px) {
    .logo-main {
        font-size: 24px;
        letter-spacing: 2px;
    }
    .logo-sub {
        font-size: 9px;
    }
}
.logo a { font-size: 28px; font-weight: 800; color: var(--primary-core-blue); text-decoration: none; }

.main-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.main-nav a { color: var(--light-blue-bg); text-decoration: none; font-weight: 600; transition: 0.3s; }
.main-nav a:hover { color: var(--primary-core-blue); }

.header-actions { display: flex; align-items: center; gap: 15px; }
.lang-btn {
    border: 1px solid var(--primary-core-blue);
    padding: 5px 15px;
    border-radius: 4px;
    color: var(--primary-core-blue);
    text-decoration: none;
    font-size: 14px;
}
.menu-toggle { display: none; color: var(--primary-core-blue); font-size: 24px; cursor: pointer; }
/* إصلاح الحاوية الأساسية للموقع */
.container {
    width: 90%;
    max-width: 1200px; /* العرض الأقصى اللي بيخلي الصفحة ملمومة في النص */
    margin-right: auto;
    margin-left: auto;
}

/* التأكد من أن الأقسام مش لازقة في الحواف */
section {
    padding: 80px 0;
    overflow: hidden; /* يمنع أي حاجة تخرج بره العرض */
}

/* لو عندك Hero Section (أول جزء في الصفحة) تأكد إنه واخد Container */
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* 3. الهيدر (الموبايل < 991px) */
@media (max-width: 991px) {
    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: var(--primary-core-dark);
        padding: 20px 0;
        border-bottom: 2px solid var(--primary-core-blue);
    }
    .main-nav.active { display: block !important; }
    .main-nav ul { flex-direction: column; align-items: center; gap: 20px; }
}

/* 4. إصلاح صور العقارات (Properties) الأكيد */
.facility-card {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1; /* كارت العقار أساس */
}
.facility-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover !important;
    background-position: center !important;
    z-index: -1; /* الصورة داخل الكارت وخلف المحتوى */
    transition: transform 0.5s;
}
.facility-card::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to top, rgba(17,24,39,0.9), transparent);
    z-index: 0; /* التدرج فوق الصورة وتحت النص */
}
.facility-info {
    position: relative;
    z-index: 2; /* النص فوق كل شيء */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}
.facility-card:hover .facility-img { transform: scale(1.1); }

/* 5. التبويبات والمخططات */
.tabs-nav { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.tab-btn { background: var(--deep-blue); color: #fff; border: 1px solid var(--primary-core-blue); padding: 10px 20px; border-radius: 20px; cursor: pointer; }
.tab-btn.active { background: var(--primary-core-blue); color: #000; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
/* تنسيق صفحة الدفع */
.checkout-container {
    max-width: 600px;
    margin: 50px auto;
    background: #1B3A4B;
    padding: 30px;
    border-radius: 10px;
    border-top: 4px solid #24CAE6;
}
.terms-box {
    height: 150px;
    overflow-y: scroll;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
}
.payment-option {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 1px solid transparent;
}
.payment-option:hover { border-color: #24CAE6; }
/* تنسيق شريط التمرير داخل الشروط */
.terms-container::-webkit-scrollbar {
    width: 6px;
}
.terms-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}
.terms-container::-webkit-scrollbar-thumb {
    background: var(--primary-core-blue);
    border-radius: 10px;
}