/* Home hero: headline + typed search bar on the left, two airport cards on
   the right. Sits above the feed filters on index.php. */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: center;
  /* Horizontal padding comes from .container on desktop; only add it on mobile
     where .container drops its padding to 0. */
  padding: 40px 0 28px;
}
.home-hero--solo { grid-template-columns: minmax(0, 1fr); }

.home-hero-lead { min-width: 0; }

.home-hero-headline {
  margin: 0 0 28px;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
}

/* ---- Typed search bar ----
   The .hero-search* styles now live in components/nav.css (loaded site-wide)
   so the same search bar can render in the global desktop nav as well as here
   on the home hero. */

/* ---- Airport cards ---- */
.home-hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-width: 0;
}
.hero-airport-card {
  position: relative;
  display: block;
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}
.hero-airport-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.4s var(--ease);
}
.hero-airport-card:hover .hero-airport-card-img { transform: scale(1.05); }
.hero-airport-card-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.35) 42%,
    rgba(0, 0, 0, 0.05) 75%);
}
.hero-airport-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  color: #fff;
}
.hero-airport-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.92;
}
.hero-airport-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.hero-airport-explore {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
}
.hero-airport-card:hover .hero-airport-explore i { transform: translateX(3px); }
.hero-airport-explore i { transition: transform 0.15s var(--ease); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0px;
  }
  .hero-airport-card { height: 200px; }
}

/* Phones: centered + slightly larger headline, full-width rounded-rectangle
   search bar, airport cards hidden. */
@media (max-width: 768px) {
  .home-hero { padding: 24px 16px 14px; }
  .home-hero-headline {
    text-align: center;
    font-size: 32px;
    line-height: 1.22;
    max-width: none;
    margin: 0 auto 20px;
  }
  .hero-search {
    max-width: none;
    border-radius: 14px;       /* rounded rectangle, not a pill */
  }
  .hero-search-btn { border-radius: 10px; }
  .home-hero-cards { display: none; }
}
