/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
    background: #ffffff;
    color: #333;
}

/* ================= CONTAINER ================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ================= TOPBAR ================= */
.topbar {
    background: #0d1b2a;
    color: #fff;
    font-size: 25px;
    text-align: center;
    height: 80px;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar a {
    color: #fff;
    margin-left: 15px;
    text-decoration: none;
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    padding: 8px 14px;
}

.flag-img {
    width: 20px;
    border-radius: 2px;
}

.lang-switcher {
    position: relative;
    display: inline-block;
    margin: 0 10px;
}

.lang-btn {
    background: rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.18);
    cursor: pointer;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
    border-radius: 12px;
    z-index: 9999;
    overflow: hidden;
}

.lang-switcher:hover .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: #223145 !important;
    margin: 0;
}

.lang-dropdown a:hover {
    background: #f5f7fb;
}

.currency-switcher .lang-btn {
    background: rgba(212,175,55,0.18);
    border-color: rgba(212,175,55,0.45);
}
.fa-phone{
    font-size: 20px;
}

/* ================= HEADER ================= */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    padding: 10px 20px; /* ارتفاع أكبر للهيدر */
}

/* ================= CONTAINER ================= */
.header .container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* العناصر تبدأ من اليسار */
    gap: 40px; /* مسافة صغيرة بين اللوجو والـ nav */
}

/* ================= LOGO ================= */
.logo {
    display: flex;
    align-items: center; /* الصورة والنص جنب بعض */
    gap: 15px; /* مسافة بين الصورة والنص */
}

.logo img {
    height: 100px; /* تكبير الشعار */
    width: auto;
}

.logo span {
    color: #1e88e5; /* اللون الأزرق */
    font-size: 20px; /* تكبير النص */
    font-weight: bold;
    text-transform: uppercase; /* الحروف كلها كبتل */
}

/* ================= NAVIGATION ================= */
.nav {
    display: flex;
    align-items: center;
    gap: 25px; /* مسافة صغيرة بين الروابط */
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 25px; /* تكبير الخط */
    text-transform: uppercase; /* الحروف كلها كبتل */
}

.nav a:hover {
    color: #1e88e5;
}



/* ================= HERO (UPDATED) ================= */
.hero {
    position: relative;
    height: 75vh; /* ارتفاع مناسب للشاشات الكبيرة */
    min-height: 500px;
    display: flex;
    align-items: center; /* توسيط عمودي */
    justify-content: center; /* توسيط أفقي */
    overflow: visible; /* للسماح لصندوق البحث بالخروج عن الحافة */
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: center;
}
/* Overlay متدرج */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.6)
    );
    z-index: 1;
}

/* محتوى الهيرو */
.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: #fff;
    width: 100%;
    max-width: 850px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    width: 100%; /* لضمان استجابة النص للتوسط */
}

.hero-content p {
    font-size: clamp(16px, 2.5vw, 22px);
    opacity: 0.95;
    margin-bottom: 30px;
    width: 100%;
}

/* أزرار الهيرو */
.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center; /* لتوسط الأزرار بجانب بعضها */
    flex-wrap: wrap;
    width: 100%;
}

.hero-actions a {
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 16px;
    text-decoration: none;
    transition: 0.3s ease;
}
/* زر أساسي */
.btn-primary {
    background: #1e88e5;
    color: #fff;
}

.btn-primary:hover {
    background: #1565c0;
    transform: translateY(-2px);
}

/* زر ثانوي */
.btn-secondary {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-secondary:hover {
    background: #fff;
    color: #1e88e5;
}

/* ================= SEARCH ================= */
/* .search-box {
    margin-top: -40px;
    position: relative;
    z-index: 5;
}

.search-form {
    position: relative;
    background: #f7f7cd;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    border-radius: 14px;

    /* بوردر ذهبي */
    /* border: 10px solid rgba(255, 196, 0, 0.7); */ */

    /* إضاءة فاخرة */
    /* box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12),
        0 0 25px rgba(212, 175, 55, 0.25);

    backdrop-filter: blur(4px);
}
.search-form::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    opacity: 0.6;
    pointer-events: none;
}



.search-form input,
.search-form select {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: 0.3s ease;
}

.search-form input:focus,
.search-form select:focus {
    outline: none;
    border-color: #ffd900;
    box-shadow: 0 0 8px rgba(235, 205, 108, 0.35);
}

.search-form button {
    background: linear-gradient(135deg, #ffc400, #b8962e);
    color: #1a1a1a;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212,175,55,0.45);
}
 */

/* ================= HOTELS ================= */
.hotels {
    padding: 80px 0;
}

.hotels h2 {
    text-align: center;
    margin-bottom: 40px;
}

.hotel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 30px;
}

.hotel-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: .3s;
}

.hotel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,.1);
}

.hotel-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 15px;
}

.price {
    margin-top: 10px;
    color: #1e88e5;
    font-weight: bold;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 8px;
    top: 100%;
    right: 0; /* لأن الموقع RTL */
    overflow: hidden;
}

.dropdown-content a {
    color: #333 !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    transition: 0.3s;
}

.dropdown-content a:hover {
    background-color: #0d1b2a;
    color: #fff !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}
.search-box {
    position: relative;
    /* سحب العنصر للأعلى */
    margin-top: -40px; 
    z-index: 10;
    
    /* التحكم في العرض: 100% تعني من الحافة للحافة، والناقص 30px يترك 15px يمين و15px شمال */
    width: calc(100% - 30px) !important; 
    
    /* لضمان التمدد في الشاشات الكبيرة */
    max-width: 2000px !important; 
    
    /* التوسيط */
    margin-left: auto !important;
    margin-right: auto !important;
    
    /* تأكد من حذف أي سطر width: 100px كان موجوداً هنا */
}

.search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 10px 20px; 
    border-radius: 12px;
    border: 10px solid #d4af37; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    gap: 0;
    
    /* هام جداً لكي لا يخرج البرواز عن الشاشة */
    width: 100% !important;
    box-sizing: border-box !important;
}
.search-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 10px;
}

/* رسم الخط الفاصل العمودي */
.search-group:not(:nth-last-child(2)) {
    border-right: 20px solid rgba(212, 175, 55, 0.3);
}

/* في حالة العربي (RTL) نعكس الفاصل */
[dir="rtl"] .search-group:not(:nth-last-child(2)) {
    border-right: none;
    border-left: 5px solid rgba(212, 175, 55, 0.3);
}

.search-group label i {
    color: #d4af37; 
    font-size: 18px;
}

.search-form input, 
.search-form select {
    border: none !important;
    outline: none !important;
    background: transparent;
    width: 100%;
    font-size: 15px;
    color: #333;
}

.search-btn {
    background: #d4af37;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.search-btn:hover {
    background: #b8962e;
    transform: translateY(-2px);
}

.search-form button {
    background: #d4af37;
    color: #1a1a1a;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 15px;
}

.search-form button:hover {
    background: #b8962e;
}

.site-footer {
    background: #050505;
    padding: 60px 0 25px;
    color: #fff;
    text-align: center;
    border-top: 3px solid #d4af37;
}

.footer-info-strip {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding-bottom: 30px;
    margin-bottom: 35px;
}

.info-column h1,
.info-column h2,
.info-column h4 { color: #d4af37; margin-bottom: 15px; font-size: 16px; }

.footer-links-inline, .contact-details-inline {
    list-style: none; display: flex; flex-direction: column; gap: 12px;
}

.footer-links-inline a, .contact-details-inline span {
    font-size: 14px; color: #bbb; text-decoration: none; transition: 0.3s;
}
.contact-details-inline span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.footer-links-inline a:hover { color: #d4af37; padding-right: 5px; }

/* السوشيال ميديا 3D */
.social-bar { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; }
.social-3d {
    width: 60px;          /* كبرنا العرض */
    height: 60px;         /* كبرنا الطول */
    background: #111; 
    border: 1px solid #222;
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 50%; 
    color: #fff; 
    box-shadow: 0 4px 0 #000; 
    transition: 0.3s;
    font-size: 25px;      /* ضيف السطر ده لتكبير الأيقونة نفسها جوه الدائرة */
}
.social-3d:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(212,175,55,0.3); }
/* --- الألوان الأصلية للسوشيال ميديا عند التمرير (Hover) --- */

/* Facebook */
.fb:hover { 
    background: #1877F2 !important; 
    border-color: #1877F2 !important; 
    box-shadow: 0 8px 15px rgba(24, 119, 242, 0.4); 
}

/* Instagram (تدرج لوني احترافي) */
.ig:hover { 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important; 
    border-color: #d6249f !important; 
    box-shadow: 0 8px 15px rgba(214, 36, 159, 0.4); 
}

/* TikTok (تأثير النيون الخاص به) */
.tt:hover { 
    background: #000 !important; 
    border-color: #fff !important; 
    box-shadow: -3px -3px 10px #25F4EE, 3px 3px 10px #FE2C55 !important; 
}

/* WhatsApp */
.wa:hover { 
    background: #25D366 !important; 
    border-color: #25D366 !important; 
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.4); 
}

/* X (Twitter) */
.x:hover { 
    background: #000 !important; 
    border-color: #fff !important; 
    box-shadow: 0 8px 15px rgba(255, 255, 255, 0.2); 
}

/* YouTube */
.yt:hover { 
    background: #FF0000 !important; 
    border-color: #FF0000 !important; 
    box-shadow: 0 8px 15px rgba(255, 0, 0, 0.4); 
}

/* LinkedIn */
.in:hover { 
    background: #0077B5 !important; 
    border-color: #0077B5 !important; 
    box-shadow: 0 8px 15px rgba(0, 119, 181, 0.4); 
}

/* تعديل حجم الأيقونات ليتناسب مع الدائرة الكبيرة 60px */
.social-3d i {
    font-size: 28px; /* تكبير الأيقونة */
    transition: 0.3s;
}

.social-3d:hover i {
    transform: scale(1.1); /* تكبير بسيط عند اللمس */
    color: #fff; /* التأكد من بقاء لون الأيقونة أبيض */
}
.sa{
    align-items: center;
    font-family: 'Almarai', sans-serif;
}
/* مربعات الدفع - الحل النهائي */
.payment-bar-3d {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 15px;
}
.payment-card {
    background: #fff; width: 100px; height: 40px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    transform: perspective(500px) rotateX(10deg);
    box-shadow: 0 5px 0 #888; transition: 0.3s;
    
}
.payment-card img { max-width: 80%; max-height: 80%; object-fit: contain; }

/* ضبط نيتورك الظالم */
.payment-card.network-fix img { transform: scale(0.8); }

.payment-card:hover { transform: perspective(500px) rotateX(0deg) translateY(-5px); }

/* التذييل الذهبي */
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); }
.gold-text { color: #d4af37; font-size: 12px; }
.gold-text strong { color: #fff; text-shadow: 0 0 10px #d4af37; }

/* ================= 8. MOBILE OPTIMIZATION ================= */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container {
        width: min(94%, 100%);
    }

    .topbar {
        height: auto;
        padding: 12px 0 !important;
        font-size: 14px !important;
    }

    .topbar .container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .topbar .left,
    .topbar .right {
        width: 100%;
        text-align: center;
        font-size: 14px !important;
        line-height: 1.7;
    }

    .topbar .right {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 8px;
    }

    .lang-switcher,
    .currency-switcher {
        margin: 0 !important;
    }

    .header {
        padding: 10px 0;
    }

    .header .container {
        flex-direction: column;
        justify-content: center;
        gap: 14px;
    }

    .logo img {
        height: 64px;
    }

    .nav {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .nav a,
    .dropbtn {
        font-size: 13px !important;
        line-height: 1.3;
        padding: 8px 10px;
        background: rgba(212, 175, 55, 0.12);
        border-radius: 8px;
        text-transform: none;
    }

    .dropdown {
        display: block !important;
    }

    .dropdown-content {
        position: static;
        min-width: 100%;
        margin-top: 6px;
        box-shadow: none;
        border: 1px solid #eee;
    }

    .dropdown-content a {
        font-size: 13px !important;
    }

    .hero,
    #hero-section {
        height: auto;
        min-height: 420px;
    }

    .hero-content {
        padding: 32px 16px 40px;
    }

    .hero-content h1 {
        font-size: 28px !important;
        line-height: 1.35;
    }

    .hero-content p {
        font-size: 15px !important;
        line-height: 1.7;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions a {
        width: 100%;
        text-align: center;
    }

    .search-box {
        margin-top: -20px !important;
        width: calc(100% - 20px) !important;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px;
        border-width: 4px;
        border-radius: 14px;
    }

    .search-group {
        width: 100%;
        padding: 8px 0;
        border: 0 !important;
        border-bottom: 1px solid #eee !important;
    }

    .search-group:last-of-type {
        border-bottom: 0 !important;
    }

    .search-form input,
    .search-form select,
    .search-form button,
    .search-btn {
        width: 100% !important;
        min-height: 48px;
        font-size: 14px;
    }

    .hotels,
    .destinations {
        padding: 48px 0;
    }

    .hotel-grid,
    .destinations-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .destination-card {
        height: 200px;
    }

    .destination-card span {
        left: 14px;
        bottom: 14px;
        font-size: 17px;
    }

    .sponsor-ticker-wrapper {
        padding: 16px 0;
    }

    .sponsor-item {
        font-size: 1rem;
        margin: 0 24px;
    }

    .site-footer {
        padding: 36px 0 22px;
    }

    .site-footer h1,
    .site-footer h2,
    .site-footer h4,
    .footer-bottom p.gold-text {
        font-size: 18px !important;
        line-height: 1.6;
    }

    .footer-info-strip {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links-inline,
    .contact-details-inline {
        gap: 10px;
    }

    .contact-details-inline span {
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-bar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .social-3d {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .payment-bar-3d {
        gap: 10px;
    }

    .payment-card {
        width: calc(50% - 10px);
        min-width: 0;
        height: 46px;
        transform: none;
        box-shadow: 0 4px 0 #888 !important;
    }

    .gold-text {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .hero-content h1 {
        font-size: 24px !important;
    }

    .hero-content p {
        font-size: 14px !important;
    }

    .nav a,
    .dropbtn {
        width: calc(50% - 8px);
        text-align: center;
    }

    .payment-card {
        width: 100%;
    }

    .search-box {
        width: calc(100% - 14px) !important;
    }
}
