:root {
    --primary-color: #008080;
    --secondary-color: #FFD700;
    --dark-navy: #001F3F;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
}

* { box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
    font-size: 1.05rem;
    font-family: 'Outfit', 'Cairo', 'Noto Kufi Arabic', sans-serif;
}

/* Ensure FontAwesome is never overridden by custom fonts */
.fas, .fa-solid, .far, .fa-regular, .fab, .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* ===== Top Bar ===== */
.top-bar { font-size: 0.85rem; }
.top-langs a { text-decoration: none; font-size: 1.2rem; transition: transform 0.2s ease; }
.top-langs a:hover { transform: scale(1.3); }

/* ===== Colors ===== */
.text-teal { color: var(--primary-color) !important; }
.bg-navy { background-color: var(--dark-navy) !important; }
.btn-primary { background: var(--primary-color); border-color: var(--primary-color); }
.btn-primary:hover { background: #006e6e; border-color: #006e6e; }
.btn-outline-primary { color: var(--primary-color); border-color: var(--primary-color); }
.btn-outline-primary:hover, .btn-outline-primary.active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.text-primary { color: var(--primary-color) !important; }
.badge.bg-primary { background-color: var(--primary-color) !important; }

/* ===== Navbar ===== */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.navbar-brand { font-weight: 800; font-size: 1.4rem; color: var(--primary-color) !important; }
.nav-link { font-weight: 600; color: var(--text-dark) !important; transition: color 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--primary-color) !important; }

/* ===== Hero Section ===== */
.hero-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background: var(--dark-navy);
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/hero.png') center/cover no-repeat;
    background-attachment: fixed; /* Parallax Magic */
    transform: translateZ(0); /* Hardware Acceleration */
    opacity: 0.6;
    z-index: 0;
}
.hero-content { position: relative; z-index: 1; color: #fff; }
.hero-content h1 { text-shadow: 0 4px 20px rgba(0,0,0,0.3); }

/* ===== Page Hero (About/Contact) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--dark-navy) 0%, #003366 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #006666 100%);
}

/* ===== Trip Cards (Glassmorphism & 3D VanillaTilt Enabled) ===== */
.trip-card {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .trip-card {
    background: rgba(36, 37, 38, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}
.trip-card:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.15); /* VanillaTilt handles the transform */
}
.trip-card .card-body {
    transform: translateZ(30px); /* 3D pop out effect */
}
.trip-card .card-img-top, .trip-image {
    height: 220px;
    object-fit: cover;
    transform: translateZ(10px);
}

.trip-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: #000;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translateZ(40px); /* Popping even more */
}

/* ===== Itinerary Timeline ===== */
.itinerary-timeline { border-left: 3px solid var(--primary-color); padding-left: 20px; }
.itinerary-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
}

/* ===== Footer ===== */
footer {
    background: var(--dark-navy);
    color: white;
}
footer a { transition: color 0.3s; }
footer a:hover { color: var(--secondary-color) !important; }

/* ===== Floating WhatsApp ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37,211,102,0.6);
    color: white;
}
@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 25px rgba(37,211,102,0.7); }
}

/* ===== Feature Cards ===== */
.feature-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(0,128,128,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Stat Cards ===== */
.stat-card {
    padding: 30px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-5px); }

/* ===== Touch-friendly buttons ===== */
.btn-lg, .btn-primary, .btn-outline-primary {
    padding: 12px 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
/* RTL: disable letter-spacing & text-uppercase for Arabic */
[dir="rtl"] .btn-lg, [dir="rtl"] .btn-primary, [dir="rtl"] .btn-outline-primary { letter-spacing: normal; }
[dir="rtl"] .text-uppercase { text-transform: none !important; letter-spacing: normal !important; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 { letter-spacing: normal !important; }

/* ===== Review Cards ===== */
.reviews-section .card { transition: transform 0.3s; }
.reviews-section .card:hover { transform: translateY(-5px); }

/* ===== Wave Dividers ===== */
.wave-divider {
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: hidden;
}
.wave-divider svg {
    display: block;
    margin: 0;
    padding: 0;
}

/* ===== Search Section ===== */
.search-bar-section { margin: 0; }
.search-bar-section .form-control:focus { box-shadow: 0 0 0 3px rgba(0,128,128,0.15); border-color: var(--primary-color); }

/* ===== Cards General ===== */
.card { transition: transform 0.3s, box-shadow 0.3s; }

/* ===== RTL Support ===== */
[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
[dir="rtl"] .ms-3 { margin-left: 0 !important; margin-right: 1rem !important; }
[dir="rtl"] .ps-4 { padding-left: 0 !important; padding-right: 1.5rem !important; }
[dir="rtl"] .pe-4 { padding-right: 0 !important; padding-left: 1.5rem !important; }
[dir="rtl"] .text-end { text-align: start !important; }
[dir="rtl"] .whatsapp-float { right: auto; left: 30px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-section { padding: 80px 0; }
    .hero-content h1 { font-size: 2rem; }
    .trip-card .card-img-top { height: 180px; }
    .display-4, .display-5 { font-size: 1.8rem; }
    .page-hero { padding: 50px 0; }
    .stat-card h2 { font-size: 2rem; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 22px; }
}

@media (max-width: 576px) {
    .top-bar { display: none !important; }
    .hero-section { padding: 60px 0; }
    .d-flex.gap-3 { flex-direction: column; }
    .btn-lg { font-size: 0.9rem; padding: 10px 20px; }
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
    --primary-color: #00caca; /* Lighter teal for better contrast */
    --text-dark: #e4e6eb;
    --text-muted: #b0b3b8;
    --bg-light: #18191a;
}
[data-theme="dark"] body { background: #18191a; color: #e4e6eb; }
[data-theme="dark"] .navbar { background: rgba(36,37,38,0.97); }
[data-theme="dark"] .nav-link { color: #e4e6eb !important; }
[data-theme="dark"] .top-bar { background: #242526 !important; border-color: #3a3b3c !important; }
[data-theme="dark"] .top-bar .text-muted { color: #b0b3b8 !important; }
[data-theme="dark"] .trip-card,
[data-theme="dark"] .card { background: #242526; box-shadow: 0 5px 20px rgba(0,0,0,0.3); }
[data-theme="dark"] .card-body { color: #e4e6eb; }
[data-theme="dark"] .text-dark { color: #e4e6eb !important; }
[data-theme="dark"] .text-muted { color: #b0b3b8 !important; }
[data-theme="dark"] .bg-light { background: #242526 !important; }
[data-theme="dark"] .bg-white { background: #242526 !important; }
[data-theme="dark"] .bg-light-subtle { background: #3a3b3c !important; }
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select { background: #3a3b3c; border-color: #4a4b4d; color: #e4e6eb; }
[data-theme="dark"] .form-control:focus { background: #3a3b3c; color: #e4e6eb; }
[data-theme="dark"] .modal-content { background: #242526; color: #e4e6eb; }
[data-theme="dark"] .btn-outline-dark { color: #e4e6eb; border-color: #4a4b4d; }
[data-theme="dark"] .btn-outline-dark:hover { background: #3a3b3c; color: #fff; }
[data-theme="dark"] .btn-outline-secondary { color: #b0b3b8; border-color: #4a4b4d; }
[data-theme="dark"] .stat-card { background: #242526; }
[data-theme="dark"] .feature-icon { background: rgba(0,128,128,0.15); }
[data-theme="dark"] .table { color: #e4e6eb; }
[data-theme="dark"] .accordion-button { background: #3a3b3c; color: #e4e6eb; }
[data-theme="dark"] .accordion-button:not(.collapsed) { background: #3a3b3c; color: var(--primary-color); }
[data-theme="dark"] .accordion-body { background: #242526; }
[data-theme="dark"] .border-bottom { border-color: #3a3b3c !important; }
[data-theme="dark"] .dropdown-menu { background: #242526; border-color: #3a3b3c; }
[data-theme="dark"] .dropdown-item { color: #e4e6eb; }
[data-theme="dark"] .dropdown-item:hover { background: #3a3b3c; }
[data-theme="dark"] .alert { background: #242526; border-color: #3a3b3c; }
[data-theme="dark"] footer { background: #0d0d0d; }

/* Comprehensive Text Fix for Dark Mode */
[data-theme="dark"] h1, [data-theme="dark"] .h1,
[data-theme="dark"] h2, [data-theme="dark"] .h2,
[data-theme="dark"] h3, [data-theme="dark"] .h3,
[data-theme="dark"] h4, [data-theme="dark"] .h4,
[data-theme="dark"] h5, [data-theme="dark"] .h5,
[data-theme="dark"] h6, [data-theme="dark"] .h6 {
    color: #f1f2f6 !important;
}
[data-theme="dark"] p:not([class*="text-primary"]):not([class*="text-warning"]):not([class*="text-danger"]):not([class*="text-success"]):not([class*="text-white"]),
[data-theme="dark"] label,
[data-theme="dark"] li:not(.dropdown-item),
[data-theme="dark"] strong {
    color: #e4e6eb !important;
}
[data-theme="dark"] ::placeholder { 
    color: #b0b3b8 !important; 
    opacity: 1; 
}
[data-theme="dark"] .text-black { color: #e4e6eb !important; }

.theme-toggle {
    background: none;
    border: 2px solid #ddd;
    border-radius: 50px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}
[data-theme="dark"] .theme-toggle { border-color: #4a4b4d; color: #e4e6eb; }
.theme-toggle:hover { transform: scale(1.05); }

/* ===== STAR RATINGS ===== */
.star-rating { display: inline-flex; gap: 2px; }
.star-rating .star { color: #ffc107; font-size: 1rem; }
.star-rating .star.empty { color: #ddd; }
[data-theme="dark"] .star-rating .star.empty { color: #4a4b4d; }
.rating-form .star-btn {
    background: none; border: none; font-size: 1.8rem;
    color: #ddd; cursor: pointer; transition: color 0.2s, transform 0.2s;
    padding: 2px;
}
.rating-form .star-btn:hover, .rating-form .star-btn.active { color: #ffc107; transform: scale(1.2); }

/* ===== LIVE SEARCH ===== */
.live-search-results {
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; border-radius: 0 0 15px 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    z-index: 1050; max-height: 350px; overflow-y: auto;
    display: none;
}
.live-search-results.show { display: block; }
.live-search-item {
    display: flex; align-items: center; padding: 12px 20px; gap: 15px;
    text-decoration: none; color: inherit; transition: background 0.2s;
}
.live-search-item:hover { background: #f0f2f5; }
.live-search-item img { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; }
[data-theme="dark"] .live-search-results { background: #242526; }
[data-theme="dark"] .live-search-item:hover { background: #3a3b3c; }
[data-theme="dark"] .live-search-item { color: #e4e6eb; }

/* ===== GALLERY LIGHTBOX ===== */
.trip-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.trip-gallery img { width: 100%; height: 100px; object-fit: cover; border-radius: 10px; cursor: pointer; transition: transform 0.3s, opacity 0.3s; }
.trip-gallery img:hover { transform: scale(1.05); opacity: 0.85; }
.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.92); z-index: 99999;
    display: none; align-items: center; justify-content: center;
}
.lightbox-overlay.show { display: flex; }
.lightbox-overlay img { max-width: 90%; max-height: 85vh; border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    font-size: 2rem; color: white; cursor: pointer;
    background: rgba(255,255,255,0.1); border-radius: 50%;
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 2rem; color: white; cursor: pointer;
    background: rgba(255,255,255,0.1); border-radius: 50%;
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    border: none; transition: background 0.3s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ===== SMART CHAT WIDGET ===== */
.chat-widget {
    position: fixed; bottom: 100px; right: 30px; z-index: 9998;
    opacity: 0; transform: translateY(20px); pointer-events: none;
    transition: opacity 0.4s, transform 0.4s;
}
.chat-widget.show { opacity: 1; transform: translateY(0); pointer-events: all; }
.chat-bubble {
    background: white; border-radius: 20px 20px 5px 20px; padding: 18px 22px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12); max-width: 280px;
    position: relative; animation: chatBounce 0.5s ease;
}
[data-theme="dark"] .chat-bubble { background: #242526; color: #e4e6eb; box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.chat-bubble::after {
    content: ''; position: absolute; bottom: -8px; right: 20px;
    width: 0; height: 0; border-left: 10px solid transparent;
    border-right: 10px solid transparent; border-top: 10px solid white;
}
[data-theme="dark"] .chat-bubble::after { border-top-color: #242526; }
.chat-bubble .close-chat {
    position: absolute; top: 8px; right: 10px;
    font-size: 0.75rem; cursor: pointer; color: #999; background: none; border: none;
}
@keyframes chatBounce { from { opacity: 0; transform: scale(0.8) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
[dir="rtl"] .chat-widget { right: auto; left: 30px; }
[dir="rtl"] .chat-bubble { border-radius: 20px 20px 20px 5px; }
[dir="rtl"] .chat-bubble::after { right: auto; left: 20px; }

/* ===== TRIP MAP ===== */
.trip-map-container { border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.trip-map-container #tripMap { height: 300px; width: 100%; }

/* ===== AOS CUSTOM ===== */
[data-aos] { transition-property: opacity, transform; }

/* =========================================
   10 ULTIMATE WOW FEATURES COMPILATION
========================================= */

/* 1. Preloader */
#global-preloader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--dark-navy); z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}
#global-preloader.loaded { opacity: 0; visibility: hidden; }
.preloader-brand { color: white; font-size: 2.5rem; font-weight: 800; animation: pulseGlow 1.5s infinite alternate; }
@keyframes pulseGlow { from { text-shadow: 0 0 10px rgba(255,215,0,0.2); transform: scale(0.98); } to { text-shadow: 0 0 30px rgba(255,215,0,0.8); transform: scale(1.05); } }

/* 0. Neon Glowing Buttons (Dark Mode) */
[data-theme="dark"] .btn-primary {
    box-shadow: 0 0 15px rgba(0, 202, 202, 0.4);
    border: none;
}
[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 202, 202, 0.6);
}
[data-theme="dark"] .badge.bg-primary {
    box-shadow: 0 0 10px rgba(0, 202, 202, 0.4);
}

/* 2. Glassmorphism Upgrades */
.glass-card, .search-dropdown-menu, .glass-panel {
    background: rgba(255, 255, 255, 0.70) !important;
    backdrop-filter: blur(25px) saturate(180%); -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}
[data-theme="dark"] .glass-card, [data-theme="dark"] .search-dropdown-menu, [data-theme="dark"] .glass-panel { 
    background: rgba(24, 25, 26, 0.85) !important; 
    border: 1px solid rgba(255,255,255,0.05) !important; 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}
.search-glass-wrapper {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}
[data-theme="dark"] .search-glass-wrapper { background: rgba(36, 37, 38, 0.7) !important; border-color: rgba(255,255,255,0.1) !important; }

/* 3. Drop Parallax effect (handled largely by JS, but adding will-change for performance) */
.parallax-bg { will-change: transform; }

/* 4. Scroll Progress Indicator */
#scroll-progress-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 4px;
    background: transparent; z-index: 99999; pointer-events: none;
}
#scroll-progress-bar { height: 100%; background: var(--secondary-color); width: 0%; box-shadow: 0 0 10px var(--secondary-color); transition: width 0.1s linear; }

/* 5. Micro-Interactions (Tangible Buttons) */
.btn { transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.btn:active { transform: scale(0.95) !important; filter: brightness(0.9); }
.trip-card, .stat-card { transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.trip-card:hover, .stat-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.12); z-index: 10; }

.magnetic-btn { display: inline-block; transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1); }
.ripple-btn { position: relative; overflow: hidden; }
.ripple-circle {
    position: absolute; border-radius: 50%; transform: scale(0);
    animation: ripple-animation 0.6s linear; background: rgba(255,255,255,0.4);
}
@keyframes ripple-animation { to { transform: scale(4); opacity: 0; } }

/* 6. Sticky Booking Bar */
#sticky-booking-bar {
    position: fixed; bottom: -100px; left: 0; width: 100%;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(15px);
    box-shadow: 0 -5px 25px rgba(0,0,0,0.1); z-index: 1030;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1); padding: 15px 0; border-top: 1px solid rgba(0,0,0,0.05);
}
#sticky-booking-bar.show { bottom: 0; }
[data-theme="dark"] #sticky-booking-bar { background: rgba(36,37,38,0.95); border-top: 1px solid #3a3b3c; }

/* 7. Exit-Intent Modal */
#exit-intent-modal { display: none; }

/* 8. Custom Premium Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: rgba(0, 128, 128, 0.6); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }
[data-theme="dark"] ::-webkit-scrollbar-track { background: #18191a; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #4a4b4d; }

/* 9. Skeleton Lazy Loading */
.img-skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: skeletonShimmer 1.5s infinite; border-radius: inherit; }
[data-theme="dark"] .img-skeleton { background: linear-gradient(90deg, #2c2d2e 25%, #3a3b3c 50%, #2c2d2e 75%); }
@keyframes skeletonShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.lazy-fade { opacity: 0; transition: opacity 0.8s ease-in-out; }
.lazy-fade.loaded { opacity: 1; }

/* 10. Page Transitions */
.page-transition-wrapper { animation: pageFadeIn 0.8s ease forwards; }
.page-transition-out { animation: pageFadeOut 0.5s ease forwards; }
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pageFadeOut { from { opacity: 1; transform: translateY(-15px); } to { opacity: 0; transform: translateY(-20px); } }

/* =========================================
   11. UNIVERSAL MOBILE RESPONSIVE OVERRIDE
========================================= */
/* Ensure all tables are horizontally scrollable on mobile without needing .table-responsive wrappers everywhere */
@media (max-width: 768px) {
    table { display: block !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; width: 100% !important; }
    .table-responsive { border: none !important; margin-bottom: 0; }
    img, video, iframe { max-width: 100% !important; height: auto; }
    .container, .container-fluid { padding-left: 15px !important; padding-right: 15px !important; }
    .display-1, .display-2, .display-3 { font-size: 2.2rem !important; }
    .display-4 { font-size: 1.8rem !important; }
    body { font-size: 1rem !important; padding-bottom: 80px; } /* Space for bottom bar */
    .btn-lg { padding: 10px 20px !important; font-size: 1rem !important; width: 100%; margin-bottom: 10px; } 
    .card-body { padding: 1.25rem !important; }
    .navbar .navbar-nav { display: none !important; } /* Hide traditional nav on mobile */
    .whatsapp-float { bottom: 90px; } /* Lift above bottom bar */

    /* V17 Horizontal Scroll Snapping */
    .horizontal-snap-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding-bottom: 15px;
        margin-left: -15px; /* Full bleed edge */
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
        scrollbar-width: none; /* Firefox */
    }
    .horizontal-snap-container::-webkit-scrollbar { display: none; }
    .horizontal-snap-container > [class*="col-"] {
        flex: 0 0 85% !important;
        max-width: 85% !important;
        scroll-snap-align: center;
    }
}

@media (max-width: 480px) {
    /* Micro Mobile (iPhone SE etc.) */
    .hero-section { padding: 50px 0 !important; }
    .btn { width: 100%; margin-bottom: 10px; } 
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
}

/* V17 Bottom App Bar */
.bottom-app-bar {
    position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.08); display: flex; justify-content: space-around; padding: 10px 0 20px 0; z-index: 1040;
    border-top: 1px solid rgba(0,0,0,0.05);
}
[data-theme="dark"] .bottom-app-bar { background: rgba(36,37,38,0.95); border-top-color: rgba(255,255,255,0.05); }
.bottom-app-bar .bar-item {
    display: flex; flex-direction: column; align-items: center; color: var(--text-muted); text-decoration: none; font-size: 0.75rem; transition: color 0.3s;
}
.bottom-app-bar .bar-item i { font-size: 1.4rem; margin-bottom: 4px; transition: transform 0.2s; }
.bottom-app-bar .bar-item.active { color: var(--primary-color); font-weight: bold; }
.bottom-app-bar .bar-item.active i { transform: scale(1.15); }

/* V17 PWA Modal */
.pwa-modal { position: fixed; bottom: 85px; left: 0; right: 0; z-index: 1050; padding: 0 15px; }
@keyframes slideUp { from { transform: translateY(150px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideDown { from { transform: translateY(0); opacity: 1; } to { transform: translateY(150px); opacity: 0; } }

/* V17 Mobile Swipe Action */
.swipe-to-action-wrapper {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: 1rem; position: relative;
}
.swipe-to-action-wrapper::-webkit-scrollbar { display: none; }
.swipe-content { flex: 0 0 100%; scroll-snap-align: start; z-index: 2; }
.swipe-action {
    flex: 0 0 80px; scroll-snap-align: end; cursor: pointer; display: flex; align-items: center; justify-content: center; margin-left: -20px; z-index: 1; padding-left: 20px;
}

/* V17 Mobile Sticky Booking Bar */
.mobile-sticky-book-bar {
    position: fixed; bottom: 80px; left: 0; right: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    z-index: 1030; padding: 12px 0; transform: translateY(150%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .mobile-sticky-book-bar { background: rgba(36,37,38,0.95); }
.mobile-sticky-book-bar.show { transform: translateY(0); }

/* ===== SCROLL-TO-TOP BUTTON ===== */
#scrollToTopBtn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1040;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #006666);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}
#scrollToTopBtn.visible {
    opacity: 1;
    transform: translateY(0);
}
#scrollToTopBtn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 128, 128, 0.5);
}
[dir="rtl"] #scrollToTopBtn { right: auto; left: 30px; }
@media (max-width: 768px) {
    #scrollToTopBtn { bottom: 160px; width: 42px; height: 42px; font-size: 1rem; }
}

/* ===== ENHANCED RTL / CAIRO FONT ===== */
[dir="rtl"] body {
    font-family: 'Cairo', 'Noto Kufi Arabic', 'Outfit', sans-serif !important;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
[dir="rtl"] .display-1, [dir="rtl"] .display-2, [dir="rtl"] .display-3,
[dir="rtl"] .display-4, [dir="rtl"] .display-5, [dir="rtl"] .display-6 {
    font-family: 'Cairo', 'Noto Kufi Arabic', sans-serif !important;
    font-weight: 700 !important;
}
[dir="rtl"] .navbar-brand {
    font-family: 'Outfit', sans-serif !important;
}
[dir="rtl"] .footer-links a {
    padding-right: 0;
    padding-left: 0;
}
[dir="rtl"] .chat-bubble::after {
    right: auto;
    left: 20px;
}
[dir="rtl"] .fa-chevron-right::before {
    content: "\f053"; /* flip chevron for RTL */
}
[dir="rtl"] .fa-arrow-right::before {
    content: "\f060"; /* flip arrow for RTL */
}

/* ===== INTERACTIVE LEAFLET MAP ===== */
.leaflet-map-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
[data-theme="dark"] .leaflet-map-section {
    background: linear-gradient(135deg, #18191a 0%, #242526 100%);
}
.leaflet-map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 3px solid rgba(0, 128, 128, 0.2);
}
.leaflet-map-wrapper #interactiveMap {
    height: 400px;
    width: 100%;
}
@media (max-width: 768px) {
    .leaflet-map-wrapper #interactiveMap { height: 280px; }
}

/* ===== URGENCY COUNTDOWN ===== */
.urgency-bar {
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 50%, #dc3545 100%);
    background-size: 200% 100%;
    animation: urgencyGradient 3s ease infinite;
    padding: 10px 0;
    color: white;
    font-weight: 700;
    text-align: center;
    position: relative;
    overflow: hidden;
}
@keyframes urgencyGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.urgency-bar .countdown-digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
    padding: 4px 8px;
    min-width: 36px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0 2px;
}
.urgency-bar .countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.8;
    margin: 0 6px;
}

/* ===== SWEEP HOVER EFFECT ===== */
.sweep-to-right {
    position: relative;
    overflow: hidden;
}
.sweep-to-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,128,128,0.03), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}
.sweep-to-right:hover::before {
    left: 100%;
}


/* =========================================
 * PHASE 6: TOP 10 HOMEPAGE 
 * ========================================= */

/* 2. Authority Marquee */
.trust-marquee-wrapper { position: relative; overflow: hidden; background: #fff; padding: 15px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.trust-marquee { display: flex; align-items: center; width: max-content; animation: marqueeScroll 25s linear infinite; }
.trust-marquee img { height: 40px; margin: 0 40px; filter: grayscale(100%) opacity(0.6); transition: all 0.3s; }
.trust-marquee img:hover { filter: grayscale(0%) opacity(1); transform: scale(1.1); }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 3. Netflix-Style Carousel */
.netflix-carousel-container { position: relative; padding: 20px 0 60px; overflow-x: auto; scroll-behavior: smooth; display: flex; gap: 20px; scroll-snap-type: x mandatory; padding-left: 5vw; }
.netflix-carousel-container::-webkit-scrollbar { display: none; }
.netflix-card { flex: 0 0 calc(25% - 20px); position: relative; scroll-snap-align: center; transition: all 0.4s ease; border-radius: 12px; transform-origin: center bottom; }
@media(max-width:992px){ .netflix-card{ flex: 0 0 calc(40% - 20px); } }
@media(max-width:768px){ .netflix-card{ flex: 0 0 calc(70% - 20px); } }
.netflix-card:hover { transform: scale(1.05) translateY(-10px); z-index: 10; box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important; }
.netflix-rank { position: absolute; bottom: 0px; left: -15px; font-size: 140px; font-weight: 900; line-height: 0.8; color: transparent; -webkit-text-stroke: 4px #fff; opacity: 0.9; text-shadow: -2px 0 15px rgba(0,0,0,0.3); z-index: 2; font-family: 'Inter', sans-serif; }

/* 4. Video Peek Effect */
.video-peek-wrapper { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; border-radius: inherit; overflow: hidden; z-index: 1; pointer-events: none; }
.trip-card:hover .video-peek-wrapper { opacity: 1; }
.video-peek-wrapper video { width: 100%; height: 100%; object-fit: cover; }

/* 6. Parallax Storytelling */
.parallax-story { position: relative; background-attachment: fixed; background-position: center; background-size: cover; padding: 120px 0; color: white; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.parallax-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,33,55,0.9), rgba(0,180,219,0.8)); z-index: 1; }
.parallax-content { position: relative; z-index: 2; max-width: 800px; text-align: center; }

/* 8. Masonry Instagram Feed */
.masonry-grid { column-count: 3; column-gap: 1rem; }
@media(max-width: 768px){ .masonry-grid{ column-count: 2; } }
.masonry-item { break-inside: avoid; margin-bottom: 1rem; position: relative; overflow: hidden; border-radius: 12px; }
.masonry-item img { width: 100%; display: block; border-radius: 12px; transition: transform 0.5s; }
.masonry-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center; }
.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-item:hover img { transform: scale(1.1); }

/* 5. Omni-Dial Widget */
.omni-dial { position: fixed; bottom: 30px; left: 30px; z-index: 9999; }
.omni-btn { width: 60px; height: 60px; border-radius: 50%; background: #000; color: #fff; border: 2px solid rgba(255,255,255,0.2); box-shadow: 0 10px 25px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.omni-menu { position: absolute; bottom: 70px; left: 0; opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.9); transition: all 0.3s; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); border-radius: 20px; padding: 15px; width: max-content; }
.omni-dial:hover .omni-menu, .omni-dial.active .omni-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.omni-btn:hover { transform: scale(1.1) rotate(15deg); }

/* 10. Avatar Concierge */
.concierge-avatar-widget { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; align-items: flex-end; gap: 15px; }
.concierge-bubble { background: #fff; padding: 12px 20px; border-radius: 20px; border-bottom-right-radius: 4px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); transform-origin: bottom right; animation: popUpBubble 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; font-weight: bold; font-size: 0.9rem; position: relative; max-width: 200px; color: #333; opacity: 0; animation-delay: 2s; }
.concierge-avatar { width: 65px; height: 65px; border-radius: 50%; border: 3px solid #25D366; padding: 3px; background: #fff; box-shadow: 0 10px 25px rgba(37,211,102,0.3); animation: breathFloat 3s ease-in-out infinite; cursor: pointer; overflow: hidden; position: relative; }
.concierge-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.concierge-avatar::after { content: ''; position: absolute; bottom: 2px; right: 2px; width: 14px; height: 14px; background: #25D366; border: 2px solid #fff; border-radius: 50%; }
@keyframes popUpBubble { 0% { opacity: 0; transform: scale(0.8) translateY(10px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes breathFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(37,211,102,0.5); } }
