/* ==========================================================================
   SkyAirways - Sub-Page Styles
   Covers: Booking Results, Manage Booking, Check-In, Flight Status,
           Destinations, SkyClub, Help, Contact
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page Header (Breadcrumb + Title)
   -------------------------------------------------------------------------- */
.page-header {
  background-color: var(--rb-navy);
  color: #FFFFFF;
  padding: 32px 0 40px;
}

@media (min-width: 1024px) {
  .page-header {
    padding: 40px 0 56px;
  }
}

.page-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.page-header__breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--rb-transition);
}

.page-header__breadcrumb a:hover {
  color: var(--rb-gold);
}

.page-header__breadcrumb a:focus-visible {
  outline: 2px solid var(--rb-gold);
  outline-offset: 2px;
}

.page-header__breadcrumb-sep {
  color: rgba(255, 255, 255, 0.3);
}

.page-header__breadcrumb-current {
  color: rgba(255, 255, 255, 0.9);
}

.page-header__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .page-header__title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .page-header__title {
    font-size: 2.75rem;
  }
}

[data-theme="dark"] .page-header {
  background-color: var(--rb-surface);
}

/* --------------------------------------------------------------------------
   Page Content Container
   -------------------------------------------------------------------------- */
.page-content {
  max-width: 1280px;
  margin-inline: auto;
  padding: 32px 16px;
}

@media (min-width: 768px) {
  .page-content {
    padding: 40px 24px;
  }
}

@media (min-width: 1024px) {
  .page-content {
    padding: 48px 32px;
  }
}

@media (min-width: 1440px) {
  .page-content {
    padding: 56px 40px;
  }
}

/* ==========================================================================
   1. BOOKING RESULTS
   ========================================================================== */

/* Flight Result Card */
.flight-result {
  display: flex;
  flex-direction: column;
  background-color: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  overflow: hidden;
  transition: box-shadow var(--rb-transition);
  margin-bottom: 16px;
}

.flight-result:hover {
  box-shadow: var(--rb-shadow-lg);
}

@media (min-width: 768px) {
  .flight-result {
    flex-direction: row;
    align-items: stretch;
  }
}

.flight-result__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

@media (min-width: 768px) {
  .flight-result__info {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

/* Departure / Arrival Times */
.flight-result__times {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.flight-result__time-block {
  text-align: center;
}

.flight-result__time {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--rb-text);
  line-height: 1.2;
}

.flight-result__airport {
  font-size: 0.75rem;
  color: var(--rb-text-secondary);
  font-weight: 500;
}

/* Duration / Stops */
.flight-result__route {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 100px;
}

.flight-result__duration {
  font-size: 0.75rem;
  color: var(--rb-text-secondary);
  margin-bottom: 4px;
}

.flight-result__line {
  width: 100%;
  height: 2px;
  background: var(--rb-border);
  position: relative;
}

.flight-result__line::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rb-accent);
}

.flight-result__stops {
  font-size: 0.6875rem;
  color: var(--rb-text-secondary);
  margin-top: 4px;
}

.flight-result__stops--direct {
  color: #059669;
  font-weight: 600;
}

/* Fare Columns */
.flight-result__fares {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--rb-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .flight-result__fares {
    border-top: none;
    border-left: 1px solid var(--rb-border);
    flex-direction: column;
    padding: 16px;
    min-width: 280px;
  }

  .flight-result__fares {
    flex-direction: row;
  }
}

/* Fare Class Pills */
.fare-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 16px;
  border: 2px solid var(--rb-border);
  border-radius: var(--rb-radius);
  cursor: pointer;
  min-width: 100px;
  flex: 1;
  transition: border-color var(--rb-transition), background-color var(--rb-transition);
}

.fare-pill:hover {
  border-color: var(--rb-accent);
}

.fare-pill.is-selected {
  border-color: var(--rb-accent);
  background-color: rgba(27, 184, 245, 0.06);
}

.fare-pill:focus-visible {
  outline: 2px solid var(--rb-accent);
  outline-offset: 2px;
}

.fare-pill__class {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.fare-pill--economy .fare-pill__class {
  color: #2563EB;
}

.fare-pill--economy-flex .fare-pill__class {
  color: #059669;
}

.fare-pill--business .fare-pill__class {
  color: var(--rb-gold);
}

.fare-pill__price {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--rb-text);
}

.fare-pill__currency {
  font-size: 0.6875rem;
  color: var(--rb-text-secondary);
}

/* Loading Skeleton for Results */
.flight-result-skeleton {
  height: 120px;
  background-color: var(--rb-surface);
  border-radius: var(--rb-radius-lg);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.flight-result-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

/* No Results State */
.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 24px;
}

.no-results__icon {
  width: 80px;
  height: 80px;
  color: var(--rb-text-secondary);
  opacity: 0.4;
  margin-bottom: 20px;
}

.no-results__heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.no-results__text {
  color: var(--rb-text-secondary);
  max-width: 360px;
  margin-bottom: 20px;
}

/* ==========================================================================
   2. MANAGE BOOKING
   ========================================================================== */

/* Itinerary Card */
.itinerary-card {
  background-color: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

/* Flight Segments as Timeline */
.itinerary-timeline {
  position: relative;
  padding-left: 28px;
}

.itinerary-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--rb-border);
}

.itinerary-segment {
  position: relative;
  padding-bottom: 24px;
}

.itinerary-segment:last-child {
  padding-bottom: 0;
}

.itinerary-segment::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rb-gold);
  border: 2px solid var(--rb-card);
  box-shadow: 0 0 0 2px var(--rb-gold);
}

.itinerary-segment__time {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rb-text);
}

.itinerary-segment__city {
  font-size: 0.875rem;
  color: var(--rb-text-secondary);
}

.itinerary-segment__flight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rb-navy);
  background: rgba(27, 184, 245, 0.1);
  border-radius: 4px;
}

/* Passenger Info Cards */
.passenger-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  margin-bottom: 12px;
}

.passenger-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--rb-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--rb-navy);
  flex-shrink: 0;
}

.passenger-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--rb-text);
}

.passenger-card__details {
  font-size: 0.8125rem;
  color: var(--rb-text-secondary);
}

/* Action Buttons Row */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ==========================================================================
   3. CHECK-IN
   ========================================================================== */

/* Passenger Selection List */
.checkin-passenger-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.checkin-passenger {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: var(--rb-card);
  border: 2px solid var(--rb-border);
  border-radius: var(--rb-radius);
  cursor: pointer;
  transition: border-color var(--rb-transition);
}

.checkin-passenger:hover {
  border-color: var(--rb-accent);
}

.checkin-passenger.is-selected {
  border-color: var(--rb-accent);
  background-color: rgba(27, 184, 245, 0.04);
}

.checkin-passenger:focus-visible {
  outline: 2px solid var(--rb-accent);
  outline-offset: 2px;
}

.checkin-passenger__checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--rb-border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--rb-transition), border-color var(--rb-transition);
}

.checkin-passenger.is-selected .checkin-passenger__checkbox {
  background-color: var(--rb-accent);
  border-color: var(--rb-accent);
}

/* Seat Map Grid */
.seat-map {
  max-width: 400px;
  margin: 0 auto 32px;
  padding: 24px;
  background-color: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
}

.seat-map__fuselage {
  position: relative;
  padding: 20px 0;
}

/* Airplane nose shape */
.seat-map__nose {
  width: 60%;
  height: 40px;
  margin: 0 auto 16px;
  background-color: var(--rb-surface);
  border-radius: 50% 50% 0 0;
  border: 1px solid var(--rb-border);
  border-bottom: none;
}

.seat-map__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.seat-map__aisle {
  width: 24px;
}

.seat-map__seat {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  border: 1.5px solid var(--rb-border);
  border-radius: 6px 6px 4px 4px;
  cursor: pointer;
  background-color: var(--rb-card);
  color: var(--rb-text-secondary);
  transition: border-color var(--rb-transition), background-color var(--rb-transition);
}

.seat-map__seat:hover:not(.seat-map__seat--occupied):not(.seat-map__seat--unavailable) {
  border-color: var(--rb-accent);
  background-color: rgba(27, 184, 245, 0.08);
}

.seat-map__seat--selected {
  background-color: var(--rb-gold);
  border-color: var(--rb-gold);
  color: var(--rb-navy);
  font-weight: 700;
}

.seat-map__seat--occupied {
  background-color: var(--rb-surface);
  border-color: var(--rb-border);
  color: var(--rb-border);
  cursor: not-allowed;
}

.seat-map__seat--unavailable {
  visibility: hidden;
}

.seat-map__seat:focus-visible {
  outline: 2px solid var(--rb-accent);
  outline-offset: 2px;
}

.seat-map__legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--rb-text-secondary);
}

.seat-map__legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seat-map__legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1.5px solid var(--rb-border);
}

.seat-map__legend-swatch--available {
  background-color: var(--rb-card);
}

.seat-map__legend-swatch--selected {
  background-color: var(--rb-gold);
  border-color: var(--rb-gold);
}

.seat-map__legend-swatch--occupied {
  background-color: var(--rb-surface);
}

/* Boarding Pass Card */
.boarding-pass {
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  overflow: hidden;
}

.boarding-pass__header {
  background-color: var(--rb-navy);
  color: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.boarding-pass__airline {
  font-size: 1rem;
  font-weight: 700;
}

.boarding-pass__flight-number {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rb-gold);
}

.boarding-pass__body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.boarding-pass__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.boarding-pass__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rb-text-secondary);
}

.boarding-pass__value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rb-text);
}

.boarding-pass__value--large {
  font-size: 1.5rem;
}

.boarding-pass__barcode {
  grid-column: 1 / -1;
  height: 60px;
  background: repeating-linear-gradient(
    90deg,
    var(--rb-text) 0px,
    var(--rb-text) 2px,
    transparent 2px,
    transparent 4px,
    var(--rb-text) 4px,
    var(--rb-text) 5px,
    transparent 5px,
    transparent 8px
  );
  border-radius: 4px;
  margin-top: 8px;
}

/* Print styles for boarding pass */
@media print {
  .boarding-pass {
    box-shadow: none;
    border: 2px solid #000;
  }
}

/* ==========================================================================
   4. FLIGHT STATUS
   ========================================================================== */

/* Status Header */
.flight-status-header {
  text-align: center;
  padding: 24px;
  background-color: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  margin-bottom: 24px;
}

.flight-status-header__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--rb-text);
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .flight-status-header__number {
    font-size: 2.5rem;
  }
}

.flight-status-header__route {
  font-size: 1rem;
  color: var(--rb-text-secondary);
}

.flight-status-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 20px;
}

.flight-status-header__badge--on-time {
  background-color: rgba(5, 150, 105, 0.1);
  color: #059669;
}

.flight-status-header__badge--delayed {
  background-color: rgba(245, 158, 11, 0.1);
  color: #D97706;
}

.flight-status-header__badge--cancelled {
  background-color: rgba(220, 38, 38, 0.1);
  color: #DC2626;
}

.flight-status-header__badge--landed {
  background-color: rgba(37, 99, 235, 0.1);
  color: #2563EB;
}

/* Progress Bar (5 phases) */
.flight-progress {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 20px;
  background-color: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  margin-bottom: 24px;
  overflow-x: auto;
}

.flight-progress__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  min-width: 80px;
}

.flight-progress__step::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -50%;
  right: 50%;
  height: 3px;
  background-color: var(--rb-border);
}

.flight-progress__step:first-child::before {
  display: none;
}

.flight-progress__step.is-complete::before {
  background-color: var(--rb-gold);
}

.flight-progress__step.is-active::before {
  background: linear-gradient(90deg, var(--rb-gold) 0%, var(--rb-border) 100%);
}

.flight-progress__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--rb-surface);
  border: 3px solid var(--rb-border);
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

.flight-progress__step.is-complete .flight-progress__dot {
  background-color: var(--rb-gold);
  border-color: var(--rb-gold);
}

.flight-progress__step.is-active .flight-progress__dot {
  background-color: var(--rb-card);
  border-color: var(--rb-gold);
  box-shadow: 0 0 0 4px rgba(27, 184, 245, 0.2);
}

.flight-progress__label {
  font-size: 0.6875rem;
  color: var(--rb-text-secondary);
  font-weight: 500;
}

.flight-progress__step.is-complete .flight-progress__label,
.flight-progress__step.is-active .flight-progress__label {
  color: var(--rb-text);
  font-weight: 600;
}

/* Time Comparison Table */
.time-table {
  width: 100%;
  background-color: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.time-table th,
.time-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.875rem;
}

.time-table thead {
  background-color: var(--rb-surface);
}

.time-table th {
  font-weight: 700;
  color: var(--rb-text);
  font-size: 0.8125rem;
}

.time-table td {
  color: var(--rb-text);
  border-top: 1px solid var(--rb-border);
}

.time-table__changed {
  color: #D97706;
  font-weight: 600;
}

/* Auto-refresh indicator */
.auto-refresh {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--rb-text-secondary);
  margin-bottom: 16px;
}

.auto-refresh__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #059669;
  animation: refresh-pulse 2s ease-in-out infinite;
}

@keyframes refresh-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ==========================================================================
   5. DESTINATIONS
   ========================================================================== */

/* Route Map Container */
.route-map {
  width: 100%;
  height: 280px;
  background-color: var(--rb-surface);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .route-map {
    height: 360px;
  }
}

@media (min-width: 1024px) {
  .route-map {
    height: 400px;
  }
}

.route-map svg {
  width: 100%;
  height: 100%;
}

/* Region Filter Pills */
.region-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.region-filters::-webkit-scrollbar {
  display: none;
}

.region-filter {
  flex-shrink: 0;
  padding: 8px 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rb-text-secondary);
  background: var(--rb-surface);
  border: 1px solid var(--rb-border);
  border-radius: 20px;
  cursor: pointer;
  transition: color var(--rb-transition), background-color var(--rb-transition),
    border-color var(--rb-transition);
  white-space: nowrap;
}

.region-filter:hover {
  color: var(--rb-text);
  border-color: var(--rb-text-secondary);
}

.region-filter.is-active {
  color: var(--rb-navy);
  background-color: var(--rb-gold);
  border-color: var(--rb-gold);
}

.region-filter:focus-visible {
  outline: 2px solid var(--rb-accent);
  outline-offset: 2px;
}

/* Destination Grid Cards (reuses .destinations__grid from sections.css) */

/* ==========================================================================
   6. ROYAL SKIES (Loyalty Program)
   ========================================================================== */

/* Tier Comparison Table */
.tier-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 32px;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
}

.tier-table {
  width: 100%;
  min-width: 600px;
  background-color: var(--rb-card);
}

.tier-table th,
.tier-table td {
  padding: 14px 16px;
  text-align: center;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--rb-border);
}

.tier-table th {
  font-weight: 700;
  background-color: var(--rb-surface);
}

.tier-table th:first-child,
.tier-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.tier-table td:not(:first-child) {
  border-left: 1px solid var(--rb-border);
}

/* Tier header colors */
.tier-table__header--blue {
  color: #2563EB;
}

.tier-table__header--silver {
  color: #6B7280;
}

.tier-table__header--gold {
  color: var(--rb-gold);
}

.tier-table__header--diamond {
  color: #8B5CF6;
}

.tier-table__check {
  color: #059669;
  font-weight: 700;
}

.tier-table__cross {
  color: var(--rb-text-secondary);
  opacity: 0.4;
}

/* Benefits Cards */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  padding: 24px;
  background-color: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  transition: box-shadow var(--rb-transition);
}

.benefit-card:hover {
  box-shadow: var(--rb-shadow);
}

.benefit-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: var(--rb-gold);
}

.benefit-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--rb-text);
}

.benefit-card__text {
  font-size: 0.8125rem;
  color: var(--rb-text-secondary);
  line-height: 1.5;
}

/* Miles Calculator Form */
.miles-calculator {
  padding: 32px;
  background-color: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
}

.miles-calculator__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .miles-calculator__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.miles-calculator__result {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  background-color: var(--rb-surface);
  border-radius: var(--rb-radius);
  margin-top: 20px;
}

.miles-calculator__result-label {
  font-size: 0.8125rem;
  color: var(--rb-text-secondary);
  margin-bottom: 4px;
}

.miles-calculator__result-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--rb-gold);
}

/* ==========================================================================
   7. HELP / FAQ
   ========================================================================== */

/* Search Bar (Prominent) */
.help-search {
  position: relative;
  max-width: 640px;
  margin: 0 auto 40px;
}

.help-search__input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  font-size: 1rem;
  color: var(--rb-text);
  background-color: var(--rb-card);
  border: 2px solid var(--rb-border);
  border-radius: 28px;
  transition: border-color var(--rb-transition), box-shadow var(--rb-transition);
}

.help-search__input:focus {
  border-color: var(--rb-accent);
  box-shadow: 0 0 0 4px rgba(27, 184, 245, 0.15);
  outline: none;
}

.help-search__input::placeholder {
  color: var(--rb-text-secondary);
}

.help-search__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--rb-text-secondary);
  pointer-events: none;
}

/* Help Layout: Sidebar + Content */
.help-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .help-layout {
    flex-direction: row;
    gap: 32px;
  }
}

/* Category Sidebar (desktop) */
.help-sidebar {
  width: 100%;
}

@media (min-width: 1024px) {
  .help-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    align-self: flex-start;
  }
}

/* Mobile: dropdown */
.help-sidebar__dropdown {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: var(--rb-text);
  background-color: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.help-sidebar__dropdown:focus-visible {
  outline: 2px solid var(--rb-accent);
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  .help-sidebar__dropdown {
    display: none;
  }
}

/* Desktop: nav list */
.help-sidebar__nav {
  display: none;
}

@media (min-width: 1024px) {
  .help-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
}

.help-sidebar__link {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--rb-text-secondary);
  border-radius: var(--rb-radius);
  transition: color var(--rb-transition), background-color var(--rb-transition);
}

.help-sidebar__link:hover {
  color: var(--rb-text);
  background-color: var(--rb-surface);
}

.help-sidebar__link.is-active {
  color: var(--rb-accent);
  background-color: rgba(27, 184, 245, 0.06);
  font-weight: 600;
}

.help-sidebar__link:focus-visible {
  outline: 2px solid var(--rb-accent);
  outline-offset: 2px;
}

/* Help Content */
.help-content {
  flex: 1;
  min-width: 0;
}

/* Accordion FAQ Sections */
.faq-section {
  margin-bottom: 32px;
}

.faq-section__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--rb-text);
}

.faq-item {
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--rb-text);
  background-color: var(--rb-card);
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--rb-transition);
}

.faq-item__trigger:hover {
  background-color: var(--rb-surface);
}

.faq-item__trigger:focus-visible {
  outline: 2px solid var(--rb-accent);
  outline-offset: -2px;
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--rb-text-secondary);
  transition: transform var(--rb-transition);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.is-open .faq-item__content {
  max-height: 500px;
}

.faq-item__body {
  padding: 0 16px 16px;
  font-size: 0.875rem;
  color: var(--rb-text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   8. CONTACT
   ========================================================================== */

/* Contact Cards */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  background-color: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  transition: box-shadow var(--rb-transition);
}

.contact-card:hover {
  box-shadow: var(--rb-shadow);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(27, 184, 245, 0.08);
  border-radius: 50%;
  color: var(--rb-gold);
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--rb-text);
}

.contact-card__detail {
  font-size: 0.875rem;
  color: var(--rb-text-secondary);
  line-height: 1.5;
}

.contact-card__link {
  color: var(--rb-accent);
  font-weight: 600;
  transition: color var(--rb-transition);
}

.contact-card__link:hover {
  color: var(--rb-accent-hover);
}

.contact-card__link:focus-visible {
  outline: 2px solid var(--rb-accent);
  outline-offset: 2px;
}

/* Map Placeholder */
.contact-map {
  width: 100%;
  height: 280px;
  background-color: var(--rb-surface);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rb-text-secondary);
  font-size: 0.875rem;
  margin-bottom: 32px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .contact-map {
    height: 360px;
  }
}

/* Operating Hours Table */
.hours-table {
  width: 100%;
  max-width: 500px;
  background-color: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  overflow: hidden;
}

.hours-table th,
.hours-table td {
  padding: 14px 16px;
  font-size: 0.875rem;
  text-align: left;
}

.hours-table thead {
  background-color: var(--rb-surface);
}

.hours-table th {
  font-weight: 700;
  color: var(--rb-text);
}

.hours-table td {
  color: var(--rb-text);
  border-top: 1px solid var(--rb-border);
}

.hours-table__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hours-table__status--open {
  color: #059669;
  font-weight: 600;
}

.hours-table__status--closed {
  color: #DC2626;
  font-weight: 600;
}

/* ==========================================================================
   GLOBAL PAGE OVERRIDES
   ========================================================================== */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .flight-result,
  .fare-pill,
  .checkin-passenger,
  .faq-item__icon,
  .faq-item__content,
  .benefit-card,
  .contact-card,
  .region-filter,
  .help-sidebar__link,
  .help-search__input,
  .flight-result-skeleton::after {
    transition: none;
  }

  .auto-refresh__dot {
    animation: none;
    opacity: 0.7;
  }

  .faq-item.is-open .faq-item__content {
    transition: none;
  }
}
