/* =========================================================
   Adventure365 - styles.css (full)
   Premium header, sticky glass tabs with sliding pill,
   ripple feedback, refined cards, and bookings list.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Manrope:wght@400;500;600;700&display=swap');

/* ---------- Base / Reset ---------- */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  /* Dark mode background and text */
  background: #1b1e23;
  color: #f0f4f8;
  min-height: 100vh;
}

/* Accent palette (shared) */
:root {
  --accent-300: #86efac; /* light green */
  --accent-500: #22c55e; /* primary */
  --accent-600: #16a34a; /* primary dark */
  --accent-700: #15803d; /* darker */
}

/* ---------- Header & Brand ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 14px;
  /* Dark header with slight transparency */
  background: rgba(32, 37, 45, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  /* Soft shadow on dark background */
  box-shadow:
    0 4px 22px rgba(0, 0, 0, 0.3),
    inset 0 -1px 0 #2e3a4c;
  padding: 14px 26px;
}
header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  /* Dark mode blue accent under header */
  background: linear-gradient(90deg, var(--accent-500), var(--accent-600) 60%, var(--accent-700));
  opacity: 0.85;
}
.logo {
  height: 38px;
  width: 38px;
  /* Square logo for corporate/dark mode */
  border-radius: 0;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.app-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  /* Light text for dark mode */
  color: #f0f4f8;
  text-shadow: none;
}
.app-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  /* Muted accent for dark mode */
  color: #a5b3c1;
  opacity: 0.85;
  margin-top: 2px;
}

/* ---------- Tab Navigation (glassy) ---------- */
#tab-bar {
  position: sticky;
  top: 66px; /* sits below header */
  z-index: 1100;
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  /* Dark, glassy tab bar */
  background: rgba(25, 30, 39, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #2e3a4c;
  align-items: center;
  justify-content: space-between;
}
#tab-bar .tab-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  position: relative;
}
#tab-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  padding: 5px 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.25px;
  /* Muted text colour on dark tabs */
  color: #a5b3c1;
  background: transparent;
  border: 0;
  cursor: pointer;
  /* Square tabs for corporate dark mode */
  border-radius: 0;
  transition:
    color 0.15s ease,
    transform 0.08s ease;
  position: relative; /* for ripple + stacking */
  z-index: 1; /* above the indicator */
  overflow: hidden; /* ripple clipping */
}
#tab-bar .tab-inner button {
  flex: 0 0 auto;
  padding: 6px 14px;
}
#tab-bar button:hover {
  transform: translateY(-1px);
  color: var(--accent-500);
}
#tab-bar button:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}
#tab-bar button.active {
  /* Dark text on blue indicator */
  color: #1b1e23;
  text-shadow: none;
}
#tab-bar button span {
  line-height: 1.15;
}

/* Tab icons */
#tab-bar .tab-ico {
  width: 20px;
  height: 20px;
  fill: currentColor;
  opacity: 0.95;
  transform: translateY(2px); /* nudge down for visual centering */
}

/* Sliding pill indicator (behind labels/icons) */
#tab-indicator {
  /* Blue sliding pill for dark mode */
  border: 1px solid var(--accent-700);
  position: absolute;
  bottom: 2px;
  height: 39px;
  /* Square corners */
  border-radius: 0;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  box-shadow:
    0 6px 16px rgba(34, 197, 94, 0.35),
    inset 0 1px 0 rgba(0, 0, 0, 0.4);
  transition:
    transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.34s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.2s ease-out;
  pointer-events: none;
  z-index: 0;
}
#tab-indicator::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
  opacity: 0.35;
}

/* Ripple effect */
.tab-ripple {
  position: absolute;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  width: 6px;
  height: 6px;
  /* Soft blue ripple for dark mode */
  background: radial-gradient(
    circle,
    rgba(34, 197, 94, 0.6) 0%,
    rgba(34, 197, 94, 0.25) 40%,
    rgba(34, 197, 94, 0) 70%
  );
  animation: ripple 0.6s ease-out forwards;
  mix-blend-mode: screen;
}
@keyframes ripple {
  from {
    opacity: 0.85;
    width: 6px;
    height: 6px;
  }
  to {
    opacity: 0;
    width: 240px;
    height: 240px;
  }
}

/* ---------- Sections ---------- */
.tab-section {
  display: none;
  padding: 32px 0 24px 0;
  max-width: 80vw;
  margin: 0 auto;
}
.tab-section.active {
  display: block;
}

/* ---------- Forms ---------- */
form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
  /* Dark form panels */
  background: #28313b;
  border-radius: 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  padding: 14px 16px;
}
form input,
form select,
form button {
  font-size: 1rem;
  padding: 9px 11px;
  border-radius: 0;
  border: 1px solid #3d4a5c;
  outline: none;
  background: #32414e;
  color: #f0f4f8;
}
form button,
.rose-btn {
  /* Primary blue button */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: #f4f9ff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.08s ease,
    box-shadow 0.18s ease;
  border-radius: 999px;
  padding: 10px 22px;
  box-shadow: 0 12px 26px rgba(34, 118, 212, 0.28);
}
.rose-btn:hover {
  background: linear-gradient(135deg, var(--accent-600), var(--accent-700));
  box-shadow: 0 16px 32px rgba(34, 118, 212, 0.35);
}
.rose-btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 10px 20px rgba(20, 63, 110, 0.3);
}
.rose-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.rose-btn.outline {
  background: transparent;
  color: var(--accent-500);
  border: 2px solid rgba(34, 197, 94, 0.65);
  box-shadow: none;
}
.rose-btn.outline:hover {
  background: rgba(34, 197, 94, 0.12);
}
.rose-btn.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff5f5;
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.3);
}
.rose-btn.danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* ---------- Spinners ---------- */
.spinner {
  display: none;
  margin: 28px auto;
  border: 6px solid #445267;
  border-top: 6px solid var(--accent-500);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* ---------- Results Grid & Cards ---------- */
.results-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
}

/* Results container → two balanced columns */
#results-container {
  display: grid !important; /* override inline if needed */
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 18px;
}

/* Section headings + inner stacks */
#outbound-results h3,
#return-results h3 {
  margin: 0 0 16px;
  /* Use blue accent for headings in dark mode */
  color: var(--accent-500);
  font-size: 1.05rem;
  letter-spacing: 0.4px;
}
#outbound-cards,
#return-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.card {
  background: linear-gradient(155deg, rgba(29, 38, 49, 0.95), rgba(18, 24, 32, 0.94));
  border-radius: 20px;
  border: 1px solid rgba(72, 89, 111, 0.45);
  box-shadow: 0 18px 36px rgba(6, 10, 15, 0.45);
  padding: 24px 26px;
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    border-color 0.2s ease;
  cursor: pointer;
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 52px rgba(10, 16, 24, 0.6);
}
.card.selected {
  border-color: rgba(125, 200, 255, 0.45);
  box-shadow:
    0 0 0 2px rgba(125, 200, 255, 0.35),
    0 28px 54px rgba(34, 197, 94, 0.25);
  transform: translateY(-3px);
}
.card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--accent-300);
  margin-bottom: 8px;
}
.card .muted {
  color: #8fa0b5;
  font-weight: 500;
}
.car-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-left {
  flex: 1;
}
.card-right {
  margin-left: 18px;
}
.car-code {
  font-size: 0.99rem;
  color: #a5b3c1;
}
.rose {
  color: var(--accent-500);
}
.no-results {
  color: #a5b3c1;
  font-weight: 500;
  padding: 22px 0 0 10px;
}
.error {
  color: #cc4452;
  font-weight: 500;
  padding-left: 8px;
}

.card.flight-card {
  cursor: default;
  padding: 20px 22px;
  background: linear-gradient(155deg, rgba(32, 43, 58, 0.98), rgba(18, 26, 36, 0.94));
  border-color: rgba(90, 110, 138, 0.55);
}
.fc-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  align-items: center;
}
.fc-logo img,
img.airline-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.06));
}
.fc-title {
  font-weight: 800;
  color: var(--accent-500);
  letter-spacing: 0.4px;
}
.fc-date {
  color: var(--accent-500);
  font-weight: 700;
}

.fc-body {
  margin-top: 8px;
  color: #a5b3c1;
}
.fc-route {
  font-weight: 600;
  margin-bottom: 6px;
  color: #f0f4f8;
}
.fc-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(23, 30, 39, 0.7);
  border: 1px solid rgba(86, 103, 125, 0.5);
  font-weight: 600;
  color: #cfdae8;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-left: 6px;
}

.fc-foot {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fc-price span {
  color: #a5b3c1;
  font-weight: 600;
}
.fc-price strong {
  color: var(--accent-500);
  font-size: 1.05rem;
}
.fc-select {
  padding: 8px 14px;
}
/* ---------- Booking Forms ---------- */
.booking-form {
  margin: 22px 0 0 0;
  padding: 18px 10px 10px 10px;
  background: #28313b;
  border: 1px solid #3d4a5c;
  border-radius: 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.booking-form input {
  flex: 1 1 190px;
}

/* Passenger row */
.pax-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(61, 74, 92, 0.5);
  background: rgba(17, 23, 32, 0.5);
}
.field--pax .pax-row {
  gap: 8px;
  padding: 4px;
}
.pax-field {
  display: grid;
  gap: 4px;
  font-size: 0.7rem;
  color: #a5b3c1;
}
.field--pax .pax-field {
  font-size: 0.66rem;
}
.pax-field input {
  width: 100%;
}

/* Ages input rows for children/infants */
.ages-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(80px, 1fr));
  gap: 8px;
  margin: 6px 0 4px 0;
}
.age-field {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #a5b3c1;
}
.age-field input {
  width: 100%;
}

/* Traveler fields */
.traveler-row {
  display: grid;
  grid-template-columns:
    110px minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(120px, 0.6fr)
    minmax(160px, 1fr);
  gap: 8px;
  width: 100%;
  align-items: end;
}
.traveler-row + .traveler-row {
  margin-top: 8px;
}
.traveler-type {
  font-weight: 700;
  color: #f0f4f8;
  align-self: center;
}

/* ---------- Misc ---------- */
img.airline-logo {
  max-height: 30px;
  vertical-align: middle;
}
.change-selection-btn {
  margin-top: 12px;
  margin-bottom: 8px;
  padding: 9px 18px;
  font-size: 1rem;
}

/* ---------- My Bookings ---------- */
.bookings-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.bookings-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-500);
}
.bookings-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
#syncStatus {
  font-size: 0.85rem;
  color: #a9b7c8;
  margin-left: 6px;
}
.sync-status.busy {
  color: #ffd28a;
}
.cart-panel {
  position: fixed;
  right: 20px;
  top: 112px;
  bottom: auto;
  width: 320px;
  max-height: 70vh;
  background: rgba(18, 24, 32, 0.95);
  border: 1px solid rgba(71, 87, 109, 0.5);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(8, 12, 18, 0.35);
  padding: 14px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-head-actions {
  display: flex;
  gap: 6px;
}
.cart-title {
  font-weight: 700;
  color: #e6f2ff;
}
.cart-body {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}
.cart-empty {
  color: #9fb0c2;
  font-size: 0.9rem;
  padding: 6px 0;
}
.cart-item {
  border: 1px solid rgba(71, 87, 109, 0.45);
  border-radius: 12px;
  padding: 10px;
  background: rgba(14, 20, 28, 0.85);
}
.cart-item h4 {
  margin: 0 0 6px 0;
  font-size: 0.95rem;
  color: #bfe9d1;
}
.cart-item .cart-meta {
  font-size: 0.85rem;
  color: #c7d1dd;
  line-height: 1.4;
}
.cart-item .cart-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cart-item .rose-btn.small {
  padding: 4px 8px;
  font-size: 0.75rem;
}
@media (max-width: 980px) {
  .cart-panel {
    position: fixed;
    top: 110px;
    right: 16px;
    bottom: 16px;
    left: auto;
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100vh - 140px);
    margin: 0;
  }
}
.badge--syncing {
  border-color: #ffd28a;
  color: #ffe6b8;
  background: rgba(255, 208, 138, 0.2);
  margin-left: 6px;
}
.badge--ok {
  border-color: #24c463;
  color: #c9f3d9;
  background: rgba(36, 196, 99, 0.2);
  margin-left: 6px;
}
.badge--fail {
  border-color: #ff6b6b;
  color: #ffd0d0;
  background: rgba(198, 62, 62, 0.2);
  margin-left: 6px;
}
.badge--cancel {
  border-color: #8792a3;
  color: #c7d1dd;
  background: rgba(135, 146, 163, 0.2);
  margin-left: 6px;
}
#bookingSearch {
  min-width: 220px;
}
.booking-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 14px;
}
.booking-filters label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: #b6c3d3;
}
.booking-filters label span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: #9fb0c2;
}
.booking-filters select {
  min-width: 160px;
  background: rgba(15, 21, 27, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(71, 87, 109, 0.45);
  padding: 8px 12px;
  color: #f0f4f8;
}
.booking-filter-chips {
  display: flex;
  gap: 8px;
}
.chip-btn {
  border: 1px solid rgba(71, 87, 109, 0.45);
  background: rgba(19, 24, 32, 0.8);
  color: #bfe9d1;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
}
.chip-btn.active {
  border-color: #24c463;
  color: #0b1518;
  background: linear-gradient(135deg, #21a758, #2ddc73);
}
#bookingSearch {
  min-width: 220px;
}

.booking-list {
  background: #28313b;
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  border: 1px solid #3d4a5c;
}
.booking-row,
.booking-head {
  display: grid;
  grid-template-columns: 90px 110px 120px 110px 1fr 130px 130px 120px 220px;
  gap: 10px;
  padding: 12px 14px;
  align-items: center;
}
.booking-head {
  background: #32414e;
  color: var(--accent-500);
  font-weight: 700;
  border-bottom: 1px solid #3d4a5c;
}
.booking-row {
  border-bottom: 1px solid #3d4a5c;
  cursor: pointer;
}
.booking-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: thin;
}

/* Widen Actions column to keep buttons inline */
.booking-row,
.booking-head {
  grid-template-columns: 90px 110px 120px 110px 1fr 130px 130px 120px 220px 320px;
}
.booking-row .rose-btn.small {
  padding: 4px 8px;
  font-size: 0.75rem;
}
.booking-drawer {
  display: none;
  grid-column: 1 / -1;
  padding: 10px 14px 16px;
  background: rgba(14, 20, 28, 0.8);
  border-top: 1px solid #3d4a5c;
}
.booking-drawer.open {
  display: block;
}
.booking-drawer .drawer-grid {
  display: grid;
  gap: 8px;
}
.booking-timeline {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.booking-timeline .timeline-item {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #c7d1dd;
  font-size: 0.9rem;
}
.booking-timeline .timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3c4b5a;
  border: 1px solid #5a6b7d;
}
.booking-timeline .timeline-dot.done {
  background: #24c463;
  border-color: #24c463;
}
.booking-timeline .timeline-dot.warn {
  background: #ff9f43;
  border-color: #ff9f43;
}
.booking-row:last-child {
  border-bottom: none;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  /* Square badge for dark mode */
  border-radius: 0;
  border: 1px solid #3d4a5c;
  color: var(--accent-500);
  background: #32414e;
  font-size: 0.84rem;
}
.badge--alert {
  border-color: #ff6b6b;
  color: #ffd0d0;
  background: rgba(198, 62, 62, 0.2);
  margin-left: 6px;
}

.booking-modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.booking-modal-title {
  display: flex;
  gap: 8px;
  align-items: center;
}
.booking-modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.booking-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 6px 14px;
}
.booking-modal-next {
  font-size: 12px;
  color: #7d90a1;
  margin-bottom: 8px;
}
.modal__debug summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 6px;
}

/* ---------- Booking Form Cards ---------- */
.pax-card {
  border: 1px solid #3d4a5c;
  border-radius: 12px;
  padding: 10px;
  background: #1f2833;
  margin-bottom: 10px;
}
.pax-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pax-card__grid {
  margin-top: 4px;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 30px;
  color: #7d90a1;
  font-weight: 500;
}
.empty-illustration {
  font-size: 2rem;
}

/* ===== Tab counters ===== */
.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  margin-left: 6px;
  /* Square counters for dark mode */
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 700;
  background: #32414e;
  color: #a5b3c1;
  border: 1px solid #3d4a5c;
}
.tab-count.is-empty {
  display: none;
}
.tab-count.pulse {
  animation: cartPulse 0.45s ease;
}
@keyframes cartPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
#tab-bar button.active .tab-count {
  /* Blue accent for active counter in dark mode */
  background: rgba(34, 197, 94, 0.25);
  color: #1b1e23;
  border-color: rgba(47, 167, 114, 0.4);
}

/* ===== Toasts ===== */
.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: #28313b;
  color: #f0f4f8;
  border: 1px solid #3d4a5c;
  border-left: 4px solid var(--accent-500);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 10px 14px;
  /* Square corners for dark mode */
  border-radius: 0;
  max-width: 340px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: toast-in 0.22s ease-out;
}
.toast .t-title {
  font-weight: 800;
  margin-right: 6px;
}
.toast.success {
  border-left-color: #2fa772;
}
.toast.error {
  border-left-color: #cc4452;
}
.toast.info {
  border-left-color: var(--accent-600);
}
@keyframes toast-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== Vehicle cards (premium) ===== */
.card.vehicle-card {
  cursor: default;
  padding: 16px 18px;
}
.vc-head {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
}
.vc-logo img {
  width: 72px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.06));
}
.vc-title {
  font-weight: 800;
  color: var(--accent-500);
  letter-spacing: 0.3px;
}
.vc-body {
  margin-top: 10px;
  color: #6b7682;
  line-height: 1.5;
}
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.spec-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: #eef2f7;
  border: 1px solid #d5dbe5;
  font-weight: 600;
  color: #394454;
  font-size: 13px;
}
.vc-body b {
  color: #2f3c4d;
}
.vc-foot {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vc-price span {
  color: #6b7682;
  font-weight: 600;
}
.vc-price strong {
  color: var(--accent-500);
  font-size: 1.08rem;
}

/* ===== Hotel cards (search list) ===== */
.card.hotel-card {
  cursor: default;
  padding: 16px 18px;
}
.hc-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.hc-title {
  font-weight: 800;
  color: var(--accent-500);
  letter-spacing: 0.3px;
}
.hc-body {
  margin-top: 6px;
  color: #a5b3c1;
}
.hc-foot {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hc-range {
  color: #a5b3c1;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .booking-row,
  .booking-head {
    grid-template-columns: 90px 100px 120px 1fr 120px 110px 180px;
  }
  .booking-row .hide-md,
  .booking-head .hide-md {
    display: none;
  }
  #results-container {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .tab-section {
    padding: 7vw 0 24px 0;
  }
  .results-grid {
    flex-direction: column;
    gap: 12px;
  }
  form {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }
  .card {
    min-width: unset;
    max-width: unset;
    width: 99%;
  }
}

/* ---------- Placeholders ---------- */
::-webkit-input-placeholder {
  color: #566981;
}
::-moz-placeholder {
  color: #566981;
}
:-ms-input-placeholder {
  color: #566981;
}
::placeholder {
  color: #566981;
}

:root {
  --pill-pad-left: 20; /* inner left padding inside pill */
  --pill-pad-right: 5; /* inner right padding inside pill */
  --pill-min-width: 150; /* minimum pill width (px) */
  --pill-extra: 0; /* manual extra width to add/subtract (px) */
  --pill-fixed-width: 0; /* 0 = auto; >0 = fixed width in px */
}

/* === Floating AI Assistant === */
:root {
  /* Primary colours for AI assistant in dark mode */
  --ai-rose: var(--accent-500);
  --ai-rose-dark: var(--accent-600);
  --ai-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  --ai-z: 3000;
}

/* Floating button (FAB) */
.ai-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: var(--ai-z);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--ai-rose), var(--ai-rose-dark));
  border: none;
  box-shadow: var(--ai-shadow);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    opacity 0.2s;
}
.ai-fab:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.24),
    0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Panel */
.ai-chat {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: calc(var(--ai-z) - 1);
  width: 360px;
  max-width: calc(100vw - 28px);
  height: 480px;
  background: #28313b;
  color: #f0f4f8;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--ai-shadow);
  display: none; /* toggled via JS */
}
.ai-chat.open {
  display: flex;
  flex-direction: column;
}

.ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: linear-gradient(180deg, #32414e, #28313b);
  border-bottom: 1px solid #3d4a5c;
}
.ai-title {
  font-weight: 800;
  color: var(--accent-500);
  letter-spacing: 0.3px;
}
.ai-actions .ai-icon {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  color: #a5b3c1;
}
.ai-actions .ai-icon:hover {
  color: var(--accent-500);
}

.ai-msgs {
  flex: 1;
  overflow: auto;
  padding: 12px;
  background: #1b1e23;
}

/* Bubbles */
.msg {
  max-width: 86%;
  padding: 10px 12px;
  /* Square corners for dark mode */
  border-radius: 0;
  margin: 8px 0;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.msg.bot {
  background: #32414e;
  border: 1px solid #3d4a5c;
  color: #f0f4f8;
}
.msg.user {
  background: var(--accent-500);
  color: #1b1e23;
  margin-left: auto;
}
.msg .meta {
  display: block;
  font-size: 0.72rem;
  opacity: 0.7;
  margin-top: 4px;
  color: #a5b3c1;
}

/* Input bar */
.ai-inputbar {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #3d4a5c;
  background: #28313b;
}
.ai-inputbar input {
  flex: 1;
  border: 1px solid #3d4a5c;
  border-radius: 0;
  padding: 10px 12px;
  font-size: 1rem;
  outline: none;
  background: #32414e;
  color: #f0f4f8;
  transition: border 0.15s;
}
.ai-inputbar input:focus {
  border-color: var(--accent-500);
}

/* Mobile: taller & almost full width */
@media (max-width: 560px) {
  .ai-chat {
    right: 10px;
    bottom: 78px;
    width: calc(100vw - 20px);
    height: 60vh;
  }
}

/* Avatar inside FAB */
.ai-fab {
  padding: 0;
}
.ai-fab .avatar-ring {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.1);
}
.ai-fab .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.ai-fab .avatar-fallback {
  display: none;
  width: 34px;
  height: 34px;
  place-items: center;
}
.ai-fab .avatar-fallback svg {
  display: block;
}
.ai-fab .status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  background: #2fa772;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

/* Header avatar (optional) */
.ai-head .avatar.small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* subtle hover pop */
.ai-fab:hover .avatar-ring {
  transform: translateY(-1px);
  transition: transform 0.12s;
}

/* Seat map grid */
.seat-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(24px, auto));
  gap: 6px 10px;
  align-items: center;
  margin: 8px 0;
}
.seat-hdr {
  font-weight: 600;
  font-size: 12px;
  text-align: center;
  opacity: 0.8;
}
.seat-row {
  font-weight: 600;
  font-size: 12px;
  text-align: right;
  padding-right: 6px;
}
.seat {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 1px solid #ddd;
}
.seat.avail {
  background: #e9f8ec;
  border-color: #b7e0c0;
  color: #2d7a34;
  cursor: pointer;
}
.seat.unavail {
  background: #f7e9eb;
  border-color: #e0b7bf;
  color: #9b1d3a;
}
.seat.unknown {
  background: #f5f5f5;
  color: #777;
}
.seat.selected {
  outline: 2px solid #2d7a34;
  outline-offset: 2px;
}

.ticket-panel {
  border: 1px solid #e5e7ef;
  border-radius: 12px;
  background: #f9fbff;
  padding: 12px;
}
.ticket-panel .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.ticket-panel .panel-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ticket-panel .ticket-panel-body {
  background: #fff;
  border: 1px solid #e5e7ef;
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  line-height: 1.4;
  max-height: 260px;
  overflow: auto;
}
.ticket-panel .ticket-block {
  display: grid;
  gap: 8px;
}
.ticket-panel .ticket-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.ticket-panel .ticket-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
}
.ticket-panel .ticket-chip.warn {
  background: #fff1f2;
  color: #9f1239;
}
.ticket-panel .ticket-card {
  border: 1px solid #e7edf7;
  border-radius: 10px;
  padding: 8px;
  background: #f8fafc;
}
.ticket-panel .ticket-card h4 {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f172a;
}

/* ---------- Analytics ---------- */
.analytics-shell {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 35%, #f7faf5 100%);
}
.analytics-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 18px;
  flex-wrap: wrap;
}
.analytics-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.analytics-meta {
  font-size: 12px;
  color: #64748b;
}
.analytics-scoreboard,
.system-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.metric-tile,
.system-status-card {
  padding: 16px;
  border: 1px solid rgba(176, 16, 22, 0.16);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(74, 16, 18, 0.08);
}
.metric-tile span,
.system-status-card span {
  display: block;
  color: var(--xlt-muted, #6b7280);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.metric-tile strong,
.system-status-card strong {
  display: block;
  margin-top: 6px;
  color: var(--xlt-ink, #242424);
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.05;
}
.system-status-card em {
  display: block;
  margin-top: 8px;
  color: var(--xlt-muted, #6b7280);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.35;
}
.system-status-card.is-ok strong {
  color: var(--xlt-red, #b01016);
}
.system-status-card.is-warn {
  background: #fff7f7;
  border-color: rgba(176, 16, 22, 0.36);
}
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.analytics-panel {
  border-radius: 16px;
  border: 1px solid #e6ecf5;
  background: #fff;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.analytics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.analytics-card {
  border-radius: 12px;
  border: 1px solid #e7edf7;
  background: #f8fbff;
  padding: 10px;
}
.analytics-card strong {
  font-size: 18px;
  display: block;
  color: #0f172a;
}
.analytics-card span {
  font-size: 11px;
  color: #64748b;
}
.analytics-detail {
  margin-top: 12px;
  border-top: 1px dashed #e5e7ef;
  padding-top: 10px;
  font-size: 12px;
  color: #475569;
}
.analytics-detail ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.analytics-detail li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 5px 0;
}
.analytics-detail li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-detail li b {
  color: var(--xlt-red, #b01016);
}
.report-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
.bar-track {
  background: #e9eef7;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #16a34a);
}
.kanban-wrap {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid #e5e7ef;
}
.kanban-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.kanban-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.kanban-lane {
  background: #f8fafc;
  border: 1px solid #e5e7ef;
  border-radius: 14px;
  padding: 12px;
  min-height: 220px;
}
.kanban-lane h4 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0f172a;
}
.kanban-cards {
  display: grid;
  gap: 8px;
}
.kanban-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7ef;
  padding: 10px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}
.kanban-card.is-dragging {
  opacity: 0.6;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.kanban-lane.is-drop {
  border-color: #22c55e;
  background: #f0fdf4;
}
.kanban-card .tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e6f6ed;
  color: #166534;
  margin-right: 6px;
}
.kanban-card .tag--warn {
  background: #fff1f2;
  color: #9f1239;
}
.kanban-card .title {
  font-weight: 600;
  font-size: 13px;
  margin: 4px 0;
}
.kanban-card .meta {
  font-size: 11px;
  color: #64748b;
}

@media (max-width: 900px) {
  .analytics-scoreboard,
  .system-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .analytics-scoreboard,
  .system-status-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- UI Refresh Layout ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.muted {
  color: #93a4b7;
  font-weight: 500;
}

.app-shell {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 32px 90px;
  max-width: 84vw;
  width: 100%;
  margin: 0 auto;
}

.tab-section {
  padding: 0;
  max-width: none;
  margin: 0;
}

.section-card {
  background: linear-gradient(145deg, rgba(34, 41, 52, 0.94), rgba(24, 29, 39, 0.88));
  border: 1px solid rgba(94, 112, 134, 0.35);
  border-radius: 24px;
  box-shadow: 0 26px 54px rgba(8, 12, 18, 0.45);
  padding: 36px 40px 42px;
  backdrop-filter: blur(18px);
}
.section-card + .section-card {
  margin-top: 24px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.section-header h2 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 700;
  color: #ffffff;
}
.section-header p {
  margin: 6px 0 0;
  color: #a8b6c8;
  max-width: 56ch;
  line-height: 1.6;
  font-size: 1rem;
}
.section-header .chip {
  align-self: flex-start;
  font-size: 0.82rem;
}
.section-header .chip--accent {
  background: rgba(34, 197, 94, 0.2);
  color: var(--accent-300);
}

#air-section .section-card {
  position: relative;
  overflow: hidden;
}
#air-section .section-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 260px at 12% -12%, rgba(34, 197, 94, 0.2), transparent 60%),
    radial-gradient(520px 240px at 88% 0%, rgba(59, 130, 246, 0.16), transparent 65%);
  opacity: 0.85;
  pointer-events: none;
}
#air-section .section-card > * {
  position: relative;
  z-index: 1;
}

form.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px 24px;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
}
.form-grid .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-grid .field label,
.field-label {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #cfdae8;
}
.form-grid .field input,
.form-grid .field select,
.bookings-toolbar input,
.admin-controls input {
  background: rgba(20, 27, 35, 0.85);
  border: 1px solid rgba(86, 99, 115, 0.55);
  border-radius: 14px;
  padding: 11px 13px;
  color: #f4f9ff;
  min-height: 44px;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease;
}
.form-grid .field input:focus,
.form-grid .field select:focus,
.bookings-toolbar input:focus,
.admin-controls input:focus {
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  outline: none;
}
.form-grid .field input::placeholder,
.bookings-toolbar input::placeholder,
.admin-controls input::placeholder {
  color: rgba(206, 220, 233, 0.35);
}

.field-hint,
.form-footnote {
  font-size: 0.82rem;
  color: #8fa0b5;
  margin: 0;
}
.field-hint {
  line-height: 1.45;
}

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(21, 28, 37, 0.55);
  border: 1px solid rgba(71, 87, 109, 0.4);
  border-radius: 16px;
  padding: 10px;
}
.field-stack-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.field-stack-head .field-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}
.field-stack-head .field-hint {
  font-size: 0.72rem;
}
.field--pax .field-stack {
  padding: 8px;
  gap: 10px;
}
.field--pax .field-stack-head .field-label {
  font-size: 0.64rem;
}
.field--pax .field-stack-head .field-hint {
  font-size: 0.68rem;
}
.ages-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section-card .ages-row {
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
}

.field--toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(20, 27, 35, 0.65);
  border: 1px solid rgba(71, 87, 109, 0.45);
  border-radius: 14px;
}
.field--toggle input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-500);
}
.field--toggle label {
  font-size: 0.95rem;
  color: #d9e3f0;
  cursor: pointer;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-actions button {
  flex: 0 0 auto;
}
.form-actions .clear-search-btn {
  min-width: 116px;
}
.form-footnote {
  flex: 1 1 240px;
}

.loading-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 0;
  margin-top: 12px;
}
.loading-stack .spinner {
  margin: 16px 8px;
}

.result-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 26px;
  gap: 28px;
}
#results-container > div {
  background: rgba(15, 20, 28, 0.65);
  border: 1px solid rgba(71, 87, 109, 0.35);
  border-radius: 20px;
  padding: 18px;
}
#results-container h3 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7ee3b0;
}
.section-card #price-summary {
  margin-top: 28px;
  background: rgba(21, 28, 37, 0.65);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(71, 87, 109, 0.4);
}

.sticky-back {
  position: sticky;
  top: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  background: rgba(36, 45, 58, 0.9);
  border: 1px solid rgba(71, 87, 109, 0.45);
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: 0 8px 20px rgba(6, 10, 15, 0.35);
  backdrop-filter: blur(14px);
}

.bookings-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.bookings-title {
  color: #9adcb9;
  font-weight: 700;
}
.bookings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.section-card .booking-list {
  background: rgba(20, 27, 35, 0.7);
  border-radius: 18px;
  border: 1px solid rgba(71, 87, 109, 0.45);
  box-shadow: 0 10px 26px rgba(8, 12, 18, 0.32);
}
.section-card .booking-head {
  background: rgba(33, 43, 55, 0.85);
  border-radius: 18px 18px 0 0;
}
.section-card .booking-row {
  background: transparent;
}
.empty-illustration {
  font-size: 2.6rem;
}

.section-card .booking-form {
  background: rgba(20, 27, 35, 0.7);
  border-radius: 16px;
  border: 1px solid rgba(71, 87, 109, 0.4);
  padding: 18px;
  box-shadow: none;
}
.section-card .booking-form input {
  background: rgba(15, 21, 27, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(71, 87, 109, 0.45);
  padding: 9px 12px;
}

.admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.admin-controls input {
  flex: 1 1 240px;
}
.admin-buttons {
  display: flex;
  gap: 8px;
}
.admin-buttons .rose-btn {
  min-width: 74px;
}

.ur-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.ur-field {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: #b6c3d3;
}
.ur-field span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: #9fb0c2;
}
.ur-field input,
.ur-field textarea {
  background: rgba(15, 21, 27, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(71, 87, 109, 0.45);
  padding: 9px 12px;
  color: #f0f4f8;
}
.ur-field--full {
  margin-top: 6px;
}
.ur-field--inline {
  grid-auto-flow: row;
  min-width: 200px;
}
.ur-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.ur-template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}
.ur-template-actions select {
  min-width: 180px;
  background: rgba(16, 20, 27, 0.8);
  color: #e8edf5;
  border: 1px solid rgba(101, 116, 143, 0.4);
  border-radius: 12px;
  padding: 10px 12px;
}
.ur-preview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a8b3c7;
  font-size: 13px;
  cursor: pointer;
}
.ur-preview {
  max-height: 240px;
  overflow: auto;
}

@media (max-width: 720px) {
  .section-card {
    padding: 22px 18px 26px;
  }
  form.form-grid {
    grid-template-columns: 1fr;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form-actions button {
    width: 100%;
    justify-content: center;
  }
}
.availability-toggle {
  display: flex;
  align-items: center;
  padding: 0;
}
.toggle-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(25, 34, 44, 0.85);
  border: 1px solid rgba(71, 87, 109, 0.5);
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  min-width: 260px;
}
.toggle-pill input[type='checkbox'] {
  appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(78, 94, 114, 0.6);
  position: relative;
  cursor: pointer;
  transition: background 0.25s ease;
}
.toggle-pill input[type='checkbox']::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0f1319;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}
.toggle-pill input[type='checkbox']:checked {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
}
.toggle-pill input[type='checkbox']:checked::after {
  transform: translateX(18px);
  background: #f4f9ff;
}

.grid-span {
  grid-column: 1 / -1;
}

/* ---------- Flights form refresh ---------- */
.flights-form {
  margin-top: 16px;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid rgba(61, 74, 92, 0.6);
  background: linear-gradient(145deg, rgba(21, 28, 37, 0.92), rgba(15, 20, 28, 0.92));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  gap: 24px;
}
.flights-form > .field {
  background: rgba(16, 22, 30, 0.75);
  border: 1px solid rgba(61, 74, 92, 0.6);
  border-radius: 18px;
  padding: 18px 20px;
}
.flights-form > .field.field--pax {
  padding: 12px 14px;
}
.flights-form > .field.field--route-group {
  padding: 0;
  background: transparent;
  border: none;
}
.flights-form .field-label {
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: #9fb0c2;
}
.flights-form .field-hint {
  color: #8a9aab;
}
.flights-form input,
.flights-form select {
  min-height: 44px;
}
.flights-form .form-actions {
  background: rgba(18, 24, 32, 0.9);
  border: 1px solid rgba(61, 74, 92, 0.6);
  border-radius: 18px;
  padding: 16px 20px;
  align-items: center;
  position: sticky;
  bottom: 14px;
  z-index: 5;
}
.flights-form .form-actions .form-footnote {
  margin: 0;
}

.flight-form-summary {
  margin: 16px 0 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(71, 87, 109, 0.45);
  background: rgba(17, 23, 31, 0.7);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.flight-form-summary .summary-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6ee7b7;
}
.flight-form-summary .summary-value {
  font-size: 0.9rem;
  color: #d5e0ee;
}

.flight-hero {
  margin: 18px 0 12px;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid rgba(71, 87, 109, 0.5);
  background: rgba(15, 21, 30, 0.78);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.08);
}
.flight-hero__copy {
  flex: 1 1 320px;
}
.flight-hero__copy h3 {
  margin: 4px 0 6px;
  font-size: 1.3rem;
  color: #f4f9ff;
}
.flight-hero__copy p {
  margin: 0;
  color: #aab8c8;
  max-width: 52ch;
  line-height: 1.6;
}
.hero-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8fd8b3;
}
.flight-steps {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}
.flight-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(71, 87, 109, 0.5);
  background: rgba(17, 24, 34, 0.85);
  color: #c9d6e4;
  font-size: 0.82rem;
  font-weight: 600;
}
.flight-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.18);
  color: #b5f2cf;
  font-size: 0.75rem;
  font-weight: 700;
}
.flight-step.is-active {
  border-color: rgba(34, 197, 94, 0.8);
  background: rgba(34, 197, 94, 0.12);
  color: #eafff3;
}
.flight-step.is-done {
  border-color: rgba(71, 87, 109, 0.6);
  background: rgba(34, 197, 94, 0.08);
  color: #bfead0;
}

.flight-insights {
  padding: 0;
  background: transparent;
  border: none;
}
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.insight-card {
  border-radius: 16px;
  border: 1px solid rgba(61, 74, 92, 0.6);
  background: rgba(16, 22, 30, 0.8);
  padding: 14px 16px;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.06);
}
.insight-title {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fd8b3;
  margin-bottom: 6px;
}
.insight-card p {
  margin: 0;
  color: #aab8c8;
  font-size: 0.9rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.field--route-group .route-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  background: rgba(21, 28, 37, 0.55);
  border: 1px solid rgba(71, 87, 109, 0.4);
  border-radius: 18px;
  padding: 18px;
}

.route-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.swap-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(86, 103, 125, 0.4);
  background: rgba(20, 27, 35, 0.65);
  color: #cfdae8;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.08s ease,
    box-shadow 0.18s ease;
}

.swap-btn:hover {
  background: rgba(34, 197, 94, 0.18);
  color: var(--accent-300);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.18);
}

.swap-btn:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}

.swap-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(21, 28, 37, 0.6);
  border: 1px solid rgba(86, 103, 125, 0.4);
}

.segment {
  border: none;
  background: transparent;
  color: #a5b3c1;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.segment.is-active {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: #10151c;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.22);
}

.segment:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(17, 22, 30, 0.65);
  border: 1px solid rgba(86, 103, 125, 0.4);
  border-radius: 14px;
  padding: 3px 5px;
}
.field--pax .stepper {
  padding: 2px 4px;
}

.stepper input {
  width: 44px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  color: #f4f9ff;
}
.field--pax .stepper input {
  width: 40px;
  font-size: 0.85rem;
}

.stepper input:focus {
  outline: none;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper input[type='number'] {
  -moz-appearance: textfield;
}

.stepper-btn {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(86, 103, 125, 0.5);
  background: rgba(28, 36, 45, 0.75);
  color: #dfe7f4;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.08s ease,
    color 0.18s ease;
}

.stepper-btn:hover {
  background: rgba(34, 197, 94, 0.18);
  color: var(--accent-300);
}
.field--pax .stepper-btn {
  width: 26px;
  height: 26px;
  font-size: 0.85rem;
}

.stepper-btn:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip--ghost {
  background: rgba(23, 30, 39, 0.7);
  border: 1px solid rgba(86, 103, 125, 0.5);
  color: #cfdae8;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border 0.18s ease;
}

.chip--ghost:hover {
  background: rgba(34, 197, 94, 0.18);
  color: var(--accent-300);
  border-color: rgba(34, 197, 94, 0.4);
}

.results-toolbar {
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(18, 24, 33, 0.75), rgba(26, 34, 45, 0.75));
  border: 1px solid rgba(71, 87, 109, 0.4);
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(7, 11, 17, 0.4);
}

.results-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.results-summary__group {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(71, 87, 109, 0.4);
  background: rgba(17, 24, 33, 0.75);
}
.results-summary__kicker {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7ee3b0;
  display: block;
  margin-bottom: 10px;
}
.results-summary__cards {
  display: grid;
  gap: 10px;
}
.summary-card {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(71, 87, 109, 0.35);
  background: rgba(13, 18, 26, 0.7);
}
.summary-card strong {
  display: block;
  font-size: 0.9rem;
  color: #f4f9ff;
}
.summary-card span {
  display: block;
  font-size: 0.78rem;
  color: #9fb0c2;
  margin-top: 4px;
}

.results-toolbar strong {
  font-size: 1.05rem;
  color: #f4f9ff;
}

.results-toolbar .muted {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
}

.results-toolbar .results-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sort-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-pill {
  border-radius: 999px;
  border: 1px solid rgba(86, 103, 125, 0.5);
  background: rgba(21, 28, 37, 0.65);
  color: #cfdae8;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border 0.18s ease,
    box-shadow 0.18s ease;
}

.sort-pill.is-active {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: #10151c;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.25);
}

.sort-pill:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .field--route-group .route-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .swap-btn {
    width: 100%;
    height: 44px;
  }
}

@media (max-width: 720px) {
  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-group {
    width: 100%;
  }

  .sort-pill {
    flex: 1 1 auto;
    text-align: center;
  }
}

.toggle-pill label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}
.toggle-pill label span {
  font-weight: 600;
  color: #e0ebf8;
}
.toggle-pill label small {
  font-size: 0.75rem;
  color: #8fa0b5;
  letter-spacing: 0.2px;
}

.return-field input[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.return-field input:not([disabled]) {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}
.return-field input:not([disabled]):focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
}

@media (min-width: 1200px) {
  .app-shell {
    margin: 0 auto;
  }
}

.return-field input.is-enabled {
  opacity: 1;
}

/* ---------- Flight card refresh ---------- */
.flight-card__head {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.flight-card__badge img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(15, 21, 27, 0.6);
  padding: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.flight-card__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #cfdae8;
  font-weight: 600;
}
.flight-card__title strong {
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}
.flight-card__route {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #9fb3c8;
}
.flight-card__arrow {
  color: var(--accent-300);
  font-weight: 700;
}
.flight-card__tag,
.flight-card__date {
  font-size: 0.86rem;
  font-weight: 600;
  color: #8fa0b5;
  background: rgba(38, 46, 56, 0.7);
  border-radius: 999px;
  padding: 7px 14px;
}
.flight-card__tag {
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.flight-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.flight-card__segment {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}
.flight-card__time span {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #f4f9ff;
}
.flight-card__time small {
  color: #8fa0b5;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.flight-card__track {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, rgba(125, 200, 255, 0.35), rgba(78, 150, 220, 0.15));
  border-radius: 999px;
}
.flight-card__track::before,
.flight-card__track::after {
  content: '';
  position: absolute;
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #5ff0b0;
}
.flight-card__track::before {
  left: -6px;
}
.flight-card__track::after {
  right: -6px;
}
.flight-card__duration {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 600;
  color: #8fa0b5;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.flight-card__meta {
  font-size: 0.9rem;
}
.flight-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.flight-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(22, 28, 36, 0.7);
  border: 1px solid rgba(86, 103, 125, 0.4);
  color: #b8c7d8;
  font-size: 0.78rem;
  font-weight: 600;
}
.flight-card__foot {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.flight-card__price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #9ff3c7;
}
.flight-card__price.is-priced {
  color: #34d399;
}
.flight-card__actions {
  display: flex;
  gap: 10px;
}
.flight-card__actions .rose-btn {
  padding: 8px 14px;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
}
.flight-card--best {
  border: 1px solid rgba(34, 197, 94, 0.6);
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.18);
}
.flight-card__best {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #0f1f14;
  background: linear-gradient(135deg, #5ff0b0, #22c55e);
  border-radius: 999px;
  padding: 6px 12px;
  margin-top: 4px;
}

.booking-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(16, 22, 30, 0.85);
  border: 1px solid rgba(61, 74, 92, 0.6);
}
.booking-actions__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flight-summary {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(21, 28, 37, 0.65);
  border: 1px solid rgba(71, 87, 109, 0.4);
}
.flight-summary__route {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e0ebf8;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.flight-summary__route span {
  color: var(--accent-300);
}
.flight-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #a5b3c1;
  font-size: 0.85rem;
}
.flight-summary__count {
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e0ebf8;
}

.flight-subnav {
  position: sticky;
  top: 120px;
  z-index: 5;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(21, 28, 37, 0.7);
  border: 1px solid rgba(71, 87, 109, 0.4);
  backdrop-filter: blur(12px);
}
.flight-subnav__left,
.flight-subnav__right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.airport-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #1a222c;
  border: 1px solid rgba(86, 103, 125, 0.4);
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(8, 12, 18, 0.4);
  max-height: 240px;
  overflow-y: auto;
  z-index: 20;
  display: none;
}
.airport-suggest__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  color: #dbe5f3;
  border-bottom: 1px solid rgba(86, 103, 125, 0.2);
}
.airport-suggest__item:last-child {
  border-bottom: none;
}
.airport-suggest__item:hover,
.airport-suggest__item.is-active {
  background: rgba(34, 197, 94, 0.16);
  color: #f1f8f4;
}
.airport-suggest__code {
  font-weight: 700;
  letter-spacing: 0.6px;
}
.airport-suggest__name {
  color: #97a9bd;
  font-size: 0.82rem;
}

/* ---------- Fare cards ---------- */
.fare-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.fare-column__head h4 {
  margin: 0 0 12px;
  color: #9adcb9;
  letter-spacing: 0.4px;
}
.fare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.fare-card {
  background: linear-gradient(160deg, rgba(21, 31, 42, 0.95), rgba(13, 19, 26, 0.92));
  border-radius: 18px;
  border: 1px solid rgba(74, 93, 116, 0.45);
  box-shadow: 0 16px 32px rgba(8, 12, 18, 0.4);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    transform 0.15s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.fare-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}
.fare-card__name {
  font-weight: 700;
  color: #e0ebf8;
  letter-spacing: 0.3px;
}
.fare-card__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-300);
}
.fare-card__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #a5b3c1;
  font-size: 0.9rem;
}
.fare-card__action {
  align-self: flex-start;
  margin-top: 6px;
}
.fare-card--selected {
  border-color: rgba(125, 200, 255, 0.45);
  box-shadow:
    0 0 0 2px rgba(125, 200, 255, 0.35),
    0 24px 46px rgba(34, 197, 94, 0.25);
  transform: translateY(-3px);
}
.empty-fare {
  text-align: center;
  color: #8fa0b5;
}

/* =========================
   Light Theme Overrides
   Add class="theme-light" on <body> to enable.
   ========================= */
.theme-light {
  background: radial-gradient(circle at top, #ffffff 0%, #f4f8f5 45%, #eef4f0 100%);
  color: #1f2937;
}
.theme-light header {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08), inset 0 -1px 0 #e6edf5;
}
.theme-light header::after {
  opacity: 0.6;
}
.theme-light #tab-bar {
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid #e6edf5;
}
.theme-light #tab-bar button {
  color: #4b5563;
}
.theme-light #tab-bar button.active {
  color: #0b2f1d;
}
.theme-light #tab-indicator {
  border-color: var(--accent-500);
  box-shadow: 0 10px 22px rgba(34, 197, 94, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.theme-light .section-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf7 100%);
  border: 1px solid #e2eee7;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}
.theme-light .section-header h2 {
  color: #0f172a;
}
.theme-light .section-header p {
  color: #4b5563;
}
.theme-light .chip {
  background: rgba(34, 197, 94, 0.12);
  color: var(--accent-600);
}
.theme-light form,
.theme-light .field-stack,
.theme-light .field--toggle {
  background: transparent;
  border: none;
}
.theme-light .form-grid .field input,
.theme-light .form-grid .field select,
.theme-light .bookings-toolbar input,
.theme-light .admin-controls input {
  background: #ffffff;
  border: 1px solid #d7e6dc;
  color: #1f2937;
}
.theme-light .form-grid .field input:focus,
.theme-light .form-grid .field select:focus,
.theme-light .bookings-toolbar input:focus,
.theme-light .admin-controls input:focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.theme-light .card,
.theme-light .fare-card {
  background: #ffffff;
  border: 1px solid #e6edf5;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}
.theme-light .card:hover {
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}
.theme-light .card-title,
.theme-light .fare-card__name {
  color: #0f172a;
}
.theme-light .flight-card__title { color: #1f2937; }
.theme-light .flight-card__time span { color: #0f172a; }
.theme-light .flight-card__tag,
.theme-light .flight-card__date {
  background: #eef2f7;
  color: #334155;
}
.theme-light .ai-chat { background: #ffffff; color: #0f172a; }
.theme-light .ai-head { background: #f8fafc; border-bottom: 1px solid #e6edf5; }
.theme-light .ai-msgs { background: #f7f9fc; }
.theme-light .msg.bot { background: #f8fafc; border: 1px solid #e6edf5; color: #0f172a; }
.theme-light .msg.user { color: #ffffff; }
.theme-light .field--route-group .route-grid {
  background: #f4f9f6;
  border: 1px solid #dbe9e0;
}
.theme-light .swap-btn {
  background: #eef6f0;
  border: 1px solid #d0e4d7;
  color: #3b4b3f;
}
.theme-light .segmented {
  background: #eef6f0;
  border: 1px solid #d0e4d7;
}
.theme-light .segment {
  color: #4b5563;
}
.theme-light .segment.is-active {
  color: #0b2f1d;
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.18);
}
.theme-light .toggle-pill {
  background: #f1f7f3;
  border: 1px solid #d7e6dc;
}
.theme-light .stepper {
  background: #f1f7f3;
  border: 1px solid #d7e6dc;
}
.theme-light .chip--ghost {
  background: #f1f7f3;
  border: 1px solid #d7e6dc;
  color: #2f5b3e;
}
.theme-light .flight-summary {
  background: #f4f9f6;
  border: 1px solid #dbe9e0;
}
.theme-light .flight-summary__route span {
  color: var(--accent-600);
}
.theme-light .flight-pill {
  background: #eef6f0;
  border: 1px solid #d7e6dc;
  color: #2f5b3e;
}
.theme-light .airport-suggest {
  background: #ffffff;
  border: 1px solid #d7e6dc;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}
.theme-light .airport-suggest__item {
  color: #1f2937;
}
.theme-light .airport-suggest__name {
  color: #6b7280;
}
.theme-light .airport-suggest__item:hover,
.theme-light .airport-suggest__item.is-active {
  background: rgba(34, 197, 94, 0.12);
}
.theme-light .flight-subnav {
  background: #f4f9f6;
  border: 1px solid #dbe9e0;
}
.theme-light .results-toolbar {
  background: #f7fbf8;
  border: 1px solid #dbe9e0;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.field-error {
  font-size: 0.78rem;
  color: #d24f5c;
}
.theme-light .field-error {
  color: #b4232d;
}

.route-grid.is-swapping {
  animation: swapPulse 0.45s ease;
}
.swap-btn.is-swapping {
  transform: rotate(180deg);
  transition: transform 0.25s ease;
}
@keyframes swapPulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

/* System actions (theme toggle) */
.sys-actions { display: flex; align-items: center; gap: 10px; }

/* =========================
   Flat mode (global) — remove glow/shadows everywhere
   ========================= */
.flat-mode *,
.flat-mode *::before,
.flat-mode *::after {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}
.flat-mode #tab-indicator { box-shadow: none !important; }
.flat-mode .tab-ripple { display: none !important; }
.flat-mode .card:hover,
.flat-mode .card.selected,
.flat-mode .fare-card--selected { box-shadow: none !important; }
.flat-mode .form-grid .field input:focus,
.flat-mode .form-grid .field select:focus,
.flat-mode .bookings-toolbar input:focus,
.flat-mode .admin-controls input:focus,
.flat-mode .return-field input:not([disabled]),
.flat-mode .return-field input:not([disabled]):focus {
  box-shadow: none !important;
  outline: 2px solid var(--accent-500);
  outline-offset: 0;
}

/* SOAP XML debug panel */
.xml-debug {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 18px;
  padding: 12px;
  background: var(--surface-25, #f9fafb);
  border: 1px solid var(--border, #dcdfe6);
  border-radius: 12px;
}
.xml-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: var(--surface-50, #f4f6fb);
  border: 1px solid var(--border, #dcdfe6);
  border-radius: 12px;
}
.xml-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
}
.xml-actions {
  display: flex;
  gap: 8px;
}
.xml-box {
  min-height: 160px;
  max-height: 260px;
  padding: 12px;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13px;
  line-height: 1.5;
  background: #fff;
  border: 1px solid var(--border, #dcdfe6);
  border-radius: 10px;
  resize: vertical;
  color: inherit;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
}
.xml-note {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted, #6b7280);
  padding-left: 2px;
}

/* Modal (booking details) */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 23, 38, 0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  overflow-y: auto;
}
.modal.open {
  display: flex;
}
.modal__dialog {
  background: #fff;
  color: #1f2933;
  border-radius: 12px;
  max-width: 720px;
  width: 100%;
  max-height: calc(100vh - 40px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
  overflow: auto;
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f7f8fb;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 700;
}
.modal__title {
  font-size: 16px;
}
.modal__close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #6b7282;
}
.modal__body {
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
}
.modal__section {
  margin-bottom: 12px;
}
.modal__body pre {
  margin: 0;
  background: #f4f6fb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.modal__dialog--wide {
  max-width: 820px;
}
.checkout-steps {
  display: grid;
  gap: 12px;
}
.checkout-step {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(71, 87, 109, 0.45);
  background: rgba(14, 20, 28, 0.85);
}
.checkout-step h4 {
  margin: 0;
  color: #bfe9d1;
}
.checkout-step .step-meta {
  color: #c7d1dd;
  font-size: 0.9rem;
}
.checkout-step .step-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.priced-note {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7682;
}

/* =========================================================
   New Visual Direction: Sunlit Terracotta + Linen
   ========================================================= */
:root {
  --ink: #2a1f17;
  --muted: #6d5a4d;
  --bg: #f5efe7;
  --surface: #fff8f1;
  --surface-2: #f6e9db;
  --border: #e3d2c3;
  --accent: #e36d54;
  --accent-2: #b84a3a;
  --accent-3: #f2a66c;
  --shadow-soft: 0 18px 38px rgba(74, 46, 29, 0.18);
  --shadow-tight: 0 10px 24px rgba(74, 46, 29, 0.12);
  --radius: 18px;
}

html,
body {
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(242, 166, 108, 0.18), transparent 45%),
    radial-gradient(circle at 90% 12%, rgba(227, 109, 84, 0.16), transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(184, 74, 58, 0.12), transparent 55%),
    linear-gradient(180deg, #fbf4ec 0%, #f3e7db 50%, #efe1d2 100%);
  color: var(--ink);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.35) 0px,
      rgba(255, 255, 255, 0.35) 1px,
      transparent 1px,
      transparent 24px
    );
  mix-blend-mode: multiply;
  opacity: 0.28;
  z-index: 0;
}

main,
header,
nav,
.ai-chat {
  position: relative;
  z-index: 1;
}

header {
  background: rgba(255, 248, 241, 0.85);
  border-bottom: 1px solid rgba(227, 210, 195, 0.6);
  box-shadow: 0 12px 24px rgba(105, 65, 42, 0.14);
}
header::after {
  background: linear-gradient(90deg, var(--accent-3), var(--accent) 55%, var(--accent-2));
  opacity: 0.9;
}
.logo {
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(88, 55, 35, 0.18);
}
.app-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  color: #2a1b13;
  letter-spacing: 0.6px;
}
.app-subtitle {
  color: var(--muted);
  font-weight: 600;
}

#tab-bar {
  background: rgba(255, 246, 236, 0.8);
  border-bottom: 1px solid rgba(227, 210, 195, 0.7);
}
#tab-bar button {
  color: var(--muted);
  font-weight: 600;
}
#tab-bar button:hover {
  color: var(--accent-2);
}
#tab-bar button.active {
  color: #3b2418;
}
#tab-indicator {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  border: 1px solid rgba(184, 74, 58, 0.4);
  box-shadow: 0 12px 24px rgba(184, 74, 58, 0.25);
}
#tab-indicator::after {
  opacity: 0.22;
}

.section-card {
  background: linear-gradient(180deg, rgba(255, 248, 241, 0.95), rgba(250, 238, 225, 0.95));
  border: 1px solid rgba(227, 210, 195, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.section-header h2 {
  font-family: 'Fraunces', Georgia, serif;
  color: #2b1b14;
  letter-spacing: 0.3px;
}
.section-header p {
  color: var(--muted);
}

form,
.booking-form {
  background: rgba(255, 248, 241, 0.7);
  border-radius: var(--radius);
  border: 1px solid rgba(227, 210, 195, 0.65);
  box-shadow: var(--shadow-tight);
}
form input,
form select,
form button,
.bookings-toolbar input,
.admin-controls input {
  background: #fffaf4;
  border: 1px solid rgba(227, 210, 195, 0.9);
  color: var(--ink);
  border-radius: 12px;
}
form input:focus,
form select:focus,
.bookings-toolbar input:focus,
.admin-controls input:focus {
  box-shadow: 0 0 0 3px rgba(227, 109, 84, 0.2);
  border-color: rgba(227, 109, 84, 0.6);
}

.rose-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff7f0;
  box-shadow: 0 14px 26px rgba(184, 74, 58, 0.25);
}
.rose-btn:hover {
  background: linear-gradient(135deg, var(--accent-2), #8f3529);
  box-shadow: 0 18px 30px rgba(184, 74, 58, 0.32);
}
.rose-btn.outline {
  color: var(--accent-2);
  border-color: rgba(184, 74, 58, 0.5);
  background: transparent;
}
.rose-btn.outline:hover {
  background: rgba(227, 109, 84, 0.12);
}

.chip,
.chip--ghost,
.chip-btn {
  background: rgba(255, 248, 241, 0.9);
  border: 1px solid rgba(227, 210, 195, 0.85);
  color: #5b4234;
}
.chip--ghost:hover,
.chip-btn.active {
  background: rgba(227, 109, 84, 0.16);
  border-color: rgba(227, 109, 84, 0.4);
  color: #3f271c;
}
.tab-count {
  background: rgba(255, 248, 241, 0.9);
  border-radius: 999px;
  color: var(--muted);
}
#tab-bar button.active .tab-count {
  background: rgba(242, 166, 108, 0.45);
  border-color: rgba(227, 109, 84, 0.4);
  color: #3b2418;
}

.card,
.fare-card,
.results-toolbar,
.flight-summary,
.booking-list,
.cart-panel,
.modal__dialog,
.xml-debug,
.xml-panel {
  background: rgba(255, 248, 241, 0.95);
  border: 1px solid rgba(227, 210, 195, 0.85);
  box-shadow: var(--shadow-soft);
}
.card-title,
.fare-card__name,
.bookings-title {
  color: #2b1b14;
}
.card .muted,
.results-toolbar .muted,
.results-summary__kicker,
.flight-card__title,
.flight-card__meta,
.booking-filters label,
.booking-filters label span {
  color: var(--muted);
}

.results-toolbar strong,
.flight-card__price,
.fc-title,
.fc-date {
  color: var(--accent-2);
}

.flight-card__tag,
.flight-card__date,
.flight-pill,
.sort-pill {
  background: rgba(246, 233, 219, 0.9);
  border: 1px solid rgba(227, 210, 195, 0.85);
  color: #5b4234;
}
.sort-pill.is-active {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #3b2418;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(184, 74, 58, 0.2);
}

.airport-suggest {
  background: #fff8f1;
  border: 1px solid rgba(227, 210, 195, 0.9);
  box-shadow: var(--shadow-soft);
}
.airport-suggest__item:hover,
.airport-suggest__item.is-active {
  background: rgba(227, 109, 84, 0.14);
  color: #3b2418;
}

.ai-chat,
.ai-head,
.ai-msgs,
.msg.bot {
  background: rgba(255, 248, 241, 0.95);
  color: var(--ink);
  border-color: rgba(227, 210, 195, 0.7);
}
.msg.user {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.modal__head {
  background: #fff3e9;
  border-bottom: 1px solid rgba(227, 210, 195, 0.7);
}
.modal__body pre,
.xml-box {
  background: #fffaf4;
  border: 1px solid rgba(227, 210, 195, 0.8);
  color: #3b2418;
}

.theme-light,
.theme-light body {
  background:
    radial-gradient(circle at 10% 10%, rgba(242, 166, 108, 0.18), transparent 45%),
    radial-gradient(circle at 90% 12%, rgba(227, 109, 84, 0.16), transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(184, 74, 58, 0.12), transparent 55%),
    linear-gradient(180deg, #fbf4ec 0%, #f3e7db 50%, #efe1d2 100%);
  color: var(--ink);
}
.theme-light header,
.theme-light #tab-bar,
.theme-light .section-card,
.theme-light form,
.theme-light .booking-form,
.theme-light .card,
.theme-light .fare-card,
.theme-light .results-toolbar,
.theme-light .flight-summary,
.theme-light .booking-list,
.theme-light .cart-panel,
.theme-light .modal__dialog,
.theme-light .xml-debug,
.theme-light .xml-panel {
  background: rgba(255, 248, 241, 0.95);
  border-color: rgba(227, 210, 195, 0.85);
  color: var(--ink);
}
.theme-light .rose-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff7f0;
}

.tab-section.active {
  animation: fadeUp 0.45s ease both;
}
.section-card {
  animation: cardRise 0.5s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cardRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Re-skin remaining dark blocks --- */
.flight-form-summary {
  background: rgba(255, 248, 241, 0.9);
  border: 1px solid rgba(227, 210, 195, 0.8);
  color: var(--muted);
  box-shadow: var(--shadow-tight);
}
.flight-form-summary .summary-label {
  color: var(--accent-2);
}
.flight-hero {
  background: linear-gradient(135deg, rgba(255, 248, 241, 0.95), rgba(246, 233, 219, 0.95));
  border: 1px solid rgba(227, 210, 195, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.flight-hero__copy h3 {
  color: #2b1b14;
}
.flight-hero__copy p {
  color: var(--muted);
}
.flight-steps {
  background: rgba(255, 248, 241, 0.9);
  border: 1px solid rgba(227, 210, 195, 0.8);
}
.flight-step {
  color: var(--muted);
}
.flight-step.is-active {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #3b2418;
  border-color: transparent;
}

.field--route-group .route-grid,
.field-stack,
.field--toggle,
.segmented,
.stepper,
.toggle-pill {
  background: rgba(255, 248, 241, 0.95);
  border: 1px solid rgba(227, 210, 195, 0.85);
}
.segment {
  color: var(--muted);
}
.segment.is-active {
  color: #3b2418;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  box-shadow: 0 10px 20px rgba(184, 74, 58, 0.22);
}
.swap-btn {
  background: #fff3e9;
  border: 1px solid rgba(227, 210, 195, 0.85);
  color: #5b4234;
}

.pax-row,
.booking-actions,
.results-summary__group,
.summary-card {
  background: rgba(255, 248, 241, 0.9);
  border: 1px solid rgba(227, 210, 195, 0.85);
  box-shadow: var(--shadow-tight);
}
.pax-field {
  color: var(--muted);
}

.insight-card,
.flight-insights .insight-card,
.flight-subnav,
.results-toolbar,
.results-summary__group {
  background: rgba(255, 248, 241, 0.95);
  border: 1px solid rgba(227, 210, 195, 0.85);
}
.insight-card .insight-title {
  color: var(--accent-2);
}

.booking-list,
.booking-head,
.booking-row,
.booking-drawer {
  background: rgba(255, 248, 241, 0.95);
  border-color: rgba(227, 210, 195, 0.85);
  color: #3b2418;
}
.booking-head {
  color: #3b2418;
}
.booking-row {
  border-bottom: 1px solid rgba(227, 210, 195, 0.7);
}
.badge {
  background: rgba(246, 233, 219, 0.9);
  border: 1px solid rgba(227, 210, 195, 0.9);
  color: #5b4234;
}
.badge--alert {
  background: rgba(227, 109, 84, 0.12);
  border-color: rgba(227, 109, 84, 0.5);
  color: #7a2f25;
}

.table,
.table th,
.table td {
  border-color: rgba(227, 210, 195, 0.8);
}
.table th {
  background: rgba(255, 248, 241, 0.95);
  color: #3b2418;
}
.table td {
  background: rgba(255, 248, 241, 0.9);
  color: #3b2418;
}
.prebox {
  background: #fffaf4;
  border: 1px solid rgba(227, 210, 195, 0.85);
  color: #3b2418;
}

/* --- Cart: match new direction + improve presence --- */
.cart-panel {
  background: rgba(255, 248, 241, 0.96);
  border: 1px solid rgba(227, 210, 195, 0.9);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
  position: fixed;
  z-index: 1000;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.cart-panel.is-collapsed {
  opacity: 0;
  transform: none;
  visibility: hidden;
  pointer-events: none;
}
.cart-head {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(227, 210, 195, 0.7);
}
.cart-title {
  font-family: 'Fraunces', Georgia, serif;
  color: #2b1b14;
}
.cart-head-actions .rose-btn.outline {
  border-radius: 999px;
}
.cart-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(184, 74, 58, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--accent-2);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}
.cart-close:hover {
  background: rgba(227, 109, 84, 0.12);
}
.cart-close:focus-visible {
  outline: 2px solid rgba(184, 74, 58, 0.45);
  outline-offset: 2px;
}
.cart-body {
  gap: 12px;
}
.cart-empty {
  color: var(--muted);
}
.cart-item {
  background: rgba(246, 233, 219, 0.95);
  border: 1px solid rgba(227, 210, 195, 0.9);
  border-radius: 16px;
  box-shadow: var(--shadow-tight);
}
.cart-item h4 {
  color: #2b1b14;
}
.cart-item .cart-meta {
  color: var(--muted);
}
.cart-item .cart-actions .rose-btn.small {
  border-radius: 999px;
}
.cart-item .rose-btn.outline {
  border-color: rgba(184, 74, 58, 0.45);
  color: var(--accent-2);
}
.cart-item .rose-btn.outline:hover {
  background: rgba(227, 109, 84, 0.12);
}

#tab-bar .tab-cart {
  flex: 0 0 auto;
  padding: 5px 14px;
  gap: 8px;
  margin-left: 12px;
}
#tab-bar .tab-cart::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 22px;
  margin-right: 12px;
  background: rgba(227, 210, 195, 0.7);
  align-self: center;
}
#tab-bar .tab-cart .tab-ico {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .cart-panel {
    position: fixed;
    top: 110px;
    right: 16px;
    bottom: 16px;
    left: auto;
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100vh - 140px);
  }
  .cart-panel.is-collapsed {
    transform: none;
  }
}

/* =========================================================
   UX cleanup pass: calm travel workspace
   Keep this final layer last so it resolves older theme collisions.
   ========================================================= */
:root {
  --ui-bg: #f7f0e8;
  --ui-panel: #fffaf5;
  --ui-panel-2: #f4e7db;
  --ui-ink: #251913;
  --ui-muted: #715f52;
  --ui-soft: #9a887b;
  --ui-line: #e8d8ca;
  --ui-line-strong: #d7bdac;
  --ui-accent: #db654d;
  --ui-accent-strong: #b94a38;
  --ui-green: #2f9e67;
  --ui-navy: #24303c;
  --ui-shadow: 0 20px 42px rgba(79, 48, 31, 0.12);
  --ui-shadow-small: 0 10px 24px rgba(79, 48, 31, 0.1);
  --ui-radius: 16px;
}

html {
  scroll-padding-top: 76px;
}

body {
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 250, 245, 0.88), rgba(247, 240, 232, 0.94)),
    radial-gradient(circle at 12% 8%, rgba(219, 101, 77, 0.14), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(47, 158, 103, 0.1), transparent 35%),
    var(--ui-bg);
  color: var(--ui-ink);
}

body::before {
  opacity: 0.12;
}

header {
  position: relative;
  top: auto;
  min-height: 58px;
  padding: 12px clamp(18px, 3vw, 42px);
  background: rgba(255, 250, 245, 0.96);
  border-bottom: 1px solid var(--ui-line);
  box-shadow: none;
}

header::after {
  height: 2px;
  background: linear-gradient(90deg, #f0a16d, var(--ui-accent), var(--ui-accent-strong));
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(80, 44, 30, 0.12);
}

.app-title {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: 0;
}

.app-subtitle {
  color: var(--ui-muted);
  font-size: 0.88rem;
}

#tab-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 52px;
  padding: 8px clamp(12px, 2.2vw, 28px);
  background: rgba(255, 250, 245, 0.94);
  border-bottom: 1px solid var(--ui-line);
  box-shadow: 0 10px 22px rgba(75, 48, 33, 0.08);
}

#tab-bar .tab-inner {
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

#tab-bar .tab-inner button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ui-muted);
  white-space: nowrap;
}

#tab-bar button.active {
  color: #2b1b14;
}

#tab-indicator {
  bottom: 5px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59d72, var(--ui-accent));
  box-shadow: 0 10px 22px rgba(185, 74, 56, 0.22);
}

#tab-bar .tab-cart {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.app-shell {
  width: min(1480px, calc(100vw - 40px));
  max-width: none;
  margin: 0 auto;
  padding: 34px 0 52px;
}

.tab-section {
  max-width: none;
  width: 100%;
  padding: 0;
}

.section-card {
  border-radius: 18px;
  padding: clamp(20px, 3vw, 34px);
  background: rgba(255, 250, 245, 0.94);
  border: 1px solid rgba(232, 216, 202, 0.95);
  box-shadow: var(--ui-shadow);
}

#air-section .section-card::before {
  display: none;
}

.section-header {
  align-items: center;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  margin: 0 0 22px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 250, 245, 0.98), rgba(246, 232, 219, 0.85)),
    var(--ui-panel);
  border: 1px solid var(--ui-line);
  box-shadow: var(--ui-shadow-small);
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.05;
  margin: 0 0 8px;
  letter-spacing: 0;
}

.section-header p {
  margin: 0;
  max-width: 620px;
  color: var(--ui-muted);
  line-height: 1.55;
}

.chip,
.chip--ghost,
.chip-btn,
.section-header .chip {
  border-radius: 999px;
  background: #fffaf5;
  border: 1px solid var(--ui-line);
  color: #594437;
  box-shadow: none;
}

.chip--accent,
.section-header .chip--accent {
  background: rgba(47, 158, 103, 0.12);
  border-color: rgba(47, 158, 103, 0.24);
  color: var(--ui-green);
}

.flight-form-summary {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 22px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fffaf5;
  border: 1px solid var(--ui-line);
  box-shadow: var(--ui-shadow-small);
}

.flight-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin: 0 0 18px;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff9f2, #f7eadc);
  border: 1px solid var(--ui-line);
  box-shadow: none;
}

.flight-hero__copy h3 {
  margin: 6px 0 6px;
  font-size: 1.18rem;
}

.flight-hero__copy p {
  margin: 0;
  line-height: 1.5;
}

.hero-kicker,
.summary-label,
.field-label,
.insight-title {
  letter-spacing: 0.12em;
}

.flight-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.flight-step {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--ui-navy);
  color: #dbe5ec;
  border: 1px solid rgba(36, 48, 60, 0.16);
}

.flight-step span {
  background: rgba(47, 158, 103, 0.9);
  color: #fff;
}

.flight-step.is-active {
  color: #fff7f0;
  background: linear-gradient(135deg, #ea7c5d, var(--ui-accent));
}

form.form-grid,
form.flights-form,
form,
.booking-form {
  display: grid;
  align-items: stretch;
  gap: 14px;
  margin: 0 0 24px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

form.form-grid,
.flights-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.form-grid .field,
.flights-form > .field,
.field-stack,
.field--route-group .route-grid,
.field--shortcuts,
.flight-insights,
.form-actions,
.results-toolbar,
.flight-subnav,
.booking-filters,
.bookings-toolbar {
  border-radius: 16px;
  background: rgba(255, 250, 245, 0.92);
  border: 1px solid var(--ui-line);
  box-shadow: none;
}

.form-grid .field,
.flights-form > .field {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  min-width: 0;
}

.flights-form > .field {
  grid-column: span 3;
}

.flights-form > .field.field--route-group,
.flights-form > .field.field--pax,
.flights-form > .field.grid-span,
.flights-form .form-actions {
  grid-column: 1 / -1;
}

.field--route-group {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.field--route-group .route-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  padding: 16px 18px;
}

.route-field,
.field-stack {
  min-width: 0;
}

.form-grid .field label,
.form-grid .field .field-label,
.pax-field {
  color: #7f6e60;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: none;
}

.form-grid .field input,
.form-grid .field select,
.bookings-toolbar input,
.admin-controls input,
.xml-box,
textarea {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--ui-line-strong);
  color: var(--ui-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.form-grid .field input::placeholder {
  color: #a89a8e;
}

.form-grid .field input:focus,
.form-grid .field select:focus,
.bookings-toolbar input:focus,
.admin-controls input:focus,
textarea:focus {
  border-color: rgba(219, 101, 77, 0.75);
  box-shadow: 0 0 0 3px rgba(219, 101, 77, 0.14);
}

.swap-btn {
  width: 46px;
  height: 46px;
  align-self: end;
  border-radius: 14px;
  background: #fff5ee;
  color: var(--ui-accent-strong);
}

.field--trip,
.return-field,
.availability-toggle {
  min-height: 122px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  min-height: 46px;
  border-radius: 14px;
  background: #f5eadf;
}

.segment {
  min-height: 38px;
  border-radius: 11px;
}

.field--pax {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.field--pax .field-stack {
  padding: 16px 18px;
}

.field-stack-head {
  margin-bottom: 10px;
}

.pax-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pax-field {
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ui-line);
}

.stepper,
.field--pax .stepper {
  display: grid;
  grid-template-columns: 40px minmax(48px, 1fr) 40px;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 0;
  background: #f5eadf;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
}

.stepper input,
.field--pax .stepper input {
  min-height: 38px;
  padding: 0;
  text-align: center;
  border: 0;
  background: transparent;
  color: var(--ui-ink);
  font-weight: 800;
}

.stepper-btn,
.field--pax .stepper-btn {
  width: 34px;
  height: 34px;
  min-height: 34px;
  margin: 0 3px;
  padding: 0;
  border-radius: 10px;
  background: var(--ui-navy);
  color: #fff;
  border: 0;
}

.availability-toggle {
  align-content: center;
}

.toggle-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ui-line);
}

.toggle-pill input {
  width: 42px !important;
  min-height: 24px !important;
}

.toggle-pill label {
  display: grid;
  gap: 2px;
  color: var(--ui-ink) !important;
  min-width: 0;
  line-height: 1.25;
}

.toggle-pill small {
  color: var(--ui-muted);
}

.field--shortcuts,
.flight-insights,
.form-actions {
  padding: 16px 18px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip--ghost {
  min-height: 34px;
  padding: 7px 14px;
  font-weight: 800;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.insight-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ui-line);
  box-shadow: none;
}

.insight-card p {
  margin: 6px 0 0;
  color: var(--ui-muted);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  background: var(--ui-navy);
  border-color: transparent;
}

.form-actions .form-footnote {
  color: #b7c3cf;
  margin: 0;
}

.rose-btn,
form button.rose-btn {
  min-height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e9765d, var(--ui-accent-strong));
  color: #fff;
  border: 0;
  box-shadow: 0 10px 20px rgba(185, 74, 56, 0.18);
}

.rose-btn:hover {
  background: linear-gradient(135deg, var(--ui-accent), #943629);
}

.results-shell,
#results-container {
  margin-top: 18px;
}

#results-container[style*='display: none'] {
  display: none !important;
}

#results-container:not([style*='display: none']) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

#outbound-results,
#return-results {
  min-width: 0;
}

#outbound-results h3,
#return-results h3 {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 0 0 14px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(47, 158, 103, 0.12);
  border: 1px solid rgba(47, 158, 103, 0.22);
  color: var(--ui-green);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.results-toolbar {
  padding: 14px 16px;
  margin: 18px 0;
}

.ai-fab {
  z-index: 120;
}

.cart-panel {
  top: 72px;
  z-index: 90;
}

@media (max-width: 1100px) {
  .app-shell {
    width: min(100% - 28px, 980px);
  }

  .flight-hero {
    grid-template-columns: 1fr;
  }

  .flight-steps {
    justify-content: flex-start;
  }

  .flights-form > .field {
    grid-column: span 6;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  header {
    padding: 10px 14px;
  }

  #tab-bar {
    padding: 7px 10px;
  }

  #tab-bar .tab-inner button span,
  #tab-bar .tab-cart span:not(.tab-count) {
    display: none;
  }

  #tab-bar .tab-inner button,
  #tab-bar .tab-cart {
    min-width: 42px;
    padding-inline: 10px;
  }

  .app-shell {
    width: calc(100vw - 20px);
    padding-top: 18px;
  }

  .section-card {
    padding: 14px;
    border-radius: 16px;
  }

  .section-header {
    padding: 18px;
    align-items: flex-start;
  }

  form.form-grid,
  .flights-form {
    grid-template-columns: 1fr;
  }

  .flights-form > .field,
  .flights-form > .field.field--route-group,
  .flights-form > .field.field--pax,
  .flights-form > .field.grid-span,
  .flights-form .form-actions {
    grid-column: 1;
  }

  .field--route-group .route-grid {
    grid-template-columns: 1fr;
  }

  .swap-btn {
    justify-self: center;
    transform: rotate(90deg);
  }

  .pax-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .rose-btn {
    width: 100%;
  }

  .cart-panel {
    top: 62px;
  }
}

/* Flight search: clean agency-console field treatment */
:root {
  --console-green: #0f7a4a;
  --console-green-soft: #eaf7f1;
  --console-line: #cfded7;
  --console-line-strong: #b9d0c6;
  --console-label: #5d7082;
  --console-text: #14261c;
  --console-placeholder: #7a8a84;
}

.flights-form {
  padding: 18px 28px 24px;
  border-left: 4px solid rgba(15, 122, 74, 0.22);
  border-right: 1px solid rgba(15, 122, 74, 0.12);
  background:
    linear-gradient(90deg, rgba(15, 122, 74, 0.045), transparent 18%),
    rgba(255, 255, 255, 0.82);
  border-radius: 0;
}

.flights-form > .field {
  grid-column: span 3;
  min-height: auto;
  padding: 0;
  gap: 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.flights-form > .field.field--from-to {
  grid-column: span 6;
}

.field--from-to .route-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.field--from-to .swap-btn {
  display: none;
}

.route-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.route-field,
.flights-form > .field:not(.field--from-to):not(.field--pax):not(.field--shortcuts):not(.flight-insights):not(.form-actions) {
  position: relative;
}

.route-field label,
.flights-form .field > label,
.flights-form .field > .field-label {
  color: var(--console-label);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase !important;
}

.route-field::before {
  content: '✈';
  position: absolute;
  left: 12px;
  bottom: 9px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--console-green-soft);
  border: 1px solid rgba(15, 122, 74, 0.18);
  color: var(--console-green);
  font-size: 0.9rem;
  z-index: 1;
}

.route-field::after {
  content: '×';
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #607383;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.flights-form .route-field input {
  padding-left: 44px;
  padding-right: 34px;
}

.flights-form .field input,
.flights-form .field select {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--console-line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--console-text);
  font-size: 0.92rem;
  box-shadow: 0 8px 18px rgba(34, 68, 49, 0.04);
}

.flights-form .field input::placeholder {
  color: var(--console-placeholder);
}

.flights-form .field input:focus,
.flights-form .field select:focus {
  border-color: rgba(15, 122, 74, 0.55);
  box-shadow:
    0 0 0 3px rgba(15, 122, 74, 0.08),
    0 10px 22px rgba(34, 68, 49, 0.08);
}

.flights-form .field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--console-green) 50%),
    linear-gradient(135deg, var(--console-green) 50%, transparent 50%),
    linear-gradient(to right, var(--console-line), var(--console-line));
  background-position:
    calc(100% - 22px) 19px,
    calc(100% - 15px) 19px,
    calc(100% - 40px) 10px;
  background-size:
    7px 7px,
    7px 7px,
    1px 24px;
  background-repeat: no-repeat;
  padding-right: 50px;
}

.return-field .field-hint {
  margin: 0;
  min-height: 0;
  color: #8a9a94;
  font-size: 0.72rem;
}

.flights-form .field--trip,
.flights-form .availability-toggle {
  grid-column: span 3;
  align-content: end;
}

.flights-form .segmented,
.flights-form .toggle-pill {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--console-line);
  background: rgba(255, 255, 255, 0.96);
}

.flights-form .segment {
  min-height: 34px;
  border-radius: 8px;
}

.flights-form .segment.is-active {
  background: var(--console-green-soft);
  color: var(--console-green);
  box-shadow: none;
}

.flights-form .toggle-pill {
  justify-content: flex-start;
  border-radius: 999px;
  padding: 7px 10px;
}

.flights-form .toggle-pill input {
  width: 38px !important;
}

.flights-form .field--pax {
  margin-top: 4px;
}

.flights-form .field--pax .field-stack {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--console-line);
}

.flights-form .pax-field {
  border-color: var(--console-line);
  border-radius: 10px;
}

.flights-form .stepper {
  background: #f7faf8;
  border-color: var(--console-line);
}

.flights-form .stepper-btn {
  background: var(--console-green);
}

.flights-form .field--shortcuts,
.flights-form .flight-insights {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--console-line);
}

.flights-form .chip--ghost {
  background: #fff;
  border-color: var(--console-line);
  color: var(--console-text);
}

.flights-form .chip--ghost:hover {
  background: var(--console-green-soft);
  border-color: rgba(15, 122, 74, 0.28);
  color: var(--console-green);
}

.flights-form .form-actions {
  margin-top: 2px;
  background: #13241b;
  border-radius: 12px;
}

@media (max-width: 1100px) {
  .flights-form > .field,
  .flights-form .field--trip,
  .flights-form .availability-toggle {
    grid-column: span 6;
  }

  .flights-form > .field.field--from-to {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .flights-form {
    padding: 14px;
  }

  .flights-form > .field,
  .flights-form > .field.field--from-to,
  .flights-form .field--trip,
  .flights-form .availability-toggle {
    grid-column: 1;
  }

  .field--from-to .route-grid {
    grid-template-columns: 1fr;
  }
}

/* Vehicles + Hotels: same console form language as flights */
.console-search-form:not(.flights-form) {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 28px 24px;
  border-left: 4px solid rgba(15, 122, 74, 0.22);
  border-right: 1px solid rgba(15, 122, 74, 0.12);
  background:
    linear-gradient(90deg, rgba(15, 122, 74, 0.045), transparent 18%),
    rgba(255, 255, 255, 0.82);
  border-radius: 0;
}

.console-search-form:not(.flights-form) > .field {
  grid-column: span 3;
  min-height: auto;
  padding: 0;
  gap: 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.console-search-form:not(.flights-form) > .field.field--from-to {
  grid-column: span 6;
}

.console-search-form:not(.flights-form) > .field.field--location {
  grid-column: span 3;
}

.console-search-form:not(.flights-form) .field--from-to .route-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.console-search-form:not(.flights-form) .field--from-to .swap-btn {
  display: none;
}

.console-search-form:not(.flights-form) .field label,
.console-search-form:not(.flights-form) .field > .field-label,
.console-search-form:not(.flights-form) .route-field label {
  color: var(--console-label);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase !important;
}

.console-search-form:not(.flights-form) .field input,
.console-search-form:not(.flights-form) .field select {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--console-line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--console-text);
  font-size: 0.92rem;
  box-shadow: 0 8px 18px rgba(34, 68, 49, 0.04);
}

.console-search-form:not(.flights-form) .field input::placeholder {
  color: var(--console-placeholder);
}

.console-search-form:not(.flights-form) .field input:focus,
.console-search-form:not(.flights-form) .field select:focus {
  border-color: rgba(15, 122, 74, 0.55);
  box-shadow:
    0 0 0 3px rgba(15, 122, 74, 0.08),
    0 10px 22px rgba(34, 68, 49, 0.08);
}

.console-search-form:not(.flights-form) .field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--console-green) 50%),
    linear-gradient(135deg, var(--console-green) 50%, transparent 50%),
    linear-gradient(to right, var(--console-line), var(--console-line));
  background-position:
    calc(100% - 22px) 19px,
    calc(100% - 15px) 19px,
    calc(100% - 40px) 10px;
  background-size:
    7px 7px,
    7px 7px,
    1px 24px;
  background-repeat: no-repeat;
  padding-right: 50px;
}

.console-search-form:not(.flights-form) .route-field input {
  padding-left: 44px;
  padding-right: 34px;
}

.hotel-form .field--location {
  position: relative;
}

.hotel-form .field--location::before {
  content: '⌂';
  position: absolute;
  left: 12px;
  bottom: 9px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--console-green-soft);
  border: 1px solid rgba(15, 122, 74, 0.18);
  color: var(--console-green);
  font-size: 0.95rem;
  z-index: 1;
}

.hotel-form .field--location::after {
  content: '×';
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #607383;
  font-size: 1.2rem;
  font-weight: 800;
  pointer-events: none;
}

.hotel-form .field--location input {
  padding-left: 44px;
  padding-right: 34px;
}

.console-search-form:not(.flights-form) .field--shortcuts {
  grid-column: 1 / -1;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--console-line);
  border-radius: 12px;
}

.console-search-form:not(.flights-form) .chip--ghost {
  min-height: 34px;
  padding: 7px 14px;
  background: #fff;
  border-color: var(--console-line);
  color: var(--console-text);
  font-weight: 800;
}

.console-search-form:not(.flights-form) .chip--ghost:hover {
  background: var(--console-green-soft);
  border-color: rgba(15, 122, 74, 0.28);
  color: var(--console-green);
}

.console-search-form:not(.flights-form) .form-actions {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding: 16px 18px;
  background: #13241b;
  border: 0;
  border-radius: 12px;
}

.vehicle-form .form-actions .rose-btn,
.hotel-form .form-actions .rose-btn {
  min-width: 190px;
}

@media (max-width: 1100px) {
  .console-search-form:not(.flights-form) > .field,
  .console-search-form:not(.flights-form) > .field.field--location {
    grid-column: span 6;
  }

  .console-search-form:not(.flights-form) > .field.field--from-to {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .console-search-form:not(.flights-form) {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .console-search-form:not(.flights-form) > .field,
  .console-search-form:not(.flights-form) > .field.field--from-to,
  .console-search-form:not(.flights-form) > .field.field--location,
  .console-search-form:not(.flights-form) .field--shortcuts,
  .console-search-form:not(.flights-form) .form-actions {
    grid-column: 1;
  }

  .console-search-form:not(.flights-form) .field--from-to .route-grid {
    grid-template-columns: 1fr;
  }
}

/* Navigation refinement */
#tab-bar {
  min-height: 58px;
  padding: 9px clamp(16px, 2.5vw, 36px);
  background:
    linear-gradient(180deg, rgba(255, 250, 245, 0.98), rgba(251, 244, 237, 0.96));
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(220, 202, 188, 0.9);
  box-shadow: 0 10px 24px rgba(81, 51, 35, 0.06);
}

#tab-bar .tab-inner {
  flex: 1 1 auto;
  gap: 8px;
  padding: 4px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  overflow: visible;
  scrollbar-width: none;
}

#tab-bar .tab-inner::-webkit-scrollbar {
  display: none;
}

#tab-bar .tab-inner button {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #6f5c4e;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
}

#tab-bar .tab-inner button:hover {
  color: #26362e;
  background: rgba(15, 122, 74, 0.06);
  transform: none;
}

#tab-bar .tab-inner button.active {
  background:
    linear-gradient(135deg, rgba(242, 145, 106, 0.98), rgba(219, 101, 77, 0.98));
  border-color: rgba(181, 76, 56, 0.16);
  box-shadow:
    0 10px 18px rgba(185, 74, 56, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  color: #fff9f3;
}

#tab-bar .tab-ico {
  width: 17px;
  height: 17px;
  transform: none;
  opacity: 1;
}

#tab-indicator {
  display: none;
}

#tab-indicator::after {
  display: none;
}

#tab-bar .tab-cart {
  min-height: 42px;
  margin-left: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #5f4c40;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(232, 216, 202, 0.8);
  font-weight: 800;
}

#tab-bar .tab-cart::before {
  display: none;
}

#tab-bar .tab-cart:hover,
#tab-bar .tab-cart[aria-pressed='true'] {
  background: rgba(15, 122, 74, 0.09);
  color: var(--console-green);
}

#tab-bar .tab-count {
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border: 1px solid rgba(15, 122, 74, 0.2);
  background: var(--console-green-soft);
  color: var(--console-green);
  font-size: 0.72rem;
}

#tab-bar .tab-count.is-empty {
  display: none;
}

@media (max-width: 900px) {
  #tab-bar {
    padding-inline: 10px;
    gap: 8px;
  }

  #tab-bar .tab-inner {
    border-radius: 16px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  #tab-bar .tab-inner button {
    padding-inline: 12px;
  }
}

@media (max-width: 760px) {
  #tab-bar .tab-inner button span {
    display: inline;
  }

  #tab-bar .tab-cart span:not(.tab-count) {
    display: none;
  }
}

@media (max-width: 560px) {
  #tab-bar .tab-inner button span {
    display: none;
  }

  #tab-bar .tab-inner button {
    min-width: 40px;
    padding-inline: 11px;
  }
}

/* Unified search results */
.results-toolbar {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--console-line);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(15, 122, 74, 0.045), transparent 32%),
    rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 26px rgba(34, 68, 49, 0.05);
}

.results-meta {
  display: grid;
  gap: 4px;
}

.results-meta strong {
  color: var(--ui-accent-strong);
  font-size: 1rem;
}

.results-meta .muted {
  color: var(--ui-muted);
  font-size: 0.84rem;
}

.sort-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sort-pill {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--console-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--console-text);
  font-size: 0.82rem;
  font-weight: 800;
}

.sort-pill.is-active,
.sort-pill[aria-pressed='true'] {
  background: var(--console-green-soft);
  border-color: rgba(15, 122, 74, 0.28);
  color: var(--console-green);
}

#results-container:not([style*='display: none']) {
  align-items: start;
}

#results-container:has(#return-results[style*='display: none']) {
  grid-template-columns: 1fr;
}

#results-container > div {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#outbound-cards,
#return-cards,
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
  justify-content: stretch;
}

.results-shell {
  display: grid;
  gap: 14px;
}

#vehicleResults .results-grid,
#hotelResults .results-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.card.result-card {
  cursor: default;
  min-width: 0;
  padding: 18px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 247, 242, 0.96));
  border: 1px solid var(--console-line);
  box-shadow: 0 16px 32px rgba(71, 52, 39, 0.08);
  color: var(--console-text);
}

.card.result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 122, 74, 0.28);
  box-shadow: 0 22px 42px rgba(71, 52, 39, 0.12);
}

.card.result-card.selected {
  border-color: rgba(15, 122, 74, 0.48);
  box-shadow:
    0 0 0 3px rgba(15, 122, 74, 0.1),
    0 20px 42px rgba(15, 122, 74, 0.14);
  transform: translateY(-2px);
}

.result-card__status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.result-card__route {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 122, 74, 0.045);
  border: 1px solid rgba(15, 122, 74, 0.12);
}

.result-card__route span,
.result-card__hint,
.vc-price span {
  color: var(--console-label);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-card__route strong {
  overflow: hidden;
  color: var(--console-text);
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-card__hint {
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
}

.result-card__icon {
  display: grid;
  width: 54px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--console-green-soft);
  color: var(--console-green);
  font-size: 0.68rem;
  font-weight: 900;
}

.flight-card__head {
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 18px;
}

.flight-card__badge {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--console-green-soft);
  border: 1px solid rgba(15, 122, 74, 0.14);
}

.flight-card__badge img,
img.airline-logo {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  filter: none;
}

.flight-card__title {
  min-width: 0;
  color: var(--console-label);
}

.flight-card__title span {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flight-card__title strong {
  color: var(--console-text);
  font-size: 1.34rem;
  letter-spacing: 0;
}

.flight-card__tag,
.flight-card__date {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 122, 74, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--console-green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.flight-card__body {
  gap: 14px;
}

.flight-card__segment {
  gap: 12px;
  padding: 14px 0;
}

.flight-card__time span {
  color: var(--console-text);
  font-size: 1.16rem;
}

.flight-card__time small {
  color: var(--console-label);
}

.flight-card__track {
  background: linear-gradient(90deg, rgba(15, 122, 74, 0.14), rgba(15, 122, 74, 0.28));
}

.flight-card__track::before,
.flight-card__track::after {
  background: var(--console-green);
}

.flight-card__duration {
  top: -23px;
  color: var(--console-label);
}

.flight-pill,
.spec-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--console-line);
  color: var(--console-text);
  font-size: 0.76rem;
  font-weight: 800;
}

.flight-card__foot,
.vc-foot,
.hc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(207, 222, 215, 0.72);
}

.flight-card__price {
  color: var(--ui-accent-strong);
  font-size: 1.08rem;
  font-weight: 900;
}

.flight-card__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.flight-card__actions .rose-btn,
.vc-foot .rose-btn,
.hc-foot .rose-btn {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.vc-head,
.hc-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.hc-head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.vc-logo {
  display: grid;
  width: 74px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--console-line);
}

.vc-logo img {
  width: 64px;
  height: 44px;
  object-fit: contain;
  filter: none;
}

.vc-title,
.hc-title {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--console-label);
  letter-spacing: 0;
}

.vc-title span,
.hc-title span {
  color: var(--console-label);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vc-title strong,
.hc-title strong {
  overflow: hidden;
  color: var(--console-text);
  font-size: 1.04rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-price {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.vc-price strong,
.hc-range {
  color: var(--ui-accent-strong);
  font-size: 1rem;
  font-weight: 900;
}

.vc-body,
.hc-body {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  color: var(--console-text);
}

.specs {
  margin-top: 0;
}

.results-end,
.no-results {
  padding: 14px 16px;
  border: 1px solid var(--console-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ui-muted);
  font-weight: 700;
}

@media (max-width: 900px) {
  #results-container:not([style*='display: none']) {
    grid-template-columns: 1fr;
  }

  .results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  #outbound-cards,
  #return-cards,
  .results-grid,
  #vehicleResults .results-grid,
  #hotelResults .results-grid {
    grid-template-columns: 1fr;
  }

  .flight-card__head,
  .vc-head,
  .hc-head {
    grid-template-columns: 1fr;
  }

  .result-card__status,
  .vc-price {
    justify-content: flex-start;
    justify-items: start;
  }

  .flight-card__segment {
    grid-template-columns: 1fr;
  }

  .flight-card__track {
    display: none;
  }

  .flight-card__foot,
  .vc-foot,
  .hc-foot {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Flight fare + booking flow */
.section-card #price-summary.price-summary,
#price-summary.price-summary {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--console-line);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(15, 122, 74, 0.045), transparent 30%),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 34px rgba(71, 52, 39, 0.08);
}

.fare-section-head,
.fare-column__head,
.booking-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fare-section-head h3,
.fare-column__head h4,
.booking-form__head h3 {
  margin: 0;
  color: var(--console-text);
  font-size: 1.08rem;
  line-height: 1.2;
}

.booking-form__kicker,
.fare-card__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--console-label);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-form__badge {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(15, 122, 74, 0.18);
  border-radius: 999px;
  background: var(--console-green-soft);
  color: var(--console-green);
  font-size: 0.78rem;
  font-weight: 900;
}

.fare-columns {
  gap: 16px;
}

.fare-column {
  display: grid;
  gap: 12px;
}

.fare-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.fare-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--console-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(71, 52, 39, 0.06);
  color: var(--console-text);
}

.fare-card:hover {
  border-color: rgba(15, 122, 74, 0.28);
  box-shadow: 0 16px 30px rgba(71, 52, 39, 0.1);
}

.fare-card__head {
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(207, 222, 215, 0.72);
}

.fare-card__name {
  display: block;
  color: var(--console-text);
  font-size: 1rem;
  font-weight: 900;
}

.fare-card__price {
  flex: 0 0 auto;
  color: #2fa772;
  font-size: 1.02rem;
  font-weight: 900;
}

.fare-card__meta {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--console-text);
}

.fare-card__meta li {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--console-line);
  border-radius: 999px;
  background: rgba(15, 122, 74, 0.045);
  font-size: 0.78rem;
  font-weight: 800;
}

.fare-card__action {
  align-self: flex-start;
  min-height: 36px;
}

.fare-card--selected {
  border-color: rgba(15, 122, 74, 0.5);
  background: linear-gradient(180deg, #fff, rgba(234, 247, 241, 0.7));
  box-shadow:
    0 0 0 3px rgba(15, 122, 74, 0.1),
    0 16px 30px rgba(15, 122, 74, 0.12);
}

.section-card .booking-form.flight-booking-form,
.booking-form.flight-booking-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--console-line);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(15, 122, 74, 0.045), transparent 28%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 34px rgba(71, 52, 39, 0.08);
}

#traveler-fields {
  display: grid;
  gap: 12px;
}

.traveler-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) repeat(5, minmax(130px, 1fr));
  gap: 10px;
  width: 100%;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--console-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.traveler-row + .traveler-row {
  margin-top: 0;
}

.traveler-type {
  display: grid;
  gap: 3px;
  align-self: center;
  color: var(--console-text);
}

.traveler-type span {
  font-weight: 900;
}

.traveler-type small {
  color: var(--console-label);
  font-size: 0.76rem;
  font-weight: 800;
}

.traveler-row label,
.booking-contact label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--console-label);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-card .booking-form.flight-booking-form input,
.section-card .booking-form.flight-booking-form select,
.booking-form.flight-booking-form input,
.booking-form.flight-booking-form select {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--console-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--console-text);
  box-shadow: 0 8px 18px rgba(34, 68, 49, 0.04);
}

.section-card .booking-form.flight-booking-form input:focus,
.section-card .booking-form.flight-booking-form select:focus {
  border-color: rgba(15, 122, 74, 0.55);
  box-shadow:
    0 0 0 3px rgba(15, 122, 74, 0.08),
    0 10px 22px rgba(34, 68, 49, 0.08);
}

.booking-contact {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding-top: 2px;
}

.booking-contact .rose-btn {
  min-height: 42px;
  padding-inline: 22px;
}

#booking-summary,
#vehicleBookingResult {
  padding: 14px 16px;
  border: 1px solid var(--console-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--console-text);
}

@media (max-width: 1180px) {
  .traveler-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .traveler-type {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .fare-section-head,
  .fare-column__head,
  .booking-form__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .traveler-row,
  .booking-contact {
    grid-template-columns: 1fr;
  }
}

/* XL Turners OBT brand theme */
:root {
  --xlt-red: #b01016;
  --xlt-red-dark: #8e0b10;
  --xlt-red-soft: #fff0f0;
  --xlt-gold: #f4b21b;
  --xlt-gold-soft: #fff7df;
  --xlt-ink: #242424;
  --xlt-muted: #6d6d6d;
  --xlt-line: #e5ddd5;
  --xlt-panel: #fffdf9;
  --xlt-bg: #f7f4ef;
  --accent-300: #ffd46a;
  --accent-500: var(--xlt-red);
  --accent-600: var(--xlt-red-dark);
  --accent-700: #68070b;
  --accent: var(--xlt-red);
  --accent-2: var(--xlt-red-dark);
  --accent-3: var(--xlt-gold);
  --ui-bg: var(--xlt-bg);
  --ui-panel: var(--xlt-panel);
  --ui-panel-2: #f4eee7;
  --ui-ink: var(--xlt-ink);
  --ui-muted: var(--xlt-muted);
  --ui-soft: #8a7c70;
  --ui-line: var(--xlt-line);
  --ui-line-strong: #d8c9bb;
  --ui-accent: var(--xlt-red);
  --ui-accent-strong: var(--xlt-red-dark);
  --ui-green: #207a58;
  --ui-navy: #2d3035;
  --console-green: var(--xlt-red);
  --console-green-soft: var(--xlt-red-soft);
  --console-line: #d8cfc7;
  --console-line-strong: #c9bcb2;
  --console-label: #6a6f77;
  --console-text: #252525;
  --console-placeholder: #7d807f;
}

body {
  background:
    linear-gradient(180deg, rgba(176, 16, 22, 0.04), transparent 190px),
    var(--xlt-bg);
  color: var(--xlt-ink);
}

.company-strip {
  display: flex;
  justify-content: center;
  gap: 28px;
  min-height: 32px;
  padding: 7px 16px;
  background: var(--xlt-red);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.app-header,
body > header {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 94px;
  padding: 18px clamp(18px, 3vw, 42px);
  background: #fff;
  border-bottom: 1px solid rgba(36, 36, 36, 0.08);
  box-shadow: 0 8px 24px rgba(36, 36, 36, 0.06);
}

.app-header::after,
body > header::after {
  display: none;
}

.xlt-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  width: clamp(240px, 24vw, 380px);
}

.xlt-logo img {
  display: block;
  width: 100%;
  max-height: 82px;
  object-fit: contain;
  object-position: left center;
}

.brand {
  padding-left: 18px;
  border-left: 1px solid var(--xlt-line);
}

.app-title {
  color: var(--xlt-ink);
  font-family: var(--font-sans, Arial, sans-serif);
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  font-weight: 900;
  letter-spacing: 0;
}

.app-subtitle {
  color: var(--xlt-muted);
  font-weight: 800;
}

#tab-bar {
  min-height: 62px;
  background: #fff;
  border-top: 0;
  border-bottom: 1px solid var(--xlt-line);
  box-shadow: 0 10px 24px rgba(36, 36, 36, 0.05);
}

#tab-bar .tab-inner button {
  color: #5f5f5f;
}

#tab-bar .tab-inner button:hover {
  color: var(--xlt-red);
  background: var(--xlt-red-soft);
}

#tab-bar .tab-inner button.active {
  background: var(--xlt-red);
  border-color: var(--xlt-red);
  color: #fff;
  box-shadow: 0 10px 18px rgba(176, 16, 22, 0.18);
}

#tab-bar .tab-inner button.active .tab-count {
  background: var(--xlt-gold);
  color: var(--xlt-ink);
}

#tab-bar .tab-cart {
  color: var(--xlt-ink);
  background: #fff;
  border-color: var(--xlt-line);
}

#tab-bar .tab-cart:hover,
#tab-bar .tab-cart[aria-pressed='true'] {
  color: var(--xlt-red);
  background: var(--xlt-red-soft);
}

.section-card {
  background: var(--xlt-panel);
  border-color: var(--xlt-line);
}

.section-header {
  background:
    linear-gradient(90deg, rgba(176, 16, 22, 0.035), transparent 40%),
    #fff;
  border-color: var(--xlt-line);
  border-bottom: 2px solid var(--xlt-red);
  box-shadow: 0 10px 22px rgba(36, 36, 36, 0.04);
  min-height: auto;
  padding: 20px 28px;
}

.section-header h2 {
  color: var(--xlt-ink);
  font-size: clamp(1.85rem, 2.5vw, 2.45rem);
  line-height: 1.05;
}

.section-header p {
  color: var(--xlt-muted);
  max-width: 640px;
  margin-top: 8px;
  font-size: 0.98rem;
  line-height: 1.45;
}

.chip,
.chip--accent,
.section-header .chip--accent,
.booking-form__badge,
.flight-card__tag,
.flight-card__date,
.sort-pill.is-active,
.sort-pill[aria-pressed='true'] {
  background: var(--xlt-gold-soft);
  border-color: rgba(244, 178, 27, 0.45);
  color: var(--xlt-red);
}

.console-search-form:not(.flights-form),
.flights-form {
  border-left-color: rgba(176, 16, 22, 0.35);
  background:
    linear-gradient(90deg, rgba(244, 178, 27, 0.09), transparent 22%),
    rgba(255, 255, 255, 0.88);
}

.route-field::before,
.hotel-form .field--location::before,
.flight-card__badge,
.result-card__icon {
  background: var(--xlt-gold-soft);
  border-color: rgba(244, 178, 27, 0.42);
  color: var(--xlt-red);
}

.flights-form .segment.is-active {
  background: var(--xlt-red-soft);
  color: var(--xlt-red);
}

.flights-form .stepper-btn,
.field--pax .stepper-btn {
  background: var(--xlt-red);
}

.form-actions,
.flights-form .form-actions,
.console-search-form:not(.flights-form) .form-actions {
  background:
    linear-gradient(135deg, #3a2c20, #242424);
}

.rose-btn,
form button.rose-btn,
.booking-contact .rose-btn {
  background: linear-gradient(135deg, #c9141c, var(--xlt-red-dark));
  color: #fff;
  box-shadow: 0 10px 20px rgba(176, 16, 22, 0.18);
}

.rose-btn:hover {
  background: linear-gradient(135deg, var(--xlt-red), #65070a);
}

.rose-btn.outline,
button.rose-btn.outline {
  background: #fff;
  border: 1px solid rgba(176, 16, 22, 0.35);
  color: var(--xlt-red);
  box-shadow: none;
}

.rose-btn.outline:hover,
button.rose-btn.outline:hover {
  background: var(--xlt-red-soft);
  color: var(--xlt-red-dark);
}

.results-toolbar,
.card.result-card,
.fare-card,
.booking-form.flight-booking-form,
.section-card #price-summary.price-summary {
  border-color: var(--xlt-line);
  box-shadow: 0 16px 32px rgba(36, 36, 36, 0.07);
}

.flight-card__track::before,
.flight-card__track::after {
  background: var(--xlt-red);
}

.flight-card__track {
  background: linear-gradient(90deg, rgba(176, 16, 22, 0.18), rgba(244, 178, 27, 0.55));
}

.flight-card__price,
.vc-price strong,
.hc-range,
.fare-card__price,
.results-meta strong {
  color: var(--xlt-red);
}

.ai-fab .avatar-ring {
  background: linear-gradient(135deg, var(--xlt-gold), var(--xlt-red));
}

@media (max-width: 760px) {
  .company-strip {
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .app-header,
  body > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .brand {
    padding-left: 0;
    border-left: 0;
  }
}

/* XL Turners strict red + white pass */
:root {
  --xlt-gold: #b01016;
  --xlt-gold-soft: #fff5f5;
  --accent-300: #ffb8bb;
  --ui-green: var(--xlt-red);
  --console-green: var(--xlt-red);
  --console-green-soft: var(--xlt-red-soft);
}

.hero-kicker,
.flight-card__tag,
.flight-card__date,
.booking-form__badge,
.sort-pill.is-active,
.sort-pill[aria-pressed='true'],
.chip,
.chip--accent,
.section-header .chip--accent {
  background: #fff;
  border-color: rgba(176, 16, 22, 0.26);
  color: var(--xlt-red);
}

.flight-steps {
  color: #fff;
}

.flight-step {
  background: #2d3035;
  color: #fff;
}

.flight-step span,
.tab-count,
#tab-bar .tab-count,
#tab-bar button.active .tab-count {
  background: #fff;
  border-color: rgba(176, 16, 22, 0.28);
  color: var(--xlt-red);
}

.flight-step.is-active {
  background: var(--xlt-red);
  color: #fff;
}

.flight-step.is-active span {
  background: #fff;
  color: var(--xlt-red);
}

.flight-step.is-done {
  background: var(--xlt-red-dark);
  color: #fff;
}

.route-field::before,
.hotel-form .field--location::before,
.flight-card__badge,
.result-card__icon,
.flights-form .segment.is-active,
.flights-form .chip--ghost:hover,
.console-search-form:not(.flights-form) .chip--ghost:hover,
.fare-card__meta li,
.result-card__route,
.booking-form__badge {
  background: #fff;
  border-color: rgba(176, 16, 22, 0.22);
  color: var(--xlt-red);
}

.flights-form,
.console-search-form:not(.flights-form),
.results-toolbar,
.section-card #price-summary.price-summary,
.booking-form.flight-booking-form {
  background:
    linear-gradient(90deg, rgba(176, 16, 22, 0.035), transparent 24%),
    rgba(255, 255, 255, 0.9);
}

.flight-card__track {
  background: linear-gradient(90deg, rgba(176, 16, 22, 0.18), rgba(176, 16, 22, 0.38));
}

.flight-card__track::before,
.flight-card__track::after,
.ai-fab .status-dot,
.status-dot {
  background: var(--xlt-red);
}

.return-field input:not([disabled]),
.return-field input:not([disabled]):focus,
.card.selected,
.card.result-card.selected,
.fare-card--selected {
  border-color: rgba(176, 16, 22, 0.48);
  box-shadow:
    0 0 0 3px rgba(176, 16, 22, 0.1),
    0 18px 34px rgba(176, 16, 22, 0.12);
}

.flight-card--best,
.flight-card__best {
  border-color: rgba(176, 16, 22, 0.5);
  background: var(--xlt-red);
  color: #fff;
  box-shadow: 0 18px 34px rgba(176, 16, 22, 0.14);
}

.toast.success {
  border-left-color: var(--xlt-red);
}

.ai-fab .avatar-ring {
  background: linear-gradient(135deg, #fff, var(--xlt-red));
}

/* Final layout fixes */
.app-header,
body > header {
  min-height: 76px;
  padding: 10px clamp(18px, 3vw, 42px);
}

.xlt-logo {
  width: clamp(190px, 18vw, 270px);
}

.xlt-logo img {
  max-height: 64px;
}

.ai-chat {
  position: fixed !important;
  right: 18px !important;
  bottom: 84px !important;
  left: auto !important;
  top: auto !important;
  z-index: 2999 !important;
  width: min(360px, calc(100vw - 28px));
  height: min(480px, calc(100vh - 120px));
  display: none;
  overflow: hidden;
  border: 1px solid var(--xlt-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(36, 36, 36, 0.18);
}

.ai-chat.open {
  display: flex;
  flex-direction: column;
}

.ai-head {
  flex: 0 0 auto;
  min-height: 44px;
  background: #fff;
  border-bottom: 1px solid var(--xlt-line);
  color: var(--xlt-ink);
}

.ai-msgs {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  background: #fff;
}

.ai-inputbar {
  flex: 0 0 auto;
  padding: 10px;
  background: #2d3035;
}

.ai-inputbar input {
  min-width: 0;
  border-radius: 10px;
}

@media (max-width: 560px) {
  .ai-chat {
    right: 10px !important;
    bottom: 76px !important;
    width: calc(100vw - 20px);
    height: min(420px, calc(100vh - 100px));
  }
}

/* My Bookings cleanup */
#bookings-section .section-card {
  max-width: 1480px;
}

#bookings-section .section-header {
  margin-bottom: 22px;
}

#bookings-section .bookings-toolbar,
#bookings-section .booking-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--xlt-line);
  border-radius: 14px;
}

#bookings-section .bookings-title {
  margin: 0;
  color: var(--xlt-ink);
  font-size: 1.05rem;
  font-weight: 800;
}

#bookings-section .bookings-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

#bookings-section #bookingSearch {
  width: auto;
  min-width: 280px;
  flex: 1 1 460px;
  min-height: 42px;
}

#bookings-section #syncStatus {
  color: var(--xlt-muted);
  min-width: 72px;
}

#bookings-section .bookings-actions .rose-btn {
  min-width: 88px;
  white-space: nowrap;
}

#bookings-section .booking-filters {
  grid-template-columns: repeat(3, minmax(150px, 190px)) 1fr;
}

#bookings-section .booking-filters label {
  color: var(--xlt-muted);
  gap: 5px;
}

#bookings-section .booking-filters label span {
  color: var(--xlt-muted);
  font-size: 0.68rem;
  font-weight: 800;
}

#bookings-section .booking-filters select {
  min-height: 38px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--xlt-line);
  color: var(--xlt-ink);
}

#bookings-section .booking-filter-chips {
  justify-content: flex-end;
}

#bookings-section .chip-btn {
  background: #fff;
  border-color: rgba(176, 16, 22, 0.2);
  color: var(--xlt-red);
  font-weight: 700;
}

#bookings-section .chip-btn.active {
  background: var(--xlt-red);
  border-color: var(--xlt-red);
  color: #fff;
}

#bookings-section .booking-list {
  display: grid;
  gap: 12px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#bookings-section .booking-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--xlt-line);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(36, 36, 36, 0.07);
  color: var(--xlt-ink);
}

#bookings-section .booking-row__main {
  min-width: 0;
  display: grid;
  gap: 10px;
}

#bookings-section .booking-row__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#bookings-section .booking-row__top strong {
  color: var(--xlt-ink);
  font-size: 1rem;
}

#bookings-section .booking-row__meta {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  color: var(--xlt-muted);
  font-size: 0.9rem;
}

#bookings-section .booking-row__meta span {
  min-width: max-content;
}

#bookings-section .booking-row__meta b {
  color: var(--xlt-red);
  font-weight: 800;
}

#bookings-section .booking-row__status {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#bookings-section .booking-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  gap: 8px;
  align-items: center;
  min-width: 200px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

#bookings-section .booking-actions .rose-btn.small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.78rem;
  border-radius: 999px;
  white-space: nowrap;
}

#bookings-section .booking-drawer {
  margin: -4px 10px 2px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--xlt-line);
  border-radius: 12px;
  color: var(--xlt-ink);
}

.ticket-view {
  display: grid;
  grid-template-columns: minmax(120px, 170px) 1fr;
  overflow: hidden;
  margin: 18px 0;
  border: 1px solid rgba(176, 16, 22, 0.2);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(74, 16, 18, 0.1);
}

.ticket-view__stub {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: var(--xlt-red);
  color: #fff;
}

.ticket-view__stub span,
.ticket-view__body span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.72;
}

.ticket-view__stub strong {
  font-size: 1.35rem;
  word-break: break-word;
}

.ticket-view__body {
  padding: 18px;
}

.ticket-view__head,
.ticket-view__grid {
  display: grid;
  gap: 14px;
}

.ticket-view__head {
  grid-template-columns: 1fr auto;
  margin-bottom: 16px;
}

.ticket-view__head strong {
  color: var(--xlt-ink);
  font-size: 1.05rem;
}

.ticket-view__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 14px;
  border-top: 1px solid rgba(176, 16, 22, 0.12);
}

.ticket-view__grid span {
  color: var(--xlt-muted);
}

.ticket-view__grid strong {
  display: block;
  margin-top: 4px;
  color: var(--xlt-ink);
  word-break: break-word;
}

.ticket-view__numbers,
.ticket-view__docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ticket-number,
.ticket-doc {
  border: 1px solid rgba(176, 16, 22, 0.22);
  border-radius: 999px;
  background: var(--xlt-red-soft);
  color: var(--xlt-red);
  font-weight: 800;
}

.ticket-number {
  padding: 8px 12px;
}

.ticket-doc {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
}

.ticket-doc span {
  color: var(--xlt-muted);
  opacity: 1;
  text-transform: none;
  letter-spacing: 0;
}

.ticket-doc.is-error {
  background: #fff7f7;
  border-color: rgba(176, 16, 22, 0.34);
}

.modal__dialog--ticket {
  max-width: 920px;
}

.modal__dialog--ticket .modal__head {
  background: var(--xlt-red);
  color: #fff;
  border-bottom: 0;
}

.modal__dialog--ticket .modal__close {
  color: #fff;
}

.modal__dialog--ticket .modal__body {
  padding: 0;
  background: #f8f5f1;
}

.ticket-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border-bottom: 1px solid rgba(176, 16, 22, 0.12);
}

.ticket-modal-head span,
.ticket-popup-card span {
  display: block;
  color: var(--xlt-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket-modal-head strong {
  display: block;
  margin-top: 2px;
  color: var(--xlt-ink);
  font-size: 1.25rem;
}

.ticket-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-popup-card {
  margin: 24px;
  overflow: hidden;
  border: 1px solid rgba(176, 16, 22, 0.18);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 55px rgba(74, 16, 18, 0.16);
}

.ticket-popup-card__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--xlt-red), #811015);
  color: #fff;
}

.ticket-popup-card__brand span {
  color: rgba(255, 255, 255, 0.72);
}

.ticket-popup-card__brand strong {
  display: block;
  margin-top: 2px;
  font-size: 1.55rem;
}

.ticket-popup-card__brand em {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.ticket-route-band {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 190px);
  gap: 18px;
  padding: 24px;
  background: #fbf8f5;
  border-bottom: 1px dashed rgba(176, 16, 22, 0.28);
}

.ticket-route-band strong {
  display: block;
  color: var(--xlt-ink);
  font-size: clamp(1.7rem, 4vw, 3rem);
  letter-spacing: 0;
  line-height: 1;
}

.ticket-passenger-strip {
  display: grid;
  grid-template-columns: 1fr minmax(190px, 280px);
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(176, 16, 22, 0.1);
}

.ticket-passenger-strip strong {
  display: block;
  color: var(--xlt-ink);
  font-size: 1.15rem;
  word-break: break-word;
}

.ticket-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(176, 16, 22, 0.12);
}

.ticket-detail-grid > div {
  min-height: 82px;
  padding: 14px 16px;
  background: #fff;
}

.ticket-detail-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--xlt-ink);
  font-size: 0.98rem;
  line-height: 1.25;
  word-break: break-word;
}

.ticket-document-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: #fff;
}

.ticket-document-strip strong {
  color: var(--xlt-ink);
}

.ticket-doc-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ticket-doc-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(176, 16, 22, 0.22);
  border-radius: 999px;
  background: var(--xlt-red-soft);
  color: var(--xlt-red);
  font-weight: 800;
  font-size: 0.82rem;
}

.ticket-doc-pill.is-error {
  background: #fff7f7;
}

.ticket-supporting-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(176, 16, 22, 0.12);
  border-top: 1px solid rgba(176, 16, 22, 0.12);
}

.ticket-supporting-details section {
  padding: 18px;
  background: #fff;
}

.ticket-supporting-details h4 {
  margin: 0 0 12px;
  color: var(--xlt-ink);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.ticket-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.ticket-info-list strong {
  display: block;
  margin-top: 3px;
  color: var(--xlt-ink);
  font-size: 0.92rem;
  line-height: 1.3;
  word-break: break-word;
}

.ticket-tax-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.ticket-tax-list span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #fbf8f5;
  border: 1px solid rgba(176, 16, 22, 0.14);
  color: var(--xlt-ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.ticket-endorsement {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--xlt-red);
  background: #fbf8f5;
  color: var(--xlt-muted);
  font-size: 0.86rem;
}

#bookings-section .badge,
#bookings-section .badge--syncing,
#bookings-section .badge--ok,
#bookings-section .badge--fail,
#bookings-section .badge--cancel {
  background: var(--xlt-red-soft);
  border-color: rgba(176, 16, 22, 0.22);
  color: var(--xlt-red);
  margin-left: 0;
}

#bookings-section .empty-state {
  min-height: 140px;
  place-items: center;
  background: #fff;
  border: 1px dashed rgba(176, 16, 22, 0.26);
  border-radius: 14px;
  color: var(--xlt-muted);
}

@media (max-width: 900px) {
  #bookings-section .bookings-toolbar,
  #bookings-section .booking-filters,
  #bookings-section .booking-row {
    grid-template-columns: 1fr;
  }

  #bookings-section #bookingSearch {
    width: 100%;
    min-width: 0;
  }

  #bookings-section .bookings-actions,
  #bookings-section .booking-filter-chips {
    justify-content: flex-start;
  }

  #bookings-section .bookings-actions {
    flex-wrap: wrap;
  }

  #bookings-section .booking-actions {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ticket-view {
    grid-template-columns: 1fr;
  }

  .ticket-view__head,
  .ticket-view__grid {
    grid-template-columns: 1fr;
  }

  .ticket-modal-head,
  .ticket-document-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .ticket-popup-card {
    margin: 14px;
  }

  .ticket-route-band,
  .ticket-passenger-strip,
  .ticket-detail-grid,
  .ticket-supporting-details,
  .ticket-info-list {
    grid-template-columns: 1fr;
  }

  .ticket-doc-list {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  #bookings-section .booking-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Shared rules and policy experience */
.fare-card__actions,
.vc-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.fare-card__actions .rose-btn,
.vc-actions .rose-btn {
  flex: 1 1 120px;
}

.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(25, 25, 25, 0.42);
  backdrop-filter: blur(8px);
}

.policy-modal.open {
  display: flex;
}

.policy-modal__panel {
  width: min(820px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  position: relative;
  padding: 26px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--xlt-line);
  box-shadow: 0 30px 80px rgba(36, 36, 36, 0.24);
  color: var(--xlt-ink);
}

.policy-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(176, 16, 22, 0.2);
  background: #fff;
  color: var(--xlt-red);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.policy-modal__head {
  padding-right: 42px;
  margin-bottom: 18px;
}

.policy-modal__eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--xlt-red-soft);
  color: var(--xlt-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-modal__head h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--xlt-ink);
}

.policy-modal__head p {
  margin: 8px 0 0;
  color: var(--xlt-muted);
}

.policy-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.policy-metrics div {
  padding: 14px;
  border-radius: 14px;
  background: #fff8f8;
  border: 1px solid rgba(176, 16, 22, 0.14);
}

.policy-metrics span {
  display: block;
  color: var(--xlt-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.policy-metrics strong {
  display: block;
  margin-top: 6px;
  color: var(--xlt-red);
  font-size: 1rem;
}

.policy-sections {
  display: grid;
  gap: 12px;
}

.policy-sections section {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--xlt-line);
  background: #fff;
}

.policy-sections h4 {
  margin: 0 0 10px;
  color: var(--xlt-ink);
}

.policy-sections ul {
  margin: 0;
  padding-left: 18px;
  color: var(--xlt-muted);
  line-height: 1.55;
}

@media (max-width: 560px) {
  .policy-modal {
    padding: 12px;
  }

  .policy-modal__panel {
    padding: 20px;
  }
}

/* Final mobile polish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (max-width: 560px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .company-strip {
    justify-content: center;
    gap: 12px;
    padding: 6px 8px;
    min-height: 28px;
    font-size: 0.72rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-header,
  body > header {
    min-height: 68px;
    padding: 8px 14px;
  }

  .xlt-logo {
    width: min(180px, 66vw);
  }

  .xlt-logo img {
    max-height: 52px;
  }

  #tab-bar {
    min-height: 58px;
    padding: 8px 10px;
  }

  #tab-bar .tab-inner {
    gap: 8px;
  }

  .app-shell {
    width: 100%;
    padding: 14px 10px 28px;
  }

  .section-card {
    padding: 12px;
    border-radius: 14px;
  }

  .section-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
  }

  .section-header > div {
    min-width: 0;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 7.5vw, 1.85rem);
    line-height: 1.06;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .section-header p {
    max-width: 31ch;
    font-size: 0.92rem;
    line-height: 1.42;
  }

  .section-header .chip {
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
  }

  .flight-form-summary,
  .flight-hero,
  .flights-form,
  .console-search-form:not(.flights-form),
  .results-toolbar,
  .results-summary__group,
  .booking-form.flight-booking-form {
    border-radius: 14px;
  }

  .flight-hero {
    padding: 16px;
    gap: 14px;
  }

  .flight-hero__copy h3 {
    max-width: 100%;
    font-size: 1.08rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .flight-hero__copy p,
  .flight-form-summary,
  .summary-value {
    max-width: 31ch;
    overflow-wrap: anywhere;
  }

  .flight-steps {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .flight-step {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    width: auto;
    min-width: 0;
    padding-inline: 10px;
  }

  #bookings-section .bookings-actions,
  .analytics-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }

  #bookings-section .bookings-actions .rose-btn,
  .analytics-actions .rose-btn {
    width: 100%;
  }

  #bookings-section #syncStatus,
  .analytics-meta {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    text-align: left;
    white-space: normal;
  }

  .analytics-toolbar {
    align-items: stretch;
  }

  .booking-actions .rose-btn.small,
  #bookings-section .booking-actions .rose-btn.small,
  .ticket-modal-actions .rose-btn {
    min-height: 40px;
  }
}

/* Mobile task-first mode: keep forms focused and hide demo guidance. */
@media (max-width: 640px) {
  .flight-form-summary,
  .flight-hero,
  .flight-insights,
  .field--shortcuts,
  .form-footnote,
  .field-hint {
    display: none !important;
  }

  #air-section .section-card,
  #vehicle-section .section-card,
  #hotel-section .section-card {
    padding-top: 10px;
  }

  #air-section .section-header,
  #vehicle-section .section-header,
  #hotel-section .section-header {
    margin-bottom: 14px;
  }

  #air-section .section-header p,
  #vehicle-section .section-header p,
  #hotel-section .section-header p {
    display: none;
  }

  #air-section .section-header .chip,
  #vehicle-section .section-header .chip,
  #hotel-section .section-header .chip {
    display: none;
  }

  .flights-form .field:has(#flight-airline),
  .flights-form .field:has(#flight-fareCode),
  .flights-form .field:has(#flight-seatPreference),
  .flights-form .field--pax,
  .flights-form .return-field,
  .flights-form .availability-toggle {
    display: none;
  }

  .flights-form.is-return-trip .return-field {
    display: block;
  }

  .flights-form,
  .console-search-form:not(.flights-form) {
    gap: 12px;
    padding: 14px;
  }

  .flights-form .field--trip {
    order: -1;
  }

  .flights-form .field--pax {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .flights-form .field-stack-head {
    margin-bottom: 8px;
  }

  .flights-form .pax-row {
    gap: 8px;
  }

  .flights-form .pax-field {
    min-height: 68px;
  }

  .form-actions,
  .flights-form .form-actions,
  .console-search-form:not(.flights-form) .form-actions {
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .form-actions .rose-btn,
  .flights-form .form-actions .rose-btn,
  .console-search-form:not(.flights-form) .form-actions .rose-btn {
    width: 100%;
    min-height: 48px;
  }

  .form-actions .clear-search-btn {
    margin-top: 10px;
  }

  .ai-fab {
    transform: scale(0.82);
    transform-origin: right bottom;
    right: 10px;
    bottom: 10px;
  }
}

/* Compact mobile search results */
@media (max-width: 640px) {
  .card.result-card.result-card--flight,
  .flight-card {
    padding: 14px;
    border-radius: 16px;
  }

  .flight-card__head {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
  }

  .flight-card__badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .flight-card__badge img,
  img.airline-logo {
    width: 28px;
    height: 28px;
    padding: 0;
  }

  .flight-card__title {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: baseline;
  }

  .flight-card__title span {
    font-size: 0.72rem;
  }

  .flight-card__title strong {
    font-size: 1.15rem;
  }

  .flight-card .result-card__status {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 2px;
  }

  .flight-card__tag,
  .flight-card__date {
    min-height: 26px;
    padding: 5px 9px;
    font-size: 0.68rem;
  }

  .flight-card__body {
    gap: 8px;
  }

  .flight-card__segment {
    display: grid;
    grid-template-columns: minmax(68px, auto) 1fr minmax(68px, auto);
    gap: 8px;
    align-items: center;
    padding: 10px 0;
  }

  .flight-card__time span {
    font-size: 1.02rem;
    line-height: 1.15;
  }

  .flight-card__time small {
    font-size: 0.74rem;
  }

  .flight-card__time:last-child {
    text-align: right;
  }

  .flight-card__track {
    display: block;
    min-width: 44px;
  }

  .flight-card__duration {
    top: -18px;
    font-size: 0.62rem;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .flight-card__meta-row {
    display: none;
  }

  .flight-card__foot {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 8px;
    padding-top: 10px;
  }

  .flight-card__foot .muted {
    display: none;
  }

  .flight-card__price {
    font-size: 1.02rem;
  }

  .flight-card__price::before {
    content: 'From ';
    color: var(--xlt-muted);
    font-size: 0.78rem;
    font-weight: 800;
  }

  .flight-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .flight-card__actions .rose-btn {
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    font-size: 0.78rem;
  }
}
