/* ══════════════════════════════════════════════════════
   itin.css — Itineraries shared stylesheet
   Morocco Airport Transfer · airport.autokhalid.com
   ══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:  #0369A1;
  --gold2: #0EA5E9;
  --cta:   #F97316;
  --dark:  #F0F9FF;
  --navy:  #E0F2FE;
  --light: #0C4A6E;
  --c3d:   #F97316;   /* 3-day  accent — orange */
  --c5d:   #0EA5E9;   /* 5-day  accent — sky blue */
  --c7d:   #7C3AED;   /* 7-day  accent — purple */
  --c10d:  #059669;   /* 10-day accent — emerald */
  --r:     14px;
  --sh:    0 4px 24px rgba(3,105,161,.12);
}

html { overflow-x: hidden; }
body { font-family: 'Manrope', sans-serif; background: #fff; color: #1e293b; overflow-x: hidden; max-width: 100vw; }
h1,h2,h3,h4 { font-family: 'Sora', sans-serif; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Nav ─────────────────────────────────────────────── */
.itin-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--light);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
}
.itin-nav-logo { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.1rem; color: #fff; letter-spacing: -.3px; }
.itin-nav-logo span { color: var(--gold2); }
.itin-nav-links { display: flex; gap: 1.5rem; list-style: none; }
.itin-nav-links a { color: rgba(255,255,255,.82); font-size: .88rem; font-weight: 500; transition: color .2s; }
.itin-nav-links a:hover { color: #fff; }
.itin-nav-links a.active { color: var(--cta); }
.itin-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
.itin-hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: background .3s, transform .3s, opacity .3s; }
.itin-hamburger.open span { background: #fff; }
.itin-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.itin-hamburger.open span:nth-child(2) { opacity: 0; }
.itin-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════
   LISTING PAGE — itineraries.html
   ══════════════════════════════════════════════════════ */

/* ── Listing Hero ─────────────────────────────────────── */
.pkg-hero {
  background: linear-gradient(135deg, var(--light) 0%, var(--gold) 55%, var(--gold2) 100%);
  padding: 5rem 2rem 4rem; text-align: center; color: #fff;
}
.pkg-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: .75rem; letter-spacing: -.5px; }
.pkg-hero p { font-size: 1.05rem; opacity: .88; max-width: 580px; margin: 0 auto; }

/* ── Package Grid ─────────────────────────────────────── */
.pkg-section { padding: 4rem 2rem; background: var(--dark); }
.pkg-section-inner { max-width: 1100px; margin: 0 auto; }
.pkg-section-header { text-align: center; margin-bottom: 2.5rem; }
.pkg-section-header h2 { font-size: 1.6rem; color: var(--light); margin-bottom: .4rem; }
.pkg-section-header p { color: #64748b; }

.pkg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

/* ── Package Card ─────────────────────────────────────── */
.pkg-card {
  background: #fff; border-radius: 20px;
  box-shadow: var(--sh); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
  border: 1px solid rgba(0,0,0,.05);
}
.pkg-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(3,105,161,.18); }

.pkg-card-img { position: relative; height: 220px; overflow: hidden; }
.pkg-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pkg-card:hover .pkg-card-img img { transform: scale(1.05); }
.pkg-duration-badge {
  position: absolute; top: 1rem; left: 1rem;
  padding: .45rem 1rem; border-radius: 50px;
  font-size: .78rem; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: .5px;
}
.pkg-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .75rem; }
.pkg-card-title { font-size: 1.2rem; font-weight: 800; color: var(--light); }
.pkg-card-stats {
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-size: .78rem; color: #64748b; font-weight: 600;
}
.pkg-card-stats span { display: flex; align-items: center; gap: .3rem; }
.pkg-highlights { list-style: none; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.pkg-highlights li { font-size: .875rem; color: #475569; display: flex; align-items: flex-start; gap: .5rem; }
.pkg-highlights li::before { content: '→'; font-weight: 700; flex-shrink: 0; }

.pkg-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-top: 1px solid var(--navy); gap: 1rem;
}
.pkg-price { font-family: 'Sora', sans-serif; }
.pkg-price-from { font-size: .7rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; }
.pkg-price-main { font-size: 1.4rem; font-weight: 800; color: var(--light); }
.pkg-price-unit { font-size: .75rem; color: #94a3b8; }
.pkg-card-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.pkg-btn-view { padding: .55rem 1.1rem; border-radius: 8px; border: 2px solid var(--navy); color: var(--light); font-size: .82rem; font-weight: 700; transition: all .2s; }
.pkg-btn-view:hover { border-color: var(--gold2); color: var(--gold); }
.pkg-btn-book { padding: .55rem 1.1rem; border-radius: 8px; font-size: .82rem; font-weight: 700; color: #fff; background: var(--cta); transition: background .2s; }
.pkg-btn-book:hover { background: #ea6c00; }

/* ── Why Book Banner ──────────────────────────────────── */
.pkg-why { background: var(--light); padding: 4rem 2rem; }
.pkg-why-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.pkg-why-inner h2 { font-size: 1.8rem; color: #fff; margin-bottom: .75rem; }
.pkg-why-inner p { color: rgba(255,255,255,.7); margin-bottom: 2.5rem; }
.pkg-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.pkg-why-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 1.5rem 1rem; }
.pkg-why-icon { font-size: 2rem; margin-bottom: .75rem; }
.pkg-why-title { font-family: 'Sora', sans-serif; font-size: .95rem; color: #fff; margin-bottom: .4rem; }
.pkg-why-desc { font-size: .8rem; color: rgba(255,255,255,.6); line-height: 1.6; }

/* ══════════════════════════════════════════════════════
   INDIVIDUAL ITINERARY PAGE STYLES
   ══════════════════════════════════════════════════════ */

/* ── Itinerary Hero ───────────────────────────────────── */
.it-hero {
  position: relative; height: 500px; overflow: hidden;
  display: flex; align-items: flex-end;
}
.it-hero-bg { position: absolute; inset: 0; }
.it-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.it-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,74,110,.95) 0%, rgba(12,74,110,.45) 55%, transparent 100%);
}
.it-hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 2.5rem 2rem; color: #fff;
}
.it-pkg-badge {
  display: inline-block; padding: .4rem 1rem;
  border-radius: 50px; font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px; color: #fff;
  margin-bottom: 1rem;
}
.it-hero-content h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: .5rem; }
.it-hero-desc { font-size: 1rem; opacity: .85; max-width: 600px; margin-bottom: 1.25rem; }
.it-hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; font-size: .9rem; opacity: .9; }
.it-hero-stats span { display: flex; align-items: center; gap: .4rem; }

/* ── Stats Bar ────────────────────────────────────────── */
.it-stats-bar {
  background: #fff; border-bottom: 1px solid var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.it-stats-bar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: stretch;
  padding: 0 2rem; overflow-x: auto;
  scrollbar-width: none;
}
.it-stats-bar-inner::-webkit-scrollbar { display: none; }
.it-stat {
  flex: 1; min-width: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.1rem .75rem; text-align: center;
  border-right: 1px solid var(--navy);
}
.it-stat:last-child { border-right: none; }
.it-stat-value { font-family: 'Sora', sans-serif; font-size: 1.25rem; font-weight: 800; color: var(--light); }
.it-stat-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .5px; color: #94a3b8; margin-top: .15rem; }

/* ── Sticky Book Bar ──────────────────────────────────── */
.it-book-bar {
  position: sticky; top: 64px; z-index: 89;
  background: #fff; border-bottom: 2px solid var(--navy);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.it-book-bar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 2rem; gap: 1rem; flex-wrap: wrap;
}
.it-book-bar-name { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; color: var(--light); }
.it-book-bar-price { font-size: 1.1rem; font-weight: 700; color: var(--light); }
.it-book-bar-price span { font-size: .8rem; font-weight: 500; color: #64748b; }
.it-book-bar-actions { display: flex; gap: .6rem; }
.it-book-bar-btn-outline {
  padding: .6rem 1.3rem; border-radius: 8px;
  border: 2px solid var(--navy); color: var(--light);
  font-size: .82rem; font-weight: 700; transition: all .2s;
}
.it-book-bar-btn-outline:hover { border-color: var(--gold2); }
.it-book-bar-btn-primary {
  padding: .6rem 1.4rem; border-radius: 8px;
  background: var(--cta); color: #fff;
  font-size: .82rem; font-weight: 700;
  transition: background .2s;
}
.it-book-bar-btn-primary:hover { background: #ea6c00; }

/* ── Route Map ────────────────────────────────────────── */
.it-route-section { background: var(--dark); padding: 2rem; }
.it-route-section-inner { max-width: 1200px; margin: 0 auto; }
.it-route-section h2 { font-size: 1.1rem; color: var(--light); margin-bottom: 1.25rem; font-weight: 700; }
.it-route {
  display: flex; align-items: center; flex-wrap: nowrap;
  overflow-x: auto; gap: 0; padding-bottom: .5rem;
  scrollbar-width: thin;
}
.it-route::-webkit-scrollbar { height: 4px; }
.it-route::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 2px; }
.route-stop { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: .4rem; min-width: 100px; }
.route-stop-dot {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--light); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(3,105,161,.25);
}
.route-stop-name { font-family: 'Sora', sans-serif; font-size: .78rem; font-weight: 700; color: var(--light); text-align: center; }
.route-stop-days { font-size: .68rem; color: #94a3b8; text-align: center; }
.route-connector { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 0 .25rem; }
.route-connector-line {
  display: flex; align-items: center; gap: .3rem;
  color: #94a3b8; font-size: .68rem; white-space: nowrap;
}
.route-connector-dash {
  height: 2px; width: 40px; background: repeating-linear-gradient(
    90deg, var(--gold2) 0, var(--gold2) 5px, transparent 5px, transparent 10px
  );
}
.route-connector-arrow { color: var(--gold2); font-size: .9rem; }

/* ── Main Body Layout ─────────────────────────────────── */
.it-body { padding: 3rem 2rem; }
.it-body-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }

/* ── Timeline ─────────────────────────────────────────── */
.it-timeline { display: flex; flex-direction: column; gap: 0; }
.it-day {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 0 1.5rem; position: relative;
}
/* Vertical connector line between days */
.it-day:not(:last-child)::after {
  content: '';
  position: absolute; left: 39px; top: 72px; bottom: 0;
  width: 2px; background: var(--navy); z-index: 0;
}
.it-day-marker { display: flex; flex-direction: column; align-items: center; padding-top: 1.5rem; position: relative; z-index: 1; }
.it-day-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--light); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .3px; text-align: center;
  line-height: 1.2; border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(12,74,110,.3);
  flex-shrink: 0;
}
.it-day-content {
  background: #fff; border-radius: 16px; border: 1px solid var(--navy);
  padding: 1.5rem; margin: .75rem 0 1.25rem; box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.it-day-location {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 1rem; padding-bottom: .75rem;
  border-bottom: 1px solid var(--navy);
}
.it-day-location-icon { font-size: 1.2rem; }
.it-day-location-info {}
.it-day-h3 { font-size: 1.05rem; font-weight: 700; color: var(--light); }
.it-day-city { font-size: .78rem; color: #94a3b8; }

.it-day-items { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.it-item {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .875rem; color: #475569; line-height: 1.5;
}
.it-item-icon { font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }
.it-item-text strong { color: var(--light); font-weight: 700; display: block; margin-bottom: .1rem; }
.it-item-detail { font-size: .78rem; color: #94a3b8; }

/* Transfer info box */
.it-transfer-box {
  background: var(--dark); border-radius: 10px; padding: .75rem 1rem;
  display: flex; align-items: center; gap: .75rem;
  font-size: .82rem; color: #475569; margin-top: .5rem;
}
.it-transfer-box-icon { font-size: 1.1rem; flex-shrink: 0; }
.it-transfer-box-text strong { color: var(--light); }
.it-transfer-box-price { margin-left: auto; font-weight: 700; color: var(--cta); white-space: nowrap; }

/* Hotel chip */
.it-hotel-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--navy);
  border-radius: 8px; padding: .5rem .85rem;
  font-size: .8rem; margin-top: .5rem;
}
.it-hotel-chip-stars { color: #F59E0B; font-size: .7rem; }
.it-hotel-chip-name { font-weight: 700; color: var(--light); }
.it-hotel-chip-price { color: #94a3b8; font-size: .72rem; }

/* ── Sidebar ──────────────────────────────────────────── */
.it-sidebar { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 1.25rem; }

.it-booking-card {
  background: #fff; border-radius: 16px;
  box-shadow: 0 8px 40px rgba(3,105,161,.15);
  overflow: hidden; border: 1px solid var(--navy);
}
.it-booking-card-header { background: var(--light); padding: 1.5rem; color: #fff; text-align: center; }
.it-bc-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; opacity: .7; margin-bottom: .2rem; }
.it-bc-price { font-size: 2rem; font-weight: 800; font-family: 'Sora', sans-serif; }
.it-bc-unit { font-size: .8rem; opacity: .7; }
.it-booking-card-body { padding: 1.25rem; }
.it-bc-detail {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem 0; border-bottom: 1px solid var(--navy); font-size: .88rem;
}
.it-bc-detail:last-of-type { border-bottom: none; }
.it-bc-detail .label { color: #64748b; }
.it-bc-detail .value { font-weight: 700; color: var(--light); }

.it-book-options { display: flex; flex-direction: column; gap: .6rem; padding: 1rem 1.25rem; border-top: 1px solid var(--navy); }
.it-book-opt {
  display: block; text-align: center; padding: .85rem;
  border-radius: 10px; font-size: .88rem; font-weight: 700;
  transition: all .2s;
}
.it-book-opt.primary { background: var(--cta); color: #fff; }
.it-book-opt.primary:hover { background: #ea6c00; }
.it-book-opt.secondary { background: var(--light); color: #fff; }
.it-book-opt.secondary:hover { background: #083a57; }
.it-book-opt.outline { border: 2px solid var(--navy); color: var(--light); }
.it-book-opt.outline:hover { border-color: var(--gold2); }
.it-book-note { text-align: center; font-size: .72rem; color: #94a3b8; padding: 0 1.25rem .75rem; }

/* Includes card */
.it-includes-card {
  background: var(--dark); border-radius: 16px;
  border: 1px solid var(--navy); padding: 1.25rem;
}
.it-includes-card h3 { font-size: .95rem; color: var(--light); margin-bottom: 1rem; }
.it-includes-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.it-includes-list li { font-size: .82rem; color: #475569; display: flex; gap: .5rem; align-items: flex-start; }
.it-includes-list li.yes::before { content: '✓'; color: #059669; font-weight: 700; flex-shrink: 0; }
.it-includes-list li.no::before { content: '✕'; color: #ef4444; font-weight: 700; flex-shrink: 0; }

/* ── Hotels Section ───────────────────────────────────── */
.it-hotels-section { padding: 3rem 2rem; background: var(--dark); }
.it-hotels-inner { max-width: 1200px; margin: 0 auto; }
.it-hotels-section h2 { font-size: 1.4rem; color: var(--light); margin-bottom: 1.5rem; }
.it-hotels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.it-hotel-card {
  background: #fff; border-radius: 14px; border: 1px solid var(--navy);
  overflow: hidden; box-shadow: var(--sh);
}
.it-hotel-img { height: 140px; overflow: hidden; }
.it-hotel-img img { width: 100%; height: 100%; object-fit: cover; }
.it-hotel-body { padding: 1rem; }
.it-hotel-name { font-size: .95rem; font-weight: 700; color: var(--light); margin-bottom: .2rem; }
.it-hotel-stars { color: #F59E0B; font-size: .75rem; margin-bottom: .3rem; }
.it-hotel-city { font-size: .75rem; color: #94a3b8; margin-bottom: .5rem; }
.it-hotel-price { font-size: .95rem; font-weight: 700; color: var(--cta); }
.it-hotel-price span { font-size: .72rem; color: #94a3b8; font-weight: 500; }

/* ── Footer ───────────────────────────────────────────── */
.itin-footer { background: var(--light); color: rgba(255,255,255,.7); text-align: center; padding: 2rem; font-size: .85rem; }
.itin-footer a { color: var(--gold2); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .pkg-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .it-body-inner { grid-template-columns: 1fr; }
  .it-sidebar { position: static; }
  .it-hotels-grid { grid-template-columns: repeat(2, 1fr); }
  .pkg-why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .itin-nav-links { display: none; }
  .itin-hamburger { display: flex; }
  .itin-nav-links.open {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--light); padding: 1rem 2rem 1.5rem;
    gap: 1rem; box-shadow: 0 8px 20px rgba(0,0,0,.2);
  }
  .it-hero { height: 420px; }
  .it-body { padding: 2rem 1rem; }
  .it-day { grid-template-columns: 60px 1fr; }
  .it-day:not(:last-child)::after { left: 29px; }
  .it-day-num { width: 42px; height: 42px; font-size: .65rem; }
  .it-book-bar-inner { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .it-book-bar-name { display: none; }
  .it-hotels-grid { grid-template-columns: 1fr; }
  .pkg-why-grid { grid-template-columns: 1fr 1fr; }
  .it-hero-stats { gap: 1rem; font-size: .82rem; }
  .it-stats-bar-inner { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .pkg-hero { padding: 3.5rem 1.25rem 3rem; }
  .pkg-section { padding: 2rem 1rem; }
  .pkg-why-grid { grid-template-columns: 1fr; }
  .it-body { padding: 1.5rem 1rem; }
  .it-day { grid-template-columns: 50px 1fr; gap: 0 1rem; }
  .it-day:not(:last-child)::after { left: 24px; }
}
