/* ========================================
   style.css - الملف الرئيسي لتصميم الموقع
   ======================================== */

/* ---------- إعدادات عامة ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* ---------- الهيدر (Header) ---------- */
.header {
    background: var(--primary-color, #1e3c72);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header h1 {
    font-size: 24px;
}

.header a {
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 8px;
    transition: 0.3s;
}

.header a:hover {
    background: rgba(255,255,255,0.3);
}

/* ---------- قسم الهيرو (Hero Section) ---------- */
.hero {
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 20px;
}

/* ---------- شبكة الشاليهات ---------- */
.chalets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.chalet-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.chalet-card:hover {
    transform: translateY(-5px);
}

.chalet-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.chalet-card-content {
    padding: 20px;
}

/* اسم الشاليه */
.chalet-card h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

/* الوصف (features) */
.chalet-card .features {
    color: #555;
    font-size: 14px;
    margin: 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* الموقع (location) */
.chalet-card .location {
    color: #888;
    font-size: 12px;
    margin: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* السعر */
.chalet-card .price {
    font-size: 16px;
    color: var(--primary-color, #1e3c72);
    font-weight: bold;
    margin: 12px 0;
}

.btn {
    display: inline-block;
    background: var(--primary-color, #1e3c72);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.9;
}

/* ---------- صفحة الشاليه (تفاصيل) ---------- */
.chalet-detail {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.chalet-detail h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

/* ---------- معرض الصور ---------- */
.gallery-container {
    margin: 20px 0;
    background: #f9f9f9;
    border-radius: 15px;
    padding: 15px;
}

.main-image {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 10;
}

.prev-btn:hover, .next-btn:hover {
    background: var(--primary-color, #1e3c72);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.thumbnail-container {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    overflow-x: auto;
    padding: 10px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: 0.3s;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary-color, #1e3c72);
    opacity: 1;
    transform: scale(1.05);
}

/* ---------- الباقات ---------- */
.packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.package-card {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.package-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.package-card .price {
    font-size: 28px;
    color: var(--primary-color, #1e3c72);
    font-weight: bold;
    margin: 15px 0;
}

.package-card .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    margin-right: 10px;
}

.package-card .new-price {
    font-size: 28px;
    color: #e74c3c;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: 0.3s;
}

.whatsapp-btn:hover {
    background: #128C7E;
}

/* ---------- التذييل ---------- */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* ---------- أزرار وحالات ---------- */
.btn-primary {
    background: var(--primary-color, #1e3c72);
}

.btn-success {
    background: #28a745;
}

.btn-danger {
    background: #dc3545;
}

/* ---------- تنبيهات ---------- */
.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* ========================================
   استجابة للشاشات (Responsive)
   ======================================== */

/* للشاشات المتوسطة (تابلت) */
@media (max-width: 900px) {
    .packages {
        gap: 15px;
    }
    
    .package-card h3 {
        font-size: 18px;
    }
    
    .package-card .price {
        font-size: 22px;
    }
}

/* للشاشات الصغيرة (جوال) */
@media (max-width: 768px) {
    /* الهيرو */
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero {
        min-height: 350px;
    }
    
    /* الهيدر */
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* شبكة الشاليهات - 2 جنب بعض مع تكبير البطاقة */
    .chalets-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 20px 10px !important;
    }
    
    /* تكبير ارتفاع الصورة */
    .chalet-card img {
        height: 150px !important;
    }
    
    .chalet-card-content {
        padding: 10px !important;
    }
    
    /* تكبير اسم الشاليه */
    .chalet-card h3 {
        font-size: 16px !important;
        font-weight: bold !important;
        margin-bottom: 6px !important;
    }
    
    /* تكبير الوصف */
    .chalet-card .features {
        font-size: 12px !important;
        margin: 5px 0 !important;
        -webkit-line-clamp: 2 !important;
        min-height: 30px !important;
    }
    
    /* تكبير الموقع قليلاً */
    .chalet-card .location {
        font-size: 10px !important;
        margin: 4px 0 !important;
    }
    
    /* تكبير السعر */
    .chalet-card .price {
        font-size: 13px !important;
        margin: 8px 0 !important;
    }
    
    /* زر تفاصيل الحجز */
    .btn {
        font-size: 11px !important;
        padding: 6px 10px !important;
        display: block !important;
        text-align: center !important;
    }
    
    /* معرض الصور */
    .main-image {
        height: 280px;
    }
    
    .prev-btn, .next-btn {
        padding: 10px 15px;
        font-size: 18px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    /* الباقات - 3 جنب بعض بدون سكرول */
    .packages {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        overflow-x: visible !important;
        margin: 15px 0 !important;
    }
    
    .package-card {
        min-width: auto !important;
        width: 100% !important;
        padding: 10px 5px !important;
    }
    
    .package-card h3 {
        font-size: 13px !important;
        margin-bottom: 3px !important;
    }
    
    .package-card p {
        font-size: 9px !important;
        white-space: nowrap;
    }
    
    .package-card .price {
        font-size: 14px !important;
        margin: 5px 0 !important;
    }
    
    .whatsapp-btn {
        font-size: 9px !important;
        padding: 6px 4px !important;
        white-space: nowrap;
    }
    
    /* صفحة التفاصيل */
    .chalet-detail {
        padding: 15px;
    }
    
    .chalet-detail h1 {
        font-size: 22px;
    }
}

/* للشاشات الصغيرة جداً (أقل من 480 بكسل) */
@media (max-width: 480px) {
    .chalets-grid {
        gap: 10px !important;
    }
    
    .chalet-card img {
        height: 130px !important;
    }
    
    .chalet-card h3 {
        font-size: 14px !important;
    }
    
    .chalet-card .features {
        font-size: 11px !important;
    }
    
    .chalet-card .location {
        font-size: 9px !important;
    }
    
    .chalet-card .price {
        font-size: 12px !important;
    }
    
    .btn {
        font-size: 10px !important;
        padding: 5px 8px !important;
    }
    
    /* تصغير الباقات قليلاً للشاشات الصغيرة جداً */
    .package-card h3 {
        font-size: 11px !important;
    }
    
    .package-card p {
        font-size: 8px !important;
    }
    
    .package-card .price {
        font-size: 12px !important;
    }
    
    .whatsapp-btn {
        font-size: 8px !important;
        padding: 5px 3px !important;
    }
}
/* قسم الملاحظات */
.notes-section {
    background: #fef9e6;
    border-right: 4px solid var(--primary-color, #1e3c72);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 10px;
}

.notes-section h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.notes-content {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}
/* الفوتر مع روابط التواصل */
.footer {
    background: var(--primary-color, #1e3c72);
    color: white;
    text-align: center;
    padding: 25px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: 0.3s;
}

.social-link:hover {
    background: var(--primary-color, #1e3c72);
    transform: translateY(-3px);
}
/* ========================================
   قسم الملاحظات - مضبوط 100%
   ======================================== */

.notes-wrapper {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px;
}

.notes-section {
    background: var(--primary-color, #1e3c72);
    border-right: 4px solid var(--primary-color, #1e3c72);
    border-radius: 15px;
    padding: 25px 30px;
}

.notes-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ffffff
}

.notes-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #ffffff;
}

/* للجوال */
@media (max-width: 768px) {
    .notes-wrapper {
        padding: 0 15px;
        margin: 20px auto 0;
    }
    
    .notes-section {
        padding: 15px 20px;
    }
    
    .notes-section h3 {
        font-size: 1.1rem;
    }
    
    .notes-content {
        font-size: 0.9rem;
    }
}

/* أيقونات التواصل الاجتماعي في الفوتر */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.social-link:hover {
    background: var(--primary-color, #1e3c72);
    transform: translateY(-3px);
}

.social-link .icon {
    font-size: 18px;
}

/* أيقونات خاصة */
.social-whatsapp .icon { color: #25D366; }
.social-instagram .icon { color: #E4405F; }
.social-facebook .icon { color: #1877F2; }
.social-twitter .icon { color: #1DA1F2; }

@media (max-width: 768px) {
    .notes-section {
        padding: 15px 20px;
    }
    
    .notes-section h3 {
        font-size: 1.1rem;
    }
    
    .notes-content {
        font-size: 1rem;
    }
    
    .social-link {
        padding: 6px 12px;
        font-size: 12px;
    }
}
/* أيقونات التواصل الاجتماعي - دائرية */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--primary-color, #1e3c72);
    color: white;
    transform: translateY(-3px);
}

.social-icons i {
    font-size: 18px;
}

/* للفوتر الداكن */
.footer .social-icons a {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.footer .social-icons a:hover {
    background: var(--primary-color, #1e3c72);
    color: white;
}