/*
Theme Name: Mega Tours
Theme URI: https://megatours.com
Author: Mega Tours
Description: A modern bilingual (English/Arabic) excursion and tours booking theme with WhatsApp reservation system.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mega-tours
Tags: travel, tours, excursions, bilingual, arabic, rtl, booking, whatsapp
*/

/* ============================================
   CSS VARIABLES
============================================ */
:root {
  --primary:        #1B2A6B;
  --primary-dark:   #0f1940;
  --primary-light:  #2d3f8f;
  --secondary:      #F5A823;
  --secondary-dark: #d4891a;
  --accent:         #5BC8E3;
  --dark:           #111111;
  --gray-900: #1a1a1a;
  --gray-800: #2d2d2d;
  --gray-700: #444444;
  --gray-600: #666666;
  --gray-400: #999999;
  --gray-200: #e0e0e0;
  --gray-100: #f5f5f5;
  --light:    #f8f9fa;
  --white:    #ffffff;
  --green-wa: #25D366;
  --font-en: 'Poppins', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
  --shadow:    0 4px 24px rgba(0,0,0,0.14);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.20);
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-en);
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; outline: none; background: none; }
input, textarea, select { font-family: inherit; outline: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 90px 0; }
.wp-block-image img { border-radius: var(--radius); }

/* ============================================
   MULTI-LANGUAGE VISIBILITY
   Languages: EN, AR, IT, RU, TR
   JS adds .mt-lang-xx to <html> when selected.
============================================ */
.en-text,
.ar-text,
.it-text,
.ru-text,
.tr-text {
  display: none !important;
}

html.mt-lang-en .en-text {
  display: inline !important;
}

html.mt-lang-ar .ar-text {
  display: inline !important;
}

/* IT / RU / TR: show the specific language span.
   Fallback to EN for any element whose parent has no specific-lang child.
   Uses :has() — supported in all modern browsers (Chrome 105+, FF 121+, Safari 15.4+). */
html.mt-lang-it .it-text,
html.mt-lang-ru .ru-text,
html.mt-lang-tr .tr-text {
  display: inline !important;
}

/* Show EN as fallback when no translated sibling exists in the same parent */
html.mt-lang-it .en-text,
html.mt-lang-ru .en-text,
html.mt-lang-tr .en-text {
  display: inline !important;
}

/* But if the parent DOES have a specific-lang child, hide EN to avoid duplication */
html.mt-lang-it *:has(> .it-text) > .en-text,
html.mt-lang-ru *:has(> .ru-text) > .en-text,
html.mt-lang-tr *:has(> .tr-text) > .en-text {
  display: none !important;
}
html.mt-lang-ar .ar-block { display: block !important; }
html.mt-lang-ar .ar-flex  { display: flex  !important; }
.ar-block, .ar-flex { display: none !important; }

/* RTL when Arabic */
html.mt-lang-ar {
  direction: rtl;
  font-family: var(--font-ar);
}
html.mt-lang-ar body { font-family: var(--font-ar); }

/* ============================================
   PAGE LOADER
============================================ */
#page-loader {
  position: fixed; inset: 0;
  background: var(--primary);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 20px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo-name {
  font-size: 32px; font-weight: 900;
  color: var(--secondary); letter-spacing: 3px;
}
html.lang-ar .loader-logo-name { font-family: var(--font-ar); }
.loader-tagline { color: rgba(255,255,255,0.6); font-size: 12px; letter-spacing: 4px; text-transform: uppercase; }
.loader-spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   HEADER
============================================ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15, 25, 64, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
#site-header.scrolled {
  background: var(--primary-dark);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.site-logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.site-logo img { height: 50px; width: auto; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1; }
.logo-main-name {
  font-size: 20px; font-weight: 900;
  color: var(--secondary); letter-spacing: 2px;
}
.logo-tagline-text {
  font-size: 10px; letter-spacing: 3.5px;
  text-transform: uppercase; color: var(--accent);
  font-weight: 300; margin-top: 2px;
}

/* Main Navigation */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(255,255,255,0.82);
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.2px;
  transition: var(--transition);
}
.main-nav a:hover,
.main-nav .current-menu-item > a { color: var(--secondary); background: rgba(255,255,255,0.08); }

/* Language Switcher */
.lang-switcher {
  display: flex; align-items: center; gap: 3px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 30px;
  padding: 3px;
}
.lang-btn {
  padding: 5px 14px;
  border-radius: 25px;
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
  letter-spacing: 0.5px;
}
.lang-btn.active { background: var(--secondary); color: var(--dark); }
.lang-btn:hover:not(.active) { color: var(--white); background: rgba(255,255,255,0.12); }

/* Mobile Toggle */
.menu-toggle {
  display: none; color: var(--white);
  font-size: 22px; padding: 6px; flex-shrink: 0;
}

@media (max-width: 900px) {
  .header-inner { height: 64px; gap: 8px; }

  /* Save space on mobile */
  .logo-tagline-text { display: none; }
  .site-logo img { height: 40px; }
  .logo-main-name { font-size: 17px; }

  .menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
  }

  /* Compact lang switcher */
  .lang-switcher { padding: 2px; gap: 2px; }
  .lang-btn { padding: 4px 9px; font-size: 11px; }

  /* Mobile nav dropdown — anchored below the fixed header */
  .main-nav {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #0d1a3a;
    flex-direction: column;
    padding: 12px 16px 20px;
    border-top: 2px solid var(--secondary);
    gap: 2px;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    width: 100%; text-align: center; padding: 14px 16px;
    border-radius: 8px; font-size: 15px; font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .main-nav a:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .lang-btn { padding: 4px 6px; font-size: 10px; }
  .logo-main-name { font-size: 15px; letter-spacing: 1.5px; }
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center;
  background: linear-gradient(145deg, #0a1228 0%, var(--primary) 45%, #1a3870 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.25;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,18,40,0.6) 0%,
    rgba(27,42,107,0.3) 50%,
    rgba(10,18,40,0.85) 100%);
}
/* Decorative circles */
.hero::before {
  content: '';
  position: absolute; top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,168,35,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(91,200,227,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; padding: 120px 24px 100px;
  max-width: 1200px; margin: 0 auto;
}
.hero-text { max-width: 680px; }
html.lang-ar .hero-text { margin-left: auto; margin-right: 0; text-align: right; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,168,35,0.15);
  border: 1px solid rgba(245,168,35,0.4);
  color: var(--secondary);
  font-size: 12px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  padding: 7px 20px; border-radius: 30px;
  margin-bottom: 24px;
}
.hero-badge i { font-size: 14px; }
.hero-title {
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 900; line-height: 1.08;
  color: var(--white); margin-bottom: 22px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.hero-title .highlight { color: var(--secondary); display: block; }
.hero-subtitle {
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255,255,255,0.75);
  line-height: 1.85; margin-bottom: 40px;
  font-weight: 300; max-width: 560px;
}
html.lang-ar .hero-subtitle { font-family: var(--font-ar); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
html.lang-ar .hero-actions { justify-content: flex-end; }

.hero-stats {
  display: flex; gap: 0;
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 3;
}
.hero-stat {
  text-align: center; color: var(--white);
  padding: 18px 36px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.hero-stat:last-child { border-right: none; }
.stat-number {
  display: block; font-size: 28px; font-weight: 900;
  color: var(--secondary); line-height: 1;
}
.stat-label { font-size: 11px; color: rgba(255,255,255,0.65); letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 2; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; }

/* Hero Slider */
.hero-slider {
  position: relative;
  width: 100%;
}
.hero-slide {
  display: none;
}
.hero-slide.is-active {
  display: block;
}
.hero-slide-tour {
  position: relative;
  min-height: 100vh;
}
/* Override block with flex only when the tour slide is active */
.hero-slide-tour.is-active {
  display: flex;
  align-items: center;
}
.hero-slide-tour::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-slide-bg);
  background-size: cover;
  background-position: center;
  opacity: 1;
  z-index: 0;
}
/* Dark overlay so text stays readable on slide images */
.hero-slide-tour::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,18,40,0.52) 0%,
    rgba(27,42,107,0.28) 50%,
    rgba(10,18,40,0.78) 100%
  );
  z-index: 0;
}
/* Clickable link overlay covering the whole slide */
.hero-slide-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
  display: block;
}
.hero-slide-tour .hero-content,
.hero-slide-tour .hero-text {
  position: relative;
  z-index: 2;
}
.hero-tour-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}
.hero-tour-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 30px;
  background: rgba(0,0,0,0.25);
}
.hero-tour-meta-item i {
  color: var(--secondary);
}
.hero-slider-controls {
  position: absolute;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4;
}
.hero-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--white);
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: var(--transition);
}
.hero-arrow:hover {
  background: rgba(0,0,0,0.5);
  border-color: var(--secondary);
}
.hero-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.4);
  transition: var(--transition);
}
.hero-dot.active {
  width: 18px;
  background: var(--secondary);
}

@media (max-width: 768px) {
  .hero-stats { display: none; }
  .hero-slider-controls {
    bottom: 30px;
  }
  .hero-title { font-size: 34px; }
}

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 30px; border-radius: 50px;
  font-size: 15px; font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.2px;
  cursor: pointer;
}
.btn-primary {
  background: var(--secondary); color: var(--dark);
  border-color: var(--secondary);
}
.btn-primary:hover {
  background: var(--secondary-dark); border-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,168,35,0.45);
}
.btn-outline-white {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12); border-color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-primary {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover { background: var(--primary); color: var(--white); }
.btn-whatsapp {
  background: var(--green-wa); color: var(--white);
  border-color: var(--green-wa);
  font-size: 16px; padding: 16px 36px;
}
.btn-whatsapp:hover {
  background: #1ebe5d; border-color: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.45);
  color: var(--white);
}
.btn-whatsapp i { font-size: 20px; }
.btn i { transition: transform 0.3s ease; }
.btn:hover i { transform: translateX(3px); }
html.lang-ar .btn:hover i { transform: translateX(-3px); }

/* ============================================
   SECTION HEADER
============================================ */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header.left-align { text-align: left; }
html.lang-ar .section-header.left-align { text-align: right; }
.section-tag {
  display: inline-block;
  color: var(--secondary); font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800; color: var(--primary);
  line-height: 1.2; margin-bottom: 14px;
}
.section-subtitle {
  font-size: 16px; color: var(--gray-600);
  max-width: 580px; margin: 0 auto;
  line-height: 1.85; font-weight: 300;
}
.section-header.left-align .section-subtitle { margin: 0; }
.section-divider {
  width: 56px; height: 4px;
  background: linear-gradient(to right, var(--secondary), var(--accent));
  border-radius: 3px; margin: 18px auto 0;
}
.section-header.left-align .section-divider { margin-left: 0; }
html.lang-ar .section-header.left-align .section-divider { margin-right: 0; margin-left: auto; }

/* ============================================
   TOUR CARDS
============================================ */
.tours-section { background: var(--light); }
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 28px;
}
.tour-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
}
.tour-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.tour-thumb {
  position: relative; height: 230px; overflow: hidden;
}
.tour-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s ease;
}
.tour-card:hover .tour-thumb img { transform: scale(1.08); }
.tour-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
}
.tour-thumb-placeholder i { font-size: 60px; color: rgba(255,255,255,0.3); }
.tour-cat-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--secondary); color: var(--dark);
  font-size: 11px; font-weight: 700;
  padding: 4px 13px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
html.lang-ar .tour-cat-badge { left: auto; right: 14px; }
.tour-price-tag {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(15,25,64,0.9);
  backdrop-filter: blur(6px);
  color: var(--white); font-size: 15px; font-weight: 800;
  padding: 6px 16px; border-radius: 20px;
}
html.lang-ar .tour-price-tag { right: auto; left: 14px; }

.tour-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.tour-card-title {
  font-size: 19px; font-weight: 700;
  color: var(--primary); margin-bottom: 10px; line-height: 1.3;
}
.tour-card-excerpt {
  color: var(--gray-600); font-size: 14px;
  line-height: 1.75; margin-bottom: 18px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.tour-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.tour-meta-item {
  display: flex; align-items: center; gap: 6px;
  color: var(--gray-600); font-size: 13px;
}
.tour-meta-item i { color: var(--secondary); }
.tour-card-actions { display: flex; gap: 10px; }
.btn-book-card {
  flex: 1; background: var(--green-wa); color: var(--white);
  padding: 10px 18px; border-radius: 50px;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: var(--transition);
}
.btn-book-card:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(37,211,102,0.4); color: var(--white); }
.btn-details-card {
  padding: 10px 18px;
  border: 2px solid var(--primary); color: var(--primary);
  border-radius: 50px; font-size: 13px; font-weight: 600;
  transition: var(--transition);
}
.btn-details-card:hover { background: var(--primary); color: var(--white); }

/* ============================================
   ABOUT SECTION
============================================ */
.about-section { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 70px; align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-image-wrap { position: relative; }
.about-img-main {
  border-radius: var(--radius-lg); overflow: hidden;
  height: 480px;
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--secondary); color: var(--dark);
  padding: 22px 28px; border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow);
  min-width: 130px;
}
html.lang-ar .about-badge { right: auto; left: -24px; }
.about-badge-num {
  display: block; font-size: 40px; font-weight: 900; line-height: 1;
}
.about-badge-lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.about-features-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 30px;
}
.about-feature {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 16px; border-radius: var(--radius);
  background: var(--light); border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.about-feature:hover { border-color: var(--secondary); box-shadow: var(--shadow-sm); }
.af-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--primary); color: var(--secondary);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.af-title { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 3px; }
.af-text { font-size: 12px; color: var(--gray-600); line-height: 1.5; }

/* ============================================
   FEATURES / WHY CHOOSE US
============================================ */
.features-section { background: var(--light); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px 26px; text-align: center;
  border: 1px solid var(--gray-200); transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--secondary);
  transform: translateY(-6px); box-shadow: var(--shadow);
}
.feature-icon-wrap {
  width: 72px; height: 72px; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--secondary); border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; transition: var(--transition);
}
.feature-card:hover .feature-icon-wrap {
  background: var(--secondary); color: var(--primary);
  transform: rotate(-5deg) scale(1.05);
}
.feature-card-title { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.feature-card-text { font-size: 14px; color: var(--gray-600); line-height: 1.75; }

/* ============================================
   CTA SECTION
============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1a3870 100%);
  padding: 90px 0; text-align: center; color: var(--white);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(245,168,35,0.12), transparent 70%);
  border-radius: 50%;
}
.cta-section::after {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(91,200,227,0.1), transparent 70%);
  border-radius: 50%;
}
.cta-inner { position: relative; z-index: 1; }
.cta-title { font-size: clamp(26px, 4vw, 42px); font-weight: 900; margin-bottom: 14px; }
.cta-subtitle { font-size: 17px; color: rgba(255,255,255,0.72); margin-bottom: 38px; line-height: 1.8; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   SINGLE TOUR PAGE
============================================ */
.single-tour-hero {
  padding: 130px 0 60px;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  color: var(--white);
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.55);
  margin-bottom: 22px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb i { font-size: 9px; }
.single-tour-title {
  font-size: clamp(26px, 4vw, 50px);
  font-weight: 900; line-height: 1.15; margin-bottom: 14px;
}
.single-tour-meta {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  color: rgba(255,255,255,0.75); font-size: 14px;
}
.single-tour-meta i { color: var(--secondary); }

.tour-detail-wrap { padding: 60px 0; }
.tour-detail-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start;
}
@media (max-width: 1100px) { .tour-detail-grid { grid-template-columns: 1fr; } }

/* Gallery */
.tour-gallery { margin-bottom: 40px; }
.gallery-main {
  border-radius: var(--radius-lg); overflow: hidden;
  height: 460px; margin-bottom: 12px; cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-main:hover img { transform: scale(1.03); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-thumb {
  height: 88px; border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer;
  border: 3px solid transparent; transition: var(--transition); opacity: 0.7;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--secondary); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Tour content body */
.tour-content { }
.tour-content h2, .tour-content h3 {
  color: var(--primary); font-weight: 700; margin-bottom: 14px;
}
.tour-content h2 { font-size: 24px; }
.tour-content h3 { font-size: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-200); }
.tour-content p { color: var(--gray-700); line-height: 1.9; margin-bottom: 16px; }
.tour-content ul { margin-bottom: 20px; }
.tour-content ul li {
  padding: 7px 0; color: var(--gray-700);
  display: flex; align-items: flex-start; gap: 10px;
  border-bottom: 1px solid var(--gray-100);
}
.tour-content ul li::before { content: '✓'; color: var(--secondary); font-weight: 800; flex-shrink: 0; }
html.lang-ar .tour-content ul li::before { content: '✓'; }

/* Booking Sidebar */
.booking-sidebar { position: sticky; top: 86px; }
.booking-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid var(--gray-200);
}
.booking-card-top {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 28px 24px; text-align: center; color: var(--white);
}
.booking-price { font-size: 46px; font-weight: 900; color: var(--secondary); line-height: 1; }
.booking-price-sub { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 4px; }
.booking-card-body { padding: 24px; }
.booking-info-list { margin-bottom: 24px; }
.booking-info-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}
.booking-info-item:last-child { border-bottom: none; }
.bi-label { color: var(--gray-600); display: flex; align-items: center; gap: 8px; }
.bi-label i { color: var(--secondary); width: 16px; text-align: center; }
.bi-value { color: var(--gray-800); font-weight: 700; }
.btn-whatsapp-big {
  width: 100%; background: var(--green-wa); color: var(--white);
  padding: 17px; border-radius: var(--radius);
  font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: var(--transition); margin-bottom: 12px; border: none;
}
.btn-whatsapp-big:hover {
  background: #1ebe5d; transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37,211,102,0.45); color: var(--white);
}
.btn-whatsapp-big i { font-size: 24px; }
.booking-guarantee {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 12px; color: var(--gray-400);
}
.booking-guarantee i { color: var(--green-wa); }

/* ============================================
   TOURS ARCHIVE PAGE
============================================ */
.archive-hero {
  padding: 120px 0 60px;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  color: var(--white); text-align: center;
}
.archive-hero h1 { font-size: clamp(28px, 4vw, 52px); font-weight: 900; margin-bottom: 12px; }
.archive-hero p { font-size: 17px; color: rgba(255,255,255,0.72); }

.tours-filter-bar {
  background: var(--white); padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 72px; z-index: 99;
  box-shadow: var(--shadow-sm);
}
.tours-filter-bar-home {
  position: static;
  padding: 0 0 24px;
  box-shadow: none;
  border-bottom: none;
}
.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-pill {
  padding: 8px 20px; border-radius: 30px;
  font-size: 13px; font-weight: 600;
  background: var(--gray-100); color: var(--gray-600);
  border: 2px solid transparent; transition: var(--transition);
  cursor: pointer;
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

.archive-body { padding: 60px 0; background: var(--light); }

/* ============================================
   FOOTER
============================================ */
#site-footer { background: var(--gray-900); color: rgba(255,255,255,0.65); padding: 70px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 40px; margin-bottom: 50px;
}
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand-name { font-size: 26px; font-weight: 900; color: var(--secondary); letter-spacing: 2px; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.8; margin-bottom: 22px; }
.social-row { display: flex; gap: 10px; }
.social-ico {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: var(--transition);
}
.social-ico:hover { background: var(--secondary); color: var(--dark); }
.footer-col-title {
  font-size: 15px; font-weight: 700; color: var(--white);
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.08);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.55); font-size: 14px;
  display: flex; align-items: center; gap: 8px; transition: var(--transition);
}
.footer-links a:hover { color: var(--secondary); padding-left: 4px; }
html.lang-ar .footer-links a:hover { padding-left: 0; padding-right: 4px; }
.footer-links a i { font-size: 10px; color: var(--secondary); opacity: 0.7; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px; font-size: 14px; line-height: 1.6;
}
.footer-contact-item i { color: var(--secondary); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; font-size: 13px;
}
.footer-bottom a { color: var(--secondary); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================
   WHATSAPP FLOATING BUTTON
============================================ */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 998;
  width: 58px; height: 58px;
  background: var(--green-wa); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: var(--transition);
  animation: waPulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 6px 32px rgba(37,211,102,0.7); color: var(--white); }
html.lang-ar .wa-float { right: auto; left: 28px; }
.wa-float-tooltip {
  position: absolute; right: 70px; top: 50%;
  transform: translateY(-50%);
  background: var(--gray-900); color: var(--white);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  padding: 6px 12px; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
html.lang-ar .wa-float-tooltip { right: auto; left: 70px; }
.wa-float:hover .wa-float-tooltip { opacity: 1; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 40px rgba(37,211,102,0.8); }
}

/* ============================================
   GLOBAL BOOKING POPUP
============================================ */
.mt-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}
.mt-booking-modal.is-open {
  display: block;
}
.mt-booking-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.mt-booking-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 460px;
  width: 100%;
  padding: 22px 22px 20px;
}
.mt-booking-header {
  margin-bottom: 12px;
}
.mt-booking-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.mt-booking-sub {
  font-size: 13px;
  color: var(--gray-600);
}
.mt-booking-body {
  margin-top: 12px;
}
.mt-booking-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.mt-booking-field {
  flex: 1;
}
.mt-booking-field label {
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
  color: var(--gray-700);
}
.mt-booking-field input {
  width: 100%;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  font-size: 13px;
}
.mt-booking-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: transparent;
  color: var(--gray-500);
}
.mt-booking-close:hover {
  background: var(--gray-100);
  color: var(--dark);
}
.mt-booking-footer {
  margin-top: 14px;
}

@media (max-width: 600px) {
  .mt-booking-dialog {
    max-width: 92%;
    padding: 18px 16px 16px;
  }
  .mt-booking-row {
    flex-direction: column;
  }
}

/* ============================================
   404 PAGE
============================================ */
.page-404 {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  color: var(--white); padding: 30px;
}
.err-404-num {
  font-size: clamp(80px, 15vw, 150px); font-weight: 900;
  color: var(--secondary); line-height: 1; opacity: 0.85;
}
.err-404-title { font-size: 28px; font-weight: 800; margin: 16px 0; }
.err-404-text { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 32px; }

/* ============================================
   STANDARD PAGE
============================================ */
.page-hero {
  padding: 120px 0 60px;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  color: var(--white); text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 50px); font-weight: 900; }
.page-content-wrap { padding: 60px 0; }
.page-content-wrap .page-entry {
  max-width: 820px; margin: 0 auto;
  line-height: 1.9; color: var(--gray-700);
}
.page-entry h2, .page-entry h3 { color: var(--primary); font-weight: 700; margin: 28px 0 14px; }
.page-entry p { margin-bottom: 18px; }
.page-entry ul { list-style: disc; padding-left: 24px; margin-bottom: 18px; }
html.lang-ar .page-entry ul { padding-left: 0; padding-right: 24px; }

/* ============================================
   ABOUT US PAGE
============================================ */
.simple-hero {
  padding: 110px 24px 70px;
  background: linear-gradient(145deg, #0a1228 0%, var(--primary) 55%, #1a3870 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.simple-hero::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(245,168,35,0.14) 0%, transparent 70%);
  border-radius: 50%;
}
.simple-hero::after {
  content: '';
  position: absolute; bottom: -60px; left: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(91,200,227,0.10) 0%, transparent 70%);
  border-radius: 50%;
}
.simple-hero .page-title {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900; letter-spacing: -1px; margin: 0;
  position: relative; z-index: 1;
}
.page-section { padding: 80px 24px; }

/* About page grid */
.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
  max-width: 1200px; margin: 0 auto;
}
.about-page-text { color: var(--gray-700); line-height: 1.9; }
.about-years-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--primary), #1a3870);
  color: #fff; padding: 10px 22px; border-radius: 40px;
  font-size: 14px; font-weight: 700; margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(27,42,107,0.3);
}
.about-page-text > div { font-size: 16px; margin-bottom: 16px; }
.about-image-frame {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.14);
  aspect-ratio: 4/3; position: relative;
}
.about-image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-image-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(145deg, #eef0f8, #dde1f3);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  color: #aab; font-size: 60px;
}
/* About features on about page */
.about-features-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin: 28px 0;
}
.about-feature {
  display: flex; align-items: flex-start; gap: 14px;
  background: #f7f8fc; border-radius: 12px; padding: 16px;
}
.af-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--primary); color: #fff;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.af-title { font-size: 14px; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.af-text { font-size: 13px; color: var(--gray-600); line-height: 1.6; }

/* ============================================
   CONTACT US PAGE
============================================ */
.contact-page-section { background: #f7f8fc; }
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
  max-width: 1200px; margin: 0 auto;
}
.contact-page-text {
  color: var(--gray-700); line-height: 1.9; font-size: 16px;
}
.contact-page-text > div { margin-bottom: 16px; }
.contact-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.09);
  padding: 36px;
}
.contact-card h2 {
  font-size: 22px; font-weight: 800; color: var(--primary);
  margin: 0 0 28px; padding-bottom: 16px;
  border-bottom: 2px solid #eef0f8;
}
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; }
.contact-list li > i {
  width: 46px; height: 46px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), #2a4590);
  color: #fff; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; margin-top: 2px;
  box-shadow: 0 4px 14px rgba(27,42,107,0.25);
}
.contact-list li > div > span.contact-label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--gray-400); margin-bottom: 5px;
}
.contact-list li > div > a {
  font-size: 16px; font-weight: 600; color: var(--primary-dark);
  text-decoration: none; display: block;
}
.contact-list li > div > a:hover { color: var(--secondary); text-decoration: underline; }
.contact-list li > div > p { margin: 2px 0 0; font-size: 15px; color: var(--gray-600); }
.contact-whatsapp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff;
  padding: 12px 24px; border-radius: 40px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  margin-top: 28px; transition: background .2s;
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}
.contact-whatsapp-btn:hover { background: #1da851; color: #fff; }
.contact-whatsapp-btn i { font-size: 20px; }
@media (max-width: 900px) {
  .about-page-grid, .contact-page-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-features-grid { grid-template-columns: 1fr; }
  .page-section { padding: 50px 20px; }
  .about-page-media { order: -1; }
}

/* ============================================
   ANIMATIONS
============================================ */
.fade-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
  .section-padding { padding: 60px 0; }
  .tours-grid { grid-template-columns: 1fr; }
  .about-features-grid { grid-template-columns: 1fr; }
  .gallery-main { height: 280px; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .booking-sidebar { position: static; }
  .cta-title { font-size: 26px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { padding: 12px 24px; font-size: 14px; }
}
