/* ============================================================
   MyLayover — Single Airport Insider Guide
   Dark theme, on-brand with itinerary pages
   ============================================================ */

html { scroll-behavior: smooth; }

/* Override Astra defaults */
body.single-airport {
  background: #0b1220 !important;
}

body.single-airport .site-content,
body.single-airport #content,
body.single-airport #primary,
body.single-airport .ast-container,
body.single-airport .content-area,
body.single-airport .site-main,
body.single-airport .entry-content,
body.single-airport article {
  background: transparent !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Hide Astra default post header/meta */
body.single-airport .entry-header,
body.single-airport .ast-single-post-order,
body.single-airport .post-navigation,
body.single-airport .entry-meta,
body.single-airport .ast-author-box,
body.single-airport .ast-comment-box {
  display: none !important;
}

.mlw-airport-page {
  background: #0b1220;
  color: #f9fafb;
  min-height: 100vh;
}

.mlw-airport-page * { box-sizing: border-box; }

/* ============================================================
   HERO
   ============================================================ */
.mlw-airport-hero {
  position: relative;
  padding: 120px 0 48px;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
}

.mlw-airport-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--mlw-ap-hero, none) center/cover no-repeat;
  transform: scale(1.05);
  filter: brightness(0.4) saturate(1.2);
  z-index: 0;
  animation: mlw-ap-hero-drift 20s ease-in-out infinite alternate;
}

@keyframes mlw-ap-hero-drift {
  0%   { transform: scale(1.05) translateX(0); }
  100% { transform: scale(1.08) translateX(-1.5%); }
}

.mlw-airport-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 18, 32, 0.3) 0%,
    rgba(11, 18, 32, 0.85) 70%,
    rgba(11, 18, 32, 1) 100%
  );
  z-index: 1;
}

.mlw-airport-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.mlw-airport-hero__back {
  display: inline-block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.mlw-airport-hero__back:hover {
  color: #4ECDC4;
}

.mlw-airport-hero__title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.mlw-airport-hero__title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}

.mlw-airport-hero__iata {
  font-size: 18px;
  font-weight: 700;
  color: #4ECDC4;
  background: rgba(78, 205, 196, 0.12);
  padding: 6px 16px;
  border-radius: 10px;
  letter-spacing: 2px;
  white-space: nowrap;
}

.mlw-airport-hero__snapshot {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0;
}

/* ============================================================
   QUICK STATS BAR
   ============================================================ */
.mlw-airport-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  padding: 24px 0;
}

.mlw-airport-stats__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.mlw-airport-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mlw-ap-stat {
  text-align: center;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.mlw-ap-stat__icon {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}

.mlw-ap-stat__value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.mlw-ap-stat__value small {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 3px;
}

.mlw-ap-stat__value--text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.mlw-ap-stat__label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.mlw-ap-stat--verdict .mlw-ap-stat__value--text {
  color: #4ECDC4;
}

.mlw-airport-stats__buckets {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  justify-content: center;
}

.mlw-ap-buckets-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.mlw-ap-bucket-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 16px;
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.25);
  color: #4ECDC4;
}

/* ============================================================
   SECTION NAV (sticky jump links)
   ============================================================ */
.mlw-airport-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0;
}

.mlw-airport-nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mlw-airport-nav__inner::-webkit-scrollbar { display: none; }

.mlw-airport-nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  border-radius: 6px 6px 0 0;
}

.mlw-airport-nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.mlw-airport-nav__icon {
  font-size: 14px;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.mlw-airport-content {
  padding: 40px 0;
}

.mlw-airport-content__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mlw-airport-section {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 28px 32px;
  scroll-margin-top: 70px;
}

.mlw-airport-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.mlw-airport-section__icon {
  font-size: 20px;
}

.mlw-airport-section__head h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* Body content styling */
.mlw-airport-section__body {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.mlw-airport-section__body p {
  margin: 0 0 12px;
}

.mlw-airport-section__body ul {
  padding-left: 20px;
  margin: 0 0 12px;
}

.mlw-airport-section__body li {
  margin-bottom: 8px;
}

.mlw-airport-section__body strong {
  color: #fff;
  font-weight: 600;
}

/* Tables (lounges etc.) */
.mlw-airport-section__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 13px;
}

.mlw-airport-section__body thead th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.4);
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.mlw-airport-section__body tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
  vertical-align: top;
}

.mlw-airport-section__body tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ============================================================
   CTA FOOTER
   ============================================================ */
.mlw-airport-cta {
  padding: 24px 0 64px;
}

.mlw-airport-cta__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.mlw-airport-cta__card {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.08), rgba(78, 205, 196, 0.03));
  border: 1px solid rgba(78, 205, 196, 0.2);
  border-radius: 16px;
  padding: 36px 40px;
  text-align: center;
}

.mlw-airport-cta__card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.mlw-airport-cta__card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 20px;
}

/* Reuse existing button styles */
.mlw-airport-page .mlw-btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #4ECDC4;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.mlw-airport-page .mlw-btn--primary:hover {
  background: #3bb8b0;
  transform: translateY(-1px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .mlw-airport-hero {
    padding: 60px 0 36px;
    min-height: 240px;
  }

  .mlw-airport-hero__title {
    font-size: 26px;
  }

  .mlw-airport-hero__iata {
    font-size: 15px;
    padding: 4px 12px;
  }

  .mlw-airport-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .mlw-airport-section {
    padding: 22px 20px;
  }

  .mlw-airport-section__body table {
    font-size: 12px;
  }

  .mlw-airport-section__body thead th,
  .mlw-airport-section__body tbody td {
    padding: 8px 8px;
  }

  .mlw-airport-cta__card {
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  .mlw-airport-stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .mlw-airport-hero__title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Horizontal scroll for tables on small screens */
  .mlw-airport-section__body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================
   LEGIBILITY OVERHAUL — v3 (2026-02-11)
   Force heading colours past Astra defaults, boost contrast
   ============================================================ */

/* Hero title — must beat Astra h1 rules */
.mlw-airport-page .mlw-airport-hero__title,
body.single-airport .mlw-airport-hero__title,
body.single-airport h1.mlw-airport-hero__title {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* Stronger hero overlay so text sits on solid dark */
.mlw-airport-hero__overlay {
  background: linear-gradient(
    180deg,
    rgba(11, 18, 32, 0.45) 0%,
    rgba(11, 18, 32, 0.9)  60%,
    rgba(11, 18, 32, 1)    100%
  ) !important;
}

/* Snapshot text beneath title */
.mlw-airport-hero__snapshot {
  color: rgba(255, 255, 255, 0.82) !important;
}

/* Back link */
.mlw-airport-hero__back {
  color: #4ECDC4 !important;
  opacity: 0.85;
}

/* Section h2 headings — force white */
.mlw-airport-page .mlw-airport-section__head h2,
body.single-airport .mlw-airport-section__head h2,
body.single-airport .mlw-airport-section h2 {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Section body text — boost from 0.72 to 0.85 */
.mlw-airport-section__body,
.mlw-airport-section__body p,
.mlw-airport-section__body li {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Table header text — boost from 0.4 to 0.65 */
.mlw-airport-section__body thead th {
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 12px !important;
}

/* Table cell text — boost from 0.65 to 0.8 */
.mlw-airport-section__body tbody td {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Stat labels — boost from 0.4 to 0.55 */
.mlw-ap-stat__label {
  color: rgba(255, 255, 255, 0.55) !important;
}

/* Nav jump links — boost from 0.5 to 0.65 */
.mlw-airport-nav__link {
  color: rgba(255, 255, 255, 0.65) !important;
}

.mlw-airport-nav__link:hover {
  color: #fff !important;
}

/* CTA card paragraph */
.mlw-airport-cta__card p {
  color: rgba(255, 255, 255, 0.72) !important;
}
