/* ====== Reset & Base ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a2e;
  background: #f5f7fa;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ====== Top Bar ====== */
.top-bar {
  background: #0f1b3d;
  color: #ccc;
  font-size: 13px;
  padding: 6px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-right { display: flex; gap: 12px; align-items: center; }
.top-bar-phone { color: #fff; font-weight: 500; }

/* ====== Header ====== */
.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  color: #0057b8;
}
.logo-icon { font-size: 24px; }
.main-nav { display: flex; gap: 6px; }
.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  transition: all 0.2s;
}
.nav-link:hover { background: #f0f4ff; color: #0057b8; }
.nav-link.active { background: #e8f0fe; color: #0057b8; font-weight: 600; }
.btn-login {
  padding: 8px 20px;
  border-radius: 8px;
  background: #0057b8;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-login:hover { background: #004a9e; }

/* ====== Hero ====== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0a1628 0%, #0f2b5e 50%, #1a4b8c 100%);
  padding: 60px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(0,87,184,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(26,75,140,0.4) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.hero-sub {
  color: rgba(255,255,255,0.75);
  text-align: center;
  font-size: 16px;
  margin-bottom: 36px;
}

/* ====== Search Box ====== */
.search-box {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.trip-type-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.trip-btn {
  padding: 8px 20px;
  border: 2px solid #dde2ea;
  border-radius: 24px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}
.trip-btn:hover { border-color: #0057b8; color: #0057b8; }
.trip-btn.active {
  background: #0057b8;
  border-color: #0057b8;
  color: #fff;
}

/* ====== Search Fields Grid ====== */
.search-fields {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1fr 1fr 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
}

.field-group { position: relative; }
.field-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.field-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #dde2ea;
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
  transition: border-color 0.2s;
  cursor: pointer;
}
.field-input-wrap:focus-within { border-color: #0057b8; }
.field-icon { font-size: 18px; flex-shrink: 0; }
.field-input-wrap input {
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  background: transparent;
  color: #1a1a2e;
}
.field-input-wrap input::placeholder { color: #999; }
.field-input-wrap input[type="date"] { cursor: pointer; }
.chevron { font-size: 12px; color: #888; margin-left: auto; }

/* Error state */
input.error { animation: shake 0.3s ease; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Swap button */
.swap-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #dde2ea;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  align-self: end;
  margin-bottom: 4px;
  color: #0057b8;
}
.swap-btn:hover {
  background: #0057b8;
  color: #fff;
  border-color: #0057b8;
}

/* ====== Airport Dropdown ====== */
.airport-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #dde2ea;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
  margin-top: 4px;
}
.airport-dropdown.show { display: block; }
.dd-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #888;
  padding: 10px 14px 4px;
}
.dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.dd-item:hover { background: #f0f4ff; }
.dd-icon { font-size: 18px; flex-shrink: 0; }
.dd-text { min-width: 0; }
.dd-text strong { display: block; font-size: 14px; font-weight: 600; }
.dd-text small { color: #888; font-size: 12px; }
.dd-empty { padding: 20px; text-align: center; color: #999; font-size: 14px; }

/* ====== Passengers Dropdown ====== */
.pax-field { min-width: 180px; }
.pax-trigger { user-select: none; }
#pax-summary { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pax-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid #dde2ea;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  z-index: 200;
  margin-top: 4px;
  padding: 16px;
}
.pax-dropdown.show { display: block; }

.pax-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.pax-row:last-of-type { border-bottom: none; }
.pax-info strong { display: block; font-size: 14px; }
.pax-info span { font-size: 12px; color: #888; }

.pax-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pax-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #0057b8;
  background: #fff;
  color: #0057b8;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
}
.pax-btn:hover { background: #0057b8; color: #fff; }
.pax-count { font-size: 16px; font-weight: 600; min-width: 20px; text-align: center; }

.pax-note {
  font-size: 11px;
  color: #999;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}
.pax-done {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #0057b8;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.pax-done:hover { background: #004a9e; }

/* ====== Search Button ====== */
.search-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b00, #ff8c33);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.search-btn:hover {
  background: linear-gradient(135deg, #e55f00, #ff7a1a);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,107,0,0.35);
}

/* ====== Sections ====== */
.section {
  padding: 60px 0;
}
.section h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 28px;
  color: #1a1a2e;
}

/* ====== Offers ====== */
.offers-section { background: #fff; }
.offers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.offer-card { border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform 0.2s; }
.offer-card:hover { transform: translateY(-4px); }
.offer-img {
  padding: 28px 22px;
  min-height: 230px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  color: #fff;
}
.offer-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.offer-img h3 { font-size: 20px; font-weight: 700; }
.offer-img p { font-size: 14px; opacity: 0.85; margin-top: 4px; }

/* ====== Destinations ====== */
.destinations-section { background: #f5f7fa; }
.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dest-card { border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform 0.2s; }
.dest-card:hover { transform: translateY(-4px); }
.dest-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
}
.dest-info h3 { font-size: 22px; font-weight: 700; }
.dest-info p { font-size: 14px; opacity: 0.9; }

/* ====== Features ====== */
.features-section { background: #fff; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: 14px;
  background: #f8fafd;
  border: 1px solid #eef1f6;
  transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-3px); }
.feature-icon { font-size: 36px; margin-bottom: 14px; }
.feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: #666; }

/* ====== Footer ====== */
.footer {
  background: #0f1b3d;
  color: #ccc;
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col p, .footer-col li {
  font-size: 13px;
  line-height: 2;
}
.footer-col li { cursor: pointer; transition: color 0.2s; }
.footer-col li:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* ====== Results Section ====== */
.results-section {
  padding: 30px 0 60px;
  background: #f0f3f8;
  min-height: 80vh;
}

/* Results Header */
.results-header {
  background: #fff;
  border-radius: 14px;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.rh-route {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}
.rh-city { text-align: center; }
.rh-code { display: block; font-size: 28px; font-weight: 700; color: #0057b8; }
.rh-name { font-size: 13px; color: #666; }
.rh-arrow { font-size: 24px; color: #0057b8; }
.rh-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #555;
}
.rh-type-badge {
  background: #e8f0fe;
  color: #0057b8;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;
}

/* Loading */
.results-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  gap: 20px;
}
.results-loading p { color: #555; font-size: 16px; }
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #dde2ea;
  border-top: 4px solid #0057b8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading-airline-name {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #0057b8;
  animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Toolbar */
.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}
.filter-group select {
  padding: 6px 10px;
  border: 2px solid #dde2ea;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  color: #333;
  background: #fff;
  cursor: pointer;
  outline: none;
}
.filter-group select:focus { border-color: #0057b8; }
.results-count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: #0057b8;
}

/* Flight Section Title */
.flight-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  border-bottom: 2px solid #0057b8;
  margin-bottom: 16px;
}
.flight-section-title.return-title {
  margin-top: 40px;
  border-bottom-color: #ff6b00;
}
.flight-section-date { font-size: 14px; font-weight: 500; color: #666; }

.no-flights {
  text-align: center;
  padding: 40px;
  color: #888;
  font-size: 15px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
}

/* ====== Flight Card ====== */
.flight-card {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 2px solid transparent;
  transition: all 0.2s;
  overflow: hidden;
}
.flight-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border-color: #e0e7f0;
}
.flight-card.selected {
  border-color: #0057b8;
  box-shadow: 0 4px 20px rgba(0,87,184,0.15);
}

.flight-card-main {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 20px;
  padding: 20px 24px;
  align-items: center;
}

/* Airline */
.fc-airline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fc-airline-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.fc-airline-name {
  font-size: 14px;
  font-weight: 600;
  display: block;
}
.fc-flight-num {
  font-size: 12px;
  color: #888;
}

/* Schedule */
.fc-schedule {
  display: flex;
  align-items: center;
  gap: 16px;
}
.fc-time-block { text-align: center; min-width: 60px; }
.fc-time {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  display: block;
}
.fc-airport {
  font-size: 13px;
  color: #888;
  font-weight: 500;
}
.arrival-next-day {
  font-size: 11px;
  color: #e65100;
  font-weight: 700;
  vertical-align: super;
}

.fc-route-line {
  flex: 1;
  text-align: center;
  min-width: 120px;
}
.fc-duration {
  font-size: 12px;
  color: #888;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}
.fc-line {
  position: relative;
  height: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
}
.fc-line-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #ccd5e0;
}
.fc-stop-dot {
  width: 8px;
  height: 8px;
  background: #ff6b00;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  margin: 0 4px;
}
.fc-stops-info {
  margin-top: 6px;
  font-size: 12px;
}
.stops-direct { color: #2e7d32; font-weight: 600; }
.stops-layover { color: #e65100; font-weight: 600; }
.stop-cities { color: #888; margin-left: 4px; font-weight: 400; }

/* Price block */
.fc-price-block {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.fc-price {
  font-size: 24px;
  font-weight: 700;
  color: #0057b8;
}
.fc-price-detail {
  font-size: 11px;
  color: #888;
}
.fc-price-pp {
  font-size: 12px;
  color: #666;
}
.flight-select-btn {
  margin-top: 8px;
  padding: 8px 24px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff6b00, #ff8c33);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.flight-select-btn:hover {
  background: linear-gradient(135deg, #e55f00, #ff7a1a);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255,107,0,0.3);
}
.flight-card.selected .flight-select-btn {
  background: #0057b8;
}

/* Footer / badges */
.flight-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  border-top: 1px solid #f0f2f5;
  background: #fafbfd;
}
.fc-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-green { background: #e8f5e9; color: #2e7d32; }
.badge-gray { background: #f0f0f0; color: #777; }
.badge-blue { background: #e3f2fd; color: #1565c0; }

.flight-details-toggle {
  background: none;
  border: none;
  color: #0057b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.flight-details-toggle:hover { background: #e8f0fe; }

/* Details Panel */
.flight-details-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.flight-details-panel.open {
  max-height: 500px;
}
.fdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 20px 24px 24px;
  border-top: 1px solid #eef1f5;
  background: #f8fafd;
}
.fdp-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fdp-col p {
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

/* Itinerary */
.fdp-itinerary { position: relative; padding-left: 20px; }
.fdp-leg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  position: relative;
}
.fdp-leg:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 18px;
  width: 2px;
  height: calc(100% + 4px);
  background: #ccd5e0;
}
.fdp-leg.connection::after { background: #ff6b00; border-style: dashed; }
.fdp-leg-time {
  font-size: 13px;
  font-weight: 700;
  min-width: 55px;
  color: #333;
}
.fdp-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0057b8;
  margin-top: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.fdp-leg-dot.stop { background: #ff6b00; }
.fdp-leg-info { font-size: 13px; color: #555; }
.fdp-leg-info strong { color: #1a1a2e; }
.fdp-layover {
  display: inline-block;
  font-size: 11px;
  color: #e65100;
  font-weight: 600;
  margin-left: 6px;
}

/* Price Breakdown */
.fdp-price-breakdown { font-size: 13px; }
.fdp-price-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: #555;
  border-bottom: 1px solid #eef1f5;
}
.fdp-price-row.total {
  font-weight: 700;
  color: #0057b8;
  font-size: 15px;
  border-bottom: none;
  padding-top: 10px;
}

/* Back to search */
.back-to-search-btn {
  display: block;
  margin: 30px auto 0;
  padding: 12px 32px;
  border: 2px solid #0057b8;
  border-radius: 10px;
  background: #fff;
  color: #0057b8;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.back-to-search-btn:hover {
  background: #0057b8;
  color: #fff;
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .search-fields {
    grid-template-columns: 1fr auto 1fr;
  }
  .date-field, .pax-field {
    grid-column: span 1;
  }
  .offers-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .flight-card-main {
    grid-template-columns: 150px 1fr 160px;
    gap: 14px;
    padding: 16px 18px;
  }
  .fdp-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hero h1 { font-size: 24px; }
  .search-fields {
    grid-template-columns: 1fr;
  }
  .swap-btn {
    justify-self: center;
    transform: rotate(90deg);
    margin-bottom: 0;
  }
  .offers-grid { grid-template-columns: 1fr; }
  .dest-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0 10px; }
  .btn-login { font-size: 12px; padding: 6px 14px; }

  /* Flight cards responsive */
  .flight-card-main {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .fc-airline {
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f2f5;
  }
  .fc-price-block {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
  }
  .fc-price { font-size: 20px; }
  .flight-select-btn { margin-top: 0; }
  .fc-time { font-size: 18px; }
  .rh-route { gap: 12px; }
  .rh-code { font-size: 22px; }
  .results-toolbar { gap: 10px; }
  .filter-group { width: 100%; }
  .filter-group select { flex: 1; }
  .results-count { width: 100%; text-align: center; margin-left: 0; }
  .fdp-grid { grid-template-columns: 1fr; }
}

/* Scrollbar for dropdowns */
.airport-dropdown::-webkit-scrollbar { width: 6px; }
.airport-dropdown::-webkit-scrollbar-track { background: transparent; }
.airport-dropdown::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.airport-dropdown::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ====== Confirm Bar ====== */
.confirm-bar {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 2px solid #0057b8;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 50;
  border-radius: 14px 14px 0 0;
  margin-top: 20px;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.confirm-bar-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  font-size: 14px;
  color: #333;
}
.cb-flight { display: flex; gap: 4px; align-items: center; }
.cb-total { font-size: 18px; color: #0057b8; }
.confirm-bar-btn {
  background: linear-gradient(135deg, #0057b8, #003d82);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.confirm-bar-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,87,184,0.4); }

/* ====== Booking Section ====== */
.booking-section {
  background: #f5f7fa;
  min-height: 100vh;
  padding: 40px 0 60px;
}
.booking-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 28px;
}
.booking-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 30px;
  align-items: flex-start;
}

/* Left: Reservation summary */
.bs-card {
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: 20px;
}
.bs-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
}
.bs-flight {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #f0f2f5;
}
.bs-flight:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.bs-flight-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.bs-flight-icon { font-size: 18px; color: #555; }
.bs-flight-label { font-weight: 700; font-size: 16px; color: #1a1a2e; }
.bs-flight-airline-logo {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bs-flight-airline { font-size: 14px; font-weight: 600; color: #555; }
.bs-flight-details p {
  margin: 4px 0;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}
.bs-date { font-style: italic; color: #666 !important; }
.bs-stops-direct { color: #2e7d32; font-weight: 600; }
.bs-stops-layover { color: #0057b8; font-weight: 600; }
.bs-fare { color: #2e7d32; font-weight: 600; }

/* Pricing */
.bs-pricing {
  border-top: 2px solid #f0f2f5;
  margin-top: 18px;
  padding-top: 14px;
}
.bs-price-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: #444;
}
.bs-price-row.total {
  border-top: 2px solid #1a1a2e;
  margin-top: 8px;
  padding-top: 12px;
  font-size: 20px;
  font-weight: 800;
  color: #0057b8;
}

/* Right: Forms */
.booking-forms h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
}
.form-card {
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.form-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f2f5;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row:last-child { margin-bottom: 0; }
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.form-field input,
.form-field select {
  padding: 12px 14px;
  border: 1.5px solid #dde1e7;
  border-radius: 8px;
  font-size: 15px;
  color: #1a1a2e;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
  font-family: inherit;
}
.form-field input:focus,
.form-field select:focus {
  border-color: #0057b8;
  box-shadow: 0 0 0 3px rgba(0,87,184,0.1);
}
.form-field input::placeholder { color: #bbb; }

/* Phone field */
.phone-field { display: flex; gap: 0; }
.phone-prefix {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  background: #f5f7fa;
  border: 1.5px solid #dde1e7;
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  color: #555;
}
.phone-prefix select {
  border: none;
  background: transparent;
  font-size: 14px;
  color: #555;
  padding: 4px;
  outline: none;
}
.flag-co { font-size: 18px; }
.phone-field input { border-radius: 0 8px 8px 0 !important; flex: 1; }

/* Birth date selects */
.birth-selects {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.birth-select { padding: 10px 8px !important; font-size: 14px !important; }
.birth-row { grid-template-columns: 1.5fr 1fr; }

/* Booking buttons */
.booking-submit-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #0057b8, #003d82);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}
.booking-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,87,184,0.35);
}
.booking-back-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #fff;
  color: #0057b8;
  border: 2px solid #0057b8;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 12px;
  text-align: center;
}
.booking-back-btn:hover { background: #0057b8; color: #fff; }

/* ====== Booking Success ====== */
.booking-success {
  max-width: 600px;
  margin: 60px auto;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.success-icon { font-size: 64px; margin-bottom: 16px; }
.booking-success h1 { font-size: 28px; color: #1a1a2e; margin-bottom: 12px; }
.success-code { font-size: 18px; color: #0057b8; margin-bottom: 24px; }
.success-details {
  text-align: left;
  background: #f5f7fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.success-details p { margin: 6px 0; font-size: 15px; color: #444; }
.success-note { font-size: 14px; color: #888; font-style: italic; }

/* ====== Booking Responsive ====== */
@media (max-width: 900px) {
  .booking-layout { grid-template-columns: 1fr; }
  .bs-card { position: static; }
  .confirm-bar { flex-direction: column; text-align: center; }
  .confirm-bar-btn { width: 100%; }
}
@media (max-width: 600px) {
  .booking-title { font-size: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .birth-row { grid-template-columns: 1fr; }
  .booking-success { padding: 32px 20px; margin: 30px auto; }
}

/* ====== Children Ages in Pax Dropdown ====== */
#children-ages-container {
  padding: 8px 16px 4px;
  border-top: 1px solid #eee;
}
.pax-ages-label {
  font-size: 12px;
  color: #666;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pax-age-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
  color: #333;
}
.child-age-select {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
  color: #333;
  background: #fff;
  cursor: pointer;
}

/* ====== Airline Logo Image ====== */
.fc-airline-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #f5f5f5;
  padding: 4px;
  flex-shrink: 0;
}
