/* =============================================
   Generation Travels — Global Stylesheet
   ============================================= */
:root {
  --red: #D32F2F;
  --red-dark: #b71c1c;
  --black: #1a1a1a;
  --text: #1e293b;
  --muted: #64748b;
  --light: #f8f8f8;
  --white: #fff;
  --border: #e5e7eb;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Cabin', sans-serif; color: var(--text); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---- TOPBAR ---- */
.topbar { background: var(--black); padding: 7px 40px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #ccc; }
.topbar-left { display: flex; gap: 24px; }
.topbar-left span { display: flex; align-items: center; gap: 6px; }
.topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar-right a { color: #ccc; font-weight: 600; transition: color .2s; }
.topbar-right a:hover { color: #fff; }

/* ---- NAV ---- */
nav.main-nav { background: #fff; padding: 10px 40px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 12px rgba(0,0,0,0.07); position: sticky; top: 0; z-index: 100; }
.nav-logo img { height: 54px; width: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.nav-links a { color: var(--text); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-cta { background: var(--red); color: #fff; padding: 10px 22px; border-radius: 6px; font-weight: 700; font-size: 13px; cursor: pointer; border: none; font-family: 'Cabin', sans-serif; transition: background .2s; }
.nav-cta:hover { background: var(--red-dark); }

/* ---- PAGE HERO ---- */
.page-hero { height: 260px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; position: relative; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.page-hero-content { position: relative; z-index: 1; text-align: center; color: #fff; }
.page-hero-content h1 { font-family: 'Dancing Script', cursive; font-size: 52px; }
.breadcrumb { font-size: 13px; opacity: .8; margin-top: 6px; }

/* ---- SECTION ---- */
.section { padding: 60px 40px; }
.section-title { font-family: 'Dancing Script', cursive; font-size: 40px; text-align: center; margin-bottom: 6px; }
.section-subtitle { text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 36px; }
.section-bg { background: var(--light); }

/* ---- CARDS ---- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trip-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; cursor: pointer; background: #fff; }
.trip-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.trip-card-img { width: 100%; height: 180px; overflow: hidden; position: relative; }
.trip-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.trip-card:hover .trip-card-img img { transform: scale(1.06); }
.trip-card-badge { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; }
.trip-card-body { padding: 14px 16px; }
.trip-card-location { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-bottom: 5px; }
.trip-card-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.trip-card-footer { display: flex; align-items: center; justify-content: space-between; }
.trip-card-duration { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.trip-card-price { font-size: 14px; font-weight: 800; color: var(--red); }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: 30px; font-weight: 700; font-size: 13px; cursor: pointer; transition: all .2s; border: none; font-family: 'Cabin', sans-serif; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.btn-outline:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-sm { padding: 7px 16px; font-size: 12px; border-radius: 20px; }

/* ---- FOOTER ---- */
footer.main-footer { background: var(--black); color: #94a3b8; padding: 50px 40px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-logo img { height: 58px; margin-bottom: 12px; }
.footer-desc { font-size: 13px; line-height: 1.75; margin-bottom: 18px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; background: #1e293b; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; transition: background .2s; color: #94a3b8; font-weight: 700; }
.social-btn:hover { background: var(--red); color: #fff; }
footer h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul li a { font-size: 13px; color: #94a3b8; transition: color .2s; }
footer ul li a:hover { color: var(--red); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; }

/* ---- UTILS ---- */
.tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.tag-omra { background: #fef3c7; color: #92400e; }
.tag-maroc { background: #dcfce7; color: #166534; }
.tag-monde { background: #dbeafe; color: #1e40af; }
.loading { text-align: center; padding: 60px; color: var(--muted); font-size: 16px; }
.empty { text-align: center; padding: 60px; color: var(--muted); }

/* ---- FORM ---- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.form-control { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; font-family: 'Cabin', sans-serif; outline: none; transition: border-color .2s; }
.form-control:focus { border-color: var(--red); }
.form-control select { appearance: none; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ---- BADGE STATUS ---- */
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.status-pending { background: #fef9c3; color: #854d0e; }
.status-confirmed { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-available { background: #dcfce7; color: #166534; }
.status-soldout { background: #fee2e2; color: #991b1b; }


/* =============================================
   RESPONSIVE MOBILE FIX — Generation Travels
   ============================================= */

/* === GLOBAL RESET === */
*, *::before, *::after {
  box-sizing: border-box;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* === TOPBAR MOBILE === */
@media (max-width: 768px) {
  .topbar {
    padding: 6px 12px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    gap: 8px;
  }

  .topbar-left {
    gap: 10px;
    flex-wrap: nowrap;
  }

  /* إخفاء الإيميل على الموبايل — يأخذ مساحة كبيرة */
  .topbar-left span:last-child {
    display: none;
  }

  .topbar-right {
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
  }

  /* إخفاء روابط Blog/Contact على الموبايل */
  .topbar-right > a {
    display: none;
  }

  .lang-switcher {
    margin-left: 0;
  }
}

/* === NAV MOBILE === */
@media (max-width: 768px) {
  nav.main-nav {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
  }

  .nav-logo img {
    height: 42px;
  }

  .nav-links {
    display: none; /* hide links on mobile — replace with hamburger if needed */
  }

  .nav-cta {
    font-size: 12px;
    padding: 8px 14px;
  }
}

/* === HAMBURGER MENU (simple toggle) === */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: block;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
  }
}

/* === PAGE HERO MOBILE === */
@media (max-width: 768px) {
  .page-hero {
    height: 180px;
  }

  .page-hero-content h1 {
    font-size: 32px;
  }
}

/* === SECTION MOBILE === */
@media (max-width: 768px) {
  .section {
    padding: 40px 16px;
  }

  .section-title {
    font-size: 30px;
  }
}

/* === CARDS GRID MOBILE === */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .cards-grid-3 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .cards-grid,
  .cards-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* === CONTACT LAYOUT MOBILE === */
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .map-embed {
    margin: 0 16px 24px;
  }
}

/* === FOOTER MOBILE === */
@media (max-width: 768px) {
  footer.main-footer {
    padding: 36px 16px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
  }
}
/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  overflow: visible;
  background: rgba(255,255,255,0.08);
  padding: 2px;
  flex-shrink: 0;
}
.lang-btn {
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  color: #ccc;
  background: transparent;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Cabin', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  line-height: 1.6;
}
.lang-btn:hover { color: #fff; background: rgba(255,255,255,0.15); }
.lang-btn.active { 
  background: var(--red); 
  color: #fff;
}

/* ============================================
   RTL SUPPORT (Arabic)
   ============================================ */
.rtl { direction: rtl; text-align: right; }
.rtl .topbar { flex-direction: row-reverse; }
.rtl .topbar-left { flex-direction: row-reverse; }
.rtl .topbar-right { flex-direction: row-reverse; }
.rtl nav.main-nav { flex-direction: row-reverse; }
.rtl .nav-links { flex-direction: row-reverse; }
.rtl .hero-content { padding: 0 60px 0 0; margin-right: 0; margin-left: auto; }
.rtl .booking-widget { left: 55px; right: auto; }
.rtl .slider-prev { right: 14px; left: auto; }
.rtl .slider-next { left: 395px; right: auto; }
.rtl .slider-dots { right: 60px; left: auto; }
.rtl .offer-header { flex-direction: row-reverse; }
.rtl .about-inner { direction: rtl; }
.rtl .feat { flex-direction: row; }
.rtl .footer-grid { direction: rtl; }
.rtl .footer-bottom { flex-direction: row-reverse; }
.rtl .newsletter-form { flex-direction: row-reverse; }
.rtl .trip-card-location, .rtl .trip-card-footer { flex-direction: row-reverse; }
.rtl .offer-card-meta { flex-direction: row-reverse; }
.rtl .offer-card-actions { flex-direction: row-reverse; }
.rtl .offer-prev { right: -18px; left: auto; }
.rtl .offer-next { left: -18px; right: auto; }
.rtl .booking-widget select, .rtl .booking-widget input { text-align: right; }

/* Arabic font enhancement */
.rtl, .rtl * {
  font-family: 'Cabin', 'Arial', sans-serif;
}
.rtl .section-title,
.rtl .about-content h2,
.rtl .offer-section-title,
.rtl .newsletter h2,
.rtl .booking-widget h2 {
  font-family: 'Dancing Script', 'Arial', cursive;
}