/* Flights hub — route + region card styles (carousel chrome in sst-commercial-carousel.css) */

/* Beat flights.html inline .sst-commercial-route-grid { display:grid } on mobile */
body.sst-page-flights .sst-fl-routes-carousel-track.sst-commercial-route-grid,
body.sst-page-flights .sst-fl-regions-carousel-track {
  display: flex !important;
  grid-template-columns: none !important;
  flex-wrap: nowrap !important;
  width: 100%;
  max-width: 100%;
  touch-action: pan-x pinch-zoom;
}

body.sst-page-flights .sst-fl-routes-with-extras,
body.sst-page-flights .sst-commercial-routes,
body.sst-page-flights .sst-commercial-main {
  min-width: 0;
  max-width: 100%;
}

body.sst-page-flights .sst-fl-routes-with-extras,
body.sst-page-flights .sst-commercial-routes {
  overflow: visible;
}

@media (max-width: 719px) {
  body.sst-page-flights .sst-fl-routes-with-extras {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.sst-page-flights .sst-fl-routes-carousel,
  body.sst-page-flights .sst-fl-regions-carousel {
    overflow: visible;
  }

  body.sst-page-flights .sst-fl-routes-carousel-track,
  body.sst-page-flights .sst-fl-regions-carousel-track {
    margin-left: -4px;
    margin-right: -4px;
    padding-left: 4px;
    padding-right: 4px;
    scroll-padding-left: 4px;
  }
}

body.sst-page-flights .sst-fl-routes-carousel-track .sst-fl-route-slide {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.sst-page-flights .sst-fl-routes-carousel-track .sst-commercial-route-card {
  flex: 1 1 auto;
  min-height: 200px;
}

body.sst-page-flights .sst-fl-route-search-btn {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0770e3;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.sst-page-flights .sst-fl-route-search-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

body.sst-page-flights .sst-fl-region-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(7, 112, 227, 0.12);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.sst-page-flights .sst-fl-region-card:hover {
  transform: translateY(-3px);
  border-color: rgba(7, 112, 227, 0.28);
  box-shadow: 0 14px 30px rgba(7, 112, 227, 0.12);
}

body.sst-page-flights .sst-fl-region-card img {
  width: 100%;
  height: 158px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

body.sst-page-flights .sst-fl-region-card:hover img {
  transform: scale(1.04);
}

body.sst-page-flights .sst-fl-region-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 14px 14px 16px;
  min-height: 72px;
}

body.sst-page-flights .sst-fl-region-card-body strong {
  display: block;
  color: var(--ink, #0f172a);
  font-size: 1.02rem;
  font-weight: 900;
  margin-bottom: 5px;
  line-height: 1.25;
}

body.sst-page-flights .sst-fl-region-card-body small {
  display: block;
  color: var(--muted, #64748b);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  flex: 1 1 auto;
}

body.sst-page-flights .sst-fl-region-card-cta {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 900;
  color: #0770e3;
}

body.sst-page-flights .sst-fl-region-card:hover .sst-fl-region-card-cta {
  color: #0557b0;
}

@media (min-width: 900px) {
  body.sst-page-flights .sst-commercial-routes {
    margin-top: 12px;
  }

  body.sst-page-flights .sst-fl-region-sec {
    margin-top: 36px;
  }

  body.sst-page-flights .sst-fl-routes-carousel-track .sst-fl-route-slide {
    gap: 0;
    background: #fff;
    border: 1px solid rgba(7, 112, 227, 0.12);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  }

  body.sst-page-flights .sst-fl-routes-carousel-track .sst-fl-route-slide:hover {
    transform: translateY(-3px);
    border-color: rgba(7, 112, 227, 0.28);
    box-shadow: 0 14px 30px rgba(7, 112, 227, 0.12);
  }

  body.sst-page-flights .sst-fl-routes-carousel-track .sst-commercial-route-card {
    min-height: 248px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.sst-page-flights .sst-fl-route-search-btn {
    width: 100%;
    margin: 0;
    border: none;
    border-top: 1px solid rgba(7, 112, 227, 0.12);
    border-radius: 0;
    background: #eff6ff;
    padding: 12px 14px;
    font-size: 0.8rem;
  }

  body.sst-page-flights .sst-fl-route-search-btn:hover {
    background: #0770e3;
    border-color: transparent;
    color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.sst-page-flights .sst-fl-routes-carousel-track .sst-fl-route-slide,
  body.sst-page-flights .sst-fl-region-card,
  body.sst-page-flights .sst-fl-region-card img {
    transition: none;
  }
}
