/* ==========================================================================
   AVIAONE DESIGN SYSTEM
   Palette:
     - Deep Mineral Teal: #028b7d (Primary CTA, Active States, Brand Links)
     - Teal Dark Hover:   #026f64 (Hover CTA)
     - White Surface:     #FFFFFF (Cards, booking panel, backgrounds)
     - Deep Slate Text:   #232B38 (Primary headings, labels, body text)
     - Muted Slate:       #6B7A90 (Secondary descriptions, icons)
     - Cool Gray Border:  #DAE0E8 (Form controls, cards, dividers)
     - Light Gray Bg:     #F4F6F9 (Section contrasts)
     - Soft Teal Subtle:  #f0fdfa (Active tab subtle indicator)
   Radius: 4px flat modern standard
   ========================================================================== */

:root {
  --avia-red: #E81932;
  --avia-red-hover: #C8102E;
  --avia-red-active: #A50D24;
  --avia-red-subtle: #FFF1F2;
  --avia-surface: #FFFFFF;
  --avia-bg-light: #F4F6F9;
  --avia-slate: #232B38;
  --avia-slate-light: #445163;
  --avia-slate-muted: #6B7A90;
  --avia-border: #DAE0E8;
  --avia-border-focus: #E81932;
  --avia-radius: 12px;
  --avia-radius-sm: 8px;
  --avia-radius-lg: 16px;
  --avia-radius-xl: 20px;
  --avia-radius-pill: 9999px;

  --font-family-base: 'Noto Sans Georgian', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-heading: 'Noto Sans Georgian', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: 'Plus Jakarta Sans', ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --avia-red: #ff334b;
  --avia-red-hover: #e81932;
  --avia-red-active: #c8102e;
  --avia-red-subtle: rgba(232, 25, 50, 0.15);
  --avia-surface: #121824;
  --avia-bg-light: #0b0f17;
  --avia-slate: #F1F5F9;
  --avia-slate-light: #CBD5E1;
  --avia-slate-muted: #94A3B8;
  --avia-border: #263345;
  --avia-border-focus: #ff334b;
}

/* Theme Toggle Button */
.avia-theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--avia-border);
  border-radius: var(--avia-radius);
  color: var(--avia-slate);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.avia-theme-toggle-btn:hover {
  background: var(--avia-bg-light);
  border-color: var(--avia-red);
}

.avia-theme-toggle-btn .sun-icon {
  display: none;
}

.avia-theme-toggle-btn .moon-icon {
  display: block;
}

[data-theme="dark"] .avia-theme-toggle-btn .sun-icon {
  display: block;
  color: #fbbf24;
}

[data-theme="dark"] .avia-theme-toggle-btn .moon-icon {
  display: none;
}

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

html {
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--avia-surface);
  color: var(--avia-slate);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--avia-red);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--avia-red-hover);
  text-decoration: underline;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.avia-header {
  background: var(--avia-surface);
  border-bottom: 1px solid var(--avia-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.avia-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.avia-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.avia-emblem {
  width: 44px;
  height: 44px;
  background-color: var(--avia-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.avia-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

/* Typography rules for UPPERCASE and Headings with ArchyEDT-Bold */
.avia-brand-main {
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--avia-slate);
}

.avia-brand-sub {
  font-family: var(--font-family-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--avia-red);
}

.avia-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.avia-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.avia-nav-item a {
  font-family: var(--font-family-heading);
  color: var(--avia-slate);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
}

.avia-nav-item a:hover {
  color: var(--avia-red);
  text-decoration: none;
}

.avia-nav-item.active a {
  color: var(--avia-red);
}

.avia-header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.avia-lang-btn {
  background: transparent;
  border: none;
  font-family: var(--font-family-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--avia-slate);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.avia-signin-btn {
  background: transparent;
  border: 1px solid var(--avia-border);
  border-radius: var(--avia-radius);
  color: var(--avia-slate);
  padding: 0.55rem 1.15rem;
  font-family: var(--font-family-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s ease;
}

.avia-signin-btn:hover {
  border-color: var(--avia-slate);
  background: var(--avia-bg-light);
}

/* ==========================================================================
   HERO DESTINATION SECTION
   ========================================================================== */
.avia-hero {
  position: relative;
  background-color: #121822;
  color: #FFFFFF;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.avia-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(18, 24, 34, 0.82) 0%, rgba(18, 24, 34, 0.45) 50%, rgba(18, 24, 34, 0.1) 100%);
  z-index: 1;
}

.avia-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 8rem 1.5rem;
}

.avia-hero-badge {
  display: inline-block;
  background: var(--avia-red);
  color: #FFFFFF;
  font-family: var(--font-family-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--avia-radius);
  margin-bottom: 1rem;
}

.avia-hero-title {
  font-family: var(--font-family-heading);
  font-size: 2.85rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 720px;
  margin-bottom: 1.2rem;
  color: #FFFFFF;
}

.avia-hero-desc {
  font-size: 1.1rem;
  line-height: 1.55;
  color: #E2E8F0;
  max-width: 580px;
  margin-bottom: 1.75rem;
}

.avia-btn-discover {
  display: inline-block;
  background: var(--avia-red);
  color: #FFFFFF;
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 2.2rem;
  border-radius: var(--avia-radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.avia-btn-discover:hover {
  background: var(--avia-red-hover);
  color: #FFFFFF;
  text-decoration: none;
}

/* ==========================================================================
   BOOKING FIRST SEARCH PANEL
   ========================================================================== */
.avia-booking-container {
  max-width: 1240px;
  margin: -5.5rem auto 3rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
  width: 100%;
}

.avia-booking-card {
  background: var(--avia-surface);
  border-radius: var(--avia-radius-xl);
  box-shadow: 0 10px 30px rgba(18, 24, 34, 0.08), 0 1px 3px rgba(18, 24, 34, 0.04);
  border: 1px solid var(--avia-border);
}

/* Booking Primary Tabs */
.avia-booking-tabs {
  display: flex;
  border-bottom: 1px solid var(--avia-border);
  overflow-x: auto;
  scrollbar-width: none;
  background: #FCFDFE;
  border-top-left-radius: var(--avia-radius-xl);
  border-top-right-radius: var(--avia-radius-xl);
}

.avia-booking-tabs::-webkit-scrollbar {
  display: none;
}

.avia-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 1.15rem 1.65rem;
  font-family: var(--font-family-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--avia-slate-light);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.avia-tab-btn:hover {
  color: var(--avia-red);
  background: #FFFFFF;
}

.avia-tab-btn.active {
  color: var(--avia-red);
  border-bottom-color: var(--avia-red);
  background: #FFFFFF;
}

.avia-tab-pane {
  display: none;
  padding: 1.75rem;
}

.avia-tab-pane.active {
  display: block;
}

/* Trip Type Radio Bar */
.avia-trip-options {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.avia-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--avia-slate);
  cursor: pointer;
}

.avia-radio-label input[type="radio"] {
  accent-color: var(--avia-red);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.avia-stopover-badge {
  background: var(--avia-red-subtle);
  color: var(--avia-red);
  font-family: var(--font-family-heading);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--avia-radius);
  margin-left: 0.25rem;
  letter-spacing: 0.05em;
}

/* Search Controls Grid */
.avia-search-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 0.75rem;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .avia-search-grid {
    grid-template-columns: 1fr 1fr;
  }
  .avia-search-grid-submit {
    grid-column: span 2;
  }
}

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

/* Input Fields & Field Boxes */
.avia-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.avia-field-box {
  background: var(--avia-surface);
  border: 1px solid var(--avia-border);
  border-radius: var(--avia-radius);
  padding: 0.55rem 0.85rem;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.avia-field-box:focus-within,
.avia-field-box.focused {
  border-color: var(--avia-border-focus);
  box-shadow: 0 0 0 1px var(--avia-border-focus);
}

.avia-field-label {
  font-family: var(--font-family-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--avia-slate-muted);
  margin-bottom: 0.25rem;
}

.avia-field-input {
  border: none;
  outline: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--avia-slate);
  background: transparent;
  width: 100%;
}

.avia-field-input::placeholder {
  color: #A0AEC0;
  font-weight: 500;
}

.avia-field-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--avia-slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avia-field-sub {
  font-size: 0.72rem;
  color: var(--avia-slate-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avia-iata-tag {
  font-family: var(--font-family-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--avia-red);
  background: var(--avia-red-subtle);
  padding: 0.1rem 0.35rem;
  border-radius: var(--avia-radius);
  margin-left: 0.35rem;
  display: none;
}

.avia-iata-tag.visible {
  display: inline-block;
}

/* Autocomplete Dropdown */
.avia-autocomplete-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--avia-surface);
  border: 1px solid var(--avia-border);
  border-radius: var(--avia-radius-lg);
  box-shadow: 0 8px 24px rgba(18, 24, 34, 0.12);
  z-index: 200;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}

.avia-autocomplete-menu.active {
  display: block;
}

.avia-autocomplete-row {
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid var(--avia-border);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.1s ease;
}

.avia-autocomplete-row:last-child {
  border-bottom: none;
}

.avia-autocomplete-row:hover,
.avia-autocomplete-row.selected {
  background-color: var(--avia-red-subtle);
}

.avia-auto-city {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--avia-slate);
}

.avia-auto-country {
  font-size: 0.78rem;
  color: var(--avia-slate-muted);
}

.avia-auto-code {
  font-family: var(--font-family-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--avia-red);
  background: #FFFFFF;
  border: 1px solid var(--avia-border);
  padding: 0.2rem 0.45rem;
  border-radius: var(--avia-radius);
}

/* Passenger & Cabin Dropdown */
.avia-popover {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 290px;
  background: var(--avia-surface);
  border: 1px solid var(--avia-border);
  border-radius: var(--avia-radius);
  box-shadow: 0 8px 24px rgba(18, 24, 34, 0.12);
  padding: 1.25rem;
  z-index: 200;
  display: none;
}

.avia-popover.active {
  display: block;
}

.avia-counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.avia-counter-info-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--avia-slate);
}

.avia-counter-info-sub {
  font-size: 0.75rem;
  color: var(--avia-slate-muted);
}

.avia-counter-ctrls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.avia-counter-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--avia-radius);
  border: 1px solid var(--avia-border);
  background: #FFFFFF;
  color: var(--avia-slate);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
}

.avia-counter-btn:hover {
  border-color: var(--avia-slate);
}

.avia-counter-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.avia-counter-qty {
  font-family: var(--font-family-mono);
  font-size: 1rem;
  font-weight: 700;
  width: 20px;
  text-align: center;
}

.avia-cabin-select-group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--avia-border);
}

.avia-cabin-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--avia-border);
  border-radius: var(--avia-radius);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--avia-slate);
  cursor: pointer;
}

.avia-btn-popover-done {
  width: 100%;
  margin-top: 1rem;
  background: var(--avia-red);
  color: #FFFFFF;
  border: none;
  border-radius: var(--avia-radius);
  padding: 0.55rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

/* Primary Search Flights Button */
.avia-btn-search {
  background: var(--avia-red);
  color: #FFFFFF;
  border: none;
  border-radius: var(--avia-radius);
  padding: 0 2rem;
  min-height: 64px;
  font-family: var(--font-family-heading);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
  width: 100%;
}

.avia-btn-search:hover {
  background: var(--avia-red-hover);
}

.avia-btn-search:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Search Bottom Bar: Direct checkbox & Popular routes */
.avia-booking-bottom-bar {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--avia-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.avia-quick-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--avia-slate-muted);
  flex-wrap: wrap;
}

.avia-route-pill {
  background: var(--avia-bg-light);
  border: 1px solid var(--avia-border);
  border-radius: var(--avia-radius-pill);
  padding: 0.25rem 0.65rem;
  color: var(--avia-slate);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-family-mono);
  transition: all 0.15s ease;
}

.avia-route-pill:hover {
  border-color: var(--avia-red);
  color: var(--avia-red);
}

/* Secondary Panels: Check-in, Manage, Flight Status */
.avia-utility-form {
  max-width: 800px;
}

.avia-utility-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--avia-slate);
  margin-bottom: 0.4rem;
}

.avia-utility-desc {
  font-size: 0.92rem;
  color: var(--avia-slate-muted);
  margin-bottom: 1.5rem;
}

.avia-utility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

@media (max-width: 768px) {
  .avia-utility-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LIVE FLIGHT SEARCH RESULTS LEDGER (WHEN SEARCHED)
   ========================================================================== */
.avia-results-section {
  max-width: 1240px;
  margin: 0 auto 3.5rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.avia-results-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--avia-slate);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.avia-results-title {
  font-family: var(--font-family-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--avia-slate);
}

.avia-results-count {
  font-family: var(--font-family-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--avia-slate-muted);
}

.avia-results-table-wrap {
  background: var(--avia-surface);
  border: 1px solid var(--avia-border);
  border-radius: var(--avia-radius);
  overflow-x: auto;
}

.avia-results-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.avia-results-table th {
  background: #FAFAFC;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-family-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--avia-slate-muted);
  border-bottom: 1px solid var(--avia-border);
  white-space: nowrap;
}

.avia-results-table th.col-right {
  text-align: right;
}

.avia-results-table td {
  padding: 1.15rem;
  border-bottom: 1px solid var(--avia-border);
  vertical-align: middle;
  font-size: 0.92rem;
}

.avia-results-table tbody tr:hover {
  background-color: #FAFAFC;
}

.avia-results-table tbody tr:last-child td {
  border-bottom: none;
}

.avia-route-codes {
  font-family: var(--font-family-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--avia-slate);
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.avia-route-arrow {
  color: var(--avia-red);
}

.avia-badge {
  display: inline-block;
  font-family: var(--font-family-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: var(--avia-radius);
  white-space: nowrap;
}

.avia-badge-direct {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.avia-badge-stop {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.avia-price-val {
  font-family: var(--font-family-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--avia-slate);
}

.avia-btn-book {
  display: inline-block;
  background: var(--avia-red);
  color: #FFFFFF;
  border: 1px solid var(--avia-red);
  border-radius: var(--avia-radius);
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.avia-btn-book:hover {
  background: var(--avia-red-hover);
  color: #FFFFFF;
  text-decoration: none;
}

/* Loading & Zero State */
.avia-status-box {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--avia-surface);
  border: 1px solid var(--avia-border);
  border-radius: var(--avia-radius);
}

.avia-loading-text {
  font-family: var(--font-family-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--avia-red);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   EDITORIAL PROMOTIONAL CARDS SECTION
   ========================================================================== */
.avia-editorial-section {
  max-width: 1240px;
  margin: 0 auto 4rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.avia-section-title-wrap {
  margin-bottom: 2rem;
}

.avia-section-kicker {
  font-family: var(--font-family-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--avia-red);
  margin-bottom: 0.35rem;
}

.avia-section-heading {
  font-family: var(--font-family-heading);
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--avia-slate);
}

.avia-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .avia-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.avia-card {
  background: var(--avia-surface);
  border: 1px solid var(--avia-border);
  border-radius: var(--avia-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.avia-card:hover {
  box-shadow: 0 8px 24px rgba(18, 24, 34, 0.08);
  border-color: #CBD5E1;
}

.avia-card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: #E2E8F0;
}

.avia-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.avia-card:hover .avia-card-img {
  transform: scale(1.03);
}

.avia-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--avia-surface);
  color: var(--avia-slate);
  font-family: var(--font-family-heading);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--avia-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.avia-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.avia-card-title {
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--avia-slate);
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.avia-card-text {
  font-size: 0.92rem;
  color: var(--avia-slate-light);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex: 1;
}

.avia-card-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--avia-red);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.avia-card-link:hover {
  color: var(--avia-red-hover);
  text-decoration: underline;
}

/* ==========================================================================
   DISCOVER TÜRKIYE WINTER HIGHLIGHT STRIP
   ========================================================================== */
.avia-feature-banner {
  background: var(--avia-bg-light);
  border-top: 1px solid var(--avia-border);
  border-bottom: 1px solid var(--avia-border);
  padding: 3.5rem 1.5rem;
  margin-bottom: 4rem;
}

.avia-feature-banner-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 820px) {
  .avia-feature-banner-inner {
    grid-template-columns: 1fr;
  }
}

.avia-feature-badge {
  font-family: var(--font-family-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--avia-red);
  margin-bottom: 0.5rem;
}

.avia-feature-title {
  font-family: var(--font-family-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--avia-slate);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.avia-feature-desc {
  font-size: 1rem;
  color: var(--avia-slate-light);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.avia-feature-img-box {
  position: relative;
  border-radius: var(--avia-radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(18, 24, 34, 0.1);
  aspect-ratio: 16 / 10;
}

.avia-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */
.avia-footer {
  background: #181F2A;
  color: #CBD5E1;
  padding: 4rem 1.5rem 2rem 1.5rem;
  margin-top: auto;
}

.avia-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.avia-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #2D3748;
}

@media (max-width: 880px) {
  .avia-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .avia-footer-grid {
    grid-template-columns: 1fr;
  }
}

.avia-footer-col-title {
  font-family: var(--font-family-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.avia-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.avia-footer-links a {
  color: #94A3B8;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.avia-footer-links a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.avia-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.8rem;
  color: #64748B;
}

.avia-footer-bottom a {
  color: #94A3B8;
  font-weight: 500;
}


/* ==========================================================================
   FLIGHT SEARCH RESULTS PAGE (REFERENCE PHOTO MATCH)
   ========================================================================== */
.flight-search-page {
  background-color: #f5f7fa;
  min-height: 100vh;
  padding-bottom: 4rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
}

.fs-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top bar summary */
.fs-top-bar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.85rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.fs-top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.fs-top-summary-group {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.fs-summary-item {
  display: flex;
  flex-direction: column;
}

.fs-summary-label {
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 0.15rem;
  font-weight: 500;
}

.fs-summary-main {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.fs-summary-sub {
  font-size: 0.78rem;
  color: #4b5563;
  margin-top: 0.1rem;
}

.fs-swap-btn {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4b5563;
  transition: all 0.2s ease;
}

.fs-swap-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

.fs-summary-divider {
  width: 1px;
  height: 36px;
  background-color: #e5e7eb;
}

/* Modify search red button */
.fs-btn-modify {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--avia-red);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.fs-btn-modify:hover {
  background: var(--avia-red-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Main Layout */
.fs-main-layout {
  padding-top: 2rem;
}

/* Section Header */
.fs-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.fs-badge-outbound {
  display: inline-block;
  background: #e11931;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
}

.fs-route-heading {
  font-size: 1.65rem;
  font-weight: 400;
  color: #1f2937;
  letter-spacing: -0.01em;
  margin: 0;
}

.fs-header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.fs-view-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  color: #4b5563;
  transition: color 0.15s ease;
}

.fs-view-action:hover, .fs-view-action.active {
  color: #111827;
}

.fs-action-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.15s ease;
}

.fs-view-action.active .fs-action-icon-circle {
  background: #1f2937;
  color: #ffffff;
  border-color: #1f2937;
}

.fs-action-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #4b5563;
  white-space: nowrap;
}

.fs-view-action.active .fs-action-label {
  font-weight: 600;
  color: #111827;
}

/* Date Strip Carousel */
.fs-date-strip-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.fs-date-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  width: 52px;
  height: 78px;
  cursor: pointer;
  color: #4b5563;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.fs-date-nav:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.fs-nav-sub {
  font-size: 0.65rem;
  color: #6b7280;
  margin-top: 0.2rem;
  font-weight: 500;
}

.fs-date-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  flex: 1;
}

.fs-date-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.75rem 0.6rem 0.6rem;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 78px;
}

.fs-date-card:hover {
  border-color: #fca5a5;
  transform: translateY(-1px);
}

.fs-date-card.selected {
  border: 2px solid var(--avia-red);
  border-bottom: 3.5px solid var(--avia-red);
  box-shadow: 0 4px 12px rgba(232, 25, 50, 0.12);
}

.fs-date-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  position: relative;
}

.fs-date-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.fs-date-col {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.fs-date-weekday {
  font-size: 0.7rem;
  font-weight: 600;
  color: #374151;
}

.fs-date-month {
  font-size: 0.68rem;
  color: #6b7280;
}

.fs-star-badge {
  margin-left: auto;
  color: var(--avia-red);
  font-size: 0.85rem;
  line-height: 1;
}

.fs-date-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
  margin-top: 0.4rem;
}

/* Best deal indicator */
.fs-best-deal-note {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--avia-red);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* Filter & Sort Bar */
.fs-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 0.25rem 0;
}

.fs-filter-group, .fs-sort-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.fs-bar-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5563;
  margin-right: 0.2rem;
}

.fs-dropdown-pill, .fs-sort-btn {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.fs-dropdown-pill:hover, .fs-sort-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.fs-sort-btn.active {
  border-color: var(--avia-red);
  color: var(--avia-red);
  background: #fff1f2;
  font-weight: 600;
}

.fs-dropdown-pill.filter-active {
  border-color: var(--avia-red);
  background: #fff1f2;
  color: var(--avia-red);
  font-weight: 600;
}

.fs-pill-more {
  padding: 0.45rem 0.65rem;
}

/* Flight proposal cards */
.fs-results-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fs-flight-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.fs-flight-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border-color: #d1d5db;
}

/* Left schedule pane */
.fs-card-schedule {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #f3f4f6;
}

.fs-schedule-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fs-time-point {
  display: flex;
  flex-direction: column;
}

.fs-point-dep {
  text-align: left;
}

.fs-point-arr {
  text-align: left;
}

.fs-time-val {
  font-size: 1.45rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.1;
}

.fs-iata-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #4b5563;
  margin-top: 0.2rem;
}

.fs-city-val {
  font-size: 0.78rem;
  color: #6b7280;
}

/* Journey progress bar */
.fs-journey-path {
  flex: 1;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 0.5rem;
}

.fs-journey-badge {
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.fs-path-line-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.fs-path-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca3af;
  flex-shrink: 0;
}

.fs-path-line {
  flex: 1;
  height: 1.5px;
  background: #d1d5db;
}

.fs-airline-circle-badge {
  margin-top: 0.6rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Itinerary dropdown link */
.fs-itinerary-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #1f2937;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.fs-itinerary-trigger:hover {
  color: var(--avia-red);
}

/* Meta info footer */
.fs-schedule-meta {
  font-size: 0.76rem;
  color: #6b7280;
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
  display: flex;
  gap: 1rem;
}

.fs-schedule-meta strong {
  color: #374151;
}

/* Itinerary expanded */
.fs-itinerary-expand {
  display: none;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 4px;
  font-size: 0.85rem;
}

.fs-itinerary-expand.open {
  display: block;
}

.fs-expand-row {
  display: flex;
  justify-content: space-between;
}

/* Right Fare columns */
.fs-card-fares {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fafbfc;
}

.fs-fare-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border-left: 1px solid #f3f4f6;
  position: relative;
}

.fs-fare-box:hover {
  background: #ffffff;
  box-shadow: inset 0 0 0 2px var(--avia-red);
}

.fs-fare-header {
  margin-bottom: 1.25rem;
}

.fs-fare-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #374151;
}

.fs-fare-radio-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.fs-radio-circle {
  width: 22px;
  height: 22px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.fs-fare-box:hover .fs-radio-circle {
  border-color: var(--avia-red);
  border-width: 6px;
}

.fs-fare-price-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fs-fare-per-pax {
  font-size: 0.7rem;
  color: #6b7280;
}

.fs-fare-price {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  line-height: 1.1;
  margin-top: 0.15rem;
}

.fs-price-currency {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.fs-price-whole {
  font-size: 1.45rem;
  font-weight: 800;
  color: #111827;
}

.fs-price-decimal {
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
  vertical-align: super;
}

.fs-fare-chevron {
  color: #9ca3af;
  display: flex;
  align-items: center;
}

.fs-fare-box:hover .fs-fare-chevron {
  color: var(--avia-red);
}

/* Skeleton & Loading */
.fs-card-skeleton {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 3rem 2rem;
  text-align: center;
}

.fs-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3.5px solid #e5e7eb;
  border-top-color: var(--avia-red);
  border-radius: 50%;
  animation: fs-spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes fs-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   MOBILE & RESPONSIVE ADAPTATIONS
   ========================================================================== */

/* Mobile hamburger button */
.avia-mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--avia-border);
  border-radius: var(--avia-radius);
  padding: 0.4rem;
  color: var(--avia-slate);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .avia-mobile-menu-btn {
    display: inline-flex;
  }

  .avia-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--avia-border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    gap: 1.25rem;
    z-index: 1000;
  }

  .avia-nav.mobile-open {
    display: flex;
  }

  .avia-nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .avia-nav-item a {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    font-size: 1rem;
  }

  .avia-header-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--avia-border);
  }

  .avia-lang-btn {
    justify-content: center;
    padding: 0.6rem;
    background: var(--avia-bg-light);
    border-radius: var(--avia-radius);
  }

  .avia-signin-btn {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .avia-hero {
    min-height: 400px;
  }

  .avia-hero-content {
    padding: 2.5rem 1rem 6.5rem 1rem;
  }

  .avia-hero-title {
    font-size: 1.95rem;
    line-height: 1.25;
  }

  .avia-hero-desc {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .avia-booking-container {
    margin-top: -4.5rem;
    padding: 0 0.85rem;
  }

  .avia-booking-tabs {
    padding: 0.25rem;
  }

  .avia-tab-btn {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
  }

  .avia-tab-pane {
    padding: 1.25rem 0.85rem;
  }

  .avia-booking-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .avia-quick-pills {
    flex-wrap: wrap;
  }
}

/* Flight Results Mobile Styling */
@media (max-width: 992px) {
  .fs-flight-card {
    grid-template-columns: 1fr;
  }

  .fs-card-schedule {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem;
  }

  .fs-date-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .fs-date-strip > div:nth-child(n+5) {
    display: none;
  }
}

@media (max-width: 768px) {
  .fs-top-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .fs-top-summary-group {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem 0.5rem;
    align-items: center;
  }

  .fs-summary-divider {
    display: none;
  }

  .fs-btn-modify {
    justify-content: center;
    width: 100%;
  }

  .fs-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .fs-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .fs-route-heading {
    font-size: 1.35rem;
  }

  .fs-filters-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .fs-filter-group, .fs-sort-group {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.35rem;
  }

  .fs-dropdown-pill, .fs-sort-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .fs-date-strip-wrapper {
    gap: 0.25rem;
  }

  .fs-date-nav {
    width: 40px;
    height: 72px;
  }

  .fs-date-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
  }

  .fs-date-strip > div:nth-child(n+4) {
    display: none;
  }

  .fs-date-num {
    font-size: 1.15rem;
  }

  .fs-date-weekday {
    font-size: 0.65rem;
  }

  .fs-date-month {
    font-size: 0.62rem;
  }

  .fs-schedule-main {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .fs-time-point {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
  }

  .fs-journey-path {
    max-width: 100%;
    width: 100%;
    margin: 0.5rem 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .fs-path-line-wrapper {
    flex: 1;
    margin: 0 1rem;
  }

  .fs-journey-badge {
    margin-bottom: 0;
    order: -1;
  }

  .fs-airline-circle-badge {
    margin-top: 0;
    order: 2;
  }

  .fs-itinerary-trigger {
    justify-content: center;
    margin-top: 0.5rem;
  }

  .fs-schedule-meta {
    flex-direction: column;
    gap: 0.4rem;
  }

  .fs-card-fares {
    grid-template-columns: 1fr;
  }

  .fs-fare-box {
    border-left: none;
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
  }
}


/* ==========================================================================
   DARK MODE COMPONENT OVERRIDES
   ========================================================================== */
[data-theme="dark"] .avia-header {
  background: var(--avia-surface);
  border-bottom-color: var(--avia-border);
}

[data-theme="dark"] .avia-booking-tabs {
  background: #0f1520;
  border-bottom-color: var(--avia-border);
}

[data-theme="dark"] .avia-tab-btn:hover {
  background: #172030;
}

[data-theme="dark"] .avia-tab-btn.active {
  background: var(--avia-surface);
}

[data-theme="dark"] .avia-field-box {
  background: #182232;
  border-color: var(--avia-border);
}

[data-theme="dark"] .avia-field-input {
  color: #F8FAFC;
}

[data-theme="dark"] .avia-popover,
[data-theme="dark"] .avia-autocomplete-menu {
  background: #182232;
  border-color: var(--avia-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

[data-theme="dark"] .avia-counter-row {
  border-bottom-color: var(--avia-border);
}

[data-theme="dark"] .avia-counter-btn {
  background: #243248;
  border-color: var(--avia-border);
  color: #F8FAFC;
}

[data-theme="dark"] .avia-cabin-select {
  background: #243248;
  border-color: var(--avia-border);
  color: #F8FAFC;
}

[data-theme="dark"] .avia-autocomplete-row:hover {
  background: #243248;
}

[data-theme="dark"] .avia-route-pill {
  background: #182232;
  border-color: var(--avia-border);
  color: #CBD5E1;
}

[data-theme="dark"] .avia-route-pill:hover {
  background: #243248;
  border-color: var(--avia-red);
}

[data-theme="dark"] .avia-card {
  background: #182232;
  border-color: var(--avia-border);
}

[data-theme="dark"] .avia-card-body {
  background: #182232;
}

[data-theme="dark"] .avia-card-title {
  color: #F8FAFC;
}

[data-theme="dark"] .avia-results-table th {
  background: #182232;
  border-color: var(--avia-border);
  color: #94A3B8;
}

[data-theme="dark"] .avia-results-table td {
  border-color: var(--avia-border);
  color: #E2E8F0;
}

[data-theme="dark"] .avia-results-table tr:hover td {
  background: #182232;
}

[data-theme="dark"] .avia-status-box {
  background: #182232;
  border-color: var(--avia-border);
}

/* Flight Results Dark Mode */
[data-theme="dark"] .flight-search-page {
  background-color: #0b0f17;
  color: #F1F5F9;
}

[data-theme="dark"] .fs-top-bar {
  background: #121824;
  border-bottom-color: #263345;
}

[data-theme="dark"] .fs-summary-main {
  color: #F8FAFC;
}

[data-theme="dark"] .fs-summary-sub {
  color: #94A3B8;
}

[data-theme="dark"] .fs-summary-label {
  color: #64748B;
}

[data-theme="dark"] .fs-summary-divider {
  background-color: #263345;
}

[data-theme="dark"] .fs-swap-btn {
  background: #1c2738;
  border-color: #263345;
  color: #CBD5E1;
}

[data-theme="dark"] .fs-swap-btn:hover {
  background: #263345;
  color: #FFFFFF;
}

[data-theme="dark"] .fs-route-heading {
  color: #F8FAFC;
}

[data-theme="dark"] .fs-action-icon-circle {
  background: #182232;
  border-color: #263345;
  color: #CBD5E1;
}

[data-theme="dark"] .fs-view-action.active .fs-action-icon-circle {
  background: #263345;
  border-color: #ff334b;
  color: #FFFFFF;
}

[data-theme="dark"] .fs-action-label {
  color: #94A3B8;
}

[data-theme="dark"] .fs-view-action.active .fs-action-label {
  color: #F8FAFC;
}

[data-theme="dark"] .fs-date-nav {
  background: #182232;
  border-color: #263345;
  color: #CBD5E1;
}

[data-theme="dark"] .fs-date-nav:hover {
  background: #243248;
}

[data-theme="dark"] .fs-date-card {
  background: #182232;
  border-color: #263345;
}

[data-theme="dark"] .fs-date-num {
  color: #F8FAFC;
}

[data-theme="dark"] .fs-date-weekday {
  color: #CBD5E1;
}

[data-theme="dark"] .fs-date-month {
  color: #94A3B8;
}

[data-theme="dark"] .fs-date-price {
  color: #F8FAFC;
}

[data-theme="dark"] .fs-dropdown-pill,
[data-theme="dark"] .fs-sort-btn {
  background: #182232;
  border-color: #263345;
  color: #CBD5E1;
}

[data-theme="dark"] .fs-dropdown-pill:hover,
[data-theme="dark"] .fs-sort-btn:hover {
  background: #243248;
  border-color: #475569;
}

[data-theme="dark"] .fs-sort-btn.active,
[data-theme="dark"] .fs-dropdown-pill.filter-active {
  background: rgba(232, 25, 50, 0.15);
  border-color: var(--avia-red);
  color: var(--avia-red);
}

[data-theme="dark"] .fs-flight-card {
  background: #121824;
  border-color: #263345;
}

[data-theme="dark"] .fs-card-schedule {
  border-right-color: #1e293b;
  border-bottom-color: #1e293b;
}

[data-theme="dark"] .fs-time-val {
  color: #F8FAFC;
}

[data-theme="dark"] .fs-iata-val {
  color: #CBD5E1;
}

[data-theme="dark"] .fs-city-val {
  color: #94A3B8;
}

[data-theme="dark"] .fs-path-line {
  background: #334155;
}

[data-theme="dark"] .fs-itinerary-trigger {
  color: #CBD5E1;
}

[data-theme="dark"] .fs-schedule-meta {
  border-top-color: #1e293b;
  color: #94A3B8;
}

[data-theme="dark"] .fs-schedule-meta strong {
  color: #CBD5E1;
}

[data-theme="dark"] .fs-itinerary-expand {
  background: #182232;
  color: #E2E8F0;
}

[data-theme="dark"] .fs-card-fares {
  background: #0f1520;
}

[data-theme="dark"] .fs-fare-box {
  border-left-color: #1e293b;
  border-top-color: #1e293b;
}

[data-theme="dark"] .fs-fare-box:hover {
  background: #162030;
}

[data-theme="dark"] .fs-fare-title {
  color: #CBD5E1;
}

[data-theme="dark"] .fs-radio-circle {
  border-color: #475569;
}

[data-theme="dark"] .fs-fare-per-pax {
  color: #94A3B8;
}

[data-theme="dark"] .fs-price-currency,
[data-theme="dark"] .fs-price-whole,
[data-theme="dark"] .fs-price-decimal {
  color: #F8FAFC;
}

[data-theme="dark"] .fs-card-skeleton {
  background: #121824;
  border-color: #263345;
  color: #CBD5E1;
}


/* ==========================================================================
   FLIGHT SEARCH LOADER OVERLAY
   ========================================================================== */
.avia-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: aviaFadeIn 0.25s ease-out;
}

@keyframes aviaFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.avia-loader-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.75rem 2.25rem 2.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .avia-loader-card {
  background: #182232;
  border-color: #263345;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.avia-plane-animation {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flight-svg-plane {
  color: #E81932;
  animation: planeFloat 2s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes planeFloat {
  0%, 100% {
    transform: translateY(0px) rotate(-8deg);
  }
  50% {
    transform: translateY(-8px) rotate(4deg);
  }
}

.flight-radar-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin-top: -40px;
  margin-left: -40px;
  border-radius: 50%;
  background: rgba(232, 25, 50, 0.15);
  animation: radarPulse 1.8s ease-out infinite;
  z-index: 1;
}

@keyframes radarPulse {
  0% {
    transform: scale(0.4);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.avia-loader-route {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  padding: 0.5rem 1.4rem;
  font-family: var(--font-family-mono);
  font-weight: 800;
  font-size: 1.15rem;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .avia-loader-route {
  background: #121824;
  border-color: #263345;
  color: #f8fafc;
}

.avia-loader-dots {
  display: flex;
  gap: 5px;
}

.avia-loader-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E81932;
  animation: dotPulse 1.4s infinite ease-in-out both;
}

.avia-loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.avia-loader-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dotPulse {
  0%, 80%, 100% {
    transform: scale(0.4);
    opacity: 0.3;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.avia-loader-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .avia-loader-title {
  color: #f8fafc;
}

.avia-loader-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 1.75rem;
}

[data-theme="dark"] .avia-loader-subtitle {
  color: #94a3b8;
}

.avia-loader-progress-track {
  width: 100%;
  height: 5px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .avia-loader-progress-track {
  background: #263345;
}

.avia-loader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #E81932, #ff4757);
  border-radius: 999px;
  position: absolute;
  top: 0;
  left: 0;
  animation: indeterminateProgress 1.5s ease-in-out infinite;
}

@keyframes indeterminateProgress {
  0% {
    left: -35%;
    width: 35%;
  }
  50% {
    left: 25%;
    width: 65%;
  }
  100% {
    left: 100%;
    width: 35%;
  }
}

/* Enhanced Smooth Rounded Corners */
.avia-booking-card {
  border-radius: 18px !important;
  overflow: visible !important;
}

.avia-booking-tabs {
  border-top-left-radius: 18px !important;
  border-top-right-radius: 18px !important;
}

.avia-tab-btn {
  border-radius: 10px 10px 0 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.avia-field-box {
  border-radius: 12px !important;
}

.avia-btn-search {
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(232, 25, 50, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.avia-btn-search:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232, 25, 50, 0.4);
}

.avia-route-pill {
  border-radius: 20px !important;
  padding: 0.35rem 0.85rem !important;
}

.avia-iata-tag {
  border-radius: 6px !important;
}

.avia-btn-discover {
  border-radius: 12px !important;
}

.avia-signin-btn,
.avia-theme-toggle-btn,
.avia-mobile-menu-btn {
  border-radius: 10px !important;
}

.avia-lang-btn {
  border-radius: 10px !important;
}

/* Perfectly Equalized Search Fields (1:1 Ratio) */
@media (min-width: 1024px) {
  .avia-search-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(170px, auto) !important;
    gap: 0.75rem !important;
    align-items: stretch !important;
  }
}

@media (max-width: 1023px) and (min-width: 651px) {
  .avia-search-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }
  .avia-search-grid-submit {
    grid-column: span 2 !important;
  }
}

@media (max-width: 650px) {
  .avia-search-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }
  .avia-search-grid-submit {
    width: 100% !important;
  }
  .avia-btn-search {
    width: 100% !important;
    min-height: 56px !important;
    height: 56px !important;
  }

}

.avia-field-box {
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  box-sizing: border-box !important;
  padding: 0.6rem 0.9rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  overflow: visible !important;
}

.avia-btn-search {
  height: 68px !important;
  min-height: 68px !important;
  box-sizing: border-box !important;
  padding: 0 1.75rem !important;
}

.avia-field-input {
  line-height: 1.25 !important;
  height: 24px !important;
}

.avia-field-val {
  line-height: 1.25 !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
}

/* ==========================================================================
   MOBILE FOOTER OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
  .avia-footer {
    padding: 2.75rem 1.25rem 2rem 1.25rem;
  }

  .avia-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .avia-footer-col-title {
    font-size: 1rem;
    margin-bottom: 0.85rem;
  }

  .avia-footer-links {
    gap: 0.85rem;
  }

  .avia-footer-links a {
    font-size: 0.92rem;
    display: inline-block;
    padding: 0.15rem 0;
  }

  .avia-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding-top: 1.5rem;
  }

  .avia-footer-bottom > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem !important;
  }

  .avia-footer-bottom a {
    font-size: 0.82rem;
  }
}

.avia-footer-legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .avia-footer-legal-links {
    gap: 0.75rem 1rem;
  }
}

/* Fix Popover Clipping & Layering */
.avia-booking-card {
  overflow: visible !important;
}

.avia-tab-pane {
  overflow: visible !important;
}

.avia-search-grid {
  overflow: visible !important;
}

.avia-field {
  position: relative;
  overflow: visible !important;
}

.avia-field-box {
  overflow: visible !important;
}

.avia-field:has(.avia-popover.active),
.avia-field:has(.avia-autocomplete-menu.active) {
  z-index: 1000 !important;
}

.avia-popover {
  z-index: 9999 !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4) !important;
}

.avia-autocomplete-menu {
  z-index: 9999 !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4) !important;
}

@media (max-width: 650px) {
  .avia-popover {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
  }
}


/* Modern Segmented Pill Controls for Trip Type */
.avia-trip-options {
  display: inline-flex !important;
  align-items: center !important;
  background: #0f1520 !important;
  border: 1px solid #263345 !important;
  border-radius: 9999px !important;
  padding: 4px !important;
  gap: 4px !important;
  margin-bottom: 1.5rem !important;
  max-width: 100% !important;
  overflow-x: auto !important;
}

[data-theme="light"] .avia-trip-options {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

.avia-radio-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.5rem 1.15rem !important;
  border-radius: 9999px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  user-select: none !important;
  white-space: nowrap !important;
  position: relative !important;
}

.avia-radio-label input[type="radio"] {
  display: none !important;
}

.avia-radio-label:has(input[type="radio"]:checked),
.avia-radio-label.active {
  background: #E81932 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(232, 25, 50, 0.35) !important;
}

.avia-radio-label:hover:not(:has(input[type="radio"]:checked)) {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="light"] .avia-radio-label:hover:not(:has(input[type="radio"]:checked)) {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.05) !important;
}

@media (max-width: 650px) {
  .avia-trip-options {
    display: flex !important;
    width: 100% !important;
    border-radius: 12px !important;
    padding: 4px !important;
    gap: 4px !important;
  }
  .avia-radio-label {
    flex: 1 !important;
    padding: 0.55rem 0.35rem !important;
    font-size: 0.8rem !important;
    text-align: center !important;
    border-radius: 9px !important;
  }
}


/* Georgian DD.MM.YYYY Date Field Styling */
.avia-date-box {
  position: relative;
  cursor: pointer;
}

.avia-date-display-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.avia-calendar-icon {
  color: #94a3b8;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.avia-date-box:hover .avia-calendar-icon {
  color: #E81932;
}

.avia-hidden-date-picker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}


/* Guaranteed 1-Row Horizontal Segmented Pill */
.avia-trip-options {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  background: #0f1520 !important;
  border: 1px solid #263345 !important;
  border-radius: 9999px !important;
  padding: 4px !important;
  gap: 4px !important;
  margin-bottom: 1.25rem !important;
  width: fit-content !important;
  max-width: 100% !important;
}

[data-theme="light"] .avia-trip-options {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

.avia-radio-label {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  padding: 0.45rem 1rem !important;
  border-radius: 9999px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #94A3B8 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

@media (max-width: 600px) {
  .avia-trip-options {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    padding: 3px !important;
    gap: 3px !important;
    border-radius: 9999px !important;
  }
  .avia-radio-label {
    flex: 1 1 0 !important;
    padding: 0.5rem 0.2rem !important;
    font-size: 0.76rem !important;
    text-align: center !important;
    border-radius: 9999px !important;
  }
}

/* Airline Branding Header in Card */
.fs-airline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.fs-airline-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fs-airline-circle-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.fs-airline-text-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fs-airline-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.fs-airline-code-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', monospace;
}

.fs-journey-badge-pill {
  font-size: 0.74rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.fs-path-plane-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--avia-red);
  background: #ffffff;
  padding: 2px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.fs-duration-subtext {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Dark mode overrides for airline branding */
[data-theme="dark"] .fs-airline-header {
  border-bottom-color: #1e293b;
}

[data-theme="dark"] .fs-airline-title {
  color: #f8fafc;
}

[data-theme="dark"] .fs-airline-code-pill {
  background: #1e293b;
  color: #94a3b8;
}

[data-theme="dark"] .fs-path-plane-icon {
  background: #121824;
  color: #ef4444;
}

[data-theme="dark"] .fs-duration-subtext {
  color: #94a3b8;
}
