.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 1.25rem 5.5rem;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 20, 15, 0.15) 0%, rgba(18, 20, 15, 0.55) 55%, rgba(18, 20, 15, 0.82) 100%),
    radial-gradient(ellipse at 70% 40%, transparent 20%, rgba(18, 20, 15, 0.35) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding-bottom: 1.5rem;
}

.hero-brand {
  font-size: clamp(2.8rem, 10vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 0.75rem;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  animation: riseIn 0.9s ease both;
}

.hero-brand em {
  font-style: normal;
  color: var(--lime);
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  max-width: 28rem;
  opacity: 0.92;
  animation: riseIn 0.9s ease 0.12s both;
}

.search-panel {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: -3.25rem auto 0;
  padding: 0 1.25rem;
}

.search-card {
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 1.15rem;
  border: 1px solid var(--line);
  animation: riseIn 0.9s ease 0.2s both;
}

.search-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 860px) {
  .search-grid {
    grid-template-columns: 1.2fr auto 1.2fr 1fr 0.7fr auto;
    align-items: end;
  }
}

.swap-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  display: grid;
  place-items: center;
  margin: 0 auto;
  transition: background 0.2s ease, transform 0.25s ease;
}

.swap-btn:hover {
  background: var(--lime);
  transform: rotate(180deg);
}

.swap-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.routes {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding: 0 1.25rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.route-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.route-chip {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.route-chip:hover {
  border-color: var(--ink);
  background: var(--lime);
}

.destinations {
  max-width: var(--max);
  margin: 3.5rem auto;
  padding: 0 1.25rem 2rem;
}

.destination-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .destination-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .destination-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.destination-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--river);
  color: var(--white);
  min-height: 280px;
  isolation: isolate;
}

.destination-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  z-index: -1;
}

.destination-card:hover img {
  transform: scale(1.06);
}

.destination-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(10, 18, 22, 0.88) 100%);
  z-index: 0;
}

.destination-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.15rem;
}

.destination-text h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.destination-text p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.destination-aside {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--lime);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
  max-width: 36rem;
  margin: 0 auto;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img {
    animation: none;
  }
}
