/* ==========================================================================
   TSOSALT Real Estate Investment - Main Styling Revamp (Premium Luxury Version)
   الهوية البصرية: كلاسيكية حديثة، درجات كحلي ملكي داكن وألوان ذهبية دافئة
   ========================================================================== */

/* 1. تعريف المتغيرات وأنظمة الألوان (Luxury Light & Dark Theme) */
:root {
    --primary-hsl: 220, 50%, 15%;
    /* #0c1626 */
    --primary: hsl(var(--primary-hsl));
    --primary-light: hsl(220, 48%, 22%);
    --gold-hsl: 38, 64%, 65%;
    /* #dfb86c */
    --gold: hsl(var(--gold-hsl));
    --gold-light: hsl(38, 70%, 75%);
    --gold-dark: hsl(35, 60%, 45%);
    --white: #FFFFFF;
    --black: #030712;
    --success: #10b981;
    --danger: #ef4444;

    /* الوضع المضيء الفاخر (Elegant Ivory Theme) */
    --bg-main: #f8f7f4;
    /* خلفية عاجية مريحة للعين */
    --bg-card: #ffffff;
    --bg-navbar: rgba(255, 255, 255, 0.8);
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -15px rgba(196, 154, 58, 0.12);
    --hero-overlay: linear-gradient(135deg, rgba(12, 22, 38, 0.85) 0%, rgba(3, 7, 18, 0.95) 100%);
    --input-bg: #fcfcfb;
    --card-accent: rgba(196, 154, 58, 0.05);
}

/* الوضع المظلم الفاخر (Deep Obsidian Theme) */
body.dark-theme {
    --bg-main: #050811;
    /* أسود ملكي مائل للكحلي */
    --bg-card: rgba(13, 20, 35, 0.65);
    /* زجاجي مظلم */
    --bg-navbar: rgba(5, 8, 17, 0.75);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.07);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 40px -10px rgba(223, 184, 108, 0.15);
    --hero-overlay: linear-gradient(135deg, rgba(5, 8, 17, 0.75) 0%, rgba(2, 4, 8, 0.92) 100%);
    --input-bg: #090e18;
    --card-accent: rgba(223, 184, 108, 0.03);
}

/* 2. الإعدادات العامة والتأسيس (Reset & Base Styles) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Outfit', sans-serif;
    transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) var(--bg-main);
}

/* تخصيص شريط التمرير */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease, transform 0.25s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 3. الخطوط والأزرار والتنسيقات المشتركة */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

strong,
.price-number {
    font-family: 'Outfit', 'Cairo', sans-serif;
}

/* الأزرار الفاخرة (Premium Buttons) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--black);
    font-weight: 800;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.15;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(223, 184, 108, 0.35);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.btn-primary:hover i {
    transform: translateX(-4px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(223, 184, 108, 0.04);
    transform: translateY(-2px);
}

/* أقسام الموقع والعناوين (Section Styling) */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-main);
    display: inline-block;
    padding-bottom: 18px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 10px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--border-color);
}

.section-header p {
    color: var(--text-muted);
    font-size: 17px;
    margin-top: 20px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* شارات الحالة الراقية (Premium Badges) */
.badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-available {
    background-color: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-construction {
    background-color: rgba(223, 184, 108, 0.12);
    color: var(--gold-dark);
    border: 1px solid rgba(223, 184, 108, 0.2);
}

.status-completed {
    background-color: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-sold {
    background-color: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-reserved {
    background-color: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* 4. رأس الصفحة والقائمة الرئيسية (Floating Glass Header) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-navbar);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text svg,
.logo-text img {
    filter: drop-shadow(0 2px 8px rgba(196, 154, 58, 0.2));
    transition: transform 0.4s ease;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 4px;
}

.logo-text:hover svg,
.logo-text:hover img {
    transform: rotate(5deg) scale(1.05);
}

.logo-text strong {
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-text small {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    opacity: 0.85;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 10px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
    opacity: 1;
    color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--gold);
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* أزرار الإجراءات للزائر */
.action-btn {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.action-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--bg-card);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(223, 184, 108, 0.15);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    width: 28px;
    height: 24px;
    justify-content: center;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* 5. الهيرو الفاخر (Hero Section) */
.hero {
    height: 90vh;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-overlay-div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-main) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.hero-tagline {
    font-size: 15px;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
    display: inline-block;
    padding: 6px 18px;
    background: rgba(223, 184, 108, 0.1);
    border: 1px solid rgba(223, 184, 108, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.25;
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-desc {
    font-size: 18px;
    color: rgba(248, 250, 252, 0.85);
    margin-bottom: 45px;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 6. شريط الإحصائيات (Stats Counter Bar - Glassmorphism) */
.stats-bar {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    padding: 50px 30px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 30px;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 0;
    height: 70%;
    width: 1px;
    background: var(--border-color);
}

.stat-item h3 {
    font-size: 42px;
    color: var(--gold);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-item p {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 700;
}

/* 7. نبذة عن الشركة المختصرة (About Teaser Layout) */
.about-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-teaser-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-teaser-img img {
    border-radius: 20px;
    transition: transform 0.8s ease;
}

.about-teaser-img:hover img {
    transform: scale(1.04);
}

.about-teaser-img::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: 20px;
    left: 20px;
    border: 2px solid var(--gold);
    border-radius: 16px;
    pointer-events: none;
    opacity: 0.7;
}

.about-teaser-content h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 10px;
    margin-bottom: 20px;
}

.about-teaser-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.8;
}

/* 8. بطاقات المشاريع والعقارات (Premium Property & Project Cards) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.card {
    background-color: var(--bg-card);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(223, 184, 108, 0.3);
}

.card-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
}

.card-fav-btn {
    position: absolute;
    top: 18px;
    left: 18px;
    background-color: rgba(5, 8, 17, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 40px;
    height: 40px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    z-index: 10;
    transition: all 0.3s ease;
}

.card-fav-btn:hover {
    background-color: var(--white);
    color: var(--danger);
    transform: scale(1.08);
}

.card-fav-btn.active {
    background-color: var(--white);
    color: var(--danger);
    border-color: var(--white);
}

.card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.card-location {
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-weight: 700;
}

.card-location i {
    color: var(--gold);
}

.card-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 15px 0;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 700;
    text-align: center;
}

.card-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.card-spec-item i {
    color: var(--gold);
    font-size: 16px;
    background: var(--card-accent);
    width: 32px;
    height: 32px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(223, 184, 108, 0.1);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-price {
    font-weight: 800;
    color: var(--gold);
    font-size: 20px;
}

.card-price span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    display: block;
}

/* 9. الخدمات (Luxury Services Grid) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px 35px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(223, 184, 108, 0.25);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 42px;
    color: var(--gold);
    margin-bottom: 28px;
    display: inline-flex;
    padding: 16px;
    background: var(--card-accent);
    border-radius: 16px;
    border: 1px solid rgba(223, 184, 108, 0.15);
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(3deg);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.8;
}

/* 10. فلاتر التصفية والبحث المتقدم (Advanced Filter Panel) */
.filter-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 45px;
    box-shadow: var(--shadow);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-item label {
    font-weight: 800;
    font-size: 13.5px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item label i {
    color: var(--gold);
}

.filter-item select,
.filter-item input {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 18px;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    font-weight: 700;
    width: 100%;
}

.filter-item select:focus,
.filter-item input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(223, 184, 108, 0.15);
}

.filter-btn-wrapper {
    display: flex;
    align-items: flex-end;
}

.filter-btn-wrapper .btn {
    width: 100%;
    border-radius: 10px;
}

/* 11. صفحة التفاصيل (Luxury Details Layout) */
.details-wrapper {
    display: grid;
    grid-template-columns: 2.1fr 1fr;
    gap: 40px;
}

.details-main {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow);
}

.gallery-main {
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 35px;
}

.gallery-thumb {
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.65;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    opacity: 1;
    border-color: var(--gold);
    transform: scale(1.03);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
}

.details-title-section h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.feature-item-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15.5px;
    font-weight: 700;
}

.feature-item-detail i {
    color: var(--gold);
    font-size: 18px;
    background: var(--card-accent);
    width: 36px;
    height: 36px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(223, 184, 108, 0.1);
}

/* 12. تذييل الموقع (Luxury Dark Footer) */
footer {
    background-color: #03060f;
    color: #94a3b8;
    padding: 90px 0 40px 0;
    border-top: 4px solid var(--gold);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 0%, rgba(223, 184, 108, 0.05), transparent 60%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 50px;
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
}

.footer-col h3 {
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45px;
    height: 3px;
    background-color: var(--gold);
    border-radius: 10px;
}

.footer-col p {
    color: #94a3b8;
    font-size: 14.5px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.social-links-div {
    display: none !important;
    display: flex;
    gap: 14px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--black);
    transform: translateY(-4px) scale(1.05);
    border-color: var(--gold);
    box-shadow: 0 6px 15px rgba(223, 184, 108, 0.35);
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 14.5px;
    font-weight: 700;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(-6px);
}

.footer-contact-info li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 14.5px;
    color: #94a3b8;
    font-weight: 700;
}

.footer-contact-info i {
    color: var(--gold);
    font-size: 17px;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 35px;
    text-align: center;
    font-size: 13.5px;
    color: #475569;
    position: relative;
    z-index: 2;
    font-weight: 700;
}

/* 13. أزرار التواصل العائمة (Floating Luxury Actions) */
.float-buttons {
    display: none !important;
    position: fixed;
    bottom: 35px;
    left: 35px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 26px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.float-whatsapp {
    background-color: #25D366;
}

.float-whatsapp:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}

.float-phone {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 2px solid var(--gold);
}

.float-phone:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 12px 30px rgba(223, 184, 108, 0.3);
    background-color: var(--gold);
    color: var(--black);
}

/* 14. خرائط تفاعلية Leaflet (Embedded Dark Map Styling) */
#interactive-map,
#project-map,
#full-interactive-map {
    height: 550px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    z-index: 10;
}

.leaflet-popup-content-wrapper {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color);
    border-radius: 14px !important;
    box-shadow: var(--shadow) !important;
    padding: 5px;
}

.leaflet-popup-tip {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color);
}

.map-popup-card {
    text-align: right;
    max-width: 220px;
    padding: 5px;
}

.map-popup-card img {
    border-radius: 10px;
    margin-bottom: 12px;
    height: 120px;
    width: 100%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.map-popup-card h4 {
    font-size: 15px;
    margin-bottom: 6px;
    font-weight: 800;
}

.map-popup-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 700;
}

.map-popup-card .btn-quick {
    font-size: 12px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--black);
    border-radius: 6px;
    display: inline-block;
    font-weight: 800;
    text-align: center;
}

/* 15. نماذج التواصل (Forms & Form Controls) */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    outline: none;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(223, 184, 108, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* التنبيهات (Notification Alert Boxes) */
.alert-box {
    animation: slideInDown 0.5s ease forwards;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 16. الشاشات المتجاوبة (Responsiveness & Mobile Menu Layout) */
@media (max-width: 1024px) {

    .cards-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 46px;
    }
}

@media (max-width: 768px) {

    /* الانهيار التلقائي لأي شبكة تقسيم مدمجة في شاشات الجوال */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    section {
        padding: 70px 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger span.active:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger span.active:nth-child(2) {
        opacity: 0;
    }

    .hamburger span.active:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        top: 86px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 86px);
        background-color: var(--bg-card);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 50px 30px;
        gap: 30px;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .about-teaser {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .cards-grid,
    .services-grid {
        grid-template-columns: 1fr !important;
    }

    .details-wrapper {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .filter-grid {
        grid-template-columns: 1fr !important;
    }

    #interactive-map,
    #project-map,
    #full-interactive-map {
        height: 380px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }
}

/* التوافق التام مع الشاشات الصغيرة جداً في ترويسة الموقع */
@media (max-width: 576px) {
    .logo-text small {
        display: none !important;
    }

    .logo-text strong {
        font-size: 16px !important;
    }

    .logo-text img,
    .logo-text svg {
        height: 36px !important;
        width: 36px !important;
        padding: 2px !important;
    }

    .action-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 12px !important;
    }

    .nav-actions {
        gap: 6px !important;
    }

    .logo-text {
        gap: 6px !important;
    }
}

/* ==========================================================================
   نظام استعراض الصور بملء الشاشة الفاخر (Premium Lightbox Modal) وزر خرائط جوجل
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(223, 184, 108, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-image {
    transform: scale(1);
}

.lightbox-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10002;
}

.lightbox-btn:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(223, 184, 108, 0.4);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10002;
}

.lightbox-close:hover {
    background: var(--danger);
    color: var(--white);
    border-color: var(--danger);
}

.lightbox-counter {
    color: var(--white);
    font-family: 'Outfit', 'Cairo', sans-serif;
    font-size: 14px;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    direction: ltr;
}

.btn-google-maps {
    background: #4285F4;
    color: #ffffff !important;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(66, 133, 244, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-google-maps:hover {
    background: #357ae8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.map-popup-card .btn-maps {
    font-size: 11px;
    padding: 6px 10px;
    background: #4285F4;
    color: #ffffff !important;
    border-radius: 6px;
    display: block;
    font-weight: 800;
    text-align: center;
    margin-top: 6px;
    transition: background-color 0.2s ease;
}

.map-popup-card .btn-maps:hover {
    background: #357ae8;
}

/* تحسينات التجاوب لمعرض الصور واللايت بوكس على الهواتف والأجهزة اللوحية */
@media (max-width: 991px) {
    .lightbox-prev {
        left: 12px;
    }
    .lightbox-next {
        right: 12px;
    }
    .lightbox-close {
        right: 12px;
        top: 12px;
    }
    .lightbox-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    .gallery-main {
        height: 360px !important;
    }
    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }
    .gallery-thumb {
        height: 70px !important;
    }
}

@media (max-width: 768px) {
    .gallery-main {
        height: 300px !important;
    }
    .gallery-thumbs {
        display: flex !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding-bottom: 8px !important;
        scrollbar-width: none !important; /* إخفاء شريط التمرير الافتراضي */
    }
    .gallery-thumbs::-webkit-scrollbar {
        display: none !important; /* إخفاء شريط التمرير لكروم وسفاري */
    }
    .gallery-thumb {
        flex: 0 0 80px !important;
        height: 60px !important;
    }
}

@media (max-width: 480px) {
    .gallery-main {
        height: 220px !important;
    }
    .gallery-thumb {
        flex: 0 0 70px !important;
        height: 50px !important;
    }
    .lightbox-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .lightbox-close {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}