/* ==========================================================================
   Search Widget & Hero Flight Banner Styles - Luxury Theme
   ========================================================================== */

.hero-section {
  position: relative;
  /* Authentic Jet Airliner in Sunset Sky Background */
  background: 
    linear-gradient(180deg, rgba(11, 19, 41, 0.85) 0%, rgba(29, 78, 216, 0.65) 50%, rgba(11, 19, 41, 0.95) 100%),
    url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1920&q=85') center center / cover no-repeat;
  color: #ffffff;
  padding: 5.5rem 0 8.5rem 0;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(217, 119, 6, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(29, 78, 216, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(217, 119, 6, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fef3c7;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 15px rgba(217, 119, 6, 0.2);
}

.hero-title {
  color: #ffffff;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-title span {
  color: var(--accent-gold);
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #e2e8f0;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Flight Search Card */
.search-widget-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(11, 19, 41, 0.35);
  border: 1px solid var(--border-color);
  padding: 2rem 2.25rem;
  z-index: 10;
  color: var(--text-main);
  margin-bottom: -5rem;
}

/* Search Tabs (Trip Type & Cabin Class) */
.search-widget-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.trip-type-tabs {
  display: flex;
  background: var(--bg-card-subtle);
  padding: 4px;
  border-radius: var(--radius-full);
  gap: 4px;
}

.trip-tab {
  padding: 0.5rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.trip-tab.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35);
}

.search-top-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Search Fields Grid */
.search-fields-grid {
  display: grid;
  grid-template-columns: 1.2fr auto 1.2fr 1fr 1fr;
  gap: 0.85rem;
  align-items: center;
}

.search-field-box {
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.1rem;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-field-box:hover,
.search-field-box:focus-within {
  border-color: var(--accent);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.field-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  letter-spacing: 0.06em;
}

.field-label svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.field-value {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.field-code {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.field-city {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field-input-clean {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
  padding: 0;
}

/* Swap Airport Button */
.airport-swap-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  z-index: 2;
  margin: 0 -0.5rem;
}

.airport-swap-btn:hover {
  background: var(--accent);
  color: #ffffff;
  transform: rotate(180deg);
  border-color: var(--accent);
}

.airport-swap-btn svg {
  width: 18px;
  height: 18px;
}

/* Search Bottom Actions */
.search-bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
}

.search-options-left {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Airport Dropdown / Autocomplete Menu */
.airport-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  z-index: 100;
  display: none;
}

.airport-dropdown.open { display: block; }

.dropdown-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.airport-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.airport-item:hover {
  background: var(--primary-subtle);
}

.airport-item-info {
  display: flex;
  flex-direction: column;
}

.airport-item-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-main);
}

.airport-item-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.airport-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-xs);
}

/* Passenger & Class Dropdown Popover */
.passenger-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 310px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  z-index: 100;
  display: none;
}

.passenger-popover.open { display: block; }

.passenger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.passenger-row:last-of-type { border-bottom: none; }

.passenger-type-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.passenger-type-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.counter-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.counter-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: var(--bg-card-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.counter-btn:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

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

.counter-value {
  font-weight: 800;
  font-size: 1rem;
  min-width: 20px;
  text-align: center;
}

/* Multi-city dynamic row */
.multicity-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .search-fields-grid { grid-template-columns: 1fr 1fr; }
  .airport-swap-btn { display: none; }
}

@media (max-width: 640px) {
  .search-fields-grid { grid-template-columns: 1fr; }
  .search-widget-card { padding: 1.25rem; }
  .search-bottom-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
}
