/* Shared, keyboard-accessible hero navigation. */
#home.home-hero {
  height: 720px;
  min-height: 720px;
}

#home.hero-controls .hero-navigation {
  visibility: hidden;
}

#home.hero-controls.hero-ready .hero-navigation,
#home.hero-controls.hero-ready .hero-carousel-arrow { visibility: visible; }

#home.hero-controls .carousel-indicators {
  align-items: center;
  bottom: 14px;
  display: flex;
  gap: 7px;
  left: auto;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 104px;
  width: auto;
  z-index: 7;
}

#home.hero-controls .carousel-indicators li,
#home.hero-controls .carousel-indicators li.active {
  background: none;
  border: 0;
  display: block;
  flex: 0 0 44px;
  height: 44px;
  margin: 0;
  position: relative;
  text-indent: 0;
  transition: none;
  width: 44px;
}

#home.hero-controls .hero-indicator {
  background: none;
  border: 0;
  display: block;
  height: 44px;
  padding: 0;
  position: relative;
  width: 100%;
}

#home.hero-controls .hero-indicator::after {
  background: rgba(255, 255, 255, .6);
  border-radius: 999px;
  content: "";
  height: 3px;
  left: 7px;
  position: absolute;
  right: 7px;
  top: 21px;
  transform: scaleX(.87);
  transition: background-color .25s ease, transform .25s ease;
}

#home.hero-controls .active .hero-indicator::after {
  background: #eab933;
  transform: scaleX(1.46);
}

#home.hero-controls .hero-playback {
  align-items: center;
  background: rgba(12, 36, 30, .72);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-family: "Bebas Neue", sans-serif;
  font-size: 14px;
  gap: 8px;
  justify-content: center;
  letter-spacing: .08em;
  min-height: 44px;
  min-width: 96px;
  padding: 6px 12px;
  position: absolute;
  right: 104px;
  bottom: 58px;
  text-transform: uppercase;
  z-index: 7;
}

#home.hero-controls .hero-playback i { color: #eab933; font-size: 12px; }
#home.hero-controls .hero-playback:disabled { cursor: default; opacity: .75; }

/* Bounded arrow targets never cover the full height of the content. */
#home.hero-controls .hero-carousel-arrow {
  align-items: center;
  background: none;
  border: 0;
  bottom: auto;
  color: #eab933;
  display: flex;
  filter: none;
  font-size: 22px;
  height: 44px;
  justify-content: center;
  opacity: 1;
  padding: 0;
  text-shadow: none;
  top: 50%;
  transform: translateY(-50%);
  transition: color .25s ease;
  visibility: hidden;
  width: 44px;
  z-index: 6;
}

#home.hero-controls .hero-carousel-arrow.left { left: 8px; right: auto; }
#home.hero-controls .hero-carousel-arrow.right { left: auto; right: 8px; }
#home.hero-controls .hero-carousel-arrow:hover { color: #f4d77d; }

#home.hero-controls .hero-discover {
  align-items: center;
  bottom: 30px;
  color: rgba(255, 255, 255, .8);
  display: flex;
  flex-direction: column;
  font-family: "Bebas Neue", sans-serif;
  font-size: 13px;
  gap: 4px;
  left: 50%;
  letter-spacing: .16em;
  position: absolute;
  text-transform: uppercase;
  transform: translateX(-50%);
  z-index: 4;
}

#home.hero-controls .hero-discover:hover,
#home.hero-controls .hero-discover:focus { color: #fff; text-decoration: none; }
#home.hero-controls .hero-discover i {
  animation: heroDiscoverCue 1.7s ease-in-out infinite;
  color: #eab933;
  font-size: 22px;
}

#home.hero-controls .hero-carousel-arrow:focus-visible,
#home.hero-controls .hero-indicator:focus-visible,
#home.hero-controls .hero-playback:focus-visible,
#home.hero-controls .hero-discover:focus-visible {
  outline: 2px solid #eab933;
  outline-offset: 3px;
}

@keyframes heroDiscoverCue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 767px) {
  #home.home-hero { height: auto; min-height: 0; }

  /* All original slides size one grid track; switching never moves the next section.
     Hidden slides retain their HTML content and stay out of keyboard/AT navigation. */
  #home.home-hero .carousel-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  #home.home-hero .carousel-inner > .item {
    display: block;
    grid-area: 1 / 1;
    height: auto;
    left: 0;
    position: relative;
    top: 0;
    transform: none;
    visibility: hidden;
  }
  #home.home-hero .carousel-inner > .item.active,
  #home.home-hero .carousel-inner > .item.next,
  #home.home-hero .carousel-inner > .item.prev { visibility: visible; }
  #home.home-hero picture,
  #home.home-hero .home-hero-camps picture { aspect-ratio: 480 / 231; }
  #home.home-hero .item:not(.active):not(.next):not(.prev) picture {
    content-visibility: hidden;
  }

  #home.hero-controls .hero-navigation {
    align-items: center;
    background: #fbfaf6;
    display: grid;
    gap: 4px;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    padding: 8px 112px 20px 16px;
    position: relative;
  }
  #home.hero-controls .carousel-indicators {
    display: flex;
    gap: 4px;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: center;
    position: static;
  }
  #home.hero-controls .carousel-indicators li,
  #home.hero-controls .carousel-indicators li.active { flex-basis: 36px; width: 36px; }
  #home.hero-controls .hero-indicator::after { background: #75867c; }
  #home.hero-controls .active .hero-indicator::after { background: #8b6d12; }
  #home.hero-controls .hero-playback {
    background: #17392f;
    border-color: #17392f;
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    min-width: 88px;
    position: static;
  }
  #home.hero-controls .hero-carousel-arrow {
    color: #8b6d12;
    display: flex;
    grid-row: 2;
    position: static;
    transform: none;
    width: 40px;
  }
  #home.hero-controls .hero-carousel-arrow.left { grid-column: 1; }
  #home.hero-controls .hero-carousel-arrow.right { grid-column: 3; }
  #home.hero-controls .hero-discover { display: none; }
  #home.hero-controls picture { touch-action: pan-y pinch-zoom; }
}

@media (prefers-reduced-motion: reduce) {
  #home.hero-controls .hero-discover i,
  #home.hero-controls .item img { animation: none !important; }
  #home.hero-controls .carousel-inner > .item,
  #home.hero-controls .hero-carousel-arrow,
  #home.hero-controls .hero-indicator::after { transition: none !important; }
}
