/* --- 0. Multilingual & RTL Setup --- */
/* Import Fonts: Poppins (English) & Cairo (Arabic/Kurdish) */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* RTL Logic for Arabic & Kurdish */
body[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
    text-align: right;
    direction: rtl;
}

/* Fix Layouts for RTL */
body[dir="rtl"] .nav-links { padding-right: 0; }
body[dir="rtl"] .logo { text-align: right; }
body[dir="rtl"] .hero h1, body[dir="rtl"] .hero p { text-align: center; } /* Keep hero centered */
body[dir="rtl"] .search-form button { border-radius: 5px 0 0 5px; } 
body[dir="rtl"] .search-form input { text-align: right; }
body[dir="rtl"] .footer-content { text-align: right; }
body[dir="rtl"] .socials a { margin-right: 0; margin-left: 10px; }
body[dir="rtl"] .meta-tags span { margin-left: 15px; margin-right: 0; }
body[dir="rtl"] .features-row i { margin-left: 5px; margin-right: 0; }
body[dir="rtl"] .card-footer { flex-direction: row-reverse; } /* Flip card footer */
body[dir="rtl"] .price-overlay { left: 20px; right: auto; }
body[dir="rtl"] .card-badges { right: 20px; left: auto; }
body[dir="rtl"] .offer-number { left: 20px; right: auto; }
body[dir="rtl"] .footer-col h3::after { right: 0; left: auto; }
body[dir="rtl"] .footer-links a:hover { transform: translateX(-5px); }
body[dir="rtl"] .contact-row { text-align: right; }
body[dir="rtl"] .input-wrapper i { right: 15px; left: auto; }
body[dir="rtl"] .input-wrapper input { padding-right: 45px; padding-left: 15px; }

/* Language Switcher Styling */
.lang-switch {
    display: flex; gap: 5px; margin-left: 15px; align-items: center;
}
body[dir="rtl"] .lang-switch { margin-right: 15px; margin-left: 0; }

.lang-btn {
    color: white; text-decoration: none; font-size: 0.75rem; font-weight: 700;
    padding: 4px 8px; border: 1px solid rgba(255,255,255,0.4); border-radius: 4px;
    transition: 0.3s;
}
.lang-btn:hover, .lang-btn.active {
    background: var(--primary-red); border-color: var(--primary-red);
}

/* --- 1. Global Setup & Variables --- */
:root {
    --primary-red: #D32F2F;
    --deep-red: #B71C1C;
    --accent-red: #FFEBEE;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 50px rgba(0,0,0,0.15);
    --font-main: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: #FAFAFA;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary-red); border-radius: 4px; }

.container { max-width: 1250px; margin: 0 auto; padding: 0 25px; }

/* --- 2. Glass Navbar (UPDATED FOR 70PX HEIGHT) --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 10px 0; /* Updated: 10px top + 50px logo + 10px bottom = 70px */
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(211, 47, 47, 0.95); /* Red Glass */
    backdrop-filter: blur(10px);
    padding: 10px 0; /* Keep consistent height on scroll */
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

/* Global Logo Size Control (UPDATED TO 50PX) */
.navbar-brand img, nav img, .logo img, .site-logo-img {
    height: 50px !important; /* Updated: Fits perfectly in 70px header */
    width: auto !important;
    max-height: 120px !important;
    object-fit: contain;
}

.logo a {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 10px;
}

.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }

.nav-links li a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
    transition: 0.3s;
}

/* Modern Underline Animation */
.nav-links li a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
    background-color: var(--white); transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links li a:hover::after, .nav-links li a.active-link::after { width: 100%; }
.nav-links li a:hover { color: var(--white); }

/* Hamburger Menu (Mobile) */
.hamburger { display: none; color: white; font-size: 1.5rem; cursor: pointer; z-index: 1001; }

/* --- 3. Hero Section --- */
.hero {
    height: 90vh;
    min-height: 500px; /* Prevent it from being too small on short screens */
    background-size: cover; background-position: center; background-attachment: fixed;
    position: relative; display: flex; flex-direction: column;
    justify-content: center; align-items: center; color: var(--white); text-align: center;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.5));
}
.hero-content { position: relative; z-index: 2; margin-bottom: 80px; transform: translateY(30px); opacity: 0; animation: fadeUp 1s forwards; width: 100%; padding: 0 15px; }
.badge { background: rgba(255,255,255,0.2); backdrop-filter: blur(5px); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.3); }
.hero-content h1 { font-size: 4.5rem; font-weight: 700; margin: 20px 0 10px; line-height: 1.1; text-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.2rem; font-weight: 300; opacity: 0.9; max-width: 600px; margin: 0 auto; }
.hero-btn-link { display: inline-block; padding: 15px 40px; background: var(--primary-red); color: white; border-radius: 50px; font-weight: 700; margin-top: 20px; transition: 0.3s; }
.hero-btn-link:hover { background: var(--deep-red); transform: translateY(-5px); color: white; }

/* --- 4. The "Pro" Search Box --- */
.search-wrapper {
    position: relative; z-index: 5; background: var(--white); padding: 10px;
    border-radius: 15px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); width: 90%; max-width: 1000px;
    margin-bottom: -150px; transform: translateY(50px); opacity: 0; animation: fadeUp 1s 0.3s forwards;
}
.search-tabs { display: flex; padding: 10px 20px; border-bottom: 1px solid #eee; overflow-x: auto; }
.tab-btn { background: none; border: none; padding: 10px 20px; font-size: 1rem; font-weight: 600; color: var(--text-gray); cursor: pointer; transition: 0.3s; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.tab-btn.active { color: var(--primary-red); position: relative; }
.tab-btn.active::after { content: ''; position: absolute; bottom: -11px; left: 0; width: 100%; height: 3px; background: var(--primary-red); }
.search-form { display: flex; padding: 30px; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
.form-group { flex: 1; min-width: 200px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.input-wrap { display: flex; align-items: center; background: #F5F7FA; border-radius: 8px; padding: 0 15px; border: 1px solid transparent; transition: 0.3s; }
.input-wrap:focus-within { border-color: var(--primary-red); background: var(--white); box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1); }
.input-wrap i { color: var(--primary-red); }
.input-wrap input { width: 100%; border: none; background: transparent; padding: 15px 10px; font-family: var(--font-main); font-weight: 500; outline: none; }
.btn-search { background: var(--primary-red); color: var(--white); border: none; padding: 15px 40px; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3); display: flex; align-items: center; gap: 10px; height: 50px; justify-content: center; }
.btn-search:hover { background: var(--deep-red); transform: translateY(-2px); box-shadow: 0 15px 30px rgba(211, 47, 47, 0.4); }

/* --- 5. Packages (Premium Cards) --- */
.section-padding { padding: 100px 0; }
.bg-light { background: #f8f9fa; }
.section-header { text-align: center; margin-bottom: 60px; padding: 0 15px; }
.section-header h4 { color: var(--primary-red); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.section-header h2 { font-size: 2.5rem; font-weight: 700; color: var(--text-dark); }
.title-line { width: 60px; height: 4px; background: var(--primary-red); margin: 15px auto; border-radius: 2px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.trip-card { background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-soft); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; height: 100%; display: flex; flex-direction: column; }
.trip-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

.card-image-box { height: 250px; position: relative; overflow: hidden; flex-shrink: 0; }
.card-image-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.trip-card:hover .card-image-box img { transform: scale(1.1); }

.price-overlay { position: absolute; bottom: 20px; right: 20px; background: var(--white); color: var(--primary-red); padding: 8px 15px; border-radius: 8px; font-weight: 700; font-size: 1.2rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.card-badges { position: absolute; top: 20px; left: 20px; }
.badge-new { background: var(--primary-red); color: var(--white); padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }

.card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.meta-tags { display: flex; gap: 15px; font-size: 0.85rem; color: var(--text-gray); margin-bottom: 15px; flex-wrap: wrap; }
.card-content h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 15px; color: var(--text-dark); }
.features-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 25px; flex-grow: 1; }
.features-row span { font-size: 0.8rem; background: var(--accent-red); color: var(--deep-red); padding: 5px 10px; border-radius: 5px; font-weight: 500; }

.card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; padding-top: 20px; margin-top: auto; }
.btn-link { background: none; border: none; color: var(--primary-red); font-weight: 700; font-size: 0.95rem; cursor: pointer; text-decoration: none; }
.btn-book-icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #eee; background: white; color: var(--text-gray); cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.btn-book-icon:hover { background: var(--primary-red); color: var(--white); border-color: var(--primary-red); }

/* --- 6. Stats Section --- */
.stats-section { background: white; padding: 60px 0; border-bottom: 1px solid #eee; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item i { font-size: 2.5rem; color: var(--primary-red); margin-bottom: 15px; opacity: 0.8; }
.stat-item h3 { font-size: 2.5rem; color: #333; font-weight: 700; margin-bottom: 5px; margin-top: 0; }
.stat-item p { color: #666; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin: 0; }

/* --- 7. Offers (What We Offer) --- */
.offer-card { background: #ffffff; padding: 40px 30px; border-radius: 20px; position: relative; overflow: hidden; height: 100%; box-shadow: var(--shadow-soft); transition: 0.3s; border: 1px solid #f0f0f0; display: flex; flex-direction: column; }
.offer-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.offer-icon { width: 70px; height: 70px; background: #ffebeb; color: var(--primary-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 25px; position: relative; z-index: 1; flex-shrink: 0; }
.offer-card:hover .offer-icon { background: var(--primary-red); color: white; }
.offer-number { position: absolute; top: 20px; right: 20px; font-size: 6rem; font-weight: 900; color: #f7f7f7; line-height: 1; z-index: 0; font-family: sans-serif; transition: 0.3s; }
.offer-content { position: relative; z-index: 1; flex-grow: 1; }
.offer-link { color: var(--primary-red); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; margin-top: 15px; }

/* --- 8. Testimonials --- */
.testimonial-card-modern { background: #fff; padding: 40px; border-radius: 15px; box-shadow: var(--shadow-soft); height: 100%; transition: 0.3s; border: 1px solid #f8f8f8; display: flex; flex-direction: column; }
.testimonial-card-modern:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.quote-icon-large { font-size: 4rem; color: #ffcccc; line-height: 1; margin-bottom: 20px; opacity: 0.8; }
.user-img-circle { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,0.1); }

/* --- 9. Footer --- */
.new-footer { background: #111; color: #fff; padding-top: 80px; position: relative; overflow: hidden; margin-top: 50px; border-top: 5px solid var(--primary-red); }
.new-footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('https://www.transparenttextures.com/patterns/cubes.png'); opacity: 0.05; pointer-events: none; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 25px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand h2 { font-size: 2rem; font-weight: 700; margin-bottom: 20px; color: #fff; }
.footer-brand p { color: #999; line-height: 1.8; margin-bottom: 25px; font-size: 0.95rem; }
.footer-col h3 { font-size: 1.2rem; color: #fff; margin-bottom: 25px; font-weight: 600; position: relative; display: inline-block; }
.footer-col h3::after { content: ''; position: absolute; bottom: -8px; width: 30px; height: 2px; background: var(--primary-red); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #999; text-decoration: none; transition: 0.3s; display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary-red); }
.footer-bottom { text-align: center; padding: 25px 0; background: #050505; color: #666; font-size: 0.9rem; direction: ltr !important; }
footer img, .footer-logo img { height: 130px !important; width: auto !important; object-fit: contain; margin-bottom: 20px; }

/* Social Icons */
.social-group { display: flex; gap: 15px; flex-wrap: wrap; }
.social-btn { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; transition: 0.4s; text-decoration: none; }
.social-btn:hover { background: var(--primary-red); border-color: var(--primary-red); transform: translateY(-5px); }

/* --- 10. Animations --- */
@keyframes fadeUp { to { transform: translateY(0); opacity: 1; } }
.reveal { opacity: 0; transform: translateY(50px); transition: all 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- 11. RESPONSIVE MEDIA QUERIES (CRITICAL UPDATES) --- */

/* Laptops & Small Desktops (max 1200px) */
@media (max-width: 1200px) {
    .container { padding: 0 20px; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 30px; }
    .hero h1 { font-size: 4rem; }
}

/* Tablets (max 992px) */
@media (max-width: 992px) {
    /* Navbar Toggle Setup */
    .nav-container { position: relative; }
    .hamburger { display: block; position: relative; z-index: 1002; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
        background: #fff; flex-direction: column; padding: 80px 30px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1); transition: 0.4s ease;
        align-items: flex-start; justify-content: flex-start; z-index: 1000;
    }
    
    /* RTL Mobile Menu Slide from Left */
    body[dir="rtl"] .nav-links { right: auto; left: -100%; box-shadow: 5px 0 20px rgba(0,0,0,0.1); }
    body[dir="rtl"] .nav-links.active { left: 0; }
    
    .nav-links.active { right: 0; }
    .nav-links li { width: 100%; margin-bottom: 20px; }
    .nav-links li a { color: #333; font-size: 1.2rem; display: block; width: 100%; border-bottom: 1px solid #eee; padding-bottom: 10px; }
    .nav-links li a::after { display: none; } /* Remove hover underline on mobile */

    /* Grids */
    .grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Typography */
    .hero h1 { font-size: 3.5rem; }
    .section-header h2 { font-size: 2.2rem; }
}

/* Mobile Devices (max 768px) */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; line-height: 1.2; }
    .hero p { font-size: 1rem; padding: 0 15px; }
    .hero { height: 85vh; }
    
    /* Search Form Stack */
    .search-wrapper { width: 95%; margin-bottom: -100px; }
    .search-form { flex-direction: column; gap: 15px; padding: 20px; }
    .form-group, .btn-search { width: 100%; }
    
    /* Single Column Layouts */
    .grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } /* Keep 2 cols for stats on mobile */
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    
    /* Footer Alignments */
    .footer-col h3::after { left: 50%; transform: translateX(-50%); right: auto; }
    body[dir="rtl"] .footer-col h3::after { right: 50%; transform: translateX(50%); left: auto; }
    .social-group { justify-content: center; }
    .footer-links a { justify-content: center; }
    .footer-content { text-align: center !important; }
    
    /* Adjust Paddings */
    .section-padding { padding: 60px 0; }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr; } /* Stack stats on very small screens */
    .navbar-brand img { height: 40px !important; }
    .btn-search { font-size: 0.9rem; padding: 12px; }
}