/**
 * Destinations listing — full-screen cinematic hero
 */

.hero-destination.hero-banner {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  min-height: clamp(42rem, 88vh, 48rem);
  min-height: clamp(42rem, 88svh, 48rem);
  padding-top: 0;
  padding-bottom: clamp(3.5rem, 10vh, 6rem);
  padding-left: 5vw;
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  background-color: #080d11;
}

/* Background — no extra zoom; show landscape */
.hero-destination.hero-banner::before {
  inset: 0;
  transform: none;
  background-image: var(--hero-bg-image, none);
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

.hero-destination.hero-banner.hero-banner--has-image::before {
  background-position: center center;
}

/* Use dedicated overlay layer instead of ::after gradient */
.hero-destination.hero-banner::after {
  display: none;
}

.hero-destination__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(3, 10, 14, 0.72) 0%,
      rgba(3, 10, 14, 0.42) 40%,
      rgba(3, 10, 14, 0.08) 75%,
      rgba(3, 10, 14, 0.02) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(3, 10, 14, 0.18) 0%,
      transparent 35%,
      rgba(8, 13, 17, 0.55) 78%,
      rgba(8, 13, 17, 0.92) 100%
    );
}

.hero-destination__overlay::after {
  display: none;
}

.hero-destination__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 42rem;
  margin: 0;
  margin-top: clamp(4rem, 12vh, 7rem);
  padding: 0;
}

.hero-destination__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  text-align: left;
}

.hero-destination__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--haibo-gold, #f5b51b);
}

.hero-destination__title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.5rem, 5.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero-destination__title-main {
  display: block;
}

.hero-destination__title-accent {
  display: block;
  color: var(--haibo-gold, #f5b51b);
  margin-top: 0.08em;
}

@media (min-width: 640px) {
  .hero-destination__title-main,
  .hero-destination__title-accent {
    display: inline;
  }

  .hero-destination__title-accent {
    margin-top: 0;
    margin-left: 0.2em;
  }
}

.hero-destination__desc {
  margin: 0 0 2rem;
  max-width: 36rem;
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
}

.hero-destination__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
}

.hero-destination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
  white-space: nowrap;
}

.hero-destination__btn--primary {
  color: #0f0f0f;
  background: linear-gradient(135deg, #d98b2b 0%, #f0b85a 55%, #d98b2b 100%);
  border: 1px solid rgba(240, 184, 90, 0.45);
  box-shadow:
    0 4px 24px rgba(217, 139, 43, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-destination__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(217, 139, 43, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.4);
  color: #0a0a0a;
}

.hero-destination__btn--secondary {
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hero-destination__btn--secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(217, 139, 43, 0.45);
  color: #ffffff;
}

.hero-destination__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: clamp(4.5rem, 16vh, 8rem);
  pointer-events: none;
  background: linear-gradient(to top, #080d11 0%, transparent 100%);
}

.destinations-page #all-destinations {
  scroll-margin-top: calc(6.5rem + env(safe-area-inset-top, 0px));
}

/* Smooth overlap into destinations grid */
.destinations-page .destinations-section {
  position: relative;
  z-index: 4;
  margin-top: -2.5rem;
  padding-top: clamp(3rem, 6vh, 4.5rem);
}

/* Tablet */
@media (min-width: 768px) {
  .hero-destination.hero-banner {
    min-height: 85vh;
    min-height: 85svh;
    padding-left: 5vw;
    padding-right: max(2rem, env(safe-area-inset-right, 0px));
  }

  .hero-destination__content {
    max-width: 40rem;
  }
}

/* Desktop — cinematic, left-aligned with navbar */
@media (min-width: 1024px) {
  .hero-destination.hero-banner {
    min-height: 90vh;
    min-height: 90svh;
    padding-left: 5vw;
    padding-right: max(3rem, env(safe-area-inset-right, 0px));
  }

  .hero-destination__content {
    max-width: 42rem;
    padding-left: 0;
  }
}

@media (min-width: 1280px) {
  .hero-destination.hero-banner {
    padding-left: 5vw;
    padding-right: max(5rem, env(safe-area-inset-right, 0px));
  }
}

/* Large phones — taller cinematic frame */
@media (max-width: 767px) {
  .hero-destination.hero-banner {
    min-height: 82vh;
    min-height: 82svh;
    align-items: center;
    padding-top: calc(4.5rem + env(safe-area-inset-top, 0px));
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
  }

  .hero-destination__inner {
    width: 100%;
  }

  .hero-destination__title {
    font-size: clamp(2.25rem, 9vw, 3.1rem);
  }

  .hero-destination__buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 22rem;
  }

  .hero-destination__btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .hero-destination.hero-banner {
    min-height: 78vh;
    min-height: 78svh;
  }
}

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

  .hero-destination__btn:hover {
    transform: none;
  }
}
