/* ==========================================================================
   EUROSTARLING ARS – unified stylesheet
   Branding: Petrol Blue / Light Teal (Poppins)
   ======================================================================= */

/* -------------------- CSS Vars / Theme -------------------- */
:root {
  /* --- Colors (HSL based for better manipulation) --- */
  --brand-h: 188;
  --brand-s: 100%;
  --brand-l: 21%;
  /* #005B69 */

  --brand: hsl(var(--brand-h), var(--brand-s), var(--brand-l));
  --brand-600: hsl(var(--brand-h), var(--brand-s), calc(var(--brand-l) - 5%));
  --brand-100: hsl(var(--brand-h), var(--brand-s), 95%);

  --highlight: #3EC1C9;
  --highlight-h: 183;
  --accent: hsl(var(--highlight-h), 55%, 52%);

  /* Semantic Neutral Colors */
  --white: #FFFFFF;
  --black: #0F172A;
  --text: #1E293B;
  --muted: #64748B;
  --muted-light: #94A3B8;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;

  /* Status Colors */
  --ok: #10B981;
  --ok-bg: #ECFDF5;
  --err: #EF4444;
  --err-bg: #FEF2F2;
  --warn: #F59E0B;
  --warn-bg: #FFFBEB;

  /* --- Spacing Scale --- */
  --sp-xs: 4px;
  --sp-s: 8px;
  --sp-m: 12px;
  --sp-base: 16px;
  --sp-l: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-huge: 64px;

  /* --- Border Radius --- */
  --r-small: 8px;
  --r-base: 12px;
  --r-large: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* --- Typography --- */
  --font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-28: 28px;
  --fs-32: 32px;

  /* Semantic Typography (Alias) */
  --fs-xs: var(--fs-12);
  --fs-sm: var(--fs-14);
  --fs-base: var(--fs-16);
  --fs-lg: var(--fs-18);

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Transition Defaults */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* Layout */
  --header-h: 64px;
  --container-max: 1200px;
  --safe-top: env(safe-area-inset-top, 0px);
  --ring: hsla(var(--highlight-h), 55%, 52%, 0.3);
}

/* Dark Theme Skeleton (Pre-flight) */
[data-theme="dark"] {
  --text: #F1F5F9;
  --muted: #94A3B8;
  --bg: #0F172A;
  --surface: #1E293B;
  --border: #334155;
  --white: #0F172A;
  --ok-bg: rgba(16, 185, 129, 0.1);
  --err-bg: rgba(239, 68, 68, 0.1);
}

/* -------------------- Base -------------------- */
* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

html,
body {
  font-family: var(--font-family);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--highlight);
  opacity: 0.8;
}

a:focus-visible,
.btn:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-base);
}

.page {
  padding: 64px 0 96px;
}

/* Utilities */
.w-100 {
  width: 100%
}

.mt {
  margin-top: var(--sp-base);
}

.mt-24 {
  margin-top: var(--sp-l);
}

.mb-24 {
  margin-bottom: var(--sp-l);
}

.hidden {
  display: none !important
}

.list-none {
  list-style: none;
}

.p-0 {
  padding: 0;
}

.h-420 {
  height: 420px;
}

/* Flexbox utilities */
.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

/* Spacing utilities */
.mt-6 {
  margin-top: 6px;
}

.mt-8 {
  margin-top: var(--sp-s);
}

.my-12 {
  margin-top: var(--sp-m);
  margin-bottom: var(--sp-m);
}

.mt-12 {
  margin-top: var(--sp-m);
}

.mt-16 {
  margin-top: var(--sp-base);
}

.mt-20 {
  margin-top: var(--sp-20, 20px);
}

.mb-8 {
  margin-bottom: var(--sp-s);
}

.mb-12 {
  margin-bottom: var(--sp-m);
}

.mb-16 {
  margin-bottom: var(--sp-base);
}

.mb-20 {
  margin-bottom: var(--sp-20, 20px);
}

.mb-32 {
  margin-bottom: var(--sp-xl);
}

.mr-8 {
  margin-right: var(--sp-s);
}

.mr-16 {
  margin-right: var(--sp-base);
}

.py-8 {
  padding-top: 8px;
  padding-bottom: 8px;
}

.px-2 {
  padding-left: 2px;
  padding-right: 2px;
}

.d-block {
  display: block;
}

/* Typography */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-upper {
  text-transform: uppercase;
}

.font-medium {
  font-weight: var(--fw-medium);
}

.font-bold {
  font-weight: var(--fw-bold);
}

/* Status Colors */
.color-ok {
  color: var(--ok);
}

.color-err {
  color: var(--err);
}

/* Borders & Dividers */
.border-t {
  border-top: 1px solid var(--border);
}

.border-b {
  border-bottom: 1px solid var(--border);
}

/* Common UI Patterns */
.circle-32 {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

/* Display \u0026 Layout */
.d-none {
  display: none;
}

.overflow-hidden {
  overflow: hidden;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.h-200 {
  height: 200px;
}

.object-cover {
  object-fit: cover;
}

.object-top {
  object-position: top;
}

/* Spacing Helpers */
.p-20 {
  padding: 20px;
}

/* Min-Height Utilities */
.min-h-40 {
  min-height: 40px;
}

.min-h-60 {
  min-height: 60px;
}

/* Colors */
.color-brand {
  color: var(--brand);
}

.color-muted {
  color: var(--muted);
}

.color-light-muted {
  color: var(--muted-light);
}

.color-white {
  color: var(--white);
}

.color-inherit {
  color: inherit;
}

/* Text Utils */
.no-underline {
  text-decoration: none;
}

/* Font Sizes */
.font-12 {
  font-size: var(--fs-xs);
}

.font-13 {
  font-size: var(--fs-13);
}

.font-14 {
  font-size: var(--fs-sm);
}

.font-15 {
  font-size: 15px;
}

.font-16 {
  font-size: var(--fs-base);
}

.font-17 {
  font-size: 17px;
}

.font-18 {
  font-size: var(--fs-lg);
}

.font-20 {
  font-size: var(--fs-xl);
}

.font-24 {
  font-size: var(--fs-2xl);
}

.font-32 {
  font-size: var(--fs-32);
}

.mt-4 {
  margin-top: 4px;
}

.mt-12 {
  margin-top: 12px;
}

.pl-18 {
  padding-left: 18px;
}

.pl-20 {
  padding-left: 20px;
}

/* Letter Spacing */
.ls-1 {
  letter-spacing: 1px;
}

/* Spacing Helpers */
.m-0 {
  margin: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-40 {
  margin-top: var(--sp-xxl);
}

.mb-40 {
  margin-bottom: var(--sp-xxl);
}

.mt-60 {
  margin-top: var(--sp-huge);
}

.mb-60 {
  margin-bottom: var(--sp-huge);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Grid Gap */
.gap-24 {
  gap: var(--sp-l);
}

.gap-40 {
  gap: var(--sp-xxl);
}

.gap-16 {
  gap: var(--sp-base);
}

.pt-16 {
  padding-top: var(--sp-base);
}

/* Max-Width */
.max-w-600 {
  max-width: 600px;
}

.max-w-800 {
  max-width: 800px;
}

.max-w-1200 {
  max-width: var(--container-max);
}

.pb-60 {
  padding-bottom: var(--sp-huge);
}

.mb-6 {
  margin-bottom: 6px;
}

.color-dark {
  color: var(--black);
}

.border {
  border: 1px solid var(--border);
}

.max-w-1000 {
  max-width: 1000px;
}

.pb-8 {
  padding-bottom: var(--sp-s);
}

.bg-white {
  background: var(--white);
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important
  }
}

/* -------------------- Header / Navbar -------------------- */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 6000;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  box-shadow: var(--shadow-lg);
  padding-top: var(--safe-top);
}

/* GLOBALER Abstand für Seiteninhalte – unabhängig von DOM-Struktur */
:root {
  --header-gap: 20px;
}

/* Luft unter dem Header, nach Wunsch 16–24px */

/* Immer Abstand unter der fixen Navbar – unabhängig von Klassen */
.page {
  padding-top: calc(var(--header-h) + var(--header-gap));
}

/* Opt-out (falls du auf EINZELNEN Seiten KEIN Top-Padding willst) */
.page[data-offset="0"],
body[data-no-offset="1"] .page {
  padding-top: 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

/* --- Mobile Drawer & Toggle --- */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
  z-index: 7000;
  padding: 0;
  margin-right: -10px;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle .bar:nth-child(1) {
  top: 16px;
}

.nav-toggle .bar:nth-child(2) {
  top: 21px;
}

.nav-toggle .bar:nth-child(3) {
  top: 26px;
}

.nav-toggle.is-open .bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle.is-open .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .navbar {
    display: none !important;
  }
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: var(--white);
  z-index: 6500;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex !important;
  flex-direction: column;
}

.mobile-nav.is-open {
  right: 0;
}

.mobile-nav-inner {
  padding: 80px 24px 40px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar but keep scrolling */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.mobile-nav-inner::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.mobile-nav a {
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s;
  display: block;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
  background: var(--brand-100);
  color: var(--brand-600);
}

.mobile-nav .muted {
  margin-top: 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  opacity: 0.7;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 6400;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-s);
  color: var(--white);
  font-weight: 800;
  font-size: var(--fs-xl);
  letter-spacing: .2px
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .25)
}

/* --- Verfeinerte Navigation (Desktop) --- */
.navbar {
  display: flex;
  align-items: center;
  gap: var(--sp-l);
  /* EINHEITLICHER Abstand */
  margin-left: var(--sp-m);
}

.navbar a,
.navbar .mega-trigger {
  color: var(--white);
  opacity: .92;
  padding: var(--sp-s) var(--sp-6, 6px);
  border-radius: var(--r-small);
  font-weight: var(--fw-semibold);
  letter-spacing: .1px;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.navbar a:hover,
.navbar .mega-trigger:hover,
.navbar a.active {
  opacity: 1;
  background: rgba(255, 255, 255, .08);
  /* dezente Hoverfläche */
}

/* Aktionen rechts (Check-In, Konto, Crew, Admin) – wie Links, keine Pills */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-actions .btn {
  background: transparent;
  color: #EAF7F9;
  border: 0;
  padding: 8px 6px;
  height: auto;
  border-radius: var(--r-small);
  font-weight: 600;
}

.nav-actions .btn:hover {
  background: rgba(255, 255, 255, .08);
}

/* Mega & Sidebar an Headerhöhe binden */
.mega {
  top: calc(var(--header-h) + var(--safe-top));
}

.admin-sidebar {
  top: calc(var(--header-h) + 20px);
}

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--surface);
  padding: var(--sp-l) 0;
  margin-top: var(--sp-xl);
  box-shadow: var(--shadow-base);
  border-top: 1px solid var(--border)
}

.site-footer a {
  color: var(--brand);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .muted,
.site-footer small {
  color: var(--white);
}

/* -------------------- Cards / Generic Layout -------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-large);
  padding: var(--sp-base);
  box-shadow: var(--shadow-base);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-elevated {
  box-shadow: var(--shadow-lg)
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.narrow {
  max-width: 720px;
  margin: 0 auto
}

/* -------------------- Hero Box -------------------- */
.hero {
  background: linear-gradient(180deg, var(--brand-100), var(--white) 70%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  box-shadow: none;
  margin-bottom: var(--sp-l);
  overflow: visible !important;
  /* Prevent popup clipping */
  position: relative;
  z-index: 500;
  /* High stacking context for popups */
}

.hero h1 {
  margin: 0 0 12px;
  font-size: var(--fs-32);
  letter-spacing: .2px
}

/* -------------------- Flight Search -------------------- */
/* Segmented Control Tabs */
.tabs {
  display: inline-flex;
  background: transparent;
  /* No background on container */
  padding: 0;
  border: none;
  /* No border on container */
  gap: 8px;
  margin-bottom: 24px;
}

.tab {
  position: relative;
  padding: 0;
  /* Removed padding */
  cursor: pointer;
  color: #64748b;
  font-weight: 600;
  display: inline-flex;
  /* Better for wrapping */
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  /* Spacing between tabs */
  border: none !important;
  background: transparent !important;
}

.tab input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.tab span {
  position: relative;
  z-index: 2;
  padding: var(--sp-m) var(--sp-xl);
  border-radius: var(--r-full);
  display: block;
  background: var(--bg) !important;
  color: var(--muted);
  font-weight: var(--fw-bold);
  font-size: 15px;
  border: none !important;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.tab span:hover {
  background: var(--border) !important;
  transform: translateY(-1px);
}

.tab input:checked+span {
  background: var(--brand) !important;
  color: var(--white) !important;
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Consolidating into modern grid at bottom of file */
/* .search-grid { ... } */

label {
  display: block;
  font-size: var(--fs-12);
  color: var(--muted);
  margin: 0 0 6px 6px
}

input,
select,
button {
  font: inherit
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-base);
  padding: var(--sp-m);
  height: 44px;
  outline: none;
  transition: all var(--transition-fast);
}

input[type="text"]:hover,
input[type="date"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
select:hover {
  background: #FCFEFF
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring)
}

.input-wrap {
  position: relative
}

.input-wrap .swap {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  opacity: .75;
  color: var(--brand)
}

.input-wrap .swap:hover {
  opacity: 1;
  color: var(--highlight)
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-s);
  padding: 10px 14px;
  border-radius: var(--r-base);
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  height: 44px;
  font-weight: var(--fw-semibold);
  transition: all var(--transition-fast);
}

.btn:hover {
  background: var(--bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: var(--brand);
  color: var(--white);
  border-color: transparent
}

.btn.primary:hover {
  background: var(--brand-600)
}

.btn.small {
  padding: 6px 10px;
  height: auto;
  border-radius: var(--r-small);
  font-size: var(--fs-13);
}

.btn-ghost {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: #FAFAFA;
  padding: 12px;
  border-radius: var(--r-12)
}

#btn-search {
  width: 100%
}

.alert {
  padding: 12px 14px;
  border-radius: var(--r-base);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.alert.success {
  background: var(--ok-bg);
  border-color: var(--ok);
  color: var(--ok);
}

.alert.error {
  background: var(--err-bg);
  border-color: var(--err);
  color: var(--err);
}

.popover {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 6600;
  /* über Feld, unter AC */
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--r-small);
  padding: 8px 12px;
  box-shadow: none;
  /* Shadow removed */
}

.popover .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.popover .qty button {
  width: 32px;
  height: 32px;
  border-radius: var(--r-small);
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer
}

.popover .qty output {
  display: inline-block;
  min-width: 24px;
  text-align: center
}

.popover[hidden] {
  display: none !important;
}

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

.ac {
  position: relative
}

.ac-list {
  position: absolute;
  top: calc(100% + var(--sp-xs));
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-base);
  box-shadow: var(--shadow-lg);
  /* Shadow removed */
  max-height: 300px;
  overflow: auto;
  z-index: 6700;
  display: none;
}

.ac-item {
  padding: 10px var(--sp-m);
  cursor: pointer;
  border-bottom: 1px solid var(--border)
}

.ac-item:last-child {
  border-bottom: 0
}

.ac-item:hover {
  background: var(--bg)
}

.ac-main {
  display: block;
  font-size: 14px
}

.field.disabled {
  opacity: .65
}

#return-wrap.field.disabled input {
  pointer-events: none
}

/* -------------------- Hero Slider -------------------- */
.hero-visual-unit {
  margin: var(--sp-base) calc(var(--sp-base) * -1) var(--sp-l) calc(var(--sp-base) * -1);
  background: var(--white);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
}

.hero-section {
  display: block;
  clear: both;
  position: relative;
}

.hero-swiper {
  width: 100%;
  height: 500px;
  position: relative;
}

.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
  width: 100%;
  height: 100%;
  position: relative
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease-out
}

.hero-text-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(90deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 55%);
  color: var(--white);
  padding: 0 var(--sp-huge)
}

.hero-content h1,
.hero-content h2 {
  font-size: var(--fs-3xl);
  margin: 0 0 8px;
  color: var(--white);
}

.hero-content p,
.hero-content p strong {
  font-size: var(--fs-base);
  margin: 0 0 var(--sp-m);
  color: var(--white);
  opacity: 0.95;
}

.hero-content .btn:not(.primary) {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.hero-content .btn:not(.primary):hover {
  background: var(--white);
  color: var(--brand);
}

.hero-pagination .swiper-pagination-bullet {
  background: var(--white);
  opacity: .4
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--white);
  opacity: 1
}

@media (max-width:640px) {
  .hero-text-wrapper {
    padding: 0 18px;
    background: linear-gradient(90deg, rgba(0, 0, 0, .50) 0%, rgba(0, 0, 0, 0) 55%);
  }

  .hero-content h2 {
    font-size: 24px;
  }

  .hero-content p {
    font-size: 14px;
  }
}

/* -------------------- Breaking News -------------------- */
.breaking-news-bar {
  background: var(--brand-100);
  border: 1px solid var(--border);
  border-radius: var(--r-base);
  padding: 10px var(--sp-m);
  box-shadow: var(--shadow-sm);
  margin: var(--sp-base) 0 var(--sp-s);
  overflow: hidden
}

.breaking-wrap {
  display: flex;
  align-items: center;
  gap: 14px
}

.breaking-news-label {
  font-weight: 700;
  color: var(--brand-600);
  padding: 6px 10px;
  border-radius: var(--r-full);
  background: var(--white);
  border: 1px solid var(--border)
}

.breaking-news-ticker {
  overflow: hidden;
  position: relative;
  flex: 1
}

.breaking-news-items {
  display: flex;
  gap: 50px;
  white-space: nowrap;
  will-change: transform;
  animation: ticker 45s linear infinite
}

.breaking-news-item {
  color: var(--text)
}

.breaking-news-items:hover,
.breaking-news-items:focus-within {
  animation-play-state: paused;
}

@keyframes ticker {
  0% {
    transform: translateX(100%)
  }

  100% {
    transform: translateX(-100%)
  }
}

@media (max-width:640px) {
  .breaking-news-items {
    animation-duration: 40s;
    gap: 28px;
  }
}

/* -------------------- Sections & Cards -------------------- */
.section-light {
  background: transparent;
  padding: 24px 0
}

.section-dark {
  background: var(--brand);
  padding: var(--sp-xl) 0;
  color: var(--white);
  border-radius: var(--r-large);
  box-shadow: var(--shadow-lg)
}

.section-white {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-large);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-base);
  margin-top: var(--sp-base)
}

.section-title {
  font-size: var(--fs-28);
  margin: 0 0 8px
}

.section-subtitle {
  color: var(--muted);
  margin: 0 0 10px
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: center
}

.highlight-grid .media img {
  border-radius: var(--r-large);
  box-shadow: var(--shadow-lg)
}

.highlight-grid .copy .mt {
  display: inline-block
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-base)
}

@media (max-width:900px) {
  .cards-3 {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:560px) {
  .cards-3 {
    grid-template-columns: 1fr
  }
}

.destination-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-large);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column
}

.destination-image {
  width: 100%;
  height: 180px;
  object-fit: cover
}

.destination-title {
  margin: 12px 12px 6px;
  font-size: 16px
}

.destination-text {
  margin: 0 12px 12px;
  color: var(--muted)
}

.destination-card .btn {
  margin: 0 12px 16px
}

/* Fade-in */
.fade-in-section {
  opacity: 0;
  transform: translateY(12px);
  transition: .35s ease
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0)
}

/* -------------------- Results / Flights -------------------- */
.results {
  display: grid;
  gap: var(--sp-base);
  margin-top: var(--sp-base);
  content-visibility: auto;
  contain-intrinsic-size: 600px
}

.results h3 {
  margin: 18px 0 8px;
  color: var(--brand);
  font-size: var(--fs-18)
}

.flight {
  padding: var(--sp-l);
  border-radius: var(--r-large);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm)
}

.flight-head.fancy {
  display: flex;
  align-items: center;
  gap: 14px
}

.carrier-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--r-base);
  color: var(--white);
  font-weight: 800;
  letter-spacing: .4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  box-shadow: var(--shadow-base)
}

.flight-title {
  flex: 1;
  min-width: 0
}

.flight-title .route {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600
}

.flight-meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  margin: 8px 0 0;
  flex-wrap: wrap;
  font-size: 13px
}

.from {
  margin-left: auto;
  text-align: right;
  min-width: 92px
}

.from .label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1
}

.from .value {
  display: block;
  font-weight: 800;
  font-size: 18px;
  margin-top: 2px
}

.fares {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px
}

.fare-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px var(--sp-m);
  border: 1px solid var(--border);
  border-radius: var(--r-base);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition-fast)
}

.fare-tile:hover {
  box-shadow: 0 6px 16px rgba(2, 6, 23, .10);
  border-color: #DAE3EA
}

.fare-name {
  font-weight: 700
}

.fare-sub {
  font-size: 12px;
  color: var(--muted)
}

.fare-badge {
  font-size: 11px;
  background: #EEF2FF;
  border-radius: 999px;
  padding: 2px 8px;
  align-self: flex-start;
  color: #3730A3
}

.fare-price {
  font-weight: 700;
  margin-top: 4px;
  display: inline-block
}

/* -------------------- Seatmap -------------------- */
.seatmap {
  display: grid;
  gap: var(--sp-xs);
  padding: var(--sp-m);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-large);
  box-shadow: var(--shadow-sm);
}

.seat {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: var(--r-small);
  border: 1px solid var(--border);
  font-size: var(--fs-xs);
  transition: all var(--transition-fast);
}

.seat.free {
  background: var(--ok-bg);
  border-color: var(--ok);
  color: var(--ok);
  cursor: pointer
}

.seat.free:hover {
  background: var(--ok);
  color: var(--white);
  transform: scale(1.1);
}

.seat.taken {
  background: var(--bg);
  color: var(--muted-light);
  border-color: transparent;
}

.seat.blocked {
  background: var(--err-bg);
  border-color: var(--err);
  color: var(--err);
}

.seat.xl {
  outline: 2px dashed var(--highlight);
  outline-offset: -2px;
}

.empty {
  visibility: hidden
}

/* -------------------- Admin Sidebar -------------------- */
.admin-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px
}

@media (max-width:900px) {
  .admin-wrap {
    grid-template-columns: 1fr
  }
}

.admin-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-large);
  padding: var(--sp-base);
  height: max-content;
  position: sticky;
  top: calc(var(--header-h) + var(--sp-l));
  box-shadow: var(--shadow-base)
}

.admin-title {
  font-weight: 700;
  margin-bottom: 8px
}

.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.admin-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  color: var(--text)
}

.admin-sidebar a.active {
  background: var(--brand-100);
  border-color: var(--brand);
  color: var(--brand-600)
}

.admin-sidebar a:hover {
  background: var(--bg)
}

/* Editor */
.se-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-large);
  padding: var(--sp-m);
  background: var(--white)
}

.se-cabin {
  border: 1px solid var(--border);
  border-radius: var(--r-base);
  padding: var(--sp-m);
  margin-top: var(--sp-m);
  background: var(--bg)
}

.se-cabin-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between
}

.se-cabin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0
}

.se-grid {
  display: grid;
  gap: 6px;
  margin-top: 8px
}

.se-row {
  display: grid;
  gap: 6px;
  align-items: center
}

.se-rowlabel {
  width: 38px;
  text-align: right;
  color: #6b7280
}

.se-aisle {
  width: 10px
}

.se-seat {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  border-radius: var(--r-small);
  border: 1px solid var(--border);
  font-size: var(--fs-xs);
  background: var(--white);
  cursor: pointer;
  user-select: none
}

.se-seat.preferred {
  background: #eef2ff;
  border-color: #c7d2fe
}

.se-seat.xl {
  background: #ecfeff;
  border-color: #bae6fd;
  outline: 2px dashed #60a5fa
}

.se-seat.blocked {
  background: #fee2e2;
  border-color: #fecaca;
  text-decoration: line-through;
  color: #7f1d1d
}

.se-tools {
  display: flex;
  gap: 8px;
  align-items: center
}

.se-badge {
  font-size: 11px;
  background: #eef2ff;
  border-radius: 999px;
  padding: 2px 8px;
  color: #3730a3
}

.se-mini {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
  margin-left: 6px
}

.se-mini div {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #dbeafe
}

.se-exit {
  background: var(--warn-bg);
  border: 1px dashed var(--warn);
  padding: 2px 6px;
  border-radius: var(--r-small);
  font-size: 11px
}

/* Fares */
.fares-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.2rem;
}

.fare-list {
  border: 1px solid var(--border);
  border-radius: var(--r-base);
  overflow: hidden;
  background: var(--white);
}

.fare-list .search {
  padding: .75rem;
  border-bottom: 1px solid #f3f4f6;
}

.fare-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 60vh;
  overflow: auto;
}

.fare-list li {
  border-bottom: 1px solid #f3f4f6;
}

.fare-list button {
  width: 100%;
  text-align: left;
  padding: .7rem .9rem;
  background: none;
  border: 0;
  cursor: pointer;
}

.fare-list button.active {
  background: var(--brand-100);
  font-weight: var(--fw-semibold);
}

.fare-list .badge {
  font-size: .72rem;
  padding: .15rem .4rem;
  border-radius: 6px;
  background: #f3f4f6;
  margin-left: .4rem;
}

.fare-main .tabs {
  display: flex;
  gap: .4rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: .8rem;
}

.fare-main .tabs button {
  padding: .55rem .8rem;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

/* .fare-main .tabs button.active { border-color:#4f46e5; color:#4f46e5; font-weight:600; } */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 1024px) {
  .fares-wrap {
    grid-template-columns: 1fr;
  }

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

/* Services-Überblick */
.haul-tabs {
  display: flex;
  gap: .4rem;
  align-items: center
}

.haul-tabs button {
  padding: .35rem .65rem;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--white);
  cursor: pointer
}

.haul-tabs button.active {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand)
}

table.fares {
  width: 100%;
  border-collapse: collapse;
  margin-top: .4rem
}

table.fares th,
table.fares td {
  border-bottom: 1px solid #f3f4f6;
  padding: .5rem .4rem;
  vertical-align: middle
}

table.fares th {
  text-align: left;
  background: #fafafa
}

.services-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.card-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-base);
  padding: var(--sp-base);
}

.searchbar {
  display: flex;
  gap: var(--sp-s);
  align-items: center;
  margin-bottom: var(--sp-m);
}

.searchbar input {
  flex: 1;
  padding: .55rem var(--sp-m);
  border: 1px solid var(--border);
  border-radius: var(--r-small);
}

.searchbar button {
  padding: .55rem .9rem;
  border-radius: var(--r-small);
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
}

.searchbar button.primary {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}


/* kompaktere Labels, Inputs breiter */
.row label {
  width: 180px;
  font-weight: 500;
}

.row input[type="number"] {
  width: 220px;
  box-sizing: border-box;
}

/* Tabs/Haul-Pills etwas griffiger */
.fare-main .tabs button {
  padding: .6rem .9rem;
}

.haul-tabs button {
  padding: .45rem .75rem;
}

@media (max-width: 1024px) {
  .fares-wrap {
    grid-template-columns: 1fr;
  }

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

  .row label {
    width: 140px;
  }
}

#type-list a {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: .55rem .65rem;
  margin-bottom: 8px;
  background: var(--white)
}

#type-list a.active {
  outline: 2px solid #4f46e5
}

/* .card-section { background: var(--white); border:1px solid #e5e7eb; border-radius: var(--r-base); padding:1rem; }
.row { display:flex; gap:.8rem; align-items:center; margin:.45rem 0; }
.row label { width:220px; font-weight:500; }
.row input[type="number"] { width:160px; }
.muted { color:#6b7280; font-size:.9rem; }

.state-pill { display:flex; gap:.6rem; align-items:center; }
.right { text-align:right; }

.actions { display:flex; gap:.6rem; justify-content:flex-end; margin-top:1rem; }
.btn { padding:.55rem .9rem; border-radius:10px; border:1px solid #e5e7eb; background: var(--white); cursor:pointer; }
.btn.primary { background:#005B69; color: var(--white); border-color:#005B69; }
.alert { border-radius:10px; padding:.6rem .8rem; margin:.4rem 0; }
.alert.success { background:#ecfdf5; color:#005B69; border:1px solid #a7f3d0; }
.alert.error { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }

.am-wrap{display:grid;grid-template-columns:280px 1fr;gap:16px}
@media (max-width:1024px){.am-wrap{grid-template-columns:1fr}}
.card{background: var(--white);border:1px solid #e5e7eb;border-radius:14px}
.card-elevated{box-shadow:0 10px 24px rgba(15,23,42,.06)}
.grid{display:grid;gap:10px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:1024px){.grid-2{grid-template-columns:1fr}}
.mt{margin-top:12px}
.btn{padding:.55rem .9rem;border:1px solid #e5e7eb;border-radius:10px;background: var(--white);cursor:pointer}
.btn.small{padding:.35rem .6rem;border-radius: var(--r-small)}
.btn.primary{background:#4f46e5;color: var(--white);border-color:#4f46e5}
.notice{font-size:.9rem;color:#475569;margin-bottom:6px}
.hint{color:#6b7280}
.alert{border-radius:10px;padding:.6rem .8rem;margin-top:8px}
.alert.success{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}
.alert.error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}



table.svctbl { width:100%; border-collapse:collapse; }
table.svctbl th, table.svctbl td { border-bottom:1px solid #f3f4f6; padding:.55rem .6rem; vertical-align:middle; }
table.svctbl th { background:#fafafa; text-align:left; font-weight:600; }
table.svctbl tbody tr:hover { background:#f9fafb; }

.muted { color:#6b7280; font-size:.88rem; }
.actions { display:flex; gap:.6rem; justify-content:flex-end; margin-top:.8rem; }
.btn { padding:.55rem .9rem; border-radius:10px; border:1px solid #e5e7eb; background: var(--white); cursor:pointer; }
.btn.primary { background:#4f46e5; color: var(--white); border-color:#4f46e5; }
.pill { display:inline-block; padding:.2rem .5rem; border-radius:999px; border:1px solid #e5e7eb; margin-right:.3rem; font-size:.78rem; background:#fafafa; }

.form-inline { display:flex; flex-wrap:wrap; gap:.8rem 1rem; align-items:flex-end; margin-top:1rem; }
.form-inline label { display:flex; flex-direction:column; font-size:.9rem; font-weight:500; }
.form-inline input, .form-inline select { padding:.4rem .6rem; border:1px solid #e5e7eb; border-radius: var(--r-small); min-width:160px; }
.haul-group { display:flex; gap:.6rem; align-items:center; }
.checkbox { display:flex; gap:.35rem; align-items:center; font-weight:400; }
.alert { border-radius:10px; padding:.6rem .8rem; margin:.4rem 0; }
.alert.success { background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; }
.alert.error { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; } */



/* -------------------- Print -------------------- */
@media print {

  .site-header,
  .site-footer {
    display: none
  }

  .container {
    max-width: 100%;
    padding: 0
  }

  .hero,
  .card,
  .section-white {
    box-shadow: none;
    border-color: #ddd
  }
}

/* ===== Mega Menu ===== */
.mega {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--header-h) + var(--safe-top));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-l) 0;
  z-index: 5900;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.mega.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mega[hidden] {
  display: none;
}

.mega-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 19, 27, .28);
  backdrop-filter: blur(1px);
  z-index: 5900;
}

.mega-backdrop[hidden] {
  display: none;
}

.mega-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

@media (max-width:900px) {
  .mega-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:640px) {
  .mega-grid {
    grid-template-columns: 1fr;
  }
}

.mega-close {
  position: absolute;
  right: 0;
  top: -8px;
  background: transparent;
  border: 0;
  font-size: 20px;
  line-height: 1;
  color: #0b1f24;
  cursor: pointer;
  padding: 6px;
}

.mega-close:hover {
  color: var(--brand);
}

.mega-col h4 {
  margin: 0 0 var(--sp-s);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--black);
}

.mega-col a {
  display: block;
  padding: 10px 10px;
  border-radius: var(--r-small);
  color: var(--text);
  text-decoration: none;
}

.mega-col a:hover {
  background: var(--bg);
  color: var(--brand);
}

.mega-trigger {
  background: transparent;
  border: 0;
  padding: 8px 6px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: var(--r-small);
}

.mega-trigger:focus-visible {
  outline: 2px solid var(--highlight);
}

/* ==== Flightmonitor – Flat layout ==== */
.hero-flat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-base);
  background: linear-gradient(180deg, var(--brand-100), var(--white) 70%);
  border: 1px solid var(--border);
  border-radius: var(--r-large);
  padding: 20px var(--sp-l);
  box-shadow: var(--shadow-base);
  margin-bottom: var(--sp-m);
  /* neu: etwas Luft zu den Cards */
}

.hero-flat .hero-title h1 {
  margin: 0 0 6px;
  font-size: var(--fs-32);
}

.hero-flat .hero-sub {
  color: var(--muted);
}

.hero-flat .hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

/* Live Toggle */
.btn.toggle {
  background: #0B2630;
  color: var(--white);
  border-color: #0B2630;
}

.btn.toggle.is-on {
  background: var(--brand);
}

/* Sektionen (plain) */
.section-plain {
  margin-top: 18px;
}

.section-plain .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--border);
}

.section-plain .section-head h2 {
  margin: 0;
  font-size: var(--fs-lg);
  color: var(--black);
}

/* Tabelle schlank */
.table-wrap {
  overflow: auto;
}

.board-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.board-table thead th {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #FAFCFD;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.board-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid #EDF2F6;
  vertical-align: middle;
}

.board-table tbody tr:hover {
  background: #F9FCFE;
}

.col-flight {
  font-weight: 800;
  letter-spacing: .3px;
}

.time {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-weight: 700;
}

/* Status Pills */
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-s);
  padding: 8px 10px;
  border-radius: var(--r-base);
  font-weight: var(--fw-bold);
}

.status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.status.default {
  background: var(--bg);
  color: var(--text);
}

.status.go {
  background: var(--ok-bg);
  color: var(--ok);
}

.status.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.status.err {
  background: var(--err-bg);
  color: var(--err);
}

.status.planned {
  background: var(--bg);
  color: var(--muted);
}

.status.blink {
  animation: blink 1.25s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .45
  }
}

/* ==== Flightmonitor – Cards & Segmented Toggle ==== */
.card-plain {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-large);
  box-shadow: var(--shadow-base);
  padding: var(--sp-m) var(--sp-m) var(--sp-base);
}

.card-plain .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 10px;
  border-bottom: 1px solid #EDF2F6;
}

.card-plain .section-head h2 {
  margin: 0;
  font-size: 18px;
  color: #0b1f24;
}

/* Segmented Control */
.seg {
  display: flex;
  gap: var(--sp-xs);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-base);
  padding: var(--sp-xs);
  width: max-content;
  margin: var(--sp-m) 0 var(--sp-6, 6px);
  box-shadow: var(--shadow-sm);
}

.seg-btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px var(--sp-m);
  border-radius: var(--r-small);
  font-weight: 700;
  color: #064652;
}

.seg-btn.is-active {
  background: var(--white);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width:900px) {
  .board-table thead {
    display: none;
  }

  .board-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 12px 8px;
  }

  .board-table tbody td {
    border-bottom: 0;
    padding: 6px 0;
  }

  .col-flight {
    grid-column: 1 / -1;
    font-size: 16px;
  }

  .col-status {
    grid-column: 1 / -1;
  }

  .seg {
    width: 100%;
    justify-content: center;
  }
}

/* Overlay-Button auf der Karte */
#routesMap {
  position: relative;
}

/* Anker fürs Overlay */
.map-ctrl {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 1200;
  /* über Routes/Marker/Controls */
}

/* Route-Linien im Airline-Stil */
.route-line {
  filter: drop-shadow(0 0 4px rgba(14, 165, 233, .18));
}

/* Marker-Effekte */
.airport-marker {
  transition: filter .25s;
}

.airport-marker:hover {
  filter: drop-shadow(0 0 6px rgba(62, 193, 201, .8));
}

.hub-glow {
  filter: drop-shadow(0 0 10px rgba(62, 193, 201, .75));
}

.hub-badge {
  display: inline-block;
  margin-top: var(--sp-xs);
  padding: 2px var(--sp-s);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--brand-600);
  background: var(--brand-100);
  border: 1px solid var(--highlight);
  border-radius: var(--r-full);
}

.map-ctrl {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#routesMap {
  position: relative;
}

/* -------------------- Mobile polish -------------------- */
@media (max-width: 900px) {
  .brand {
    font-size: 18px;
    gap: 8px;
  }

  .nav-wrap {
    gap: 12px;
  }

  .navbar {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .navbar::-webkit-scrollbar {
    display: none;
  }

  .navbar a,
  .navbar .mega-trigger,
  .nav-actions .btn {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 12px;
  }

  .page {
    padding: 0 0 64px;
  }

  .hero {
    padding: 20px;
    border-radius: var(--r-16);
  }

  .card,
  .section-white {
    border-radius: var(--r-16);
  }

  .section-dark {
    border-radius: var(--r-16);
    padding: 24px 0;
  }

  .search-grid {
    gap: 12px;
  }

  label {
    margin-left: 2px;
  }

  .btn,
  .btn-ghost,
  input[type="text"],
  input[type="date"],
  select {
    height: 44px;
  }

  .btn.small {
    height: auto;
  }

  .input-wrap .swap {
    right: 6px;
  }
}

/* iOS/Firefox small form tweaks */
input[type="date"] {
  color-scheme: light;
}

select {
  background-color: var(--white);
}

/* ===== Mobile-Fix: Desktop-Navigation ausblenden, Hamburger zeigen ===== */
#navToggle,
.nav-toggle {
  display: none !important;
}

/* Nur auf Mobile/Tablet sichtbar machen */
@media (max-width: 900px) {

  #navToggle,
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  .nav-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0;
    background: var(--white);
    border-radius: 2px;
  }

  /* Desktop-Menüs im Mobile ausblenden */
  .navbar {
    display: none !important;
  }

  .nav-actions {
    display: none !important;
  }
}

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--header-h) + var(--safe-top));
  bottom: 0;
  background: var(--white);
  z-index: 1200;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-base), opacity var(--transition-base);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-inner {
  padding: 18px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-inner a,
.mobile-nav-inner .mega-trigger {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--r-base);
  background: #f8fafc;
  border: 1px solid var(--border);
  color: #0b1f24;
  font: inherit;
}

.mobile-nav-inner a:hover,
.mobile-nav-inner .mega-trigger:hover {
  background: #f1f5f9;
  color: var(--brand);
}

.mobile-nav-inner .btn {
  margin-top: 8px;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 19, 27, .28);
  backdrop-filter: blur(1px);
  z-index: 1100;
}

/* Optional: Hamburger-zu-X Animation
.nav-toggle.is-open .bar:nth-child(1){ transform:translateY(5px) rotate(45deg); }
.nav-toggle.is-open .bar:nth-child(2){ opacity:0; }
.nav-toggle.is-open .bar:nth-child(3){ transform:translateY(-5px) rotate(-45deg); }
*/

/* Ebenen sauber trennen: Header/Mega > Autocomplete > Pax-Popover > Rest */
.flight-card .field {
  position: relative;
}

.flight-card .ac-list {
  position: absolute;
  z-index: 6700;
}

#paxDialog.popover {
  position: absolute;
  z-index: 6600;
}

#paxField {
  position: relative;
  isolation: isolate;
  z-index: 500;
}

/* ==== GLOBALER HEADER-OFFSET – gilt für alle Seiten ====
   Wir geben dem BODY den Abstand – nicht einzelnen .page-Containern. */
:root {
  --header-gap: 20px;
}

/* ggf. 16–24px nach Geschmack */

body {
  padding-top: calc(var(--header-h) + var(--header-gap));
}

/* Opt-out: falls du für EINZELNE Seiten keinen Offset willst */
body[data-no-offset="1"] {
  padding-top: 0 !important;
}

/* Alte page-Offsets neutralisieren, damit es keine Doppelabstände gibt */
main.page,
.page {
  padding-top: 0 !important;
}

/* Falls im Admin die Sidebar sticky ist, bleibt ihr Bezug zur Headerhöhe korrekt */
.admin-sidebar {
  top: calc(var(--header-h) + 20px);
}

/* Sicherheitsnetz gegen unsichtbare Overlays */
.mega-backdrop[hidden],
.mobile-backdrop[hidden] {
  display: none !important;
}


/* ==========================================================================
   BOOKING FLOW — konsolidierte Styles (scoped unter .flow)
   Nutzt deine Variablen: --brand, --border, --ring, --shadow(-sm)
   ======================================================================= */

/* --- Grundlayout ------------------------------------------------------- */
.flow .grid.booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}

.flow .grid.booking>aside {
  order: 2;
}

@media (max-width: 980px) {
  .flow .grid.booking {
    grid-template-columns: 1fr;
  }
}

/* --- Stepper: .flow-steps --------------------------------------------- */
.flow .flow-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 18px;
}

.flow .flow-step {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
  padding: 10px var(--sp-base);
  border-radius: var(--r-full);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: var(--fw-bold);
  line-height: 1;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.flow .flow-step .dot {
  width: 10px;
  height: 10px;
  border-radius: var(--r-full);
  background: var(--muted-light);
}

.flow .flow-step.is-active {
  background: var(--brand);
  color: var(--white);
  border-color: transparent;
}

.flow .flow-step.is-active .dot {
  background: var(--white);
}

.flow .flow-step.is-done {
  background: var(--brand-100);
  color: var(--brand-600);
  border-color: var(--highlight);
}

.flow .flow-step.is-done .dot {
  background: var(--highlight);
}

/* Mobile: horizontales Scrollen, wenn’s eng wird */
@media (max-width: 800px) {
  .flow .flow-steps {
    grid-auto-flow: column;
    grid-template-columns: repeat(6, minmax(160px, 1fr));
    overflow-x: auto;
    scrollbar-width: none;
  }

  .flow .flow-steps::-webkit-scrollbar {
    display: none;
  }
}

/* --- Passagierkarte: .pax-card & .field ------------------------------- */
.flow .pax-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-large);
  padding: var(--sp-base);
  box-shadow: var(--shadow-sm);
}

.flow .pax-card .pax-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.flow .pax-card .pax-row:first-child {
  border-top: 0;
}

/* kompakter Feld-Grid */
.flow .pax-card .fields {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 12px;
}

@media (max-width: 900px) {
  .flow .pax-card .pax-row {
    grid-template-columns: 1fr;
  }

  .flow .pax-card .fields {
    grid-template-columns: 1fr;
  }
}

/* einheitliche Felder (select + input) */
.flow .pax-card .field,
.flow .pax-card select,
.flow .pax-card input {
  height: 48px;
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r-base);
  background: var(--white);
  padding: 0 var(--sp-base);
  outline: 0;
  transition: all var(--transition-fast);
  font: inherit;
}

.flow .pax-card .field:hover,
.flow .pax-card select:hover,
.flow .pax-card input:hover {
  background: #fcfeff;
}

.flow .pax-card .field:focus,
.flow .pax-card select:focus,
.flow .pax-card input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}

.flow .pax-card input::placeholder {
  color: #98a2b3;
}

/* schlanker Caret im Select (optional) */
.flow .pax-card select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #0aa 50%),
    linear-gradient(135deg, #0aa 50%, transparent 50%);
  background-position: right 14px top 19px, right 9px top 19px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

/* --- Sidebar (sticky) -------------------------------------------------- */
.flow aside.card {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-base));
  box-shadow: var(--shadow-lg);
}

.flow aside .row {
  display: flex;
  justify-content: space-between;
  margin: .25rem 0;
}

.flow .row.total {
  font-weight: 900;
  font-size: 18px;
}

/* Timeline kompakt */
.flow .timeline {
  position: relative;
  margin: 6px 0 10px;
  padding-left: 20px;
}

.flow .timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}

.flow .tl-title {
  font-weight: 700;
  margin: 0 0 8px;
}

.flow .tl-item {
  position: relative;
  margin: 12px 0;
  padding-left: 6px;
}

.flow .tl-item .dot {
  position: absolute;
  left: -1px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 91, 105, .12);
}

.flow .tl-route {
  font-weight: 700;
}

.flow .tl-row {
  margin-top: 2px;
}

.flow .tl-stop {
  margin: var(--sp-s) 0;
  padding: 8px var(--sp-m);
  border: 1px dashed var(--border);
  border-left-width: 3px;
  border-radius: var(--r-base);
  background: var(--bg);
}

.flow .tl-stop-title {
  font-weight: 700;
  color: var(--brand);
}

/* Sidebar-Sections (Details) */
.flow .sb-section {
  margin-top: 8px;
}

.flow .sb-section>summary {
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flow .sb-section>summary::marker {
  content: '';
}

/* Safari-List-Marker aus */

/* Perks-Liste (Leistungen) */
.flow .perks-list .row {
  display: flex;
  justify-content: space-between;
  margin: .25rem 0;
}

.flow .perks-list .muted {
  color: var(--muted);
}

/* --- Services-Accordion & Counter (– 0 +) ------------------------------ */
.flow .accordion {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-base);
  padding: 12px var(--sp-base);
  box-shadow: var(--shadow-sm);
  margin-top: var(--sp-m);
}

.flow .accordion .acc-head {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.flow .accordion .acc-body {
  display: none;
  margin-top: 10px;
}

.flow .accordion.open .acc-body {
  display: block;
}

.flow .svc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: .35rem 0;
}

.flow .qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}

.flow .qty .qty-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-weight: var(--fw-bold);
  line-height: 1;
}

.flow .qty .qty-btn:hover {
  background: #f6fafb;
}

.flow .qty .qty-val {
  min-width: 20px;
  display: inline-block;
  text-align: center;
  font-weight: 700;
}

/* --- Bottom Checkout Bar: .flow-bar ----------------------------------- */
.flow .flow-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5500;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px var(--sp-l) rgba(2, 19, 27, .08);
}

.flow .flow-bar .inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flow .flow-bar .left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow .flow-bar .right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.flow .flow-bar .total {
  font-weight: 900;
  font-size: 1.2rem;
}

.flow .flow-bar .btn.primary {
  height: 44px;
  padding: 0 var(--sp-lg, 18px);
  border-radius: var(--r-base);
  background: var(--brand);
  color: var(--white);
  border: 0;
}

.flow .flow-bar .btn.primary:hover {
  background: var(--brand-600);
}

/* Platz nach unten, damit Inhalte nicht verdeckt werden */
.flow .page,
.flow.page {
  padding-bottom: 96px;
}

/* --- kleine Feinschliffe ------------------------------------------------ */
.flow #price-fare,
.flow #tax-total {
  font-weight: 900;
}

.flow .muted {
  color: var(--muted);
}

.flow .flow-step.is-done {
  background: #e7f6f8;
  color: #064652;
  border-color: #d2eef1;
}

/* kleine runde Icon-Platzhalter vor Summary-Titeln */
.sb-section>summary .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: var(--r-full);
  background: var(--brand-100);
  color: var(--brand);
  margin-right: var(--sp-s);
}

.sb-section[open] .chevron {
  transform: rotate(180deg);
}

.sb-section summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-section summary .right {
  margin-left: auto;
}

.sb-section summary .chevron {
  margin-left: 8px;
  transition: transform .15s ease;
}

/* --- Sticky-Footer Layout --- */
html,
body {
  height: 100%;
}

body {
  min-height: 100svh;
  /* moderne Viewport-Unit */
  display: flex;
  flex-direction: column;
}

/* Dein <main class="page"> kommt aus header.php */
main.page {
  flex: 1 0 auto;
  /* nimmt den verfügbaren Platz */
}

/* Footer sitzt NACH dem Content und rutscht nur bei wenig Content nach unten */
.site-footer {
  margin-top: auto;
  /* <- magic */
}

/* --- Footer (kompakt, Eurostarling Farben) --- */
.site-footer {
  background: #064652;
  color: var(--white);
  padding-top: 28px;
  margin-top: auto;
  /* sticky am Ende */
  position: relative;
  z-index: 1;
  /* unter Flow-Bar, über Content */
}

.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  padding: 16px 0 22px;
}

.site-footer .signup {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-base);
  padding: 16px;
}

.site-footer .signup h4 {
  margin: 0 0 8px;
  font-weight: 700;
}

.site-footer .signup p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .85);
}

.site-footer .signup .row {
  display: flex;
  gap: 8px;
}

.site-footer .signup input[type="email"] {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
}

.site-footer .signup button {
  background: #00b5a5;
  color: #042b2b;
  font-weight: 700;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

.site-footer .footer-links {
  background: rgba(0, 0, 0, .06);
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 18px 0;
}

.site-footer .link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 18px 26px;
}

.site-footer .col h5 {
  margin: 0 0 10px;
  font-size: .95rem;
  opacity: .9;
}

.site-footer .col a {
  display: block;
  color: var(--white);
  opacity: .9;
  text-decoration: none;
  padding: 3px 0;
  font-size: .95rem;
}

.site-footer .col a:hover {
  text-decoration: underline;
}

.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-size: .9rem;
  color: rgba(255, 255, 255, .8);
}

.site-footer small {
  opacity: .9;
}

@media (max-width:960px) {
  .site-footer .footer-top {
    grid-template-columns: 1fr;
  }

  .site-footer .link-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width:560px) {
  .site-footer .link-grid {
    grid-template-columns: 1fr;
  }
}

/* Höhe wird per JS gemessen/gesetzt; Default-Werte bleiben als Fallback */
:root {
  --flowbar-h: 72px;
}

@media (max-width: 720px) {
  :root {
    --flowbar-h: 84px;
  }
}

/* 1) Content-Spacer vor dem Footer */
body:has(.flow-bar) main.page {
  padding-bottom: calc(var(--flowbar-h) + 24px) !important;
}

/* Fallback, wenn :has() fehlt */
body.has-flowbar main.page {
  padding-bottom: calc(var(--flowbar-h) + 24px) !important;
}

/* 2) Footer selbst gegen Überlappung schützen */
body:has(.flow-bar) .site-footer {
  padding-bottom: calc(var(--flowbar-h) + 16px) !important;
}

body.has-flowbar .site-footer {
  padding-bottom: calc(var(--flowbar-h) + 16px) !important;
}

/* Flow-Bar bleibt obenauf */
.flow-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5500;
}

/* --- Layout & Controls (leicht) --- */
.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px
}

@media(max-width:1080px) {
  .booking-grid {
    grid-template-columns: 1fr
  }
}

aside.card.sticky {
  position: sticky;
  top: 16px;
  align-self: start
}

.tab {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: var(--white);
  cursor: pointer
}

.tab.is-active {
  border-color: #0e6c63;
  color: #0e6c63
}

.tabpanel {
  display: none
}

.tabpanel.is-active {
  display: block
}

.chip {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: var(--white);
  margin-right: 6px
}

.chip.is-active {
  border-color: #0e6c63;
  color: #0e6c63
}

/* --- Sitzgrid-Basis --- */
.seatgrid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), 36px);
  gap: 8px;
  align-items: center
}

.seat,
.aisle {
  width: 36px;
  height: 36px;
  border-radius: var(--r-small);
  border: 1px solid #e3e3e3;
  background: #f6f7f8;
  position: relative
}

.aisle {
  background: transparent;
  border: none;
  pointer-events: none
}

.seat--preferred {
  box-shadow: inset 0 0 0 2px #2f6f54
}

.seat--xl {
  box-shadow: inset 0 0 0 2px #0a5c39
}

.seat--exit::after {
  content: "EXIT";
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #2c6
}

.seat.is-taken {
  background: #dfe3e8;
  color: #999
}

.seat.is-blocked {
  background: #eee;
  border-style: dashed
}

.seat.is-selected {
  outline: 3px solid #0e6c63;
  background: var(--white)
}

.seat[data-price]:hover::after {
  content: attr(data-price);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 40px;
  padding: 3px 6px;
  font-size: 12px;
  background: #000;
  color: var(--white);
  border-radius: 6px;
  white-space: nowrap
}

/* --- Label-Wrapper (Alignment FIX) --- */
.seatgrid-wrap {
  display: grid;
  grid-template-columns: 28px 1fr;
  /* linke Ecke genau so breit wie die Zahlen */
  column-gap: 10px;
  row-gap: 8px;
}

/* WICHTIG: Selbe Spaltendefinition wie im Body (per --cols) */
.collenlabels,
.collabels {
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), 36px);
  gap: 8px;
  align-items: center;
}

.collenlabels span,
.collabels span {
  display: inline-block;
  width: 36px;
  text-align: center;
  font-size: 12px;
  color: #64748b
}

.rowlabel {
  width: 28px;
  text-align: right;
  font-size: 12px;
  color: #64748b;
  align-self: center
}

/* Body: erste Spalte = Reihennummern, danach Sitzspalten (identisch zu Kopf) */
.seatgrid-body {
  display: grid;
  grid-template-columns: auto repeat(var(--cols, 6), 36px);
  gap: 8px;
}

.rowgap {
  grid-column: 1/-1;
  height: 12px
}

/* Bottom Flow Bar (optional) */
.flow-bar {
  position: sticky;
  bottom: 0;
  background: #ffffffcc;
  backdrop-filter: saturate(180%) blur(8px);
  border-top: 1px solid #e5e7eb;
  margin-top: 16px
}

.flow-bar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  padding-bottom: env(safe-area-inset-bottom, 10px);
  /* iPhone Fix */
}

/* Obsolete styles removed */


/* RESTORED MOBILE OPTIMIZATIONS */
@media (max-width: 600px) {

  /* Flight Card - Strict Vertical Stack for readability */
  .card.flight {
    padding: 16px;
  }

  .card.flight .flight-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .card.flight .flight-route,
  .card.flight .time-grid,
  .card.flight .price-cta {
    width: 100%;
  }

  /* Route: ensure full width */
  .card.flight .flight-route {
    margin-bottom: 4px;
  }

  /* Time: Space out start/end */
  .card.flight .time-grid {
    justify-content: space-between;
    gap: 0;
  }

  /* Price: Separate row, flex spaced */
  .card.flight .price-cta {
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
  }

  /* Reset grid specific overrides if any exist */
  .card.flight[data-idx] .flight-head {
    grid-template-columns: 1fr;
  }

  .fare-grid {
    grid-template-columns: 1fr;
    /* Stack fares vertical */
  }

  /* Bottom Bar Updates - Compact Mode */
  .flow-bar .inner {
    padding: 8px 0;
    /* reduce padding */
    gap: 8px;
  }

  /* Hide "Neue Suche" text, keep compact icon button */
  .flow-bar .left .btn {
    padding: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    justify-content: center;
  }

  .flow-bar .left .btn {
    font-size: 0;
    /* Hide text */
  }

  .flow-bar .left .btn i {
    font-size: 16px;
    margin: 0;
  }

  /* Compact Right Actions */
  .flow-bar .right {
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
  }

  /* Mini Cart: Stacked, flush right */
  #cart-mini {
    min-width: unset !important;
    font-size: 11px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }

  #cart-mini i {
    display: none;
  }

  /* Total Price: Prominent but inline */
  .flow-bar .total {
    font-size: 15px !important;
    margin-left: 4px;
  }

  /* Next Button: compact */
  #btn-next {
    padding: 0 14px;
    font-size: 14px;
    height: 42px;
  }

}

/* End Mobile Optimization */



.seat.is-taken {
  opacity: .45;
  cursor: not-allowed;
}

.seat.is-blocked {
  opacity: .25;
  cursor: not-allowed;
}

.seat.is-held {
  outline: 2px dashed #999;
  cursor: not-allowed;
}

.seat.is-held-mine {
  outline: 2px dashed #4b8;
}

.seat.is-selected {
  box-shadow: 0 0 0 3px #06f inset;
}


/* ==========================================================================
   MOBILE OPTIMIZATIONS (Booking Flow)
   ======================================================================= */

/* 1. Prevent iOS Zoom on inputs */
@media (max-width: 900px) {

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* 2. Stepper: Better scrolling & compact look */
@media (max-width: 800px) {
  .flow .flow-steps {
    display: flex;
    /* force flex for scroll */
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    /* space for scrollbar if any */
    scrollbar-width: none;
    /* hide scrollbar FF */
    margin: 0 -16px 12px;
    /* bleed to edges */
    padding: 0 16px 8px;
    /* inner padding */
    -webkit-overflow-scrolling: touch;
  }

  .flow .flow-steps::-webkit-scrollbar {
    display: none;
  }

  .flow .flow-step {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 8px 12px;
  }
}

/* 3. Layout: Stack Grid & Hide Sidebar by default */
@media (max-width: 1080px) {
  .flow .grid.booking {
    display: flex;
    flex-direction: column;
  }

  /* Sidebar visuell verstecken (wird per Overlay gezeigt), 
     aber im DOM lassen für JS-Zugriff */
  .flow .grid.booking>aside {
    display: none;
  }

  /* Falls wir es als Overlay einblenden: */
  .flow .grid.booking>aside.mobile-overlay-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 6000;
    overflow-y: auto;
    padding: 20px;
    background: rgba(2, 19, 27, 0.4);
    backdrop-filter: blur(4px);
    margin: 0 !important;
    border: 0;
    border-radius: 0;
  }

  /* Der eigentliche Content Wrapper im Overlay */
  .flow .grid.booking>aside.mobile-overlay-open>.card,
  .flow .grid.booking>aside.mobile-overlay-open>.timeline,
  .flow .grid.booking>aside.mobile-overlay-open>details,
  .flow .grid.booking>aside.mobile-overlay-open>.row {
    background: var(--white);
    position: relative;
    z-index: 6001;
    /* Wrapper? Wir nutzen hier trickreich die existierende Struktur */
  }

  /* BESSERER ANSATZ: Wir nutzen eine Utility-Klasse, die wir per JS togglen,
     und stylen das .mobile-summary-container, das wir via JS injecten. 
     Siehe JS-Plan. */
}

/* ==========================================================================
   BOOKING FLOW GRID (Standardized)
   ======================================================================= */
.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  /* narrowed sidebar slightly */
  gap: 24px;
  align-items: start;
}

@media (max-width: 1080px) {
  .booking-grid {
    grid-template-columns: 1fr;
  }
}

/* Helper for Steps 4/5 */
.grid.booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1080px) {
  .grid.booking {
    grid-template-columns: 1fr;
    /* Sidebar behavior handled via mobile-overlay logic if needed, 
       but primarily just stack or hide */
  }
}

/* Seatmap Scroll Fix */
.ss-seatmap {
  overflow-x: auto;
  overflow-y: hidden;
  /* Prevent double vertical scroll */
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  max-width: 100%;
}

.seatgrid-wrap {
  min-width: min-content;
  display: inline-block;
  /* allows it to sit inside scroll container */
}

/* Mobile Fares - ULTRA COMPACT */
@media (max-width: 600px) {
  .fare-pill {
    padding: 6px 10px;
    gap: 6px;
    min-height: 48px;
  }

  .fare-pill .fare-name {
    font-size: 13px;
    line-height: 1.2;
  }

  .fare-pill .fare-sub {
    font-size: 11px;
    display: none;
    /* Hide cabin subtext if really tight? Or keep small */
  }

  .fare-pill .fare-price {
    font-size: 14px;
  }
}

/* Back Button Text Visibility */
.flow-bar .left .btn {
  font-size: 14px !important;
  /* Force text size */
  width: auto !important;
  /* Allow width for text */
  padding: 0 16px !important;
  /* Restore padding */
  border-radius: 10px !important;
  /* Restore shape */
  justify-content: flex-start !important;
}

.flow-bar .left .btn i {
  margin-right: 6px;
}


/* 5. Mobile Summary Sheet (JS controlled) */
.mobile-summary-sheet {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mobile-summary-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-summary-sheet .sheet-content {
  background: var(--white);
  border-radius: 20px 20px 0 0;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.mobile-summary-sheet.is-open .sheet-content {
  transform: translateY(0);
}

.sheet-close-handle {
  width: 40px;
  height: 5px;
  background: #e2e8f0;
  border-radius: 99px;
  margin: 0 auto 16px;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.sheet-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.sheet-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  padding: 0 8px;
}

/* Make the bottom bar price clickable visually */
.flow-bar .total,
#cart-mini {
  cursor: pointer;
}

.flow-bar .total::after {
  content: ' \f077';
  /* fa-chevron-up */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8em;
  opacity: 0.5;
  margin-left: 6px;
}

/* 6. Ancillary Cart Badge Positioning (+) */
/* When the booking flow bar is present, move the floating badge up */
body.has-flowbar #anc-mini-badge {
  bottom: calc(var(--flowbar-h, 72px) + 24px) !important;
}

/* Ensure mobile nav has higher z-index than the badge */

.mobile-nav {
  z-index: 10000 !important;
}

/* ==========================================================================
   MOBILE & HOME OPTIMIZATIONS
   ======================================================================= */

/* 1. Footer Signup Form (Mobile Stack) */
@media (max-width: 600px) {
  .site-footer .signup .row {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer .signup button {
    width: 100%;
    margin-top: 8px;
  }
}

/* 2. Home Page (Migrated from home.php inline styles) */
/* Scoped under .es-home or .page if needed, but classes are unique enough */
.es-home {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: var(--ink, #1c2a2e);
}

.es-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(16px, 2vw, 24px);
}

.es-grid {
  display: grid;
  gap: clamp(12px, 1.2vw, 20px);
}


.es-card {
  background: var(--white);
  border: 1px solid var(--ring, #e1e8eb);
  border-radius: 20px;
  /* softer */
  box-shadow: 0 6px 24px rgba(10, 35, 50, .06);
  padding: 24px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}

.es-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--brand, #005B69);
}

.es-section {
  margin-top: 40px;
  /* more breathing room */
}

.es-section h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 20px;
  font-weight: 700;
  color: #0b1f24;
}



/* KPIs (Premium 'Va-Stats' Look) */
.es-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: var(--white);
  width: 100%;
  margin: 0 auto 40px;
  /* Reset negative margin if it interferes with alignment */
  padding: 24px 40px;
  border-radius: var(--r-large);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 10;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.es-kpi {
  display: block;
  text-align: center;
}

.es-kpi strong {
  display: block;
  font-size: 32px;
  color: var(--brand, #005B69);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.es-kpi div {
  font-size: 13px;
  color: var(--muted, #6a8b92);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* Props */
.es-props {
  grid-template-columns: repeat(3, 1fr);
}

.es-prop h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

/* Dests */
.es-dests {
  grid-template-columns: repeat(3, 1fr);
}

.es-dest {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #eef5f6;
}

.es-dest a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.es-dest img {
  aspect-ratio: 16/10;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.es-dest .label {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(0, 0, 0, .55);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

/* Fleet & Chips */
.es-fleet {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding-bottom: 6px;
}

.es-chip {
  border: 1px solid var(--ring, #e1e8eb);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--white);
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}

/* CTA */
.es-cta {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  align-items: center;
}

.es-cta .panel {
  background: linear-gradient(135deg, #0b6b79, #005B69);
  color: var(--white);
  border-radius: var(--r-large);
  padding: 22px;
}

.es-cta .panel a {
  display: inline-block;
  background: var(--white);
  color: #0b6b79;
  padding: 10px 14px;
  border-radius: var(--r-base);
  text-decoration: none;
  font-weight: 600;
}

.es-meta {
  color: #6a8b92;
  font-size: 13px;
}

/* Home Mobile Tweaks */
@media (max-width:920px) {
  .es-kpis {
    grid-template-columns: 1fr;
  }

  .es-props,
  .es-dests {
    grid-template-columns: 1fr 1fr;
  }

  .es-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width:640px) {

  .es-props,
  .es-dests {
    grid-template-columns: 1fr;
  }
}


/* 3. Flightwatch Block (Migrated from flightwatch_block.php) */
.fwb {
  --ring: #e5edf0;
  --ink: #102326;
  --muted: #6b8b92;
  --bg: #f6fafb;
  --brand: #005B69;
  --ok: #0f6f56;
}

.fwb .wrap {
  border: 1px solid var(--ring);
  border-radius: var(--r-large);
  background: var(--white);
  padding: 12px;
  box-shadow: 0 8px 28px rgba(12, 42, 56, .07);
}

.fwb h2 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fwb .meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.fwb .chip {
  border: 1px solid var(--ring);
  border-radius: 10px;
  padding: 4px 8px;
  background: var(--white);
}

.fwb .list {
  display: grid;
  gap: 6px;
}

/* Row Grid: Desktop defaults */
.fwb .row {
  display: grid;
  grid-template-columns: 1fr .8fr .8fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--ring);
  border-radius: 10px;
}

.fwb .row:hover {
  background: #f9fcfd;
}

.fwb .tag {
  display: inline-block;
  min-width: 30px;
  text-align: center;
  border: 1px solid var(--ring);
  border-radius: var(--r-small);
  padding: 2px 6px;
  font-size: 11px;
  background: var(--white);
  margin-right: 6px;
}

.fwb .num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.fwb .muted {
  color: var(--muted);
}

/* Progress Bar */
.fwb .bar {
  width: 100%;
  height: 8px;
  background: #eef3f5;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.fwb .bar>i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 0%);
  background: linear-gradient(90deg, #1aa37a, #0f6f56);
  border-radius: 999px;
}

.fwb .eta {
  justify-self: end;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: #16353b;
}

.fwb .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.fwb .link {
  font-size: 12px;
  color: var(--brand);
  text-decoration: none;
}

/* Flightwatch Mobile: Optimize Row Layout */
@media (max-width: 700px) {
  .fwb .row {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }

  /* On mobile: row 1: Flight info | ETA */

  /* row 2: Progress bar (full width) */
  .fwb .bar {
    grid-column: 1 / -1;
    margin-top: 4px;



    height: 6px;
  }
}

/* Premium Features (Alternating) */
.es-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 60px 0;
}

.es-feature img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  width: 100%;
  height: auto;
}

.es-feature h2 {
  margin-bottom: 16px;
  font-size: 32px;
  color: #1a2a30;
}

.es-feature p {
  font-size: 17px;
  line-height: 1.6;
  color: #4a5a60;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .es-feature {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .es-feature.al-r {
    direction: rtl;
  }

  .es-feature.al-r>* {
    direction: ltr;
  }
}

/* Section Backgrounds */
.section-light {
  background: #f8fafc;
  padding: 60px 0;
}

.section-white {
  background: var(--white);
  padding: 60px 0;
}

/* Premium CTA Box */
.es-cta-box {
  background: linear-gradient(135deg, var(--brand, #005B69) 0%, #004550 100%);
  border-radius: 32px;
  padding: 60px 24px;
  text-align: center;
  color: var(--white);
  margin: 60px 0;
  box-shadow: 0 20px 40px rgba(0, 91, 105, 0.15);
}

.es-cta-box h2 {
  color: var(--white);
  font-size: 32px;
  margin-bottom: 16px;
}

.es-cta-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.es-btn-white {
  background: var(--white);
  color: var(--brand, #005B69);
  border: none;
  padding: 14px 32px;
  font-size: 17px;
  font-weight: 700;
  border-radius: var(--r-base);
  text-decoration: none;
  display: inline-block;
  transition: transform .2s;
}


/* --- Emergency Fixes --- */

/* Fix for invisible footer links */
.site-footer a,
.site-footer .col a,
.site-footer .footer-bottom a {
  color: #ffffff !important;
  opacity: 0.9;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer .col a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* Fix for Section White padding/style */
.section-white {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 40px;
}

@media(max-width:700px) {
  .section-white {
    padding: 20px;
    border-radius: var(--r-large);
  }
}

/* Fix for legacy cards-3 if still used */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media(max-width:900px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
}


/* --- Global Page Hero (Unified Design) --- */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  max-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  margin-top: -24px;
  /* Pull up to navbar */
  border-radius: 0 0 32px 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  margin-bottom: 40px;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 20, 30, 0.3) 0%, rgba(0, 30, 40, 0.6) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  animation: fadeUp 0.8s ease forwards;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-hero p {
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0.95;
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
}

/* Redundant hero section and swiper styles removed to fix overlap in home.php */

/* Helper for overlapping content (like stats bars) */
.hero-overlap {
  margin-top: -80px;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   NEW SUMMARY BOX (TICKET STYLE) - Correctly Placed
   ======================================================================= */
.fare-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--r-large);
  padding: 16px 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  margin-top: 16px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.fs-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fs-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

/* Leg Card */
.fs-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fs-leg {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--brand);
  border-radius: var(--r-small);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fs-empty {
  opacity: 0.6;
  font-size: 13px;
  padding: 4px 0;
}

.fs-leg-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.fs-leg-route {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 2px 0 4px;
}

.fs-code {
  font-variant-numeric: tabular-nums;
}

.fs-arr {
  font-size: 12px;
  color: #94a3b8;
}

.fs-leg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #475569;
}

.fs-dot {
  color: #cbd5e1;
}

.fs-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 140px;
}

.fs-price {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.fs-total {
  font-size: 12px;
  color: #64748b;
  margin-bottom: -8px;
}

.fare-summary[hidden] {
  display: none !important;
}

/* ==========================================================================
   MOBILE FARES (Compact)
   ======================================================================= */
@media (max-width: 600px) {

  /* Compact Piles */
  .fare-grid {
    gap: 8px;
  }

  .fare-pill {
    padding: 8px 12px;
    gap: 10px;
  }

  .fare-pill .fare-name {
    font-size: 14px;
  }

  .fare-pill .fare-sub {
    font-size: 11px;
  }

  .fare-pill .fare-price {
    font-size: 15px;
  }

  /* Ticket Summary Mobile */
  .fare-summary {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .fs-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    margin-top: 4px;
  }

  .fs-total {
    margin-bottom: 0;
  }
}

/* ==========================================================================
   FLIGHT SEARCH RESULTS (Restored)
   ======================================================================= */
.result-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ... existing ... */

/* ==========================================================================
   SEARCH FORM STANDARDIZATION (Modern Airline Style)
   ======================================================================= */

/* General Field Layout - 2-ROW DESIGN */
.search-grid,
.search-grid * {
  box-shadow: none !important;
  /* Killer for all shadows in search box */
}

.search-grid {
  display: grid;
  /* Row 1: One big column for route. Row 2: 3 columns for dates/pax + 1 auto for button */
  grid-template-columns: 1fr 1fr 1.3fr auto;
  gap: 20px;
  align-items: flex-end;
}

/* Force Route Group to take entire first row */
.route-group {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  /* Space between Origin and Dest */
  position: relative;
  flex: 2 1 480px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  .search-grid {
    grid-template-columns: 1fr 1fr;
    /* 2 columns on tablet */
  }

  .route-group {
    grid-column: span 2;
  }

  #btn-search {
    grid-column: span 2;
    width: 100%;
  }
}

@media (max-width: 650px) {
  .search-grid {
    grid-template-columns: 1fr;
  }

  .route-group {
    grid-column: span 1;
    flex-direction: column;
    gap: 12px;
  }

  #btn-search {
    grid-column: span 1;
  }
}

/* Inputs & Selects - Uniform Height and Look */
.flight-card input[type="text"],
.flight-card input[type="date"],
.flight-card select,
.flight-card .val {
  height: 56px;
  /* Taller, modern touch */
  padding: 0 16px;
  /* If floating label used: padding-top: 18px; padding-bottom: 2px; */
  border: 1px solid #e2e8f0;
  border-radius: var(--r-small);
  font-size: 16px;
  color: #0f172a;
  background-color: var(--white);
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
  display: flex;
  align-items: center;
}

/* Align Date Picker Icon to Right - Restored Visibility */
.flight-card input[type="date"]::-webkit-calendar-picker-indicator {
  /* Using default display but ensuring alignment */
  margin-left: auto;
  cursor: pointer;
  opacity: 0.6;
  filter: invert(0.4);
  /* Ensure enough contrast if it's white-on-white */
}

.flight-card input[type="date"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}

.flight-card input:focus,
.flight-card select:focus,
.flight-card .val:focus-within {
  outline: none;
  border-color: #0ea5e9;
  /* box-shadow: 0 0 0 3px rgba(14, 165, 233, .1); */
}

.flight-card label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #64748b;
  margin-bottom: 8px;
}

/* Define the form container itself */
.flight-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--r-large);
  border: 1px solid #e2e8f0;
  box-shadow: none !important;
  overflow: visible !important;
  /* Prevent popup clipping */
  position: relative;
  z-index: 510;
  /* Higher than hero base */
}

/* If it's inside hero, we give it a premium flat glass look */
.hero .flight-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: none !important;
  /* Fixed: removed shadow */
}

/* Route Group Specifics (Connected look or specialized) */
.route-group .field {
  flex: 1;
  position: relative;
}

/* Swap Button - The Missing Icon Fix */
.swap-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #e2e8f0;
  color: #0f172a;
  display: flex;
  /* Ensures icon is centered */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  /* Ensure above all fields */
  position: absolute;
  left: 50%;
  top: 32px;
  /* Accessibly positioned relative to inputs */
  transform: translateX(-50%);
  box-shadow: none !important;
  /* Force shadow removal */
  transition: all .2s ease;
  background: var(--white);
}

.swap-btn:hover {
  background: #f8fafc;
  transform: translateX(-50%) scale(1.1);
  color: #0ea5e9;
  border-color: #cbd5e1;
}

/* Ensure FontAwesome icon is visible and sized */
.swap-btn i,
.swap-btn svg {
  display: inline-block;
  font-size: 14px;
  pointer-events: none;
  font-style: normal;
  color: inherit;
  visibility: visible;
  opacity: 1;
}

@media (max-width: 768px) {
  .swap-btn {
    position: static;
    transform: none;
    /* Reset transform */
    margin: -6px auto;
    /* Pull it up slightly between inputs */
    transform: rotate(90deg);
    /* Rotate for vertical layout */
  }

  .swap-btn:hover {
    transform: rotate(90deg) scale(1.1);
  }
}

/* Passenger Selector - Alignment Fix */
/* Passenger Selector - Explicit Border */
.pax-selector {
  flex: 1 1 200px;
  position: relative;
  overflow: visible !important;
  /* Ensure popup isn't clipped */
  z-index: 1000;
  /* Highest priority in the form */
}

.pax-selector .val {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Space between text and icon */
  cursor: pointer;
  border: 1px solid #e2e8f0;
  /* Explicit border request */
  border-radius: var(--r-small);
  background-color: var(--white);
  height: 56px;
  /* Match inputs */
  padding: 0 16px;
  transition: all 0.2s;
}

.pax-selector .val:hover {
  border-color: #cbd5e1;
}

.pax-selector .val span {
  font-weight: 500;
}

/* Passenger Popout Styling */
#paxDialog {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  /* Or width: max-content */
  min-width: 280px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--r-base);
  padding: 16px;
  /* box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); */
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2), 0 10px 15px -5px rgba(0, 0, 0, 0.1);
  /* Restore light shadow for popups only */
  z-index: 2000;
  /* High z-index to avoid clipping */
  animation: slideDown .15s ease-out;
  overflow: visible;
  /* Ensure content isn't clipped */
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#paxDialog[hidden] {
  display: none;
}

#paxDialog .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

#paxDialog .row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#paxDialog .qty {
  display: flex;
  align-items: center;
  gap: 12px;
}

#paxDialog .qty button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  /* Modern circle buttons */
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}

#paxDialog .qty button:hover {
  background: var(--white);
  border-color: #cbd5e1;
  color: #0ea5e9;
}

#paxDialog .qty output {
  width: 20px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Search Button */
/* Search Button */
#btn-search {
  height: 60px;
  /* Taller */
  min-width: 220px;
  /* Wider and more prominent */
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: var(--r-base);
  /* Modern rounding */
  background: var(--brand);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25) !important;
  /* Subtle colored shadow for 'pop' */
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

#btn-search:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35) !important;
}

#btn-search:active {
  transform: translateY(1px);
  box-shadow: none !important;
}



.card.flight {
  background: var(--white);
  border: 1px solid var(--border, #e6eef0);
  border-radius: var(--r-large);
  padding: 16px 16px 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.flight-head {
  display: grid;
  grid-template-columns: 1.25fr 1fr .6fr;
  gap: 18px;
  align-items: center;
}

/* Desktop Default */

.flight-route {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.badge-air {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--white);
  background: #075a5a;
}

.badge-air.ESG {
  background: #075a5a;
}

.badge-air.BHP {
  background: #b01a1a;
}

.route-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.route-line a {
  color: inherit;
  text-decoration: none;
}

.route-line a:hover {
  text-decoration: underline;
}

.route-meta {
  font-size: .9rem;
  color: var(--muted, #6b7280);
}

.time-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.time-big {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.05;
}

.time-sub {
  font-size: .86rem;
  color: var(--muted, #6b7280);
  margin-top: 4px;
}

.nowrap {
  white-space: nowrap;
}

.price-cta {
  text-align: right;
}

.price-cta .lead {
  font-weight: 800;
  font-size: 1.2rem;
}

.price-cta .sub {
  font-size: .85rem;
  color: var(--muted, #6b7280);
}

.price-cta .meta {
  font-size: .8rem;
  color: #94a3b8;
  margin-top: 2px;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .82rem;
  color: #334155;
}

/* Fare Grid - Desktop */
.fare-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

@media (max-width:960px) {
  .fare-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

/* Mobile Fare Grid Stack is already in styles.css via previous edits, but ensuring coverage */
/* (The previous edit added specialized mobile rules, these are the base ones) */

.fare-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: var(--r-base);
  padding: 10px 12px;
  cursor: pointer;
  transition: all .15s ease;
}

.fare-pill:hover {
  background: var(--white);
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(2, 6, 23, .06);
}

.fare-pill.selected {
  outline: 2px solid #0ea5a8;
  background: #ecfeff;
  border-color: #99f6e4;
}

.fare-pill.disabled {
  opacity: .45;
  pointer-events: none;
  filter: grayscale(.15);
}

.fare-name {
  font-weight: 600;
}

.fare-sub {
  font-size: .8rem;
  color: #64748b;
}

.fare-price {
  font-weight: 800;
}

.fare-adv {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .1rem .45rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  background: #0a7a5a;
  color: var(--white);
  margin-left: .35rem;
  white-space: nowrap;
}

.stop-badge {
  display: inline-block;
  margin: 6px 0;
  padding: 4px 8px;
  border: 1px dashed var(--border, #cbd5e1);
  border-left: 3px solid var(--brand, #00b5a5);
  border-radius: var(--r-small);
  background: #fbfdff;
  color: #064652;
  font-size: .8rem;
}

.seg-list {
  margin-top: 6px;
}

.seg-row {
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}

.seg-row small {
  display: block;
  color: #888;
}

.fs-adv {
  display: inline-block;
  margin-left: 6px;
  padding: 0 .45rem;
  border-radius: 999px;
  background: #0a7a5a;
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.6;
}

/* Step Guide */
.step-guide {
  background: #ecfeff;
  border: 1px solid #cfFAFE;
  color: #0e7490;
  padding: 12px 16px;
  border-radius: var(--r-base);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================================
   GLOBAL REFINEMENTS (Booking Flow & Dashboard)
   ========================================================================= */

/* Modern Card Style (replaces generic shadow) */
.card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  /* Subtle border is more modern than just shadow */
  border-radius: var(--r-large);
  /* Match ticket-card */
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  padding: 24px;
  margin-bottom: 24px;
}

.card h3 {
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.3px;
  margin-top: 0;
  margin-bottom: 16px;
}

/* Booking Grid Layout */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  /* Wider sidebar */
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .booking-grid {
    grid-template-columns: 1fr;
  }
}

/* Sidebar Summary Card */
aside .card {
  position: sticky;
  top: 100px;
  /* Below header */
  border-top: 4px solid var(--brand);
  /* Accent bar */
  background: #f8fafc;
}

aside .card h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

/* Form Fields in Booking Flow */
/* Form Fields in Booking Flow */
.pax-row {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--r-base);
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.pax-row:focus-within {
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
  transform: translateY(-1px);
}

.pax-row h4 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pax-row .fields {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .pax-row .fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

select.field,
input.field {
  border: 1px solid #cbd5e1;
  border-radius: var(--r-small);
  padding: 12px 14px;
  background: var(--white);
  font-size: 15px;
  width: 100%;
  color: #0f172a;
  transition: border-color .15s, box-shadow .15s;
}

select.field:focus,
input.field:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

/* Service Accordions */
details.sb-section {
  border-bottom: 1px solid #f1f5f9;
}

details.sb-section:last-of-type {
  border-bottom: none;
}

details.sb-section summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  cursor: pointer;
  font-weight: 600;
  color: #334155;
  transition: color 0.15s;
}

details.sb-section summary:hover {
  color: var(--brand);
}

details.sb-section summary::-webkit-details-marker {
  display: none;
}

details.sb-section[open] summary {
  border-bottom: none;
  margin-bottom: 0;
  color: var(--brand-700);
}

details.sb-section .content {
  padding-bottom: 16px;
}

/* Flight Summary in Sidebar */
.tl-item {
  padding-left: 24px;
  /* More space for the line */
  position: relative;
  /* Use a pseudo-element for the line to avoid layout shifts */
}

/* The vertical line */
.tl-item::before {
  content: '';
  position: absolute;
  left: 7px;
  /* Center of 16px dot is 8px. Line width 2px -> left: 7px */
  top: 6px;
  bottom: -6px;
  width: 2px;
  background: #e2e8f0;
}

.tl-item:last-child::before {
  display: none;
}

/* The dot */
.tl-item .dot {
  position: absolute;
  left: 0;
  top: 6px;
  /* Align with first line text height approx */
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid #cbd5e1;
  /* Thicker border looks like a donut */
  z-index: 2;
}

.tl-item:first-child .dot {
  border-color: var(--brand);
  /* Start dot is brand colored */
}

.tl-item:last-child .dot {
  border-color: #0f172a;
  /* End dot is dark */
  background: #0f172a;
  /* Filled */
}

/* Ensure leg content respects padding */
.tl-leg {
  display: block;
  position: relative;
  z-index: 1;
}

.tl-route {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.3;
}

.tl-row {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 4px;
  line-height: 1.4;
}

/* New Flight Number Style in Summary */
.fs-fn {
  font-weight: 700;
  color: var(--brand-700);
  letter-spacing: 0.5px;
}


/* =========================================================================
   TICKET CARD SYSTEM (Unified 'Real World' Airline Look)
   Used by: Confirmation Page, Search Results, Booking Flow
   ========================================================================= */

.ticket-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--r-large);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.ticket-card:hover {
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
  /* Lift effect */
  transform: translateY(-2px);
  z-index: 10;
}

/* Header strip (Date, Duration, Airline) */
.ticket-header {
  background: linear-gradient(to right, #f8fafc, #fff);
  padding: 12px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ticket-header i {
  margin-right: 6px;
  color: #94a3b8;
}

/* Body Layout (Origin - Path - Dest) */
.ticket-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.2fr;
  /* Balanced columns */
  gap: 32px;
  align-items: center;
}

/* Typography for locations/times */
.flight-airport {
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.flight-city {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.flight-time {
  font-size: 22px;
  font-weight: 600;
  color: #334155;
}

.flight-date {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Flight Path Visualization */
.flight-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  position: relative;
  width: 100%;
  min-height: 56px;
}

.flight-path i.icon-plane,
.flight-path i.fa-plane {
  color: var(--brand);
  font-size: 18px;
  z-index: 2;
  background: var(--white);
  padding: 0 12px;
  transform: rotate(0deg);
  /* Standard */
}

.flight-line {
  height: 2px;
  background: #e2e8f0;
  width: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.flight-line::after,
.flight-line::before {
  content: '';
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: var(--white);
}

.flight-line::after {
  right: 0;
}

.flight-line::before {
  left: 0;
}

.flight-meta {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-top: 12px;
  background: var(--white);
  padding: 4px 12px;
  z-index: 2;
  border: 1px solid #e2e8f0;
  border-radius: 99px;
  /* Pill shape */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Footer (Operated by, Aircraft) */
.ticket-footer {
  padding: 12px 24px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 193, 7, 0.12);
  color: #a17a00;
  border: 1px solid rgba(255, 193, 7, 0.25);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.2s;
  cursor: help;
}

.event-badge-pill:hover {
  background: rgba(255, 193, 7, 0.2);
  transform: translateY(-1px);
}

.event-badge-pill i {
  color: #d97706;
}

/* Fare Grid within Ticket (for search results) */
.ticket-fares {
  padding: 20px 24px 24px;
  background: var(--white);
  border-top: 1px dashed #e2e8f0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 4 columns for pills */
  gap: 12px;
}

@media (max-width: 900px) {
  .ticket-fares {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ticket-fares {
    grid-template-columns: 1fr;
  }
}

.fare-pill {
  width: 100%;
  margin: 0;
  justify-content: space-between;
}

/* Responsive Ticket */
@media (max-width: 768px) {
  .ticket-body {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    text-align: center;
  }

  .flight-path {
    display: none;
  }

  /* Hide complex path on mobile */
  .flight-right {
    text-align: center !important;
  }

  .ticket-card .ticket-fares {
    justify-content: center;
  }
}

/* =========================================================================
   FLIGHTWATCH PREMIUM STYLES
   ========================================================================= */

/* Main Container & Stats */
.fw {
  --ring: #e5edf0;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
  --brand: var(--brand);
  --ok: #10b981;
  font-family: var(--font-family);
}

.fw .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 40px;
}

.fw h1 {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.fw .meta {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fw .meta .chip {
  background: var(--white);
  border: 1px solid #e2e8f0;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}

.fw .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.fw .st {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--r-large);
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s;
}

.fw .st:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.fw .st h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.fw .st p {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

/* Flightwatch Card (Table Container) */
.fw .card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  /* Reset generic card padding */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Header */
.fw header.card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  background: var(--white);
}

.fw header.card-h h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

/* Legend */
.fw .legend {
  display: flex;
  gap: 16px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

/* Table List Layout */
.fw .list {
  padding: 0;
  margin: 0;
  display: block;
}

/* Grid Row Definition */
.fw .row {
  display: grid;
  /* Flight | Route | Dep | Arr | Progress | Remaining */
  grid-template-columns: 1fr 1.5fr 0.8fr 0.8fr 1.2fr 0.8fr;
  gap: 16px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f1f5f9;
  background: var(--white);
  transition: background 0.1s;
}

.fw .row:last-child {
  border-bottom: none;
}

.fw .row:hover {
  background: #f8fafc;
}

/* Header Row */
.fw .row.th {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 24px;
}

/* Override generic card styling for just this row if needed */
.fw .card .row.th {
  margin: 0;
}

/* Cell Styles */
.fw .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white) !important;
  /* Force white text */
  background: #005B69 !important;
  /* Force brand teal background */
  border-radius: 6px;
  padding: 4px 10px;
  /* detailed padding */
  font-size: 12px;
  margin-right: 8px;
  min-width: 48px;
  letter-spacing: 0.5px;
}

.fw .num {
  font-weight: 700;
  color: #0f172a;
  font-family: monospace;
  font-size: 14px;
}

.fw a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
}

.fw a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.fw .time {
  font-variant-numeric: tabular-nums;
  color: #334155;
  font-weight: 500;
  font-size: 14px;
}

/* Progress Bar Container */
.fw .bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.fw .bar>i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--w, 0%);
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 99px;
  transition: width 1s linear;
}

/* Status Pill (Remaining Time) */
.fw .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: #ecfdf5;
  color: #059669;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid #d1fae5;
  white-space: nowrap;
}

/* Empty State */
.fw .empty {
  padding: 40px;
  text-align: center;
  color: #94a3b8;
  font-style: italic;
}

/* Responsive Flightwatch */
@media (max-width: 1024px) {
  .fw .stats {
    grid-template-columns: 1fr 1fr;
  }

  .fw .row,
  .fw .row.th {
    grid-template-columns: 1fr 1.5fr 1fr 1fr;
  }

  .fw .c-hide-sm {
    display: none;
  }

  /* Hide Columns marked for hide-sm */
}

@media (max-width: 640px) {
  .fw .stats {
    grid-template-columns: 1fr;
  }

  .fw .row,
  .fw .row.th {
    grid-template-columns: 1.2fr 1fr;
    gap: 8px;
    padding: 16px;
    font-size: 13px;
  }

  .fw .c-hide-xs {
    display: none;
  }

  /* Hide Dep/Arr times */
  .fw .row>div {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ==========================================================================
   HOMEPAGE MODERN OPTIMIZATIONS
   ======================================================================= */

/* Search Overlay & Floating Form */
.search-overlay-wrap {
  position: relative;
  z-index: 600;
  margin-top: -80px;
  /* Overlap the hero! */
}

@media (max-width: 768px) {
  .search-overlay-wrap {
    margin-top: 0;
    padding-top: 20px;
  }
}

.search-container-box {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 43, 54, 0.12);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.quick-nav-tabs {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f6;
}

.quick-nav-tabs button {
  flex: 1;
  padding: 16px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  border-right: 1px solid #eef2f6;
}

.quick-nav-tabs button:last-child {
  border-right: none;
}

.quick-nav-tabs button i {
  font-size: 16px;
  opacity: 0.7;
}

.quick-nav-tabs button.active {
  background: var(--white);
  color: var(--brand);
}

.quick-nav-tabs button.active i {
  color: var(--brand);
  opacity: 1;
}

.quick-nav-tabs button:hover:not(.active) {
  background: #f1f5f9;
}

/* Search Header Row */
.search-header-row {
  padding: 24px 32px 0;
}

.flight-card {
  padding: 0 32px 32px !important;
  border: none !important;
  box-shadow: none !important;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: flex-end;
}

@media (max-width: 1100px) {
  .search-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-btn-cell {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .search-grid {
    grid-template-columns: 1fr;
  }

  .search-btn-cell .btn {
    border-radius: var(--r-base);
    font-weight: 700;
    height: 52px;
  }

  .search-input-group input,
  .search-input-group select {
    border-radius: var(--r-base);
  }

}

/* KPI Circles */
.es-kpi .ico-circle {
  width: 56px;
  height: 56px;
  background: #f0f7f8;
  color: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(0, 91, 105, 0.1);
}

/* About & Newsletter */
.about-box {
  margin-top: 60px;
  margin-bottom: 60px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

.newsletter-signup {
  background: #f8fafc;
  padding: 32px;
  border-radius: var(--r-large);
  border: 1px solid #e2e8f0;
}

.newsletter-signup h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.newsletter-signup p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 20px;
}

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

.input-group input {
  flex: 1;
  height: 48px;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}



/* --- Modern Info Ticker (Boxed V2) --- */
.info-ticker-boxed {
  background: var(--white);
  padding: 12px 20px;
  font-size: 13px;
  color: #1e293b;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ticker-label {
  font-weight: 700;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding-right: 15px;
  border-right: 2px solid #e2e8f0;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
}

.ticker-items {
  display: flex;
  gap: 40px;
  white-space: nowrap;
}

.ticker-item a {
  color: var(--brand);
  text-decoration: underline;
  margin-left: 5px;
}

/* CSS Ticker animation removed in favor of dynamic JS scrolling */

/* --- Hero Transition Mask --- */
/* Hero section styles defined above */

.hero-bottom-mask {
  display: none;
  /* Removed as overlap is gone */
}

/* --- Search Overlay Refinement --- */
.search-overlay-wrap {
  position: relative;
  z-index: 600;
  margin-top: 40px;
  margin-left: -16px;
  margin-right: -16px;
}

.search-container-box {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 43, 54, 0.15);
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- Premium Destinations V2 --- */
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 12px;
  color: var(--brand);
  margin-bottom: 8px;
  opacity: 0.8;
}

.section-title {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
}

.text-link {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}

.text-link:hover {
  gap: 12px;
}

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

.dest-card-v2 {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid #f1f5f9;
}

.dest-card-v2:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--brand);
}

.dest-card-v2 .image-box {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.dest-card-v2 .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.dest-card-v2:hover .image-box img {
  transform: scale(1.1);
}

.dest-card-v2 .image-box .badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dest-card-v2 .content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dest-card-v2 .main-info {
  flex: 1;
  /* Pushes pricing to the bottom */
  margin-bottom: 20px;
}

.dest-card-v2 h3 {
  margin: 0 0 5px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.dest-card-v2 p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

.dest-card-v2 .pricing {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  /* Prevent overlap on narrow cards */
}

.dest-card-v2 .pricing .price-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 100px;
  /* Slightly more room */
}

.btn-book-mini {
  flex-shrink: 0;
  /* Never shrink the button */
  background: var(--brand);
  color: var(--white);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--r-base);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
}


.dest-card-v2 .pricing .from {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
}

.dest-card-v2 .pricing .price-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
}



.btn-book-mini:hover {
  background: #004a56;
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .dest-premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dest-premium-grid {
    grid-template-columns: 1fr;
  }
}

/* Additional Premium Touches */
.hero-content h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-size: 20px;
  max-width: 600px;
}


.section-light {
  padding: 60px 0;
}

.es-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-grid h2 {
  margin-top: 0;
  font-size: 36px;
}

/* Ticket Footer */
.ticket-footer {
  background: #f8fafc;
  padding: 10px 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
  border-radius: 0 0 16px 16px;
}

/* Pax Row */
.pax-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  transition: background 0.2s;
}

.pax-row:hover {
  background: #fdfdfd;
}

/* Booking Summary Card */
.ticket-card.booking-summary {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ticket-card.booking-summary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
}

/* PNR Capsule */
.pnr-capsule {
  font-size: 1.1rem;
  color: #64748b;
  margin-top: 16px;
  letter-spacing: 0.5px;
  background: var(--white);
  display: inline-block;
  padding: 8px 24px;
  border-radius: 99px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.pnr-capsule strong {
  color: #0f172a;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-left: 8px;
  font-family: monospace;
}

/* ==========================================================================
   DASHBOARD & MANAGE LAYOUT
   ======================================================================= */
.manage-dashboard {
  padding: 40px 20px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  font-family: var(--font-family, sans-serif);
}

.dash-hero {
  background: linear-gradient(135deg, #00363d 0%, var(--brand) 100%);
  color: var(--white);
  padding: 60px 40px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 20px 40px -10px rgba(0, 54, 61, 0.3);
}

.dash-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.dash-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.dash-subtitle {
  font-size: 18px;
  opacity: 0.8;
  font-weight: 400;
  line-height: 1.5;
  margin: 0
}

.dash-hero-icon {
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-size: 240px;
  opacity: 0.05;
  transform: rotate(-15deg);
  pointer-events: none;
  color: var(--white);
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 950px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

/* Left Column */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.dash-sep {
  height: 1px;
  background: #e2e8f0;
  margin: 40px 0;
}

.add-booking-box {
  background: var(--white);
  border: 1px solid #e2e8f0;
  padding: 24px;
  border-radius: var(--r-large);
  margin-top: 0px;
  /* if separated */
}

.box-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #0f172a;
}

.grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--r-small);
  font-size: 15px;
  background: var(--white);
  transition: all .2s;
  height: 48px;
  box-sizing: border-box;
}

.input:focus {
  border-color: #0f172a;
  outline: none;
}

.form-actions .btn {
  height: 48px;
  padding: 0 24px;
  font-weight: 600;
  font-size: 15px;
}

@media (max-width: 650px) {
  .grid-form {
    grid-template-columns: 1fr;
  }
}

/* Sidebar */
.dash-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--r-large);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.dash-card h4 {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
}

.avatar-circle {
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden
}

.profile-info strong {
  font-size: 15px;
  color: #0f172a;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden
}

.badge-member {
  display: inline-flex;
  background: #e9f5f6;
  color: #005B69;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  width: fit-content;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-small);
  color: #475569;
  font-weight: 500;
  transition: all .2s;
  font-size: 14px;
  text-decoration: none !important;
}

.dash-nav a:hover {
  background: #f8fafc;
  color: #0f172a;
}

.dash-nav a.text-danger {
  color: #ef4444;
}

.dash-nav a.text-danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

.promo-card {
  background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
}

.promo-card p {
  font-size: 14px;
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Booking Summary Card Specifics */
.booking-summary .ticket-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.summary-route {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.loc-group {
  text-align: center;
}

.loc-code {
  display: block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
  letter-spacing: -1px;
}

.loc-time {
  display: block;
  font-size: 14px;
  color: #64748b;
  margin-top: 4px;
}

.route-line {
  flex: 1;
  margin: 0 24px;
  height: 2px;
  background: #e2e8f0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.route-line i {
  background: var(--white);
  padding: 0 8px;
  color: #cbd5e1;
  font-size: 14px;
}

.summary-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 12px 24px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  font-weight: 600;
}

/* Manage Header & Cards */
.manage-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 16px;
}

.manage-top-bar h2 {
  margin: 0;
  font-size: 24px;
}

.user-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.curr-user {
  font-size: 14px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  background: #f8fafc;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid #e2e8f0;
}

.icon-only {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  color: #0f172a;
}

.icon-only:hover {
  background: #f1f5f9;
}

.cards {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   CHECK-IN MODULE STYLES (Consolidated)
   ======================================================================= */
.checkin-dash {
  max-width: 800px;
  margin: 0 auto;
}

.segment-card {
  border: 1px solid var(--border);
  border-radius: var(--r-small);
  padding: 16px;
  margin-bottom: 16px;
  background: var(--white);
}

.pax-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.pax-row:last-child {
  border-bottom: none;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: bold;
}

.status-OPEN {
  background: var(--brand-100);
  color: var(--brand-600);
}

.status-CHECKED_IN {
  background: var(--ok-bg);
  color: var(--ok);
}

.status-NOT_OPEN {
  background: var(--bg);
  color: var(--muted);
}

.status-CLOSED {
  background: var(--err-bg);
  color: var(--err);
}

/* Seatmap Modal */
.seatmap-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 7000;
}

.seatmap-content {
  background: var(--white);
  width: 90%;
  max-width: 500px;
  height: 80vh;
  border-radius: var(--r-small);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.seatmap-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-base);
  background: var(--bg);
}

.seatmap-grid {
  display: grid;
  gap: 8px;
  justify-content: center;
}

.seat-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs, 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--white);
  font-weight: var(--fw-bold);
}

.seat-btn.occupied {
  background: var(--bg);
  color: var(--muted-light);
  cursor: not-allowed;
  border-color: transparent;
}

.seat-btn.selected {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand-600);
}

.seat-btn.mine {
  background: var(--ok);
  color: var(--white);
}

.seatmap-header {
  padding: var(--sp-base);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Missing Utility Classes */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn.lg {
  padding: var(--sp-m) var(--sp-l);
  font-size: var(--fs-base);
  height: 52px;
}

.btn.outline {
  background: transparent;
  border: 1px solid var(--border);
}

.btn.outline:hover {
  background: var(--bg);
}

@media (max-width: 600px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   HOME & SEARCH OPTIMIZATIONS
   ======================================================================= */
.intro-text-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.intro-label {
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
}

.intro-title {
  font-size: var(--fs-32);
  color: var(--black);
  margin-top: var(--sp-s);
  margin-bottom: var(--sp-m);
}

.intro-sub {
  color: #6a8b92;
  font-size: 18px;
  margin: 0;
}

.text-right {
  text-align: right;
}

.margin-top-80 {
  margin-top: 80px;
}

.margin-top-60 {
  margin-top: 60px;
}

.margin-top-40 {
  margin-top: 40px;
}

.search-btn-large {
  height: 56px !important;
  font-size: 18px !important;
}

.search-field-end {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
}

/* Popover tweaks */
.popover-offset {
  top: calc(100% + 8px);
}

.chevron-right {
  float: right;
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
}

/* Feature list */
.feature-list {
  color: #4a5a60;
  line-height: 1.6;
}

/* ==========================================================================
   LOGIN / AUTH PAGE
   ======================================================================= */
.login-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: var(--font-family);
}

.login-split {
  display: flex;
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 600px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.login-visual {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.visual-overlay {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
  padding: var(--sp-xxl);
  color: var(--white);
}

.visual-text h1 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.visual-text p {
  margin: 0;
  font-size: 18px;
  opacity: 0.9;
  line-height: 1.5;
}

.login-form-side {
  flex: 0 0 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-xxl);
}

.login-box {
  width: 100%;
  max-width: 360px;
}

.login-header {
  margin-bottom: 32px;
  text-align: center;
}

.login-header h2 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--text);
  margin: 0 0 var(--sp-s);
}

.login-header p {
  color: var(--muted);
  margin: 0;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* .form-group label handled by generic label */
/* .input handled by generic input */
.login-meta {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

@media (max-width: 900px) {
  .login-split {
    flex-direction: column;
  }

  .login-visual {
    min-height: 200px;
    flex: none;
  }

  .login-form-side {
    flex: auto;
    padding: 40px 20px;
  }
}

/* ==========================================================================
   USER ACCOUNT & DASHBOARD
   ======================================================================= */

/* --- Dashboard --- */
.only-first h3,
.only-first h3.section-title {
  display: none !important;
}

.only-first section:not(:first-child) {
  display: none !important;
}

.only-first #bk-upcoming {
  display: block !important;
}

.only-first #bk-upcoming .ticket-card:not(:first-child) {
  display: none !important;
}

.only-first section {
  margin: 0 !important;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.action-card {
  text-align: center;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-base);
  height: 100%;
  transition: all var(--transition-base);
  cursor: pointer;
  min-height: 160px;
  color: var(--text);
  padding: var(--sp-xl);
}

.action-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.icon-circle {
  width: 56px;
  height: 56px;
  background: var(--brand-100);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: var(--fs-2xl);
  transition: all var(--transition-base);
}

.action-card:hover .icon-circle {
  background: var(--brand);
  color: var(--white);
}

.action-label {
  font-weight: 600;
  font-size: 15px;
  color: #0f172a;
}

.status-bar-container {
  background: var(--bg);
  height: 8px;
  border-radius: var(--r-small);
  overflow: hidden;
  margin-bottom: var(--sp-s);
}

.status-bar-fill {
  background: var(--brand);
  height: 100%;
  border-radius: var(--r-small);
}

.status-text {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

/* --- Manage Booking --- */
.manage-page-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  font-family: var(--font-family, sans-serif);
}

.booking-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}

@media (max-width:950px) {
  .booking-detail-layout {
    grid-template-columns: 1fr;
  }
}

/* Header */
.manage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--sp-xxl);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--sp-l);
}

.manage-header h1 {
  margin: 0;
  font-size: var(--fs-32);
  color: var(--black);
  font-weight: 800;
  letter-spacing: -1px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 500;
}

.back-link {
  text-decoration: none;
  color: #64748b;
  transition: color .2s;
}

.back-link:hover {
  color: #0f172a;
}

.sep {
  color: #cbd5e1;
}

.mono-pnr {
  font-family: ui-monospace, Menlo, monospace;
  color: var(--brand);
  letter-spacing: 1px;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.icon-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

/* Content */
.section-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--black);
  margin: 0 0 var(--sp-base);
  border-left: 4px solid var(--brand);
  padding-left: var(--sp-base);
}

.mb-6 {
  margin-bottom: 24px;
}

.mt-8 {
  margin-top: 32px;
}

.mt-6 {
  margin-top: 24px;
}

/* Sidebar Options */
.options-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sticky-sidebar {
  position: sticky;
  top: 24px;
}

/* Card Tweaks for Sidebar */
#bk-options .card.compact {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
}

#bk-options .card.compact h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

#bk-options .card.compact .meta {
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: var(--muted);
  margin-bottom: var(--sp-m);
}

#bk-options .btn {
  width: 100%;
  justify-content: center;
}

.help-card {
  background: #f8fafc;
  border: none;
}

.text-sm {
  font-size: 13px;
}

/* .muted is usually global, but making sure */
.muted {
  color: #64748b;
}

/* Skeleton */
.skeleton {
  background: var(--bg);
  animation: pulse 2s infinite;
  border-radius: var(--r-base);
  min-height: 100px;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

/* Modernized Top Section (JS Content) */
#bk-head {
  margin-bottom: 32px;
}

#bk-head .head-flex {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-large);
  padding: var(--sp-l);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
}

#bk-head .tag-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

#bk-head .fare-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px var(--sp-m);
  border-radius: var(--r-small);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--brand-100);
  color: var(--brand-600);
}

#bk-head .meta {
  font-size: 14px;
  color: #475569;
  margin-bottom: 6px;
}

#bk-head .trip-meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

#bk-head .line {
  font-weight: 500;
  color: #1e293b;
}

#bk-head .status-indicator {
  display: flex;
  align-items: center;
  gap: var(--sp-s);
  color: var(--ok);
  background: var(--ok-bg);
  padding: 6px var(--sp-base);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  line-height: 1;
  border: 1px solid var(--ok);
  box-shadow: var(--shadow-sm);
}

#bk-head .status-dot {
  width: 8px;
  height: 8px;
  background: var(--ok);
  border-radius: var(--r-full);
  box-shadow: 0 0 0 2px var(--ok-bg);
}

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite linear;
  border-radius: var(--r-small);
  min-height: 1em;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: 1rem;
}

.skeleton-circle {
  height: 48px;
  width: 48px;
  border-radius: var(--r-full);
}