@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Outfit:wght@400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[lang="en"] {
  direction: ltr;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primary: #1A365D;
  /* Deep Space Blue */
  --primary-light: #2c4a7c;
  --secondary: #48BB78;
  /* Smart Emerald */
  --bg: #f7fafc;
  --white: #ffffff;
  --text: #2d3748;
  --text-light: #718096;
  --border: #edf2f7;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --hero-gradient: linear-gradient(135deg, #1a6b3c 0%, #0d3d22 100%);
}

html,
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'IBM Plex Sans Arabic', 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--white);
  padding: 12px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.logo-portal svg {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover .logo-portal svg {
  transform: scale(1.15) rotate(5deg);
}

.nav {
  display: flex;
  gap: 25px;
}

.nav a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s;
  padding: 5px 0;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--secondary);
}

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lang-btn {
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 25px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--primary);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Mobile Nav */
.mobile-filter-bar {
  display: none;
  margin-bottom: 20px;
}

.mobile-filter-btn {
  width: 100%;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-filter-bar {
    display: block;
  }

  .filters-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    bottom: 0 !important;
    left: auto !important;
    width: 320px !important;
    z-index: 2001 !important;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: block !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2) !important;
    padding: 30px !important;
  }

  [dir="ltr"] .filters-sidebar {
    right: auto !important;
    left: -100% !important;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .filters-sidebar.show {
    right: 0 !important;
  }

  [dir="ltr"] .filters-sidebar.show {
    left: 0 !important;
  }

  .filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
  }

  .filter-overlay.show {
    display: block;
  }

  .filter-close-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 25px;
  }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 20px;
  flex-direction: column;
  gap: 15px;
  box-shadow: var(--shadow);
  z-index: 999;
}

.mobile-nav.show {
  display: flex;
}

.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.3s;
}

.mobile-nav a:hover {
  background: var(--bg);
}

/* Hero */
.hero {
  position: relative;
  background: #ffffff;
  padding: 130px 0 90px;
  text-align: center;
  color: #202124;
  overflow: hidden;
}

.hero::before {
  display: none;
  /* No gradient overlay needed */
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: none;
  animation: fadeInUp 0.8s ease forwards;
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 50px;
  opacity: 0;
  text-shadow: none;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px 35px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 180px;
  transition: transform 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: #fff;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 600;
}

/* Search Section */
.search-section {
  position: relative;
  margin-top: -120px;
  z-index: 10;
  padding-bottom: 20px;
}

.search-card {
  background: var(--white);
  padding: 50px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--secondary);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.smart-hero-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.smart-hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  opacity: 0.9;
}

.search-options {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.search-details {
  display: flex;
  gap: 10px;
}

.dropdown {
  position: relative;
}

.dropdown-btn {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.dropdown-btn:hover {
  border-color: var(--secondary);
  background: var(--bg);
}

.dropdown-btn::after {
  content: '▼';
  font-size: 0.6rem;
  opacity: 0.5;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 10px;
  z-index: 100;
  min-width: 180px;
  display: none;
  margin-top: 8px;
  border: 1px solid var(--border);
}

.dropdown.active .dropdown-content {
  display: block;
}

.passenger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
}

.counter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.counter button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-weight: bold;
}

.counter button:hover {
  background: var(--primary);
  color: white;
}

.class-option {
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.class-option:hover,
.class-option.active {
  background: var(--bg);
  color: var(--secondary);
}

@media (max-width: 768px) {
  .search-options {
    flex-direction: column;
    gap: 10px;
  }
}

.trip-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.trip-tab {
  padding: 10px 25px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.trip-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(26, 54, 93, 0.2);
}

/* Modern Pro Search Bar Optimized */
.search-form-modern {
  background: var(--white);
  padding: 8px;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(26, 54, 93, 0.12);
  border: 1px solid rgba(26, 54, 93, 0.05);
  margin-top: 20px;
}

.search-inputs-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--bg);
  border-radius: 16px;
  overflow: visible;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s;
}

.input-block {
  flex: 1;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  transition: all 0.3s;
  cursor: pointer;
  min-width: 0;
  /* Prevents overflow */
}

.input-block:not(:last-child) {
  border-left: 1px solid rgba(0, 0, 0, 0.06);
}

[dir="ltr"] .input-block:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  border-left: none;
}

.error-msg {
  background: #fff5f5;
  color: #c53030;
  padding: 12px 20px;
  border-radius: 12px;
  margin-top: 15px;
  font-weight: 700;
  font-size: 0.9rem;
  display: none;
  border: 1px solid #feb2b2;
  text-align: center;
}

.error-msg.show {
  display: block;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.input-block:hover {
  background: var(--white);
  border-radius: 12px;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.input-block label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.8;
  white-space: nowrap;
}

.input-block input {
  border: none;
  background: transparent;
  padding: 2px 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  width: 100%;
  outline: none;
  font-family: inherit;
  cursor: pointer;
}

/* Date Input Fix */
.modern-date-input {
  min-height: 24px;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  color-scheme: light;
}

/* Passengers Dropdown Inside Row */
.travelers-block {
  min-width: 160px;
}

.travelers-dropdown-trigger {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  padding: 2px 0;
}

.travelers-content {
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  padding: 20px;
  z-index: 1000;
  width: 280px;
  display: none;
  border: 1px solid var(--border);
}

.travelers-content.active {
  display: block;
  animation: fadeInDown 0.3s ease;
}

.passenger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.class-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
}

.class-option {
  padding: 10px 15px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.class-option:hover,
.class-option.active {
  background: var(--bg);
  color: var(--secondary);
}

.swap-btn-minimal {
  width: 36px;
  height: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  margin: auto -18px;
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-action {
  padding: 8px;
  display: flex;
  align-items: center;
}

.search-btn-pro {
  background: linear-gradient(135deg, var(--secondary), #38a169);
  color: var(--white);
  border: none;
  padding: 0 35px;
  height: 56px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(72, 187, 120, 0.3);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .search-inputs-row {
    flex-direction: column;
    padding: 10px;
    background: transparent;
    border: none;
  }

  .input-block {
    background: var(--bg);
    border-radius: 12px;
    margin-bottom: 8px;
    border: none !important;
  }

  .swap-btn-minimal {
    margin: -25px auto -25px;
    transform: rotate(90deg);
  }

  .search-action {
    padding: 0;
    margin-top: 5px;
  }

  .search-btn-pro {
    width: 100%;
  }
}

.search-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Results */
.results-section {
  display: none;
  margin-top: 40px;
}

.results-section.show {
  display: block;
}

.results-header {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.results-header h3 {
  color: var(--primary);
  margin-bottom: 5px;
}

.results-header p {
  color: var(--text-light);
}

/* Results Layout */
.results-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
}

/* Sidebar Filters */
.filters-sidebar {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

.filter-box {
  margin-bottom: 30px;
}

.filter-box h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--primary);
  border-bottom: 2px solid #f0f4f8;
  padding-bottom: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s;
}

.filter-option:hover {
  color: var(--primary);
}

.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Professional Time Filter Design */
.time-filter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.time-row:hover {
  border-color: #cbd5e1;
  background: #fcfdfe;
  transform: translateX(-4px);
}

.time-row input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.time-row-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.time-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.time-icon-box svg {
  width: 22px;
  height: 22px;
  stroke: #64748b;
  transition: all 0.3s ease;
}

/* Specific icon gradients */
.morning {
  background: #fffcf0;
}

.morning svg {
  stroke: #f59e0b;
}

.afternoon {
  background: #fff7ed;
}

.afternoon svg {
  stroke: #ea580c;
}

.night {
  background: #f5f3ff;
}

.night svg {
  stroke: #6366f1;
}

.time-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.time-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
}

.time-range-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
}

/* Check Indicator */
.check-indicator {
  width: 22px;
  height: 22px;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

.time-row input:checked~.check-indicator {
  border-color: #1a73e8;
  background: #1a73e8;
}

.time-row input:checked~.check-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
}

.time-row input:checked~.time-row-content .time-icon-box {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.time-row input:checked~.time-row-content .time-label {
  color: #1a73e8;
}

/* Stop Segments - Minimalist Fix */
.stop-segments {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.stop-segments .segment-btn input:checked+.segment-content {
  background: #f0f7ff;
  border-color: #1a73e8;
}

/* Sort Bar */
.sort-bar {
  display: flex;
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
  gap: 10px;
}

.sort-tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.sort-tab span {
  font-weight: 700;
  color: var(--text-light);
}

.sort-tab small {
  font-size: 0.8rem;
  color: #888;
}

.sort-tab.active {
  background: #f0f7ff;
}

.sort-tab.active span {
  color: var(--primary);
}

/* Horizontal Flight Card - Premium Style */
.flight-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  display: flex;
  min-height: 160px;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  border: 1px solid #edf2f7;
}

.flight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.flight-card.best-price {
  border: 1px solid #c6f6d5;
}

.card-main {
  flex: 1;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.airline-info {
  width: 120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.airline-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.airline-name {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

.cabin-tag {
  font-size: 0.7rem;
  color: var(--primary);
  background: #ebf4ff;
  padding: 2px 8px;
  border-radius: 10px;
}

.flight-route {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.route-point {
  text-align: center;
}

.route-time {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.route-code {
  font-size: 0.9rem;
  color: #718096;
  font-weight: 600;
}

.route-line {
  flex: 1;
  text-align: center;
  position: relative;
}

.route-line-bar {
  height: 2px;
  background: #cbd5e0;
  margin: 15px 0;
  position: relative;
}

.route-line-bar::after {
  content: '✈️';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
}

.route-duration {
  font-size: 0.85rem;
  color: #718096;
  font-weight: 600;
}

.baggage-info {
  font-size: 0.8rem;
  color: #48bb78;
  font-weight: 600;
  margin-top: 5px;
}

/* Premium Animations & AI Touches */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flight-card {
  background: var(--white);
  border-radius: 16px;
  margin-bottom: 20px;
  display: flex !important;
  align-items: stretch;
  /* Stretch to match heights */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  overflow: visible;
  /* For the AI badge */
  position: relative;
  transition: all 0.3s ease;
  min-height: 180px;
}

.flight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e0;
}

.card-main {
  flex: 1;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.card-price-section {
  width: 240px;
  background: #f8fbff;
  border-right: 1px solid #edf2f7;
  /* For RTL */
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  text-align: center;
}

[dir="ltr"] .card-price-section {
  border-right: none;
  border-left: 1px solid #edf2f7;
}

.price-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.price-currency {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 700;
  margin-top: 5px;
}

.flight-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* AI Smart Badge - Professional Tag */
.ai-smart-badge {
  position: absolute;
  top: -14px;
  right: 25px;
  background: linear-gradient(135deg, #f6e05e, #ecc94b);
  color: #744210;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 10px 15px rgba(214, 158, 46, 0.4);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 4px solid var(--white);
}

[dir="ltr"] .ai-smart-badge {
  right: auto;
  left: 25px;
}

/* Airline Info Enhancements */
.airline-info {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 180px;
}

.airline-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.airline-name {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
}

.flight-number {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
}

.btn-book {
  width: 100%;
  padding: 12px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-monitor {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-monitor:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-book {
  padding: 12px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s;
}

.btn-book:hover {
  background: #d62839;
}

/* Compare Prices Button - Affiliate */
.btn-compare {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-compare:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-alert {
  padding: 12px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-alert:hover {
  background: var(--primary);
  color: var(--white);
}

/* Price Advice */
.price-advice {
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.price-advice.up {
  background: #fff5f5;
  border: 2px solid #feb2b2;
}

/* Price Advice Pro Enhancements */
.price-advice-pro {
  padding: 25px;
  border-radius: 20px;
  margin-bottom: 25px;
  background: white;
  border: 1px solid #edf2f7;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.price-advice-pro.up {
  border-right: 6px solid #48bb78;
  /* Green for deal */
}

.price-advice-pro.down {
  border-right: 6px solid #ecc94b;
  /* Yellow for warning */
}

.advice-main-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.confidence-container {
  background: #f8fafc;
  padding: 15px;
  border-radius: 12px;
}

.confidence-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
}

.confidence-pct {
  color: var(--primary);
}

.confidence-bar-bg {
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.confidence-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary) 0%, #4fd1c5 100%);
  border-radius: 10px;
  transition: width 1s ease-in-out;
}

.market-insights {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: white;
  padding: 10px 0;
}

.insight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.insight-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.insight-value {
  font-weight: 800;
  color: var(--primary);
  font-size: 1rem;
}

.insight-divider {
  width: 1px;
  height: 30px;
  background: #e2e8f0;
}

.price-disclaimer-text {
  font-size: 0.8rem;
  color: #718096;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.last-checked-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #48bb78;
  background: rgba(72, 187, 120, 0.08);
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(72, 187, 120, 0.2);
}

@keyframes pulseLoop {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* No Results */
.no-results {
  background: var(--white);
  padding: 60px 20px;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.no-results-icon {
  font-size: 4rem;
  margin-bottom: 15px;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: var(--white);
}

.features-section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius);
  background: var(--bg);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Destinations Section */
.destinations-section {
  padding: 80px 0;
}

.destinations-section h2 {
  text-align: center;
  display: block;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* Destinations - Deal Cards */
.destination-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 380px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.dest-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.destination-card:hover .dest-image {
  transform: scale(1.1);
}

.dest-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  text-align: right;
}

.dest-price-tag {
  background: var(--secondary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  margin-top: 10px;
}

/* Premium Footer/CTA Section */
.footer-cta {
  background: linear-gradient(135deg, #1a365d 0%, #2a4365 100%);
  padding: 80px 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 40px 40px;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.btn-cta-white {
  background: white;
  color: var(--primary);
  padding: 15px 40px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta-white:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Footer - Slim */
footer {
  background: #0a111a;
  color: var(--white);
  padding: 20px 0;
  margin-top: auto;
}

.footer-slim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-slim-brand {
  flex-shrink: 0;
}

.footer-slim-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-slim-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-slim-links a:hover {
  color: var(--secondary);
}

.footer-slim-copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

/* Premium Modal Styling */
.premium-modal {
  background: var(--white);
  border-radius: 30px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.modal-icon {
  font-size: 1.8rem;
  background: #fff5f5;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
}

.selected-route-pro {
  background: #f8fbff;
  border: 1px solid #edf2f7;
  border-radius: 20px;
  padding: 20px;
  margin: 25px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.route-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.route-airline-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--primary);
}

.mini-logo {
  height: 24px;
  width: auto;
}

.route-price-mini {
  font-weight: 800;
  color: var(--secondary);
  font-size: 1.2rem;
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.phone-input-wrapper:focus-within {
  border-color: #25d366;
  /* WhatsApp Green */
  background: white;
}

.country-code {
  padding: 0 15px;
  font-weight: 700;
  color: #64748b;
  border-left: 1px solid #e2e8f0;
}

[dir="ltr"] .country-code {
  border-left: none;
  border-right: 1px solid #e2e8f0;
}

.phone-input-wrapper input {
  background: transparent !important;
  border: none !important;
  padding: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
}

.submit-btn-pro {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 15px;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  box-shadow: 0 10px 20px rgba(30, 58, 95, 0.2);
}

.submit-btn-pro:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(30, 58, 95, 0.4);
}

.submit-btn-pro:active {
  transform: translateY(-1px) scale(0.98);
}

.field-hint {
  display: block;
  margin-top: 8px;
  color: #25d366;
  font-weight: 600;
  font-size: 0.8rem;
}

.privacy-note {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 20px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 15px 30px;
  border-radius: 50px;
  color: var(--white);
  font-weight: 600;
  z-index: 3000;
  transition: transform 0.3s;
  box-shadow: var(--shadow);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: #48bb78;
}

.toast.error {
  background: var(--secondary);
}

/* Responsive */
@media (max-width: 1024px) {

  .features-grid,
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .flight-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 15px;
  }

  .flight-route {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .hero-stats {
    gap: 15px;
  }

  .stat {
    padding: 15px 20px;
    min-width: 140px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .swap-btn {
    margin: 0 auto;
  }

  .features-grid,
  .destinations-grid {
    grid-template-columns: 1fr;
  }

  .search-card {
    padding: 25px 15px;
    border-radius: 16px;
  }

  .smart-hero-title {
    font-size: 1.8rem;
  }

  .smart-hero-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .search-section {
    margin-top: -40px !important;
  }
}

/* Skeletons */
.skeleton {
  width: 100%;
  height: 120px;
  background: linear-gradient(90deg, #f8f9fa 25%, #e0e0e0 50%, #f8f9fa 75%);
  background-size: 200% 100%;
  animation: loadingSk 1.5s infinite linear;
  border-radius: 12px;
  margin-bottom: 20px;
  display: block;
}

@keyframes loadingSk {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

#flightsList {
  padding-top: 10px;
  min-height: 200px;
}

.results-section {
  display: none;
  padding: 40px 0;
  background: #f8fbfd;
}

.results-section.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

.search-summary {
  background: var(--white);
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border: 1px solid var(--border);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sort-bar {
  margin-bottom: 20px;
}

.sort-tabs {
  display: flex;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.sort-tab {
  flex: 1;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

[dir="ltr"] .sort-tab {
  border-left: none;
  border-right: 1px solid var(--border);
}

.sort-tab:last-child {
  border: none;
}

.sort-tab.active {
  background: #f0fff4;
  color: var(--secondary);
  box-shadow: inset 0 -3px 0 var(--secondary);
}

.sort-tab span {
  font-weight: 700;
  font-size: 0.9rem;
}

.sort-price {
  font-size: 0.8rem;
  opacity: 0.8;
  font-weight: 800;
}

/* Inner Pages */
.page-header {
  background: #fff;
  color: #202124;
  padding: 120px 0 30px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-shadow: none;
}

.page-header p {
  font-size: 1.1rem;
  color: #5f6368;
}

.page-content {
  padding: 60px 0;
}

.content-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.content-card h2 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.5rem;
  border-bottom: 2px solid #edf2f7;
  padding-bottom: 10px;
}

.content-card p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 15px;
}

.content-card ul {
  margin-right: 20px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.content-card li {
  margin-bottom: 10px;
}

/* Mobile & Autocomplete Fixes */
@media (max-width: 768px) {
  .logo-img {
    height: 32px;
    width: auto;
  }

  .logo {
    font-size: 1.2rem;
  }

  .header {
    padding: 10px 0;
  }
}

/* Premium Autocomplete Final Design - Perfect Width & Spacing */
.autocomplete-wrapper {
  position: relative;
  width: 100%;
}

.autocomplete-results {
  position: absolute;
  top: 100%;
  right: 0;
  /* محاذاة لليمين في العربي */
  background: white;
  z-index: 1100;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
  display: none;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 8px;
  padding: 8px 0;
  min-width: 320px;
  width: calc(100vw - 40px);
  max-width: 500px;
}

[dir="ltr"] .autocomplete-results {
  right: auto;
  left: 0;
}

.autocomplete-results.show {
  display: block;
}

.result-item {
  padding: 15px 25px;
  border-bottom: 1px solid #f9f9f9;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-direction: row-reverse !important;
  gap: 20px;
  transition: all 0.2s ease;
  white-space: nowrap;
  /* منع النص من النزول لسطر جديد */
}

.result-item:last-child {
  border-bottom: none;
}

.result-item:hover {
  background-color: #f4f9ff;
}

.result-info {
  flex: 1;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

[dir="ltr"] .result-info {
  text-align: left;
}

.result-city {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1e3a5f;
}

.result-airport {
  display: block;
  font-size: 0.85rem;
  color: #718096;
}

.result-code-badge {
  background: #f1f3f5;
  color: #4a5568;
  padding: 8px 0;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  width: 65px;
  text-align: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.result-icon {
  font-size: 1.2rem;
  color: #e2e8f0;
  transition: color 0.3s;
}

.result-item:hover .result-icon {
  color: #f1c40f;
}

/* ==================== Mobile Results Fix ==================== */
@media (max-width: 768px) {

  /* Results Layout */
  .results-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Sort bar on mobile */
  .sort-bar {
    flex-wrap: wrap;
    padding: 5px;
    gap: 5px;
  }

  .sort-tab {
    padding: 8px;
    flex: 1 1 30%;
    min-width: 0;
  }

  /* Price Advice on mobile */
  .price-advice-pro {
    padding: 15px;
    gap: 15px;
  }

  .advice-main-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .advice-icon {
    font-size: 2rem;
  }

  /* Search Summary */
  .search-summary {
    font-size: 0.9rem;
    padding: 10px;
    text-align: center;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 15px;
  }
}

/* ============================================================
   ROBUST UI FIX: PREMIUM FLIGHT CARDS
   ============================================================ */

/* 1. Global SVG Reset for the cards */
.flight-card svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

/* 2. Core Card Layout */
.flight-card {
  background: #ffffff !important;
  border-radius: 24px !important;
  margin-bottom: 30px !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  /* Prevent sidebar from dropping down */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
  border: 1px solid #e5e7eb !important;
  position: relative !important;
  overflow: visible !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.flight-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  border-color: #e2e8f0 !important;
}

.flight-card.is-smart-choice {
  border: 1px solid #fbbf24 !important;
  background: linear-gradient(to right, #ffffff, #fffdf7) !important;
}

.flight-card.is-hidden {
  display: none !important;
}

/* 3. Main Content Area */
.card-body {
  flex: 1;
  padding: 32px;
  display: flex !important;
  flex-direction: column !important;
  gap: 24px;
}

.airline-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-box {
  width: 110px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.airline-meta .name {
  display: block;
  font-weight: 800;
  color: #1e293b;
  font-size: 1.15rem;
  line-height: 1.2;
}

.airline-meta .number {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
}

/* 4. Itinerary Legs */
.itineraries-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.itinerary-leg {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leg-label {
  align-self: flex-start;
  padding: 4px 12px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 8px;
  text-transform: uppercase;
}

.leg-content {
  display: flex;
  align-items: center;
  gap: 32px;
}

.leg-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.leg-time {
  font-size: 1.75rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.leg-code {
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

/* Path Visualization */
.leg-path {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.path-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
}

.path-line {
  height: 2px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  position: relative;
  margin: 10px 0;
}

.line-start {
  width: 8px;
  height: 8px;
  background: #cbd5e0;
  border-radius: 50%;
  margin-left: -4px;
}

.line-end {
  margin-right: -12px;
  background: white;
  padding: 2px;
  border-radius: 50%;
  z-index: 2;
}

.plane-icon {
  width: 24px !important;
  height: 24px !important;
  fill: #3b82f6;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
}

[dir="rtl"] .plane-icon {
  transform: scaleX(-1);
}

[dir="rtl"] .line-start {
  margin-left: initial;
  margin-right: -4px;
}

[dir="rtl"] .line-end {
  margin-right: initial;
  margin-left: -12px;
}

/* 5. Features and Tags */
.features-tags {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  transition: all 0.2s;
}

.tag:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.tag svg {
  width: 16px !important;
  height: 16px !important;
  color: #64748b;
}

/* 6. Pricing Sidebar */
.card-sidebar {
  width: 260px;
  background: #fbfdff;
  border-right: 1px solid #f1f5f9;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  text-align: center;
  flex-shrink: 0;
  /* Important: Sidebar shouldn't shrink */
}

[dir="ltr"] .card-sidebar {
  border-right: none;
  border-left: 1px solid #f1f5f9;
}

.price-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.price-box .label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #7f8ea3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-monitor-icon {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a73e8;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-monitor-icon:hover {
  background: #f8fbff;
  border-color: #1a73e8;
  color: #1a73e8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

.btn-monitor-icon svg {
  width: 18px !important;
  height: 18px !important;
}

.price-box .val {
  font-size: 3rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.price-box .cur {
  font-size: 1.1rem;
  font-weight: 800;
  color: #64748b;
}

/* 7. Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary,
.btn-secondary,
.btn-outline {
  padding: 14px;
  border-radius: 16px;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.95rem !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary {
  background: #1a73e8;
  /* Professional Travel Blue */
  color: #ffffff;
  border: none;
  font-size: 1rem !important;
  padding: 16px !important;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
}

.btn-primary:hover {
  background: #1557b0;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(26, 115, 232, 0.4);
}

.btn-secondary {
  background: #f8f9fa;
  color: #3c4043;
  border: 1px solid #dadce0;
}

.btn-secondary:hover {
  background: #f1f3f4;
  border-color: #bdc1c6;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #dadce0;
  color: #5f6368;
}

.btn-outline:hover {
  background: #f8f9fa;
  border-color: #bdc1c6;
  color: #3c4043;
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e0;
  color: #1e293b;
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e0;
  color: #1e293b;
}

.btn-outline svg {
  color: #64748b;
}

/* 8. Smart Badge */
.smart-badge {
  position: absolute;
  top: -16px;
  right: 24px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 900;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.3);
  z-index: 10;
  border: 4px solid #ffffff;
}

[dir="ltr"] .smart-badge {
  right: auto;
  left: 24px;
}

.badge-icon {
  width: 16px !important;
  height: 16px !important;
  fill: currentColor;
}

/* 9. Responsive */
@media (max-width: 768px) {
  .flight-card {
    flex-direction: column !important;
    min-height: auto !important;
  }

  .card-sidebar {
    width: 100% !important;
    border: none !important;
    border-top: 1px solid #edf2f7 !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    padding: 20px !important;
    align-items: center !important;
  }

  .price-box .val {
    font-size: 2rem !important;
  }

  .action-buttons {
    flex-direction: row !important;
    gap: 8px !important;
  }

  .btn-primary,
  .btn-secondary,
  .btn-outline {
    padding: 10px 15px !important;
    font-size: 0.85rem !important;
  }

  .card-body {
    padding: 20px !important;
    gap: 15px !important;
  }

  .leg-content {
    gap: 15px !important;
    justify-content: space-between !important;
  }

  .leg-time {
    font-size: 1.4rem !important;
  }

  .leg-point {
    min-width: 60px !important;
  }

  .airline-section {
    gap: 12px !important;
  }

  .logo-box {
    width: 90px !important;
    height: 36px !important;
  }

  .smart-badge {
    top: -12px !important;
    right: 15px !important;
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
  }

  [dir="ltr"] .smart-badge {
    right: auto !important;
    left: 15px !important;
  }
}

@media (max-width: 600px) {
  .leg-content {
    gap: 10px !important;
  }

  .leg-time {
    font-size: 1.2rem !important;
  }

  .card-sidebar {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .action-buttons {
    width: 100% !important;
  }
}

/* 10. Deals Section */
.deals-section {
  padding: 60px 0;
  background: #fff;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.deal-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
}

.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.deal-image {
  height: 180px;
  width: 100%;
  object-fit: cover;
  background-color: #f1f5f9;
}

.deal-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.deal-dest-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 5px;
}

.deal-dates {
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 15px;
}

.deal-price-tag {
  margin-top: auto;
  font-size: 1.3rem;
  font-weight: 900;
  color: #10b981;
}

.deal-price-label {
  font-size: 0.8rem;
  font-weight: normal;
  color: #718096;
}


/* Explore Deals Section */
.deals-section {
  padding: 60px 0;
  background: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-desc {
  color: var(--text-light);
  font-size: 1.1rem;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.deal-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(26, 54, 93, 0.12);
}

.deal-image-wrapper {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.deal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.deal-card:hover .deal-image {
  transform: scale(1.05);
}

.deal-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  /* Arabic RTL */
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  backdrop-filter: blur(4px);
}

[dir="ltr"] .deal-overlay {
  right: auto;
  left: 10px;
}

.deal-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.deal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.deal-city {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.deal-country {
  font-size: 0.9rem;
  color: var(--text-light);
}

.deal-price {
  text-align: left;
}

[dir="ltr"] .deal-price {
  text-align: right;
}

.price-tag {
  font-size: 1.4rem;
  font-weight: 900;
  color: #10b981;
  /* Green for deals */
  display: block;
  line-height: 1;
}

.price-label {
  font-size: 0.75rem;
  color: var(--text-light);
}

.deal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 15px;
  margin-top: 10px;
}

.deal-dates {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.deal-btn {
  background: var(--bg);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.deal-card:hover .deal-btn {
  background: var(--primary);
  color: white;
}

/* --- Explore Page Redesign (Google Flights Style) --- */

.explore-hero {
  padding-top: 100px;
  padding-bottom: 30px;
  background-color: #fff;
  /* Optional: Add a subtle cloud illustration background here */
  background-image:
    radial-gradient(circle at 10% 20%, rgba(26, 115, 232, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 10%, rgba(26, 115, 232, 0.05) 0%, transparent 20%);
  text-align: center;
}

.explore-header-content {
  margin-bottom: 40px;
}

.explore-tagline {
  font-size: 1.1rem;
  color: #5f6368;
  margin-bottom: 5px;
  font-weight: 500;
}

.explore-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.explore-title {
  font-size: 2.8rem;
  font-weight: 400;
  /* Lighter weight like Google */
  color: #1a73e8;
  /* Google Blue */
  margin: 0;
}

.beta-badge {
  border: 1px solid #1a73e8;
  color: #1a73e8;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.origin-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #3c4043;
  font-size: 1.1rem;
}

.edit-origin-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #70757a;
  font-size: 1rem;
}

/* Search Bar */
.explore-search-container {
  max-width: 700px;
  margin: 0 auto 30px;
  position: relative;
}

.explore-search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 5px 15px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  height: 48px;
  transition: box-shadow 0.2s;
}

.explore-search-bar:hover,
.explore-search-bar:focus-within {
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28), 0 2px 4px rgba(32, 33, 36, 0.1);
  background: #fff;
  border-color: transparent;
}

.search-icon-btn {
  background: none;
  border: none;
  color: #9aa0a6;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.icon-lg {
  width: 20px;
  height: 20px;
}

.explore-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #3c4043;
  font-family: inherit;
}

.explore-sparkle-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Filters */
.explore-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.chip {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 18px;
  padding: 6px 12px;
  font-size: 0.9rem;
  color: #3c4043;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  font-family: inherit;
}

.chip:hover {
  background: #f1f3f4;
  border-color: #dadce0;
}

.chip.active {
  background: #e8f0fe;
  color: #1967d2;
  border-color: #e8f0fe;
}

.dropdown-arrow {
  font-size: 0.6rem;
  color: #70757a;
}

/* Results Header */
.results-header-text {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Centered as per screenshot, or flex-start if preferred */
  gap: 10px;
  color: #3c4043;
  margin-bottom: 10px;
  direction: rtl;
}

.results-header-text h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.info-icon {
  color: #70757a;
  width: 16px;
  height: 16px;
  border: 1px solid #70757a;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: help;
}

/* Deal Cards Grid Adjustments for this page */
#exploreDeals .deals-grid {
  margin-top: 10px;
}

/* --- Google Flights Style Search Bar --- */

/* Card Override */
.search-card.google-style {
  position: relative;
  padding: 15px 15px 35px 15px;
  /* Extra bottom padding for floating button */
  border-radius: 8px;
  /* More rectangular */
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
  background: #fff;
  max-width: 100%;
}

/* Header Row */
.search-header-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding: 0 5px;
  align-items: center;
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  color: #5f6368;
  cursor: pointer;
  font-weight: 500;
}

.setting-item:hover {
  background: #f1f3f4;
  border-radius: 4px;
}

.clean-select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  color: #5f6368;
  cursor: pointer;
  font-weight: 500;
  outline: none;
  /* appearance: none; */
  /* Let default arrow show for now or custom later */
}


/* Inputs Container */
.search-form-google .inputs-container {
  display: flex;
  gap: 10px;
  position: relative;
  align-items: center;
}

/* Input Boxes */
.input-box {
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 0 12px;
  height: 56px;
  display: flex;
  align-items: center;
  position: relative;
  background: #fff;
  transition: border 0.2s;
}

.input-box:focus-within {
  border: 2px solid #1a73e8;
  /* Google Blue focus */
  border-color: #1a73e8;
}

.input-box.origin,
.input-box.destination {
  flex: 1.5;
}

.input-box.dates-group {
  flex: 2;
  justify-content: space-between;
}

.input-box input {
  border: none;
  outline: none;
  width: 100%;
  height: 100%;
  font-size: 1rem;
  color: #3c4043;
  font-family: inherit;
  background: transparent;
}

/* Specific Icons */
.circle-icon {
  font-size: 0.8rem;
  color: #5f6368;
  margin-left: 8px;
}

.pin-icon {
  font-size: 1rem;
  color: #5f6368;
  margin-left: 8px;
}

.calendar-icon {
  font-size: 1rem;
  color: #5f6368;
}

/* Swap Button */
.swap-icon-box {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #dadce0;
  cursor: pointer;
  color: #1a73e8;
  font-size: 1.1rem;
  margin: 0 -5px;
  /* Pull it slightly in */
  z-index: 2;
}

.swap-icon-box:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3);
}

/* Dates Group Internals */
.date-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  position: relative;
}

.date-label {
  font-size: 0.75rem;
  color: #5f6368;
  position: absolute;
  top: 5px;
}

.clean-date {
  padding: 0;
  text-align: center;
  width: 100%;
}

/* Clean Date Input Styling */
.centered-input {
  text-align: center;
  cursor: pointer;
}

/* Hide default calendar icon and placeholder text in date mode if possible */
input[type="date"]::-webkit-calendar-picker-indicator {
  background: transparent;
  bottom: 0;
  color: transparent;
  cursor: pointer;
  height: auto;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
  display: none;
  /* User explicitly asked to hide it */
}

input[type="date"]::-webkit-inner-spin-button {
  display: none;
}

.date-divider {
  width: 1px;
  height: 60%;
  background: #dadce0;
  margin: 0 5px;
}

/* Inline Search Button */
.search-btn-inline {
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 28px;
  /* High radius for pill shape */
  padding: 0 28px;
  height: 56px;
  /* Match input height */
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3);
  margin-right: 10px;
  /* Space from inputs */
}

.search-btn-inline:hover {
  background: #1765cc;
  box-shadow: 0 2px 4px rgba(60, 64, 67, 0.3);
}

/* Remove old footer styles if not used */
/* search-footer: see bottom of file */

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .search-form-google .inputs-container {
    flex-direction: column;
    align-items: stretch;
  }

  .swap-icon-box {
    margin: -5px auto;
    transform: rotate(90deg);
  }

  .input-box {
    margin-bottom: 5px;
  }

  .search-card.google-style {
    padding-bottom: 15px;
  }

  .search-btn-inline {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    margin-right: 0;
  }
}

/* ========== TRAVELERS MENU & SEARCH FOOTER FIX ========== */

/* Search Footer - Floating Button */
.search-footer {
  position: absolute !important;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: block !important;
}

/* Travelers Menu - Hidden by default, shown on click */
.travelers-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  right: 0;
  width: 300px;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 16px;
  z-index: 1000;
  border: 1px solid #e2e8f0;
  margin-top: 8px;
  text-align: right;
}

html[dir="rtl"] .travelers-menu {
  right: auto;
  left: 0;
}

.travelers-menu.active {
  display: block !important;
}

.traveler-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.traveler-type:last-of-type {
  border-bottom: none;
}

.traveler-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: white;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.control-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.class-options {
  margin-top: 10px;
}

.class-option {
  padding: 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.class-option:hover {
  background: #f1f5f9;
}

.class-option.active {
  background: #e8f0fe;
  color: #1a73e8;
  font-weight: 500;
}

.setting-item-wrapper {
  position: relative;
  display: inline-block;
}

/* Hero Headline - Clean Google Style */
.hero-headline {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  color: #202124;
  margin: 0;
  padding: 10px 0 20px;
  line-height: 1.4;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

/* Google-Style Search Button */
.search-btn-google {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.search-btn-google:hover {
  background: #1765cc;
  box-shadow: 0 2px 8px rgba(32, 33, 36, 0.35);
}

.search-btn-google:active {
  transform: scale(0.97);
}

.search-btn-google svg {
  flex-shrink: 0;
}