/* 1. الأساسيات والمتغيرات (Variables & Base) */
:root {
    --primary-core-blue: #24CAE6;
    --primary-core-dark: #111827;
    --accent-cyan: #7DF9FF;
    --light-blue-bg: #E6F7FA;
    --deep-blue: #1B3A4B;
    --theme-light-blue: #94CAE3; /* لون الخلفية السماوي الجديد زي الصورة */
}
html[dir="rtl"] body { font-family: 'Zain', sans-serif; }
html[dir="ltr"] body { font-family: 'Inter', sans-serif; }

/* تعديل لون الخلفية ولون النص الأساسي للأسود */
body {
    margin: 0;
    background-color: var(--theme-light-blue); /* الخلفية السماوي */
    color: #000; /* النص الأساسي أسود طبق الأصل */
    overflow-x: hidden;
}

/* 2. الهيدر (الشاشات الكبيرة) */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: transparent; /* خليناه شفاف عشان يندمج مع الخلفية */
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 1px solid rgba(0,0,0,0.1); /* خط أسود خفيف تحت الهيدر */
}

/* =======================================
   تنسيقات اللوجو النصي (عكست الألوان للأسود)
   ======================================= */
.mirage-smart-logo {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
    color: #000;
    width: max-content;
    direction: ltr !important; /* إجبار حاوية اللوجو بالكامل تبدأ من اليسار */
}
.en-line {
    display: flex;
    flex-direction: row !important; /* إجبار الترتيب من اليسار لليمين */
    align-items: flex-start;
    position: relative;
    width: 100%;
}

.m-text {
    font-family: 'Playfair Display', serif;
    font-size: 45px;
    font-weight: 400;
    letter-spacing: 6px;
    display: inline-block;
    color: #000;
}

.s-text {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.5px;
    margin-left: 8px !important; /* تثبيت المسافة من اليسار فقط */
    margin-right: 0 !important;
    margin-top: 6px;
    text-transform: uppercase;
    display: inline-block;
    color: #000;
}
.ar-line {
    font-family: 'Zain', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    direction: rtl !important; /* إجبار السطر العربي فقط يكون من اليمين لليسار */
    width: 100%;
    display: block;
    border-top: 1px solid rgba(0,0,0,0.3);
    padding-top: 4px;
    margin-top: 2px;
    text-align: justify;
    text-align-last: justify;
}
/* تظبيط اللوجو للموبايل */
@media (max-width: 768px) {
    .m-text { font-size: 32px; letter-spacing: 4px; }
    .s-text { font-size: 8px; margin-top: 4px; margin-left: 5px !important; }
    .ar-line { font-size: 13px; }
}

/* =======================================
   تنسيقات القائمة والروابط وزر اللغة (أسود)
   ======================================= */
.main-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.main-nav a { color: #000; text-decoration: none; font-weight: 600; transition: 0.3s; }
.main-nav a:hover { color: #fff; } /* لون أبيض عند الوقوف عشان يندمج مع الزر */

.header-actions { display: flex; align-items: center; gap: 15px; }

/* زرار تغيير اللغة (عكست الألوان) */
.lang-btn {
    border: 1px solid #000;
    padding: 5px 15px;
    border-radius: 4px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}
.lang-btn:hover {
    background-color: #000;
    color: var(--theme-light-blue);
}

.menu-toggle { display: none; color: #000; font-size: 24px; cursor: pointer; }

/* 3. الحاويات الأساسية */
.container {
    width: 90%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}
section {
    padding: 80px 0;
    overflow: hidden;
}
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* 4. الهيدر (الموبايل < 991px) */
@media (max-width: 991px) {
    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: var(--theme-light-blue);
        padding: 20px 0;
        border-bottom: 2px solid #000;
    }
    .main-nav.active { display: block !important; }
    .main-nav ul { flex-direction: column; align-items: center; gap: 20px; }
}

/* 5. صور العقارات (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;
    color: #fff; /* النص جوه الكارت يفضل أبيض عشان التدرج الأسود */
}
.facility-card:hover .facility-img { transform: scale(1.1); }

/* 6. التبويبات والمخططات (عكست الألوان للأسود) */
.tabs-nav { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.tab-btn { background: #000; color: #fff; border: 1px solid #000; padding: 10px 20px; border-radius: 20px; cursor: pointer; }
.tab-btn.active { background: #fff; color: #000; font-weight: bold;}
.tab-pane { display: none; }
.tab-pane.active { display: block; }
@media (max-width: 768px) {
    /* تصغير خطوط الـ Hero في الموبايل */
    .hero-content h1 { font-size: 35px !important; }
    .hero-content h2 { font-size: 16px !important; }
    .hero-content h3 { font-size: 20px !important; }

    /* تصغير المسافات بين الأقسام في الموبايل عشان ميبقاش في فراغ أبيض كبير */
    section { padding: 50px 0 !important; }
}