/* ============================================================
   Q8BY — Flight Meta Search Engine
   Premium Design System — RTL Arabic
   ============================================================ */

/* ============================================================
   CSS VARIABLES (Design Tokens)
   ============================================================ */
:root {
  /* Colors */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.15);

  --accent: #06b6d4;
  --accent-light: #22d3ee;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Neutrals */
  --bg: #0a0e1a;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --bg-surface: #1e293b;
  --bg-input: #0f172a;

  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;

  --border: rgba(148, 163, 184, 0.12);
  --border-focus: rgba(99, 102, 241, 0.5);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Typography */
  --font-ar: "Cairo", "Segoe UI", sans-serif;
  --font-en: "Inter", "Segoe UI", sans-serif;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.2);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.25s;
}

/* ============================================================
   LIGHT THEME VARIABLES
   ============================================================ */
[data-theme="light"] {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #3730a3;
  --primary-glow: rgba(79, 70, 229, 0.15);
  
  --accent: #0891b2;
  --accent-light: #06b6d4;

  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-surface: #e2e8f0;
  --bg-input: #ffffff;

  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border: #e2e8f0;
  --border-focus: rgba(79, 70, 229, 0.5);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration) var(--ease);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input,
select {
  font-family: inherit;
  font-size: inherit;
  color: var(--text);
  outline: none;
  border: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  background: transparent;
  transition: all var(--duration) var(--ease);
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) 0;
}

.navbar-compact {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) 0;
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
}

[data-theme="light"] .navbar-compact {
  background: rgba(255, 255, 255, 0.96);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.logo-icon {
  font-size: 1.4rem;
  animation: floatPlane 3s ease-in-out infinite;
}

@keyframes floatPlane {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.logo-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(99, 102, 241, 0.1);
}

.nav-icon {
  width: 16px;
  height: 16px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-lang {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-en);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
}

.btn-lang:hover {
  color: var(--text);
  border-color: var(--primary);
  background: var(--primary-glow);
}

/* Compact Search in Navbar */
.compact-search {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--bg-surface);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  flex: 1;
  max-width: 500px;
}

.compact-search-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.compact-route {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.compact-arrow {
  width: 14px;
  height: 14px;
  color: var(--primary-light);
}

.compact-details {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.compact-edit-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--primary-light);
  background: var(--primary-glow);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.compact-edit-btn:hover {
  background: rgba(99, 102, 241, 0.25);
}

.compact-edit-btn i {
  width: 14px;
  height: 14px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 50% 0%,
      rgba(99, 102, 241, 0.15) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 20% 80%,
      rgba(6, 182, 212, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 80%,
      rgba(244, 63, 94, 0.06) 0%,
      transparent 60%
    );
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-text {
  margin-bottom: var(--space-2xl);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--accent),
    var(--primary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
}

/* ============================================================
   SEARCH CARD
   ============================================================ */
.search-card {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(30px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: slideUp 0.6s var(--ease);
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Trip Tabs */
.trip-tabs {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  background: var(--bg-input);
  padding: 4px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.trip-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}

.trip-tab.active {
  color: var(--text);
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.trip-tab:hover:not(.active) {
  color: var(--text-secondary);
}

.tab-icon {
  width: 16px;
  height: 16px;
}

/* Search Form */
.search-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.search-fields {
  display: grid;
  gap: var(--space-sm);
  align-items: end;
}

.search-row-airports {
  grid-template-columns: 1fr auto 1fr;
}

.search-row-details {
  grid-template-columns: 1fr 1fr 1fr;
}

.field-group {
  position: relative;
}

.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.field-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.field-input-wrap:hover {
  border-color: rgba(148, 163, 184, 0.25);
}

.field-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.field-icon {
  width: 18px;
  height: 18px;
  color: var(--primary-light);
  flex-shrink: 0;
}

.field-input {
  flex: 1;
  background: none;
  font-size: 0.95rem;
  font-weight: 500;
  min-width: 0;
}

.field-input::placeholder {
  color: var(--text-muted);
}

input[type="date"] {
  color-scheme: dark;
  background: transparent;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(0.7);
  cursor: pointer;
}

/* Force dark on all form inputs */
input, select, textarea {
  background: transparent;
  color: var(--text);
  color-scheme: dark;
}

/* Swap Button */
.swap-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-glow);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary-light);
  transition: all var(--duration) var(--ease);
  align-self: center;
  margin-top: 18px;
}

.swap-btn:hover {
  background: var(--primary);
  color: white;
  transform: rotate(180deg);
}

.swap-btn i {
  width: 16px;
  height: 16px;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}

.autocomplete-dropdown.show {
  display: block;
  animation: dropIn 0.2s var(--ease);
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.autocomplete-item:hover {
  background: var(--bg-surface);
}

.autocomplete-code {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-light);
  min-width: 40px;
}

.autocomplete-info {
  flex: 1;
  min-width: 0;
}

.autocomplete-city {
  font-weight: 600;
  font-size: 0.9rem;
}

.autocomplete-airport {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Passengers Dropdown */
.passengers-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
  z-index: 100;
  display: none;
  min-width: 260px;
}

.passengers-dropdown.show {
  display: block;
  animation: dropIn 0.2s var(--ease);
}

.passenger-display {
  font-weight: 500 !important;
  color: var(--text) !important;
}

.pax-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.pax-row:last-of-type {
  border-bottom: none;
}

.pax-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.pax-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.pax-counter {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pax-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
}

.pax-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}

.pax-count {
  font-weight: 700;
  font-size: 1rem;
  min-width: 24px;
  text-align: center;
  font-family: var(--font-en);
}

.pax-cabin {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  margin-top: var(--space-sm);
}

.cabin-select {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 6px;
  color: var(--text);
}

.pax-done-btn {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-top: var(--space-md);
  transition: all var(--duration) var(--ease);
}

.pax-done-btn:hover {
  background: var(--primary-dark);
}

/* Search Button */
.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.search-btn:active {
  transform: translateY(0);
}

.search-btn-icon {
  width: 20px;
  height: 20px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--text-muted);
  opacity: 0.5;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features {
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(30, 41, 59, 0.3) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  text-align: center;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-glow);
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    var(--primary-glow),
    rgba(6, 182, 212, 0.1)
  );
  color: var(--primary-light);
}

.feature-icon {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   POPULAR ROUTES
   ============================================================ */
.popular-routes {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.route-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.4s var(--ease);
}

.route-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.3);
}

.route-img {
  position: relative;
  height: 140px;
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.route-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
}

.route-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
}

.route-info {
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.route-cities {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.route-plane-icon {
  width: 16px;
  height: 16px;
  color: var(--primary-light);
}

.route-price {
  text-align: left;
}

.route-price-from {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.route-price-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--success);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: var(--space-3xl) 0 var(--space-lg);
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-logo {
  margin-bottom: var(--space-md);
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text);
}

.footer-link {
  display: block;
  padding: 4px 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color var(--duration) var(--ease);
}

.footer-link:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   RESULTS PAGE
   ============================================================ */
.results-page {
  padding-top: 65px;
  background: #f7f8fa;
  color: #111827;
}

.results-main {
  min-height: calc(100vh - 65px);
  padding: var(--space-lg) 0;
}

.results-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  align-items: start;
}

/* Filters Sidebar */
.filters-sidebar {
  position: sticky;
  top: 80px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid #eceff3;
}

.filters-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.filters-title i {
  width: 18px;
  height: 18px;
  color: #16a34a;
}

.filters-reset {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #16a34a;
  font-weight: 700;
  transition: color var(--duration) var(--ease);
}

.filters-reset:hover {
  color: var(--danger);
}

.filters-reset i {
  width: 14px;
  height: 14px;
}

.filter-section {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f3f7;
}

.filter-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-label {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Price Range */
.price-range-wrap {
  padding: 0 4px;
}

.price-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--bg-surface);
  border-radius: 2px;
  outline: none;
}

.price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-en);
}

/* Filter Checkboxes */
.filter-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.filter-check:hover {
  background: #f9fafb;
}

.filter-checkbox {
  display: none;
}

.filter-check-custom {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 2px solid #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
  flex-shrink: 0;
}

.filter-checkbox:checked + .filter-check-custom {
  background: #16a34a;
  border-color: #16a34a;
}

.filter-checkbox:checked + .filter-check-custom::after {
  content: "✓";
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}

.filter-check-text {
  flex: 1;
  font-size: 1rem;
  color: #111827;
}

.filter-check-count {
  font-size: 0.95rem;
  color: #4b5563;
  font-family: var(--font-en);
}

/* Time Slots */
.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.time-slots .time-slot:first-child {
  grid-column: 1 / -1;
}

.time-slot {
  padding: 8px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.time-slot:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.time-slot.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.time-slot i {
  width: 16px;
  height: 16px;
}

.time-slot small {
  font-family: var(--font-en);
  font-size: 0.65rem;
  opacity: 0.7;
}

.filters-close-mobile {
  display: none;
}

/* Sort Bar */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  margin-bottom: 10px;
}

.results-count {
  font-size: 1.75rem;
  color: #111827;
  font-weight: 700;
}

.sort-buttons {
  display: flex;
  gap: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.sort-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #4b5563;
  border: 0;
  border-inline-end: 1px solid #e5e7eb;
  background: #fff;
  transition: all var(--duration) var(--ease);
}

.sort-btn:last-child {
  border-inline-end: 0;
}

.sort-btn:hover {
  color: #111827;
  background: #f9fafb;
}

.sort-btn.active {
  color: #111827;
  background: #ecfdf3;
  box-shadow: inset 0 -3px 0 #16a34a;
}

.sort-btn i {
  width: 14px;
  height: 14px;
  display: none;
}

.mobile-filter-btn {
  display: none;
}

/* Smart Panel */
.smart-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.smart-card {
  padding: 12px 16px;
  border-radius: 0;
  background: #fff;
  border: 0;
  border-inline-end: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.smart-card:last-child {
  border-inline-end: 0;
}

.smart-card:hover {
  background: #f9fafb;
  transform: translateY(0);
}

.smart-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 4px;
  text-transform: none;
  letter-spacing: 0;
}

.smart-label i {
  width: 0;
  height: 0;
  display: none;
}

.smart-cheapest .smart-label {
  color: #16a34a;
}
.smart-fastest .smart-label {
  color: #2563eb;
}
.smart-best .smart-label {
  color: #111827;
}

.smart-price {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 2px;
  color: #111827;
}

.smart-info {
  font-size: 0.82rem;
  color: #6b7280;
}

/* ============================================================
   FLIGHT CARD
   ============================================================ */
.flight-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0;
  margin-bottom: 10px;
  transition: all 0.3s var(--ease);
  animation: fadeIn 0.4s var(--ease);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flight-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.07);
}

.flight-card-main {
  display: grid;
  grid-template-columns: 170px 1fr 180px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

/* Airline Info */
.flight-airline {
  text-align: start;
  display: flex;
  align-items: center;
  gap: 10px;
}

.airline-logo {
  width: 52px;
  height: 24px;
  border-radius: 4px;
  margin: 0;
  object-fit: contain;
  background: white;
  padding: 2px;
}

.airline-logo-placeholder {
  width: 52px;
  height: 24px;
  border-radius: 4px;
  margin: 0;
  background: #ecfdf3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.72rem;
  color: #16a34a;
}

.airline-name {
  font-size: 1.05rem;
  color: #111827;
  font-weight: 700;
  white-space: nowrap;
}

/* Flight Route */
.flight-route {
  display: flex;
  align-items: center;
  gap: 14px;
}

.flight-endpoint {
  text-align: center;
  min-width: 90px;
}

.flight-time {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-en);
  line-height: 1;
  margin-bottom: 4px;
}

.flight-airport {
  font-size: 1.05rem;
  color: #4b5563;
  font-family: var(--font-en);
  font-weight: 600;
}

/* Flight Line/Duration */
.flight-path {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 10px;
}

.flight-duration {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.flight-line {
  height: 3px;
  background: #d1d5db;
  position: relative;
}

.flight-line::before,
.flight-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d1d5db;
  transform: translateY(-50%);
}

.flight-line::before {
  right: 0;
}
.flight-line::after {
  left: 0;
}

.flight-line-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  border: 2px solid #fff;
}

.flight-stops-text {
  font-size: 1rem;
  color: #4b5563;
  margin-top: 6px;
}

.flight-stops-direct {
  color: #16a34a;
  font-weight: 600;
}

/* Flight Price */
.flight-price-section {
  text-align: center;
  min-width: 180px;
  border-inline-start: 1px dashed #e5e7eb;
  padding-inline-start: 14px;
}

.flight-price-badges {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.flight-badge {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  background: #eff6ff;
}

.flight-badge.best {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #ea580c;
}

.flight-websites {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.flight-price {
  font-size: 2.3rem;
  font-weight: 900;
  color: #111827;
  line-height: 1;
  margin-bottom: 4px;
}

.flight-price-per {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.flight-deal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  padding: 10px 14px;
  background: #16a34a;
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  transition: all var(--duration) var(--ease);
}

.flight-deal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.28);
}

.flight-deal-btn i {
  display: none;
}

/* Flight Details Expansion */
.flight-details-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 12px;
  margin-top: 0;
  font-size: 0.9rem;
  color: #4b5563;
  border-top: 1px solid #eef1f5;
  background: #fcfcfd;
  transition: color var(--duration) var(--ease);
}

.flight-details-toggle:hover {
  color: #16a34a;
  background: #f9fafb;
}

.flight-details-toggle i {
  width: 16px;
  height: 16px;
  transition: transform var(--duration) var(--ease);
}

.flight-details-toggle.open i {
  transform: rotate(180deg);
}

.flight-details {
  display: none;
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.flight-details.show {
  display: block;
  animation: slideDown 0.3s var(--ease);
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

.segment-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.segment-item:last-child {
  border-bottom: none;
}

.segment-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  padding-top: 4px;
}

.segment-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.segment-line-v {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin: 4px 0;
}

.segment-dot-end {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  flex-shrink: 0;
}

.segment-info {
  flex: 1;
}

.segment-flight-num {
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 600;
  font-family: var(--font-en);
  margin-bottom: 4px;
}

.segment-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.segment-point {
  font-size: 0.85rem;
}

.segment-point strong {
  font-family: var(--font-en);
}

.segment-duration {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.layover-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--warning);
  margin: 4px 0;
}

.layover-info i {
  width: 14px;
  height: 14px;
}

.segments-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin: 8px 0 4px;
  background: rgba(99, 102, 241, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.segments-label i {
  width: 16px;
  height: 16px;
}

.segment-operating {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 8px;
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.skeleton-line {
  height: 16px;
  background: linear-gradient(
    90deg,
    var(--bg-surface) 25%,
    rgba(30, 41, 59, 0.6) 50%,
    var(--bg-surface) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 12px;
}

.skeleton-line.w70 {
  width: 70%;
}
.skeleton-line.w50 {
  width: 50%;
}
.skeleton-line.w30 {
  width: 30%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* No Results */
.no-results {
  text-align: center;
  padding: var(--space-3xl);
}

.no-results-icon {
  width: 64px;
  height: 64px;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.no-results h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.no-results p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--duration) var(--ease);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .search-fields {
    grid-template-columns: 1fr 1fr;
  }

  .swap-btn {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-container {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    z-index: 2000;
    border-radius: 0;
    transition: right 0.3s var(--ease);
    max-height: 100vh;
  }

  .filters-sidebar.open {
    right: 0;
  }

  .filters-close-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    margin-top: var(--space-lg);
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
  }

  .mobile-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
  }
}

@media (max-width: 768px) {
  .search-fields {
    grid-template-columns: 1fr;
  }

  .routes-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .nav-links {
    display: none;
  }

  .flight-card-main {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .flight-airline {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-align: right;
  }

  .airline-logo,
  .airline-logo-placeholder {
    margin: 0;
  }

  .flight-price-section {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: var(--space-md);
  }

  .smart-panel {
    grid-template-columns: 1fr;
  }

  .sort-buttons {
    display: none;
  }

  .compact-search {
    max-width: none;
  }

  .hero {
    padding: 80px 0 40px;
    min-height: auto;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .search-card {
    padding: var(--space-md);
  }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================================
   PROVIDER OFFERS (Price Comparison)
   ============================================================ */
.offers-section {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.offers-header {
    margin-bottom: var(--space-sm);
}

.offers-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.offers-title i {
    width: 14px;
    height: 14px;
    color: var(--primary-light);
}

.offers-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.offer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
}

.offer-row:hover {
    background: rgba(30, 41, 59, 0.8);
}

.offer-best {
    background: rgba(16, 185, 129, 0.06);
    border-color: var(--success) !important;
}

.offer-provider {
    display: flex;
    align-items: center;
    gap: 10px;
}

.offer-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    background: white;
    padding: 3px;
}

.offer-provider-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.offer-best-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--success);
    background: rgba(16, 185, 129, 0.15);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.offer-price-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

.offer-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    font-family: var(--font-en);
}

.offer-best .offer-price {
    color: var(--success);
}

.offer-book-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}

.offer-book-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.offer-book-btn i {
    width: 12px;
    height: 12px;
}

.flight-modal {
    position: fixed;
    inset: 0;
    z-index: 7000;
    display: none;
}

.flight-modal.show {
    display: block;
}

.flight-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.75);
}

.flight-modal-dialog {
    position: relative;
    width: min(1080px, calc(100% - 32px));
    margin: 24px auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-height: calc(100vh - 48px);
    overflow: auto;
}

.flight-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.flight-modal-head h3 {
    margin: 0;
    font-size: 1rem;
}

.flight-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg-surface);
}

.flight-modal-close i {
    width: 16px;
    height: 16px;
}

.flight-modal-body {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg);
}

.flight-modal-itinerary {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.modal-summary {
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.modal-airline {
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-route {
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.modal-duration {
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.flight-modal-offers {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    height: fit-content;
}

.flight-modal-offers-head {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.flight-modal-offers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-offer-row.offer-book-btn {
    width: 100%;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
}

.modal-offer-row.offer-book-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.28);
    border-color: rgba(99, 102, 241, 0.4);
}

.modal-offer-best.offer-book-btn {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.07);
}

.modal-offer-provider-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-offer-provider {
    font-weight: 700;
    font-size: 0.86rem;
}

.modal-offer-side {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-offer-price {
    font-family: var(--font-en);
    font-size: 1rem;
    font-weight: 800;
}

.modal-offer-action {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
}

.flight-modal-open {
    overflow: hidden;
}

/* Flight Details Modal */
.airport-info-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.airport-name {
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
}
.airport-code {
  color: var(--primary);
}
.airport-country {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.segment-point.departure {
  text-align: right;
}
.segment-point.arrival {
  text-align: left;
}
/* RTL Support for segment points */
[dir="rtl"] .segment-point.departure {
  text-align: right;
}
[dir="rtl"] .segment-point.arrival {
  text-align: left;
}
[dir="ltr"] .segment-point.departure {
  text-align: left;
}
[dir="ltr"] .segment-point.arrival {
  text-align: right;
}

.segment-time {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.segment-duration {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}
.segment-line {
  width: 100%;
  height: 2px;
  background: var(--border);
  position: relative;
  margin-top: 4px;
}
.segment-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}
.duration-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
    .offer-row {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .offer-price-action {
        justify-content: space-between;
    }

    /* Search form stacks vertically */
    .search-row-airports {
        grid-template-columns: 1fr !important;
    }

    .search-row-details {
        grid-template-columns: 1fr !important;
    }

    .swap-btn {
        margin: 0 auto;
        transform: rotate(90deg);
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Routes */
    .routes-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Results */
    .results-container {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: fixed;
        inset: 0;
        z-index: 500;
        max-height: 100vh;
        border-radius: 0;
        transform: translateX(100%);
        transition: transform 0.3s var(--ease);
    }

    .filters-sidebar.open {
        transform: translateX(0);
    }

    .flight-modal-dialog {
        width: calc(100% - 16px);
        margin: 8px auto;
        max-height: calc(100vh - 16px);
    }

    .flight-modal-body {
        grid-template-columns: 1fr;
        padding: var(--space-md);
        gap: var(--space-md);
    }

    .modal-offer-row.offer-book-btn {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-offer-side {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.8rem !important;
    }

    .navbar-inner {
        padding: 0 var(--space-sm);
    }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
