/* ============================================================
   MMT.CSS v5 — Booking Engine + Homepage Specific Styles
   Clean, Professional — White/Blue Theme
   ============================================================ */

/* ── HOME HERO ───────────────────────────────────────────── */
.hero-home {
  position: relative;
  background: linear-gradient(120deg, #1a73e8 0%, #1557b0 100%);
  padding: 80px 0 120px;
  overflow: hidden;
}

.hero-home::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0, transparent 50%);
  z-index: 0;
}

.hero-home > .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  max-width: 640px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.hero-stat-lab {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

/* ── BOOKING ENGINE ──────────────────────────────────────── */
.booking-engine {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(26,115,232,0.18), 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.booking-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg-surface);
}
.booking-tabs::-webkit-scrollbar { display: none; }

.booking-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-sec);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.2px;
}

.booking-tab:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.booking-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: white;
}

.booking-tab .mi { font-size: 18px; }

.tab-panel { display: none; padding: 24px; }
.tab-panel.active { display: block; }

/* Search Row */
.search-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.search-field {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.search-field input,
.search-field select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: var(--transition);
}

.search-field input:focus,
.search-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}

.search-field input::placeholder { color: var(--text-hint); }

.search-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

.search-swap-btn {
  width: 40px;
  height: 42px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
  font-size: 18px;
  transition: var(--transition);
  flex-shrink: 0;
  align-self: flex-end;
}

.search-swap-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.search-btn {
  height: 42px;
  padding: 0 24px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}

.search-btn:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-hover);
}

/* Trip type pills */
.trip-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.trip-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
  cursor: pointer;
  transition: var(--transition);
  background: none;
  font-family: 'Inter', sans-serif;
}

.trip-pill:has(input:checked),
.trip-pill.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.trip-pill input { display: none; }

/* Popular searches */
.popular-searches {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-sec);
}

.pop-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-sec);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.pop-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ── OFFER BANNER ────────────────────────────────────────── */
.offer-strip {
  background: var(--primary);
  color: white;
  padding: 12px 0;
  overflow: hidden;
}

.offer-strip-track {
  display: flex;
  gap: 48px;
  animation: stripScroll 40s linear infinite;
  width: max-content;
}

@keyframes stripScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.offer-strip:hover .offer-strip-track { animation-play-state: paused; }

.offer-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}

.offer-chip-icon { font-size: 16px; }

/* ── CATEGORY GRID (homepage quick links) ────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-sec);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition-md);
  text-align: center;
}

.cat-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  background: var(--primary-light);
}

.cat-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--bg-surface);
  transition: var(--transition);
}

.cat-item:hover .cat-item-icon {
  background: var(--primary);
  color: white;
}

.cat-item-icon .mi { font-size: 26px; color: var(--primary); }
.cat-item:hover .cat-item-icon .mi { color: white; }

@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }

/* ── AI SEARCH STRIP ─────────────────────────────────────── */
.ai-strip {
  background: linear-gradient(135deg, #e8f0fe 0%, #f0e8fe 100%);
  border: 1px solid #c5d9f7;
  border-radius: var(--radius-xl);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.ai-strip::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: rgba(26,115,232,0.08);
  border-radius: 50%;
}

.ai-strip-icon {
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.ai-strip-left { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.ai-strip-left h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.ai-strip-left p  { font-size: 13px; color: var(--text-sec); }

.ai-strip-search {
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 260px;
}

.ai-strip-input {
  flex: 1;
  border: 1.5px solid #c5d9f7;
  border-radius: var(--radius-full);
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text);
  background: white;
  outline: none;
  transition: var(--transition);
}

.ai-strip-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}

.ai-strip-input::placeholder { color: var(--text-hint); }

.ai-result-wrap {
  display: none;
  padding: 12px 0 0;
  grid-column: 1/-1;
  width: 100%;
}

.ai-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

/* AI result card */
.ai-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.ai-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.ai-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.ai-card-body { flex: 1; min-width: 0; }
.ai-card-title { font-size: 13px; font-weight: 600; color: var(--text); }
.ai-card-sub   { font-size: 11px; color: var(--text-sec); margin-top: 1px; }
.ai-card-price { font-size: 14px; font-weight: 700; color: var(--primary); flex-shrink: 0; }

/* ── DESTINATION MARQUEE ─────────────────────────────────── */
.dest-marquee-wrap {
  overflow: hidden;
  position: relative;
}

.dest-marquee-wrap::before,
.dest-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.dest-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}

.dest-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}

.dest-marquee-track {
  display: flex;
  gap: 16px;
  animation: marqueeScroll 50s linear infinite;
  width: max-content;
  padding: 4px;
}

.dest-marquee-wrap:hover .dest-marquee-track { animation-play-state: paused; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.33%); }
}

.dest-pill {
  width: 200px;
  height: 130px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  text-decoration: none;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-md);
}

.dest-pill:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}

.dest-pill img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s ease; }
.dest-pill:hover img { transform: scale(1.07); }

.dest-pill-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%);
}

.dest-pill-info {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
}

.dest-pill-name { font-size: 14px; font-weight: 700; color: white; }
.dest-pill-sub  { font-size: 11px; color: rgba(255,255,255,0.75); }

.dest-pill-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--primary);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ── STATS BAR ───────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
}

.stat-item {
  padding: 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: var(--transition);
}

.stat-item:last-child { border-right: none; }

.stat-item:hover { background: var(--primary-light); }

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-sec);
  font-weight: 500;
}

@media (max-width: 600px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* ── TESTIMONIAL ─────────────────────────────────────────── */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transition: var(--transition-md);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.testimonial-stars { color: #fbbc04; font-size: 16px; }

.testimonial-text {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.7;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: auto;
  padding-top: var(--s2);
  border-top: 1px solid var(--border);
}

.testimonial-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.testimonial-name { font-size: 14px; font-weight: 600; color: var(--text); }
.testimonial-loc  { font-size: 12px; color: var(--text-hint); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-home { padding: 56px 0 100px; }
  .booking-engine { margin-top: -48px; border-radius: var(--radius-lg); }
  .booking-tab { padding: 10px 14px; font-size: 12px; }
  .search-row { flex-direction: column; }
  .search-btn { width: 100%; justify-content: center; height: 44px; }
  .search-field { min-width: 100%; }
  .ai-strip { flex-direction: column; align-items: flex-start; padding: var(--s2); }
  .ai-strip-search { min-width: 100%; flex-direction: column; }
  .ai-strip-input { width: 100%; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 24px; }
  .booking-engine { margin-top: -40px; }
}
