/* ── ROUTE PAGE STYLES ── */

.rp-breadcrumb-band {
  background: #1E293B;
  color: #F8FAFC;
  padding: 24px 0 32px;
}

.rp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.rp-breadcrumb {
  font-size: 12px;
  color: rgba(248,250,252,0.5);
  margin-bottom: 16px;
}
.rp-breadcrumb a { color: rgba(248,250,252,0.5); text-decoration: none; }
.rp-breadcrumb a:hover { color: #F8FAFC; }
.rp-breadcrumb span { margin: 0 6px; }

.rp-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -1px;
}
.rp-hero-arrow { color: #E85D3A; margin: 0 12px; }

.rp-hero-sub {
  font-size: 14px;
  color: rgba(248,250,252,0.6);
  margin-bottom: 24px;
}

.rp-search-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.rp-pill {
  background: rgba(248,250,252,0.08);
  border: 1px solid rgba(248,250,252,0.2);
  border-radius: 6px;
  padding: 10px 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.rp-swap { color: rgba(248,250,252,0.5); font-size: 16px; }
.rp-search-btn {
  background: #E85D3A;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-left: 8px;
  transition: background 0.15s;
}
.rp-search-btn:hover { background: #D34E2C; }

.rp-hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(248,250,252,0.15);
  padding-top: 20px;
}
.rp-stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
}
.rp-stat-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(248,250,252,0.5);
  margin-top: 2px;
}

/* ── SECTIONS ── */
.rp-section {
  padding: 32px 0;
  border-bottom: 1px solid #E2E8F0;
}
.rp-section:last-child { border-bottom: none; }

.rp-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 6px;
}

.rp-section-desc {
  font-size: 13px;
  color: #64748B;
  line-height: 1.65;
  margin: 0 0 16px;
}

.rp-narrative {
  font-size: 14px;
  color: #334155;
  line-height: 1.75;
}

.rp-auto-narrative {
  font-size: 13px;
  color: #64748B;
  line-height: 1.7;
  margin-top: 12px;
}

/* ── CARRIERS ── */
.rp-carriers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.rp-carrier-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px;
}
.rp-carrier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.rp-carrier-share {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #1E293B;
}
.rp-carrier-flights {
  font-size: 11px;
  color: #94A3B8;
  margin-bottom: 8px;
}

.al-logo-img {
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #E2E8F0;
  vertical-align: middle;
}
.al-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
}

.hbar-track {
  height: 5px;
  background: #E2E8F0;
  border-radius: 3px;
  overflow: hidden;
}
.hbar-fill { height: 100%; border-radius: 3px; }

/* ── AIRCRAFT ── */
.rp-aircraft-list { display: flex; flex-direction: column; gap: 10px; }
.rp-aircraft-row {
  display: grid;
  grid-template-columns: 140px 1fr 40px;
  align-items: center;
  gap: 12px;
}
.rp-aircraft-name { font-size: 13px; font-weight: 600; color: #1E293B; display: flex; align-items: baseline; gap: 6px; }
.rp-aircraft-code { font-size: 10px; font-weight: 600; color: #94A3B8; font-family: 'Space Grotesk', sans-serif; }
.rp-aircraft-pct { font-size: 12px; color: #64748B; text-align: right; }

/* ── DIRECTION TABS ── */
.rp-dir-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 16px;
}
.rp-dir-tab {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.rp-dir-tab:hover { color: #1E293B; }
.rp-dir-tab.active { color: #1E293B; border-bottom-color: #E85D3A; }

/* ── SCHEDULES ── */
.rp-sched-card {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: hidden;
}
.rp-sched-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}
.rp-sched-count { font-size: 12px; color: #64748B; margin-left: auto; }
.rp-sched-table { width: 100%; border-collapse: collapse; }
.rp-sched-table th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94A3B8;
  padding: 8px 16px;
  border-bottom: 1px solid #E2E8F0;
}
.rp-sched-table td {
  font-size: 13px;
  color: #1E293B;
  padding: 8px 16px;
  border-bottom: 1px solid #F1F5F9;
}
.rp-sched-table tr:last-child td { border-bottom: none; }

/* ── MONTHLY CHART ── */
.rp-mchart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  margin-bottom: 8px;
}
.mc-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mc-bar { width: 100%; border-radius: 3px 3px 0 0; transition: height 0.3s; }
.mc-lbl { font-size: 10px; color: #94A3B8; }
.rp-mchart-note { font-size: 11px; color: #94A3B8; }

/* ── ROUTE SEASONALITY ── */
.rp-season-card { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; padding: 20px; }
.rp-season-headline { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: #1E293B; margin-bottom: 4px; }
.rp-season-sub { font-size: 13px; color: #475569; margin-bottom: 14px; }
.rp-season-hist { font-size: 12px; color: #94A3B8; margin-top: 10px; }

/* ── ROUTE INTELLIGENCE ── */
.rp-ri-summary {
  display: flex;
  gap: 32px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.rp-ri-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #94A3B8; margin-bottom: 4px; }
.rp-ri-val { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: #1E293B; }

.rp-ri-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.rp-ri-card {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px;
}
.rp-ri-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rp-ri-metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.rp-ri-mlbl { font-size: 10px; color: #94A3B8; }
.rp-ri-mval { font-size: 13px; font-weight: 700; color: #1E293B; }

.ri-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── WHY THIS WORKS / TRAVEL TIPS ── */
.rp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.rp-tip-text {
  font-size: 13px;
  color: #475569;
  line-height: 1.7;
}

/* ── GALLERY ── */
.rp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.rp-gallery-slot {
  aspect-ratio: 4/3;
  background: #F1F5F9;
  border: 1px dashed #CBD5E1;
  border-radius: 8px;
}
.rp-gallery-img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

/* ── RELATED ROUTES ── */
.rp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.rp-related-card {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
  display: block;
}
.rp-related-card:hover { border-color: #E85D3A; transform: translateY(-2px); }
.rp-related-route {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #1E293B;
  margin-bottom: 4px;
}
.rp-related-pax { font-size: 11px; color: #94A3B8; }

.rp-empty {
  padding: 24px;
  text-align: center;
  color: #94A3B8;
  font-size: 13px;
  background: #F8FAFC;
  border-radius: 8px;
}

.ap-loading {
  padding: 24px;
  text-align: center;
  color: #94A3B8;
  font-size: 13px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .rp-hero-title { font-size: 30px; }
  .rp-hero-stats { gap: 20px; }
  .rp-two-col { grid-template-columns: 1fr; gap: 24px; }
  .rp-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .rp-related-grid { grid-template-columns: 1fr 1fr; }
  .rp-aircraft-row { grid-template-columns: 100px 1fr 36px; }
}

/* ── ROUTE INTELLIGENCE: live vs historical airlines ── */
.rp-ri-group-hd {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1E293B;
  margin: 16px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rp-ri-group-hd::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
}
.rp-ri-group-hd-hist {
  color: #94A3B8;
  margin-top: 24px;
}
.rp-ri-group-hd-hist::before {
  background: #CBD5E1;
}

.rp-ri-card-hist {
  background: #F8FAFC;
  border-style: dashed;
  border-color: #CBD5E1;
  opacity: 0.85;
}
.rp-ri-card-hist:hover {
  border-color: #94A3B8;
  opacity: 1;
}
.rp-ri-card-hist .rp-ri-mval { color: #64748B; }
.rp-ri-card-hist .rp-ri-mlbl { color: #94A3B8; }

.rp-ri-hist-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94A3B8;
  margin-left: auto;
  white-space: nowrap;
}

.rp-ri-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Grayscale treatment for logos of airlines no longer active on a leg */
.al-logo-img-hist {
  filter: grayscale(1) opacity(0.55);
}
.al-tag-hist {
  filter: grayscale(1) opacity(0.7);
}
