/* home-styles.css — RouteLinq homepage dynamic content */

/* ── MAJOR AIRPORTS STATUS ── */
.top-airports-band {
  background: #F8FAFC;
  padding: 48px 0;
  border-bottom: 1px solid #E2E8F0;
}

/* Region tabs */
.ta-region-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #E2E8F0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ta-region-tabs::-webkit-scrollbar { display: none; }

.ta-rtab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: #94A3B8;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.ta-rtab:hover { color: #1E293B; }
.ta-rtab.active { color: #1E293B; border-bottom-color: #E85D3A; }

/* Airport list */
.top-airports-list {
  border: 1px solid #E2E8F0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background: #FFFFFF;
}

.ta-loading {
  padding: 32px;
  text-align: center;
  color: #64748B;
  font-size: 14px;
}

/* Grid: rank | info | destinations | weather | tsa | arrow */
.ta-row {
  display: grid;
  grid-template-columns: 32px 1fr 100px 110px 140px 20px;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid #E2E8F0;
  transition: background 0.12s;
}
.ta-row:last-child { border-bottom: none; }

.ta-link {
  cursor: pointer;
}
.ta-link:hover { background: #F8FAFC; }
.ta-link:hover .ta-arrow { opacity: 1; }
.ta-link:hover .ta-iata  { color: #E85D3A; }

/* Rank */
.ta-rank {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #CBD5E1;
  text-align: center;
}

/* Airport info */
.ta-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ta-iata {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1E293B;
  transition: color 0.12s;
}
.ta-name {
  font-size: 13px;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ta-city { font-size: 11px; color: #94A3B8; }

/* Destinations */
.ta-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}
.ta-stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1;
}
.ta-stat-lbl {
  font-size: 10px;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Weather */
.ta-weather {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ta-weather-icon { font-size: 18px; line-height: 1; }
.ta-weather-temp {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1E293B;
}

/* TSA heuristic badge */
.ta-tsa-badge {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ta-tsa-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  /* color set inline from heuristic */
}
.ta-tsa-sub {
  font-size: 10px;
  color: #94A3B8;
  line-height: 1.3;
}

/* Arrow */
.ta-arrow {
  font-size: 13px;
  font-weight: 700;
  color: #E85D3A;
  opacity: 0;
  transition: opacity 0.12s;
  text-align: center;
}

/* Responsive */
@media (max-width: 960px) {
  .ta-row {
    grid-template-columns: 28px 1fr 90px 95px 20px;
    gap: 10px;
    padding: 11px 14px;
  }
  .ta-tsa-badge { display: none; }
  .ta-name { display: none; }
}
@media (max-width: 600px) {
  .ta-row {
    grid-template-columns: 22px 1fr 80px;
    gap: 8px;
    padding: 10px 12px;
  }
  .ta-stat  { display: none; }
  .ta-arrow { display: none; }
}
