/* styles.css - الإصدار المُحسّن بدون فراغات */

/* 🎯 إعدادات أساسية */
body {
    font-family: 'Tajawal', 'Noto Sans Arabic', sans-serif;
    background-color: #fff7ed;
    margin: 0;
    padding: 0;
    color: #111827;
    overflow-x: hidden; /* منع التمرير الأفقي */
}

/* 🎯 إصلاح النافبار */
.navbar {
    background-color: #3E2A0A !important;
    transition: background 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    margin: 0;
    padding: 0.5rem 0;
}

.navbar.scrolled {
    background-color: #3E2A0A !important;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.nav-link {
    color: #fff !important;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: #c2410c !important;
}

/* 🎯 إصلاح قسم الهيرو - بدون فراغات */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* 🎯 إصلاح الفيديو */
#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* تغيير من contain إلى cover */
    z-index: 0;
}

/* 🎯 إصلاح طبقة التعتيم */
.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

/* 🎯 إصلاح حاوية النص */
.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 0 15px;
}

/* 🎯 إصلاح النصوص */
.hero h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    margin: 0 0 2rem 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
}

/* 🎯 إصلاح الأزرار */
.btn-primary {
    background-color: #cb3626;
    border-color: #c2410c;
    padding: 12px 35px;
    font-size: 1.2rem;
    transition: transform 0.3s, background-color 0.3s;
    margin: 0;
}

.btn-primary:hover {
    background-color: #9a3412;
    border-color: #9a3412;
    transform: scale(1.05);
}

/* 🎯 إصلاح الأقسام - بدون فراغات */
.section {
    padding: 60px 0;
    background: #ffffff;
    margin: 0;
    position: relative;
    z-index: 10;
}

.section:first-of-type {
    padding-top: 80px; /* مسافة إضافية للقسم الأول بعد الهيرو */
}

/* 🎯 إصلاح البطاقات */
#packages .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin: 0 -10px;
}

#packages .col-md-6,
#packages .col-lg-4 {
    display: flex;
    padding: 10px;
}

#packages .card {
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    margin: 0;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* 🎯 إصلاح المعرض */
.gallery-swiper {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.swiper-slide {
    height: auto;
}

.swiper-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    display: block;
}

.interactive-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* 🎯 إصلاح أيقونة القائمة */
.navbar .navbar-toggler {
    border-color: rgba(194, 65, 12, 0.2);
    margin: 0;
}

.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23c2410c' stroke-width='2.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

.navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(194, 65, 12, 0.5);
}

/* 🎯 اللغة الإنجليزية */
[lang="en"] {
    font-family: 'Montserrat', Arial, sans-serif;
}

/* 🎯 ألوان مخصصة */
.bg-custom-book {
    background-color: #b44b23 !important;
}

.itinerary-list .badge.bg-primary {
    background-color: #fdf4d1 !important;
    color: #000000 !important;
}

/* 🎯 وسائط الاستعلام للجوال */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    /* 🎯 إصلاح الهيرو للجوال */
    .hero {
        height: 70vh;
        padding-top: 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    /* 🎯 إصلاح الأقسام للجوال */
    .section {
        padding: 40px 0;
    }
    
    .section:first-of-type {
        padding-top: 60px;
    }
    
    /* 🎯 إصلاح التنقل للجوال */
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.8rem 1rem !important;
    }
    
    /* 🎯 إصلاح البطاقات للجوال */
    #packages .col-md-6,
    #packages .col-lg-4 {
        padding: 8px;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    /* 🎯 إصلاح المعرض للجوال */
    .swiper-slide img {
        height: 250px;
    }
}

@media (max-width: 576px) {
    /* 🎯 إصلاح الهيرو للهواتف الصغيرة */
    .hero {
        height: 60vh;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .btn-primary {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    /* 🎯 إصلاح الأقسام للهواتف الصغيرة */
    .section {
        padding: 30px 0;
    }
    
    .section:first-of-type {
        padding-top: 50px;
    }
    
    /* 🎯 إصلاح البطاقات للهواتف الصغيرة */
    .card-img-top {
        height: 160px;
    }
    
    /* 🎯 إصلاح المعرض للهواتف الصغيرة */
    .swiper-slide img {
        height: 200px;
    }
    
    /* 🎯 إصلاح النافبار للهواتف الصغيرة */
    .navbar-brand {
        font-size: 1.5rem;
    }
}

/* 🎯 تحسينات إضافية للعرض */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    margin: 0 -10px;
}

[class*="col-"] {
    padding: 0 10px;
}

/* 🎯 إصلاح أي فراغات متبقية */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body::-webkit-scrollbar-thumb {
    background: #c2410c;
    border-radius: 4px;
}