/* ==========================================================================
   FLIGHTER - MODERN FLIGHT BOOKING WEB APP
   Styles & Layout
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-ring: rgba(37, 99, 235, 0.25);

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-50:  #ecfdf5;

  --amber-500: #f59e0b;
  --amber-50: #fffbeb;

  --red-500: #ef4444;
  --red-50:  #fef2f2;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f6f8fb;
  color: var(--slate-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography & Helpers */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.text-muted { color: var(--slate-500); }
.text-primary { color: var(--primary); }
.text-emerald { color: var(--emerald-600); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.font-bold { font-weight: 600; }
.block { display: block; }
.w-full { width: 100%; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background-color: var(--slate-100);
  color: var(--slate-700);
}
.btn-secondary:hover {
  background-color: var(--slate-200);
}

.btn-outline {
  background: #fff;
  border-color: var(--slate-200);
  color: var(--slate-700);
}
.btn-outline:hover {
  background-color: var(--slate-50);
  border-color: var(--slate-300);
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
}
.btn-text:hover {
  text-decoration: underline;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
}

/* Navbar */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.03em;
}

.brand-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  background: var(--amber-50);
  color: var(--amber-500);
  border: 1px solid #fde68a;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.currency-selector select {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.badge {
  background-color: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, #1e3a8a 0%, #1e293b 100%);
  color: white;
  padding: 48px 0 64px 0;
  position: relative;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}
.hero-bg-shapes .shape-1 {
  width: 400px;
  height: 400px;
  background: #38bdf8;
  top: -100px;
  left: 10%;
}
.hero-bg-shapes .shape-2 {
  width: 500px;
  height: 500px;
  background: #6366f1;
  bottom: -150px;
  right: 5%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px auto;
}

.hero-title {
  color: white;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-subtitle {
  color: #93c5fd;
  font-size: 1.0625rem;
}

/* Search Card */
.search-card {
  background: #ffffff;
  color: var(--slate-800);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl);
}

.search-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--slate-100);
}

.trip-types {
  display: flex;
  gap: 16px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.radio-label input[type="radio"] {
  accent-color: var(--primary);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.search-selectors {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-select, .pill-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: var(--transition);
}
.pill-select:hover, .pill-button:hover {
  background: var(--slate-100);
  border-color: var(--slate-300);
}

.pill-select select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  outline: none;
}

/* Passenger Popover */
.passenger-dropdown-wrapper {
  position: relative;
}

.passenger-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 18px;
  width: 250px;
  box-shadow: var(--shadow-xl);
  z-index: 50;
  display: none;
}
.passenger-popover.show {
  display: block;
}

.passenger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stepper button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.stepper button:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.stepper span {
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

/* Search Grid Fields */
.search-grid {
  display: grid;
  grid-template-columns: 1.4fr auto 1.4fr 1.2fr 1fr;
  align-items: flex-end;
  gap: 12px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.input-group label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-500);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .field-icon {
  position: absolute;
  left: 12px;
  color: var(--slate-400);
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-900);
  background: white;
  transition: var(--transition);
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-ring);
}

.btn-swap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2px;
}
.btn-swap:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #bfdbfe;
  transform: rotate(180deg);
}

.search-btn-wrapper {
  margin-bottom: 1px;
}

.btn-search {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.btn-search:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Popular Routes Chips */
.popular-routes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-100);
}

.routes-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-500);
}

.chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: var(--transition);
}
.chip:hover {
  background: var(--primary-light);
  border-color: #bfdbfe;
  color: var(--primary);
}

/* Results Layout */
.main-content {
  padding: 32px 20px 80px 20px;
}

.results-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: flex-start;
}

/* Sidebar Filters */
.filter-sidebar {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 80px;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--slate-100);
}

.filter-box {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--slate-100);
}
.filter-box:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-box h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--slate-800);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--slate-700);
  margin-bottom: 8px;
  cursor: pointer;
  user-select: none;
}
.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.time-chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.time-chip {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}
.time-chip:hover {
  background: var(--slate-100);
}
.time-chip.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.filter-box-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.price-val {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

/* Results Column */
.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.sort-tabs {
  display: flex;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 4px;
}

.sort-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 16px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.sort-tab .sort-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-700);
}
.sort-tab .sort-hint {
  font-size: 0.6875rem;
  color: var(--slate-400);
}
.sort-tab.active {
  background: var(--primary-light);
}
.sort-tab.active .sort-name {
  color: var(--primary);
}
.sort-tab.active .sort-hint {
  color: var(--primary);
}

/* Flight Cards */
.flight-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flight-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.flight-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.flight-main-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flight-airline-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.airline-badge {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--primary);
}

.airline-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--slate-900);
}

.aircraft-type {
  font-size: 0.75rem;
  color: var(--slate-500);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.flight-timeline {
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  align-items: center;
  gap: 20px;
}

.flight-point {
  display: flex;
  flex-direction: column;
}
.flight-point.dest {
  text-align: right;
}

.flight-time {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.flight-code {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-700);
}

.flight-city {
  font-size: 0.75rem;
  color: var(--slate-500);
}

.flight-duration-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.duration-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-500);
  margin-bottom: 4px;
}

.flight-line {
  width: 100%;
  height: 2px;
  background: var(--slate-200);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flight-plane-icon {
  position: absolute;
  color: var(--primary);
  background: white;
  padding: 0 4px;
}

.stops-label {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 5px;
}
.stops-label.direct {
  color: var(--emerald-600);
}
.stops-label.layover {
  color: var(--amber-500);
}

.flight-amenities {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--slate-500);
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Flight Price & CTA column */
.flight-price-col {
  border-left: 1px solid var(--slate-100);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 160px;
}

.price-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.1;
}

.price-unit {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-bottom: 12px;
}

.btn-book {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
}
.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px auto;
  color: var(--slate-400);
}

/* Modals General */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-sm { max-width: 440px; }
.modal-md { max-width: 580px; }
.modal-lg { max-width: 760px; }
.modal-ticket { max-width: 640px; }

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header.no-border {
  border-bottom: none;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--slate-400);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.modal-close:hover {
  color: var(--slate-800);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--slate-100);
  background: var(--slate-50);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Airplane & Seat Selection */
.seat-instruction-banner {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  font-weight: 600;
}

.seat-legend {
  display: flex;
  gap: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-600);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-box {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.legend-box.available {
  background: white;
  border: 1.5px solid var(--slate-300);
}
.legend-box.selected {
  background: var(--primary);
}
.legend-box.occupied {
  background: var(--slate-200);
}
.legend-box.extra-legroom {
  background: #ede9fe;
  border: 1.5px solid #a78bfa;
}

.airplane-container {
  max-width: 480px;
  margin: 0 auto;
  background: white;
  border: 2px solid var(--slate-200);
  border-radius: 80px 80px 20px 20px;
  padding: 40px 20px 30px 20px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
  position: relative;
}

.plane-nose {
  width: 80px;
  height: 24px;
  background: var(--slate-100);
  border-radius: 40px 40px 0 0;
  margin: -32px auto 16px auto;
}

.cabin-label {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  margin-bottom: 12px;
}

.cabin-divider {
  text-align: center;
  position: relative;
  margin: 20px 0;
}
.cabin-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--slate-200);
}
.cabin-divider span {
  position: relative;
  background: white;
  padding: 0 12px;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--slate-400);
  text-transform: uppercase;
}

.seat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.row-number {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--slate-400);
  width: 20px;
  text-align: center;
}

.aisle-gap {
  width: 20px;
}

.seat-btn {
  width: 32px;
  height: 36px;
  border-radius: 6px 6px 4px 4px;
  border: 1.5px solid var(--slate-300);
  background: white;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--slate-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
}
.seat-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}
.seat-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}
.seat-btn.occupied {
  background: var(--slate-100);
  border-color: var(--slate-200);
  color: var(--slate-400);
  cursor: not-allowed;
  opacity: 0.6;
}
.seat-btn.extra-legroom {
  background: #f5f3ff;
  border-color: #c4b5fd;
  color: #6d28d9;
}
.seat-btn.extra-legroom.selected {
  background: #7c3aed;
  border-color: #7c3aed;
  color: white;
}

/* Passenger Modal Form */
.form-section-title {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-700);
  margin: 18px 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--slate-100);
}
.form-section-title:first-child {
  margin-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.passenger-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.addon-option {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 10px;
}

/* Price Breakdown Card */
.price-breakdown-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin: 20px 0;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--slate-600);
  margin-bottom: 8px;
}
.breakdown-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--slate-900);
  padding-top: 10px;
  border-top: 1px dashed var(--slate-300);
  margin-top: 10px;
}

.modal-footer-inside {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.btn-book-final {
  padding: 12px 28px;
}

/* Boarding Pass / Ticket */
.success-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--emerald-50);
  color: var(--emerald-600);
  border: 1px solid #a7f3d0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
}

.boarding-pass {
  background: white;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.pass-top {
  background: linear-gradient(135deg, #1e3a8a, var(--primary));
  color: white;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pass-airline {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.pass-airline-name {
  font-size: 1.25rem;
  font-weight: 800;
}
.pass-flight-no {
  font-size: 0.875rem;
  opacity: 0.85;
}

.pass-class-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pass-route-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px;
  background: #ffffff;
  border-bottom: 2px dashed var(--slate-200);
  position: relative;
}

/* Ticket notch cuts */
.pass-route-row::before, .pass-route-row::after {
  content: '';
  position: absolute;
  bottom: -10px;
  width: 20px;
  height: 20px;
  background: #f6f8fb;
  border-radius: 50%;
}
.pass-route-row::before { left: -10px; }
.pass-route-row::after { right: -10px; }

.pass-origin, .pass-dest {
  display: flex;
  flex-direction: column;
}
.pass-dest {
  text-align: right;
}

.pass-city {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-500);
}
.pass-code {
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.1;
}
.pass-time {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-700);
}

.pass-flight-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}
.pass-duration {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate-500);
}
.flight-line-dot {
  color: var(--primary);
  margin: 2px 0;
}
.pass-stops-text {
  font-size: 0.75rem;
  color: var(--emerald-600);
  font-weight: 600;
}

.pass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 12px;
  padding: 24px;
}

.pass-item {
  display: flex;
  flex-direction: column;
}
.pass-item .label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--slate-400);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.pass-item .val {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--slate-800);
}

.pass-stub {
  background: var(--slate-50);
  padding: 16px 24px;
  border-top: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.barcode-bars {
  height: 38px;
  width: 220px;
  background: repeating-linear-gradient(
    90deg,
    #1e293b,
    #1e293b 2px,
    transparent 2px,
    transparent 4px,
    #1e293b 4px,
    #1e293b 7px,
    transparent 7px,
    transparent 9px
  );
  border-radius: 2px;
}
.barcode-number {
  display: block;
  font-size: 0.6875rem;
  font-family: monospace;
  letter-spacing: 0.15em;
  color: var(--slate-500);
  margin-top: 4px;
}

.pass-notice {
  font-size: 0.75rem;
  color: var(--slate-500);
  max-width: 220px;
  text-align: right;
}

.modal-actions-split {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* My Bookings Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}

.drawer-card {
  width: 100%;
  max-width: 480px;
  background: white;
  height: 100%;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  animation: drawerSlideIn 0.25s ease-out;
}
@keyframes drawerSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.booking-item-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.booking-item-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.booking-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.booking-pnr {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.875rem;
}
.booking-status {
  font-size: 0.6875rem;
  font-weight: 700;
  background: var(--emerald-50);
  color: var(--emerald-600);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.booking-route {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.booking-meta {
  font-size: 0.75rem;
  color: var(--slate-500);
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.booking-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--slate-100);
  padding-top: 10px;
}
.booking-actions button {
  flex: 1;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--slate-900);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.footer {
  background: white;
  border-top: 1px solid var(--slate-200);
  padding: 24px 0;
  color: var(--slate-500);
  font-size: 0.875rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Print Stylesheet */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-boarding-pass, #printable-boarding-pass * {
    visibility: visible;
  }
  #printable-boarding-pass {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: 1px solid #000;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .search-grid {
    grid-template-columns: 1fr 1fr;
  }
  .btn-swap {
    display: none;
  }
  .results-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
  }
  .flight-card {
    grid-template-columns: 1fr;
  }
  .flight-price-col {
    border-left: none;
    border-top: 1px solid var(--slate-100);
    padding-left: 0;
    padding-top: 16px;
    align-items: stretch;
  }
}

@media (max-width: 600px) {
  .search-grid {
    grid-template-columns: 1fr;
  }
  .flight-timeline {
    grid-template-columns: 70px 1fr 70px;
    gap: 8px;
  }
  .pass-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pass-stub {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .pass-notice {
    text-align: left;
  }
}
