@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* ========================================================================
     VIBRANT MULTI-COLOR AVIATION DESIGN SYSTEM
     ======================================================================== */
  --bg: #030814;
  --bg-surface: #071224;
  --bg-card: rgba(8, 18, 40, 0.82);
  --bg-card-elevated: rgba(12, 28, 60, 0.9);
  --card: #0a1832;
  --card2: #0f244c;
  --card-glass: rgba(8, 18, 40, 0.84);
  --card-border: rgba(0, 242, 254, 0.22);
  --card-border-hover: rgba(0, 242, 254, 0.65);

  /* Primary Electric Brand Colors */
  --accent-cyan: #00f2fe;
  --accent-sky: #38bdf8;
  --accent-blue: #0284c7;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-coral: #ff6b6b;
  --accent-amber: #f59e0b;
  --accent-gold: #fbbf24;
  --accent-emerald: #10b981;
  --accent-mint: #34d399;

  --accent: #0284c7;
  --accent2: #6366f1;
  --accent-glow: rgba(0, 242, 254, 0.45);

  /* High-Impact Vibrant Gradients */
  --grad-cyan-blue: linear-gradient(135deg, #00f2fe 0%, #0284c7 50%, #1e40af 100%);
  --grad-sunset: linear-gradient(135deg, #ff6b6b 0%, #f43f5e 50%, #ec4899 100%);
  --grad-aurora: linear-gradient(135deg, #00f2fe 0%, #38bdf8 30%, #a855f7 70%, #ec4899 100%);
  --grad-emerald: linear-gradient(135deg, #34d399 0%, #10b981 50%, #047857 100%);
  --grad-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  --grad-purple: linear-gradient(135deg, #c084fc 0%, #8b5cf6 50%, #6366f1 100%);

  --accent-gradient: var(--grad-cyan-blue);
  --accent-gradient-hover: linear-gradient(135deg, #38bdf8 0%, #0369a1 50%, #2563eb 100%);

  /* State colors */
  --ok: #10b981;
  --ok-glow: rgba(16, 185, 129, 0.4);
  --err: #f43f5e;
  --err-glow: rgba(244, 63, 94, 0.4);
  --gold: #f59e0b;

  /* Typography */
  --text: #ffffff;
  --text-muted: #94a3b8;
  --muted: #94a3b8;
  --text-subtle: #64748b;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(0, 242, 254, 0.2);
  --shadow-glow-cyan: 0 16px 45px -8px rgba(0, 242, 254, 0.45);
  --shadow-glow-purple: 0 16px 45px -8px rgba(168, 85, 247, 0.45);
  --shadow-glow-coral: 0 16px 45px -8px rgba(255, 107, 107, 0.45);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   BODY BACKGROUND: Airplane Wing Above Radiant Clouds
   ========================================================================== */
body {
  font-family: var(--font-sans);
  background: 
    linear-gradient(180deg, rgba(3, 8, 20, 0.4) 0%, rgba(4, 12, 28, 0.58) 500px, rgba(3, 8, 18, 0.88) 1200px, #030812 100%),
    url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1800&q=80') top center / cover no-repeat fixed;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  font-size: 15px;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(3, 8, 18, 0.85); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #00f2fe, #0284c7); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #00f2fe; }

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: #7dd3fc;
  text-decoration: underline;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* ==========================================================================
   ANIMATED TICKER BANNER (Live Booking Ticker)
   ========================================================================== */
.live-ticker-wrap {
  background: linear-gradient(90deg, rgba(3, 8, 20, 0.95), rgba(7, 22, 50, 0.95) 50%, rgba(3, 8, 20, 0.95));
  border-bottom: 1px solid rgba(0, 242, 254, 0.2);
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 90;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.live-ticker-track {
  display: inline-flex;
  gap: 36px;
  animation: marquee 38s linear infinite;
}
.live-ticker-track:hover {
  animation-play-state: paused;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
}
.ticker-item strong {
  color: #ffffff;
}
.ticker-badge-deal {
  background: var(--grad-emerald);
  color: #042416;
  font-weight: 800;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}
.ticker-badge-live {
  background: var(--grad-sunset);
  color: #ffffff;
  font-weight: 800;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  animation: pulse-dot 1.8s infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6%;
  background: rgba(3, 8, 20, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 242, 254, 0.18);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: var(--text);
}

.logo-img {
  height: 42px;
  width: auto;
  border-radius: 10px;
  background: #ffffff;
  padding: 3px 6px;
  display: block;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.logo-link:hover .logo-img {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}
.nav-brand-title {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff 30%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-brand-subtitle {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:hover {
  color: #ffffff;
  background: rgba(0, 242, 254, 0.12);
  transform: translateY(-1px);
}
.nav-links a.active {
  color: #ffffff;
  background: rgba(2, 132, 199, 0.32);
  border: 1px solid rgba(0, 242, 254, 0.45);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
}

.nav-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(168, 85, 247, 0.18));
  border: 1px solid rgba(0, 242, 254, 0.45);
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.6px;
  margin-left: 8px;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}
.nav-live-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   IMMERSIVE HERO WITH FLOATING CARDS & ANIMATIONS
   ========================================================================== */
.hero-stage {
  position: relative;
  width: 100%;
  padding: 40px 20px 20px;
  overflow: visible;
}

.hero {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

/* Floating Deal Badges (Desktop) */
.floating-deal {
  position: absolute;
  z-index: 4;
  background: rgba(8, 20, 46, 0.82);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 242, 254, 0.25);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.floating-deal:hover {
  transform: scale(1.05) translateY(-4px) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 242, 254, 0.45);
}
.floating-deal img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.floating-deal-left {
  top: 20px;
  left: 3%;
  animation: floatSlow 6s ease-in-out infinite;
}
.floating-deal-right {
  top: 40px;
  right: 3%;
  animation: floatDelayed 7s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}
@keyframes floatDelayed {
  0%, 100% { transform: translateY(0) rotate(1.5deg); }
  50% { transform: translateY(-14px) rotate(-1deg); }
}

@media (max-width: 1080px) {
  .floating-deal { display: none !important; }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  border-radius: 100px;
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.25);
  animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 242, 254, 0.2); }
  50% { box-shadow: 0 0 35px rgba(0, 242, 254, 0.45); }
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  max-width: 960px;
  margin: 0 auto;
  text-shadow: 0 4px 35px rgba(0, 0, 0, 0.85);
}

/* Multi-Color Animated Gradient Text */
.animated-gradient-text {
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 25%, #a855f7 50%, #ec4899 75%, #00f2fe 100%);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: gradientFlow 5s ease infinite;
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero p {
  color: #e2e8f0;
  margin-top: 18px;
  font-size: clamp(16px, 2vw, 19.5px);
  max-width: 720px;
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

/* Trust Strip with Colorful Hover Pills */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(3, 8, 20, 0.65);
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}
.trust-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
  box-shadow: 0 6px 18px rgba(0, 242, 254, 0.25);
}
.trust-item span.icon {
  color: var(--accent-cyan);
}

/* ==========================================================================
   CONTAINER & FROSTED CARDS
   ========================================================================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: 10;
}

.card {
  background: linear-gradient(180deg, rgba(8, 18, 40, 0.84) 0%, rgba(5, 12, 26, 0.94) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all 0.25s ease;
}
.card:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 242, 254, 0.25);
}

.search-card {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75), 0 0 45px rgba(0, 242, 254, 0.28);
  border: 1px solid rgba(0, 242, 254, 0.35);
  margin-top: 14px;
}

/* Shimmer on Primary Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--grad-cyan-blue);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 26px rgba(0, 242, 254, 0.4);
  text-decoration: none !important;
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(30deg);
  animation: btnShimmer 4s infinite;
}
@keyframes btnShimmer {
  0% { left: -60%; }
  25% { left: 140%; }
  100% { left: 140%; }
}

.btn:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 36px rgba(0, 242, 254, 0.6);
  color: #ffffff;
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-block {
  grid-column: span 4;
  padding: 16px 28px;
  font-size: 16px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #ffffff;
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(0, 242, 254, 0.18);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(0, 242, 254, 0.3);
}

.btn-emerald {
  background: var(--grad-emerald);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}
.btn-emerald:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 14px 34px rgba(16, 185, 129, 0.6);
}

.btn-coral {
  background: var(--grad-sunset);
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.45);
}

/* ==========================================================================
   SEARCH FORM & INPUTS
   ========================================================================== */
.search-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}
.search-form > * {
  min-width: 0;
}
.search-form .wide,
.trip-type,
.legs-block,
.search-error,
.btn-block {
  grid-column: 1 / -1;
}

/* When One-Way is selected on desktop, departure date spans 2 columns so row 1 has 3 fields totaling 4 cols */
.search-form.is-oneway #depField {
  grid-column: span 2;
}

/* Segmented Trip Type Pill Controls */
.trip-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(4, 10, 24, 0.85);
  padding: 5px;
  border-radius: 100px;
  border: 1px solid rgba(0, 242, 254, 0.25);
  width: fit-content;
  margin-bottom: 8px;
}

.trip-type label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  cursor: pointer;
  user-select: none;
  letter-spacing: 0;
  text-transform: none;
  transition: all 0.2s ease;
  margin: 0;
  padding: 0;
}
.trip-type label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.trip-type label:hover span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.trip-type input:checked + span,
.trip-type label:has(input:checked) span {
  background: var(--grad-cyan-blue);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.45);
}
.trip-type input {
  display: none;
}

/* Fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #cbd5e1;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

input:not([type="checkbox"]):not([type="radio"]), select {
  font-family: var(--font-sans);
  background: rgba(4, 11, 25, 0.88);
  color: #ffffff;
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 14.5px;
  font-weight: 500;
  outline: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: all 0.22s ease;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35);
}

input[type="checkbox"], input[type="radio"] {
  width: auto;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}

input:not([type="checkbox"]):not([type="radio"]):hover, select:hover {
  border-color: rgba(0, 242, 254, 0.5);
  background: rgba(6, 15, 34, 0.95);
}

input:not([type="checkbox"]):not([type="radio"]):focus, select:focus {
  border-color: var(--accent-cyan);
  background: rgba(8, 20, 44, 0.98);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

input::placeholder {
  color: #64748b;
  font-weight: 400;
}

select {
  cursor: pointer;
}
select option {
  background: #061125;
  color: #ffffff;
}

/* Route swap button helper */
.route-swap-btn {
  position: absolute;
  right: -14px;
  top: 36px;
  z-index: 5;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0f244c;
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
.route-swap-btn:hover {
  transform: rotate(180deg) scale(1.15);
  background: var(--grad-cyan-blue);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.6);
}

/* Multi-city legs */
.leg-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 12px;
  align-items: end;
  background: rgba(4, 10, 24, 0.75);
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 242, 254, 0.18);
}
.leg-row .leg-num {
  font-size: 11px;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.leg-remove {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #f87171;
  border-radius: 10px;
  padding: 13px 15px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.18s ease;
}
.leg-remove:hover {
  background: var(--err);
  color: #ffffff;
}
.add-leg {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(0, 242, 254, 0.4);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  margin-top: 6px;
  transition: all 0.2s ease;
}
.add-leg:hover {
  color: #ffffff;
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.12);
}

/* ==========================================================================
   CABIN EXPERIENCE VISUAL GALLERY (Photos & Colorful Badges)
   ========================================================================== */
.cabin-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 36px 0 20px;
}
.cabin-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cabin-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}
.cabin-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 45px rgba(0, 242, 254, 0.35);
}
.cabin-card:hover img {
  transform: scale(1.08);
}
.cabin-card .cabin-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 8, 20, 0.15) 0%, rgba(3, 8, 20, 0.85) 60%, rgba(3, 8, 20, 0.98) 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cabin-card .cabin-tag {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cabin-tag-gold { background: var(--grad-gold); color: #2e1a00 !important; box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4); }
.cabin-tag-cyan { background: var(--grad-cyan-blue); color: #022030 !important; box-shadow: 0 2px 10px rgba(0, 242, 254, 0.4); }
.cabin-tag-purple { background: var(--grad-purple); color: #ffffff !important; box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4); }
.cabin-tag-emerald { background: var(--grad-emerald); color: #042416 !important; box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4); }

.cabin-card.active {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.6), 0 20px 45px rgba(0, 0, 0, 0.7) !important;
  transform: translateY(-6px) scale(1.02);
}
.cabin-card.active::after {
  content: "SELECTED";
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-cyan);
  color: #031428;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.8px;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.8);
}
.cabin-card h4 {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 3px;
}
.cabin-card p {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

/* ==========================================================================
   DESTINATIONS WITH CATEGORY FILTER PILLS
   ========================================================================== */
.dest-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.dest-filter-btn {
  background: rgba(4, 10, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}
.dest-filter-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-2px);
}
.dest-filter-btn.active {
  background: var(--grad-aurora);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.45);
}

.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dest-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 220px;
  cursor: pointer;
  border: 1px solid rgba(0, 242, 254, 0.22);
  background: var(--card2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  animation: cardFadeIn 0.35s ease both;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.dest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}
.dest-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 50px rgba(0, 242, 254, 0.32);
}
.dest-card:hover img {
  transform: scale(1.1);
}

.dest-card .dest-top-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.dest-card .weather-badge {
  background: rgba(3, 8, 20, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  color: #fbbf24;
}

.dest-card .label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(3, 8, 20, 0.8) 40%, rgba(3, 8, 20, 0.98) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.dest-card .label b {
  font-size: 18px;
  display: block;
  font-weight: 800;
  color: #ffffff;
}
.dest-card .label small {
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 500;
}

/* Colorful Deal Tags */
.deal-tag {
  display: inline-block;
  background: var(--grad-emerald);
  color: #031c10;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0.6px;
  vertical-align: middle;
  margin-left: 8px;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}
.deal-tag-hot {
  background: var(--grad-sunset);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(255, 107, 107, 0.4);
}
.deal-tag-gold {
  background: var(--grad-gold);
  color: #2b1800;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.real-price {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 400;
  font-family: var(--font-mono);
}

.deal-price {
  color: var(--accent-cyan);
  font-weight: 800;
  font-family: var(--font-mono);
  text-shadow: 0 0 16px rgba(0, 242, 254, 0.5);
}

/* Chips / Recent searches */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.chip {
  background: rgba(4, 11, 25, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: #cbd5e1;
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.3);
}

/* Feature Highlights Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 44px 0 24px;
}
.feature-card {
  background: linear-gradient(180deg, rgba(8, 18, 42, 0.84) 0%, rgba(5, 12, 28, 0.94) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-aurora);
  opacity: 0.8;
}
.feature-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 242, 254, 0.25);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}
.feature-card h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}
.feature-card p {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.55;
}

/* Airline Partners Strip */
.airline-partners-bar {
  margin: 40px 0 20px;
  text-align: center;
  background: rgba(4, 10, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(14px);
}
.airline-partners-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 16px;
}
.airline-partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.partner-logo-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.partner-logo-chip:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* ==========================================================================
   RESULTS PAGE
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  background: rgba(8, 18, 42, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 242, 254, 0.22);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 18px;
  font-size: 13px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.filter-bar label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  color: #cbd5e1;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}
.filter-bar select {
  width: auto;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
}
.filter-bar input[type=checkbox] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

/* Flexible dates strip */
.flex-strip-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.flex-day-card {
  flex: 1;
  min-width: 110px;
  background: rgba(8, 18, 42, 0.78);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.flex-day-card:hover {
  background: rgba(0, 242, 254, 0.18);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.35);
}
.flex-day-card.active {
  background: rgba(2, 132, 199, 0.38);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.45);
}
.flex-day-card .day-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.flex-day-card .day-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

/* Offer Card */
.offer-card {
  background: linear-gradient(180deg, rgba(8, 18, 42, 0.86) 0%, rgba(5, 12, 26, 0.96) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 242, 254, 0.22);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  transition: all 0.22s ease;
}
.offer-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 242, 254, 0.25);
}

.offer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.airline {
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.airline small {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
}

.price {
  text-align: right;
  font-size: 26px;
  font-weight: 800;
}
.price small {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-top: 2px;
}

/* Slice / Route Trajectory */
.slice {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.slice:first-of-type {
  border-top: none;
}
.slice .time {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-family: var(--font-mono);
}
.slice .iata {
  font-size: 13px;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-top: 2px;
}
.slice .path {
  flex: 1;
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
  position: relative;
  padding: 0 14px;
}
.slice .path::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.2) 0%, rgba(0, 242, 254, 0.8) 50%, rgba(0, 242, 254, 0.2) 100%);
  margin-bottom: 8px;
  border-radius: 2px;
}
.slice .path .flight-plane-icon {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f244c;
  color: var(--accent-cyan);
  padding: 0 6px;
  font-size: 13px;
  border-radius: 4px;
}

.offer-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.offer-foot .meta {
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.details-btn {
  background: none;
  border: none;
  color: var(--accent-cyan);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.details-btn:hover {
  background: rgba(0, 242, 254, 0.12);
  text-decoration: underline;
}

.seg-details {
  margin-top: 14px;
  border-top: 1px dashed rgba(0, 242, 254, 0.25);
  padding: 14px 16px;
  background: rgba(4, 10, 24, 0.75);
  border-radius: 12px;
  font-size: 13px;
}
.seg-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--text-muted);
}
.seg-row b {
  color: var(--text);
}
.layover {
  text-align: center;
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 8px;
  margin: 8px 0;
}

/* ==========================================================================
   BOOKING PAGE & SEAT MAP
   ========================================================================== */
.pax-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.pax-section h3 {
  font-size: 16px;
  margin-bottom: 16px;
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Primary Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}
.contact-grid .contact-wide {
  grid-column: 1 / -1;
}

/* Passenger Information Forms */
.pax-form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.pax-row {
  width: 100%;
}
.pax-row-meta {
  display: grid;
  grid-template-columns: 130px 150px 1fr;
  gap: 14px;
}
.pax-row-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Luggage & Promo Extras Form */
.extras-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 16px;
  align-items: start;
  width: 100%;
}

/* Checkout Two-Column Layout & Sticky Summary */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
.sticky-summary {
  position: sticky;
  top: 90px;
}

/* Page Header for Booking */
.book-page-hdr {
  margin: 28px 0 16px;
}
.book-page-hdr h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}
.book-page-hdr p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* Optional Travel Upgrades Grid */
.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}
.upgrade-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: rgba(12, 17, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  transition: all 0.18s ease;
  min-height: 48px;
  box-sizing: border-box;
}
.upgrade-item:hover {
  background: rgba(18, 26, 56, 0.85);
  border-color: rgba(0, 242, 254, 0.35);
}
.upgrade-item-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}
.upgrade-item-left input[type="checkbox"] {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  accent-color: var(--accent);
  margin: 0 !important;
  flex-shrink: 0 !important;
}
.upgrade-item-name {
  line-height: 1.35;
  word-break: break-word;
}
.upgrade-item-price {
  color: var(--ok);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13.5px;
  flex-shrink: 0;
  margin-left: 6px;
}

/* Legal Agreement Field */
.agree-card {
  background: rgba(15, 22, 48, 0.6);
}
.agree-field {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
}
.agree-field input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  margin-top: 3px !important;
  accent-color: var(--accent);
  flex-shrink: 0 !important;
  cursor: pointer;
}
.agree-field label {
  text-transform: none !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
  color: var(--text-muted) !important;
  cursor: pointer;
  line-height: 1.6 !important;
  flex: 1 1 auto;
}

/* Checkout Action Buttons */
.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.checkout-actions .btn {
  width: 100% !important;
  font-size: 15.5px !important;
  padding: 15px 18px !important;
  white-space: normal !important;
  text-align: center;
  line-height: 1.35;
  word-break: break-word;
  justify-content: center;
}
.checkout-actions .btn-paypal {
  border-color: #ffc439 !important;
  color: #ffc439 !important;
}
.checkout-actions .btn-test-pay {
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: var(--accent-cyan) !important;
}

.pax-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Airplane Fuselage & Seat Map */
.seatmap-wrapper {
  background: rgba(4, 10, 24, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.22);
  border-radius: 20px;
  padding: 24px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plane-nose {
  width: 140px;
  height: 50px;
  border: 2px solid rgba(0, 242, 254, 0.4);
  border-bottom: none;
  border-radius: 70px 70px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: rgba(0, 242, 254, 0.08);
}

.seatmap {
  display: inline-block;
  background: rgba(8, 18, 42, 0.75);
  border-radius: 14px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.seatmap .sm-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.seatmap .sm-num {
  width: 26px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-right: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
}
.seatmap .seat {
  width: 32px;
  height: 32px;
  border-radius: 8px 8px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: transparent;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.seatmap .seat:hover:not(.taken):not(.exit-space) {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.25);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}
.seatmap .seat.taken {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.35);
  cursor: not-allowed;
  opacity: 0.6;
}
.seatmap .seat.picked {
  background: var(--grad-cyan-blue);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.7);
  transform: scale(1.05);
}
.seatmap .seat.exit {
  border-color: var(--ok);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}
.seatmap .aisle {
  width: 22px;
}

.seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  margin-top: 16px;
}
.seat-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.seat-legend span::before {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 4px;
}
.seat-legend .l-avail::before {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.seat-legend .l-pick::before {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}
.seat-legend .l-taken::before {
  background: rgba(244, 63, 94, 0.35);
}
.seat-legend .l-exit::before {
  background: transparent;
  border: 1px solid var(--ok);
}

/* Baggage Stepper */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(4, 10, 24, 0.75);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 242, 254, 0.2);
  width: fit-content;
}
.stepper button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(0, 242, 254, 0.3);
  background: var(--card2);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.stepper button:hover {
  background: var(--accent);
  border-color: var(--accent-cyan);
  color: #ffffff;
}
.stepper b {
  font-size: 16px;
  min-width: 24px;
  text-align: center;
  font-family: var(--font-mono);
}

.promo-row {
  display: flex;
  gap: 10px;
}
.promo-row input {
  flex: 1;
}
.promo-ok {
  color: var(--ok);
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.promo-bad {
  color: var(--err);
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

/* Summary Card Lines */
.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.summary-line:last-of-type {
  border-bottom: none;
}
.summary-line strong {
  color: var(--text);
  font-weight: 600;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 0;
  margin-top: 14px;
  border-top: 1px solid rgba(0, 242, 254, 0.25);
  font-size: 20px;
  font-weight: 800;
}

/* ==========================================================================
   ALERTS, NOTICES, SPINNERS
   ========================================================================== */
.error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fda4af;
  padding: 14px 18px;
  border-radius: 12px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
}
.notice {
  background: rgba(2, 132, 199, 0.18);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #e0f2fe;
  padding: 14px 18px;
  border-radius: 12px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
}
.success-box {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  padding: 16px 20px;
  border-radius: 12px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
}

.spinner {
  text-align: center;
  color: #cbd5e1;
  padding: 40px;
  font-weight: 600;
  font-size: 15px;
}
.spinner::after {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  margin: 16px auto 0;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   CONFIRMATION & E-TICKET DOCUMENT
   ========================================================================== */
.confirm-head {
  text-align: center;
  margin-bottom: 28px;
}
.confirm-head .check {
  font-size: 56px;
  margin-bottom: 12px;
  display: inline-block;
  animation: pop-check 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pop-check {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.booking-ref {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 3px;
  text-align: center;
  background: rgba(4, 10, 24, 0.85);
  border: 1px dashed rgba(0, 242, 254, 0.5);
  border-radius: 14px;
  padding: 16px;
  margin: 18px 0;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  text-shadow: 0 0 18px rgba(0, 242, 254, 0.45);
}

.detail-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}
.detail-table td {
  padding: 10px 0;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.detail-table td:last-child {
  text-align: right;
  color: var(--text);
  font-weight: 600;
}

/* ==========================================================================
   AUTHENTIC AIRLINE E-TICKET DOCUMENT (IATA Resolution 722g Itinerary Receipt)
   ========================================================================== */
.ticket-doc {
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(0, 242, 254, 0.2);
  text-align: left;
  border: 1.5px solid #081730;
  margin-top: 18px;
  font-family: var(--font-sans);
}

.ticket-doc .t-head {
  background: #081730;
  color: #ffffff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 3px solid #d4af37;
}

.ticket-doc .t-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ticket-doc .t-logo {
  height: 42px;
  width: auto;
  background: #ffffff;
  border-radius: 6px;
  padding: 3px 8px;
  object-fit: contain;
  display: block;
}

.ticket-doc .t-logo-init {
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  background: #ffffff;
  color: #081730;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.ticket-doc .t-al-title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.ticket-doc .t-al-iata {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

.ticket-doc .t-head-right {
  text-align: right;
}

.ticket-doc .t-iata-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #fbbf24;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.ticket-doc .t-doc-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
}

.ticket-doc .t-doc-sub {
  font-size: 9.5px;
  color: #94a3b8;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.ticket-doc .t-body {
  padding: 18px 24px 24px;
  background: #ffffff;
}

.ticket-doc .t-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.ticket-doc .t-meta-col .lbl {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 3px;
}

.ticket-doc .t-meta-col .val {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  font-family: var(--font-mono);
}

.ticket-doc .val-pnr {
  color: #0284c7 !important;
  font-size: 16px !important;
  letter-spacing: 2.2px !important;
  font-weight: 800 !important;
}

.ticket-doc .t-pax-list-table {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.ticket-doc .t-pax-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 0;
  color: #1e293b;
  border-bottom: 1px dashed #e2e8f0;
}
.ticket-doc .t-pax-item-row:last-child {
  border-bottom: none;
}

.ticket-doc .t-section-hdr {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #081730;
  text-transform: uppercase;
  margin: 18px 0 8px;
}

.ticket-doc .t-segment-wrap {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  page-break-inside: avoid;
  break-inside: avoid;
}

.ticket-doc .t-segment-hdr {
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-doc .t-segment-badge {
  background: #081730;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 8px;
}

.ticket-doc .t-segment-flt {
  font-weight: 800;
  color: #081730;
  font-size: 13.5px;
}

.ticket-doc .t-segment-class {
  font-weight: 700;
  font-size: 12px;
  color: #475569;
  margin-right: 12px;
}

.ticket-doc .status-ok-pill {
  background: #dcfce7;
  color: #15803d;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 100px;
}

.ticket-doc .t-segment-body {
  padding: 18px;
  background: #ffffff;
}

.ticket-doc .t-segment-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #cbd5e1;
}

.ticket-doc .t-route-col {
  flex: 1;
}

.ticket-doc .t-route-arr {
  text-align: right;
}

.ticket-doc .t-iata {
  font-size: 32px;
  font-weight: 800;
  color: #081730;
  font-family: var(--font-mono);
  line-height: 1;
}

.ticket-doc .t-city {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
  margin-top: 3px;
}

.ticket-doc .t-datetime {
  margin-top: 5px;
}

.ticket-doc .t-time {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.ticket-doc .t-date {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

.ticket-doc .plus1 {
  color: #dc2626;
  font-size: 11px;
  font-weight: 800;
}

.ticket-doc .t-route-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}

.ticket-doc .t-flight-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #0284c7;
  background: #f0f9ff;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #bae6fd;
  margin-bottom: 5px;
}

.ticket-doc .t-dur-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #081730;
}

.ticket-doc .t-dur-line {
  width: 36px;
  height: 2px;
  background: #cbd5e1;
}

.ticket-doc .t-dur-text {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-top: 4px;
  white-space: nowrap;
}

.ticket-doc .t-specs-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 20px;
  margin-top: 14px;
}

.ticket-doc .t-spec-item .lbl {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 2px;
}

.ticket-doc .t-spec-item .val {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.ticket-doc .val-highlight {
  color: #0284c7 !important;
  font-weight: 800 !important;
}

.ticket-doc .t-fare-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 16px;
  page-break-inside: avoid;
  break-inside: avoid;
}

.ticket-doc .t-fare-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.ticket-doc .t-fare-cell .lbl {
  font-size: 9.5px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 2px;
}

.ticket-doc .t-fare-cell .val {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  font-family: var(--font-mono);
}

.ticket-doc .t-total-paid {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #059669 !important;
}

.ticket-doc .t-fare-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
  margin-top: 12px;
  font-size: 11.5px;
  color: #334155;
}

.ticket-doc .t-security-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 10px;
  border-top: 1px solid #e2e8f0;
  page-break-inside: avoid;
  break-inside: avoid;
}

.ticket-doc .t-barcode-area {
  flex: 1;
  max-width: 380px;
}

.ticket-doc .t-barcode-svg {
  height: 44px;
  width: 100%;
  display: block;
}

.ticket-doc .t-barcode-text {
  font-size: 10.5px;
  color: #475569;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  margin-top: 3px;
}

.ticket-doc .t-bcbp-str {
  font-size: 9px;
  color: #94a3b8;
  font-family: var(--font-mono);
  letter-spacing: 0.8px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
}

.ticket-doc .t-stamp-area {
  display: flex;
  align-items: center;
}

.ticket-doc .t-official-seal {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px dashed #059669;
  padding: 6px 12px;
  border-radius: 6px;
  background: #f0fdf4;
}

.ticket-doc .seal-title {
  font-size: 10px;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 0.8px;
}

.ticket-doc .seal-sub {
  font-size: 8.5px;
  color: #166534;
  font-weight: 700;
}

.ticket-doc .t-qr-area {
  text-align: center;
}

.ticket-doc .t-qr-svg {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto;
}

.ticket-doc .qr-caption {
  font-size: 8.5px;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.ticket-doc .t-legal-notice {
  font-size: 9px;
  color: #64748b;
  line-height: 1.55;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
  margin-top: 10px;
}

/* ==========================================================================
   BOARDING PASS
   ========================================================================== */
.bpass {
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  margin-bottom: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  border: 1px solid #cbd5e1;
}
.bpass .bp-head {
  background: #081730;
  color: #ffffff;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.bpass .bp-body {
  padding: 22px;
}
.bpass .bp-route {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.bpass .bp-iata {
  font-size: 36px;
  font-weight: 800;
  color: #081730;
  font-family: var(--font-mono);
  line-height: 1;
}
.bpass .bp-arrow {
  flex: 1;
  border-top: 2px solid #081730;
  position: relative;
}
.bpass .bp-arrow::after {
  content: '✈';
  position: absolute;
  top: -14px;
  right: -4px;
  color: #081730;
  font-size: 16px;
}
.bpass .bp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.bpass .bp-grid .lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 2px;
}
.bpass .bp-grid .val {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}
.bpass .bp-seat {
  font-size: 26px !important;
  color: #0284c7;
  font-family: var(--font-mono);
}
.bpass .bp-stub {
  border-top: 2px dashed #cbd5e1;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

/* ==========================================================================
   ADMIN DASHBOARD
   ========================================================================== */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stat-card {
  background: linear-gradient(180deg, rgba(8, 18, 42, 0.85) 0%, rgba(5, 12, 26, 0.95) 100%);
  border: 1px solid rgba(0, 242, 254, 0.22);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}
.stat-card b {
  font-size: 28px;
  display: block;
  font-family: var(--font-mono);
  color: #ffffff;
  margin-bottom: 4px;
}
.stat-card span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.admin-table {
  width: 100%;
  font-size: 13.5px;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-sans);
}
.admin-table tr:hover td {
  background: rgba(0, 242, 254, 0.05);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.badge.ok {
  background: rgba(16, 185, 129, 0.15);
  color: var(--ok);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.badge.warn {
  background: rgba(244, 63, 94, 0.15);
  color: var(--err);
  border: 1px solid rgba(244, 63, 94, 0.35);
}
.badge.info {
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.35);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  padding: 34px 20px;
  border-top: 1px solid rgba(0, 242, 254, 0.18);
  background: rgba(3, 8, 18, 0.92);
  backdrop-filter: blur(20px);
  line-height: 1.8;
  position: relative;
  z-index: 10;
}
footer a {
  color: var(--accent-cyan);
  text-decoration: underline;
  transition: color 0.15s ease;
}
footer a:hover {
  color: #ffffff;
}

/* ==========================================================================
   PRINT OPTIMIZATION & VECTOR PDF OUTPUT
   ========================================================================== */
@page {
  size: A4 portrait;
  margin: 8mm 10mm 8mm 10mm;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    box-sizing: border-box !important;
  }
  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  nav, footer, .no-print, .hero, .page-banner, .container > h2, .trust-strip, .btn, .live-ticker-wrap {
    display: none !important;
  }
  .container {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    width: 100% !important;
  }
  .card {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    background: #ffffff !important;
  }
  .ticket-doc {
    box-shadow: none !important;
    border: 1.5px solid #081730 !important;
    border-radius: 8px !important;
    margin: 0 0 16px !important;
    max-width: 100% !important;
    page-break-inside: auto !important;
  }
  .ticket-doc .t-head {
    background: #081730 !important;
    color: #ffffff !important;
    border-bottom: 3px solid #d4af37 !important;
  }
  .ticket-doc .t-head * {
    color: #ffffff !important;
  }
  .ticket-doc .t-segment-wrap {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .ticket-doc .t-fare-box,
  .ticket-doc .t-security-strip {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .bpass {
    box-shadow: none !important;
    border: 1.5px solid #081730 !important;
    border-radius: 8px !important;
    margin-bottom: 16px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .bpass .bp-head {
    background: #081730 !important;
    color: #ffffff !important;
    border-bottom: 2px solid #d4af37 !important;
  }
  .bpass .bp-head * {
    color: #ffffff !important;
  }
}

/* ==========================================================================
   FULLY COMPREHENSIVE RESPONSIVE DESIGN (TABLETS, PHONES & MINI DEVICES)
   ========================================================================== */

/* Prevent horizontal overflow globally across all mobile devices */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  -webkit-text-size-adjust: 100%;
}

/* --- TABLETS & MEDIUM VIEWPORTS (<= 1024px) --- */
@media (max-width: 1024px) {
  .cabin-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }
  .dest-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }
  .search-form {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
    width: 100% !important;
  }
  .search-form .wide,
  .trip-type,
  .legs-block,
  .search-error,
  .btn-block {
    grid-column: 1 / -1 !important;
  }
  #fromField,
  #toField {
    grid-column: span 1 !important;
  }
  .search-form.is-oneway #depField {
    grid-column: 1 / -1 !important;
  }
  .search-form.is-round #depField,
  .search-form.is-round #retField {
    grid-column: span 1 !important;
  }
  .checkout-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }
  .checkout-layout > div:last-child {
    order: -1 !important;
  }
  .sticky-summary {
    position: static !important;
    width: 100% !important;
  }
  .floating-deal {
    display: none !important;
  }
}

/* --- TABLETS PORTRAIT & SMARTPHONES (<= 768px) --- */
@media (max-width: 768px) {
  /* Navigation */
  nav {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 4%;
  }
  .logo-img {
    height: 36px;
  }
  .nav-brand-title {
    font-size: 16.5px;
  }
  .nav-brand-subtitle {
    font-size: 10px;
  }
  .nav-links {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links a {
    padding: 7px 12px;
    font-size: 12.5px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 8px;
  }
  .nav-live-badge {
    display: none;
  }

  /* Live Ticker Banner */
  .live-ticker-wrap {
    padding: 6px 0;
  }
  .ticker-item {
    font-size: 11.5px;
    gap: 6px;
  }

  /* Hero Section */
  .hero-stage {
    padding: 20px 12px 10px;
  }
  .hero {
    max-width: 100%;
  }
  .hero-pill {
    padding: 5px 12px;
    font-size: 11.5px;
    margin-bottom: 12px;
    max-width: 100%;
  }
  .hero h1 {
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: -0.5px;
  }
  .hero p {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 16px;
  }
  .trust-strip {
    display: none;
  }

  /* Container & Cards */
  .container {
    padding: 0 12px 50px;
  }
  .card {
    padding: 18px 14px;
    border-radius: 14px;
  }
  .search-card {
    margin-top: 10px;
  }

  /* Search Form */
  .search-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .search-form > * {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    grid-column: auto !important;
  }
  .pax-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Prevent iOS Safari auto-zoom on form text inputs */
  .field input:not([type="checkbox"]):not([type="radio"]),
  .field select,
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px !important;
    min-height: 48px;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  input[type="checkbox"], input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  /* Trip Type Radio Pills */
  .trip-type {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    padding: 4px !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }
  .trip-type label {
    display: block !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    border-radius: 8px !important;
  }
  .trip-type span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 4px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }
  .trip-type input:checked + span,
  .trip-type label:has(input:checked) span {
    background: var(--grad-cyan-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.45) !important;
  }

  /* Route Swap Button positioned vertically between From and To fields */
  .route-swap-btn {
    top: auto !important;
    bottom: -18px !important;
    right: 20px !important;
    transform: rotate(90deg) !important;
    z-index: 10 !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8) !important;
    background: #081736 !important;
    border: 1.5px solid var(--accent-cyan) !important;
  }
  .route-swap-btn:active {
    transform: rotate(270deg) scale(1.15) !important;
  }

  /* Section Headings */
  .section-head {
    margin-top: 28px !important;
    margin-bottom: 14px;
  }
  .section-title {
    font-size: 20px;
    letter-spacing: -0.3px;
  }
  .section-subtitle {
    font-size: 12.5px;
  }

  /* Destination Category Filter Bar (horizontal swipeable on mobile) */
  .dest-filter-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 8px !important;
    padding-bottom: 6px !important;
    margin-bottom: 16px !important;
  }
  .dest-filter-bar::-webkit-scrollbar {
    display: none !important;
  }
  .dest-filter-btn {
    flex-shrink: 0 !important;
    padding: 7px 14px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  /* Cabin Experience Showcase */
  .cabin-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin: 18px 0 14px !important;
  }
  .cabin-card {
    height: 155px !important;
  }
  .cabin-card .cabin-overlay {
    padding: 10px 12px !important;
  }
  .cabin-card h4 {
    font-size: 14px !important;
    margin-bottom: 2px !important;
  }
  .cabin-card p {
    font-size: 10.5px !important;
    line-height: 1.25 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cabin-card .cabin-tag {
    font-size: 8px !important;
    padding: 2px 6px !important;
    margin-bottom: 4px !important;
  }

  /* Feature Highlights */
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin: 24px 0 14px !important;
  }
  .feature-card {
    padding: 14px 12px !important;
    border-radius: 12px;
  }
  .feature-icon {
    font-size: 26px !important;
    margin-bottom: 6px !important;
  }
  .feature-card h4 {
    font-size: 13.5px !important;
    margin-bottom: 3px !important;
  }
  .feature-card p {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  /* Destinations & Deals Grid */
  .dest-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .dest-card {
    height: 190px !important;
    border-radius: 12px !important;
  }
  .dest-card .label b {
    font-size: 16px !important;
  }
  .dest-card .deal-price {
    font-size: 15px !important;
  }

  /* Airline Partners Bar */
  .airline-partners-bar {
    padding: 16px 12px !important;
    margin: 24px 0 14px !important;
    border-radius: 12px !important;
  }
  .airline-partners-title {
    font-size: 10px !important;
    margin-bottom: 12px !important;
  }
  .airline-partners-logos {
    gap: 8px !important;
  }
  .partner-logo-chip {
    padding: 6px 10px !important;
    font-size: 11.5px !important;
    gap: 6px !important;
  }

  /* Results Page Flight Cards */
  .offer-card {
    padding: 16px 14px !important;
    margin-bottom: 12px !important;
    border-radius: 14px !important;
  }
  .offer-head {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
  }
  .airline {
    font-size: 14.5px !important;
  }
  .price {
    font-size: 22px !important;
    text-align: right;
  }
  .slice {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding: 10px 0 !important;
  }
  .slice .time {
    font-size: 16px !important;
  }
  .slice .iata {
    font-size: 11.5px !important;
  }
  .slice .path {
    padding: 0 4px !important;
    font-size: 10.5px !important;
  }
  .offer-foot {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
    margin-top: 10px !important;
    padding-top: 10px !important;
  }
  .offer-foot .meta {
    font-size: 11px !important;
    justify-content: space-between !important;
  }
  .offer-foot .btn {
    width: 100% !important;
    padding: 12px !important;
    font-size: 13.5px !important;
  }
  .filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }
  .filter-bar select {
    width: 100% !important;
  }
  .leg-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* Checkout Page Layout & Seat Map */
  .checkout-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .checkout-layout > div:last-child {
    order: -1 !important;
  }
  .sticky-summary {
    position: static !important;
    width: 100% !important;
  }
  /* Contact Form & Passenger Form Responsiveness */
  .contact-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .contact-grid > * {
    width: 100% !important;
    min-width: 0 !important;
  }

  .pax-form-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .pax-row-meta {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .pax-row-meta .field-dob {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
  .pax-row-names {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .extras-form-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .extras-form-grid > * {
    width: 100% !important;
    min-width: 0 !important;
  }

  .upgrade-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .upgrade-item {
    padding: 11px 12px !important;
  }
  .luggage-counter {
    width: 100% !important;
    justify-content: space-between !important;
  }
  .promo-row {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .promo-form {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .promo-form input, .promo-form button {
    width: 100% !important;
  }
  .stepper {
    padding: 6px 12px !important;
  }
  .stepper button {
    width: 38px !important;
    height: 38px !important;
    font-size: 20px !important;
  }
  .stepper b {
    font-size: 18px !important;
    min-width: 30px !important;
  }

  /* Form Stacking for Check-in, Lookup & Flight Status */
  #ciForm, #lookupForm, #stForm {
    flex-direction: column !important;
    gap: 12px !important;
  }
  #ciForm > div, #lookupForm > div, #stForm > div {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }
  #ciForm button, #lookupForm button, #stForm button {
    width: 100% !important;
    justify-content: center;
  }

  /* Email share row */
  .share-row {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .share-row input, .share-row button {
    width: 100% !important;
    flex: none !important;
  }

  /* Interactive Fuselage Seat Map (Mobile Sizing) */
  .seatmap-wrapper {
    padding: 14px 6px !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 14px !important;
  }
  .plane-nose {
    width: 100px !important;
    height: 38px !important;
    font-size: 9px !important;
    margin-bottom: 8px !important;
  }
  .seatmap {
    padding: 10px 8px !important;
    border-radius: 10px !important;
  }
  .seatmap .seat {
    width: 27px !important;
    height: 27px !important;
    font-size: 9px !important;
    border-radius: 5px 5px 8px 8px !important;
    color: rgba(255, 255, 255, 0.75) !important;
  }
  .seatmap .seat.picked {
    color: #ffffff !important;
  }
  .seatmap .seat.taken {
    color: rgba(255, 255, 255, 0.25) !important;
  }
  .seatmap .sm-num {
    width: 18px !important;
    font-size: 9.5px !important;
    margin-right: 3px !important;
  }
  .seatmap .aisle {
    width: 12px !important;
  }
  .summary-line {
    font-size: 13.5px !important;
    padding: 8px 0 !important;
  }
  .summary-total {
    padding-top: 14px !important;
    margin-top: 10px !important;
  }
  .seat-legend {
    gap: 8px 12px !important;
    font-size: 10.5px !important;
    justify-content: center !important;
    margin-top: 12px !important;
  }

  /* Electronic Ticket Document (.ticket-doc) */
  .ticket-doc .t-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }
  .ticket-doc .t-head-right {
    text-align: left !important;
    width: 100% !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding-top: 8px !important;
  }
  .ticket-doc .t-al-title {
    font-size: 15px !important;
  }
  .ticket-doc .t-doc-title {
    font-size: 11px !important;
  }
  .ticket-doc .t-body {
    padding: 12px 14px 16px !important;
  }
  .ticket-doc .t-meta-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 10px !important;
    padding: 10px 12px !important;
  }
  .ticket-doc .val-pnr {
    font-size: 14.5px !important;
    letter-spacing: 1.5px !important;
  }
  .ticket-doc .t-segment-hdr {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 8px 12px !important;
  }
  .ticket-doc .t-segment-hdr-right {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  .ticket-doc .t-segment-body {
    padding: 12px !important;
  }
  .ticket-doc .t-segment-route {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .ticket-doc .t-route-arr {
    text-align: left !important;
  }
  .ticket-doc .t-route-mid {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 6px 0 !important;
    border-top: 1px dashed #cbd5e1 !important;
    border-bottom: 1px dashed #cbd5e1 !important;
  }
  .ticket-doc .t-dur-bar {
    display: none !important;
  }
  .ticket-doc .t-iata {
    font-size: 24px !important;
  }
  .ticket-doc .t-time {
    font-size: 14px !important;
  }
  .ticket-doc .t-specs-table {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 10px !important;
    margin-top: 10px !important;
  }
  .ticket-doc .t-fare-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 10px !important;
  }
  .ticket-doc .t-fare-meta {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    font-size: 10.5px !important;
  }
  .ticket-doc .t-security-strip {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
  }
  .ticket-doc .t-barcode-area {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Boarding Pass (.bpass) */
  .bpass .bp-head {
    padding: 10px 12px !important;
    font-size: 11px !important;
  }
  .bpass .bp-body {
    padding: 12px !important;
  }
  .bpass .bp-iata {
    font-size: 22px !important;
  }
  .bpass .bp-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 10px !important;
    padding: 8px 10px !important;
  }
  .bpass .bp-grid .val {
    font-size: 12.5px !important;
  }
  .bpass .bp-seat {
    font-size: 18px !important;
  }
  .bpass .bp-stub {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }

  /* Admin Dashboard */
  .admin-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .stat-card {
    padding: 14px 10px !important;
  }
  .stat-card .val {
    font-size: 22px !important;
  }
  .admin-table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    width: 100% !important;
  }
  #adminSearch {
    width: 100% !important;
    margin-top: 10px;
  }

  /* Action Buttons */
  button.btn, a.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn-block {
    width: 100% !important;
  }
}

/* --- SMALL SMARTPHONES (<= 480px) --- */
@media (max-width: 480px) {
  .hero-stage {
    padding: 16px 8px 6px;
  }
  .hero h1 {
    font-size: 23px !important;
  }
  .hero p {
    font-size: 13.5px !important;
  }
  .container {
    padding: 0 8px 40px;
  }
  .card {
    padding: 16px 12px;
  }
  .search-card {
    padding: 14px 10px !important;
    border-radius: 14px !important;
  }
  .search-form {
    gap: 10px !important;
  }
  .cabin-card {
    height: 145px !important;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .feature-card {
    padding: 12px 10px !important;
  }
  .dest-card {
    height: 175px !important;
  }
  .slice .time {
    font-size: 15px !important;
  }
  .slice .iata {
    font-size: 11px !important;
  }
  .price {
    font-size: 20px !important;
  }
  .ticket-actions {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .pax-row-names {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .ticket-actions > button, .ticket-actions > a {
    width: 100% !important;
    flex: 1 1 100% !important;
  }
  .book-page-hdr {
    margin: 18px 0 12px !important;
  }
  .book-page-hdr h2 {
    font-size: 20px !important;
    line-height: 1.25 !important;
  }
  .book-page-hdr p {
    font-size: 13px !important;
  }
  .promo-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .promo-row > * {
    width: 100% !important;
    flex: none !important;
  }
  .promo-row .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .checkout-actions .btn {
    font-size: 14px !important;
    padding: 13px 14px !important;
  }
  .agree-field label {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
}

/* --- COMPACT MINI DEVICES (<= 360px) --- */
@media (max-width: 360px) {
  .trip-type span {
    font-size: 11px !important;
    padding: 8px 2px !important;
  }
  .cabin-gallery {
    grid-template-columns: 1fr !important;
  }
  .features-grid {
    grid-template-columns: 1fr !important;
  }
  .admin-stats {
    grid-template-columns: 1fr !important;
  }
  .hero h1 {
    font-size: 21px !important;
  }
  .book-page-hdr h2 {
    font-size: 18px !important;
  }
  .seatmap .seat {
    width: 24px !important;
    height: 24px !important;
    font-size: 8px !important;
  }
  .seatmap .sm-num {
    width: 14px !important;
    font-size: 8.5px !important;
  }
  .seatmap .aisle {
    width: 8px !important;
  }
  .summary-total {
    font-size: 17px !important;
  }
  .summary-total .deal-price {
    font-size: 20px !important;
  }
  .ticket-doc .t-specs-table {
    grid-template-columns: 1fr !important;
  }
  .ticket-doc .t-fare-grid {
    grid-template-columns: 1fr !important;
  }
  .bpass .bp-grid {
    grid-template-columns: 1fr !important;
  }
}
