/* Oytel component: hero.
   Calm, editorial hero surface. Images are loaded through the approved
   DestinationHeroAsset pipeline; when none is approved, a single regional
   color field is used instead of a busy collage. */

.oytel-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
  padding: calc(var(--oytel-header-height) + var(--oytel-spacing-xl)) var(--oytel-spacing-md) var(--oytel-spacing-2xl);
  background: var(--oytel-color-surface-hero);
  color: var(--oytel-color-text-primary);
  overflow: hidden;
}

.oytel-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(31, 166, 156, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(10, 79, 70, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.oytel-hero--with-image .oytel-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.oytel-hero--with-image .oytel-hero__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.oytel-hero--with-image .oytel-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.oytel-hero--with-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.82) 100%
  );
  pointer-events: none;
}

.oytel-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--oytel-container-max);
  margin: 0 auto;
  box-sizing: border-box;
}

.oytel-hero__brand {
  display: flex;
  align-items: center;
  gap: var(--oytel-spacing-xs);
  margin-bottom: var(--oytel-spacing-sm);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--oytel-color-brand-primary);
}

.oytel-hero__brand svg,
.oytel-hero__brand img {
  width: 1.25rem;
  height: 1.25rem;
}

.oytel-hero__content h1 {
  font-size: clamp(2.125rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--oytel-color-text-primary);
  max-width: 22ch;
}

.oytel-hero__summary {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--oytel-color-text-secondary);
  margin: var(--oytel-spacing-xs) 0 0;
  max-width: 52ch;
}

.oytel-hero__search {
  margin-top: var(--oytel-spacing-lg);
  width: 100%;
  max-width: 900px;
}

.oytel-hero__quick-routes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--oytel-spacing-xs);
  margin-top: var(--oytel-spacing-md);
}

.oytel-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: var(--oytel-radius-pill);
  background: var(--oytel-color-surface-card);
  border: 1px solid var(--oytel-color-border-default);
  color: var(--oytel-color-text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease;
}

.oytel-chip:hover {
  background: var(--oytel-color-surface-muted);
  border-color: var(--oytel-color-border-default);
}

@keyframes oytel-hero-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.oytel-hero__content {
  animation:
    oytel-hero-reveal
    var(--oytel-motion-duration-medium)
    var(--oytel-motion-easing-standard)
    both;
}

@media (max-width: 640px) {
  .oytel-hero {
    padding: calc(var(--oytel-header-height) + var(--oytel-spacing-md)) var(--oytel-spacing-sm) var(--oytel-spacing-xl);
  }

  .oytel-hero__content h1 {
    font-size: 2rem;
  }

  .oytel-hero__search {
    margin-top: var(--oytel-spacing-md);
  }
}

/* Homepage hero (legacy v2 naming — migrate to .oytel-hero in next pass) */
.oytel-home-hero {
  padding-block: clamp(48px, 7vw, 88px);
  background:
    radial-gradient(circle at 18% 15%, rgba(81, 189, 183, 0.18), transparent 28%),
    linear-gradient(135deg, #edf8f6, #e6f0ef);
}

.oytel-home-hero h1 {
  margin: 8px 0 8px;
  max-width: 720px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.oytel-eyebrow {
  margin: 0;
  color: var(--oytel-primary);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.oytel-home-hero__lead {
  margin: 0 0 28px;
  color: var(--oytel-muted);
  font-size: clamp(18px, 2vw, 22px);
}

.oytel-route-chip {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 14px;
  color: var(--oytel-text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--oytel-border);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 640px) {
  .oytel-home-hero {
    padding-block: 36px 52px;
  }

  .oytel-home-hero h1 {
    font-size: 42px;
  }
}

/* Pin homepage and trip heros to the top; discovery content follows. */
.oytel-page-content {
  position: relative;
  z-index: 1;
  background: var(--oytel-color-surface-canvas);
}
