.hero-slider {
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

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

/* Full-width photo fills the entire fixed-height slide (object-fit: cover,
   no letterboxing). Text sits back on top of the photo, but only a bottom
   gradient (not a flat scrim) darkens things — most of the photo stays
   clearly visible, with just enough contrast behind the text to read it. */
.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(27, 42, 74, 0.72) 0%, rgba(27, 42, 74, 0.45) 45%, rgba(27, 42, 74, 0) 75%);
}

.hero-slide-text {
  position: relative;
  padding: 20px 20px 64px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* On mobile, anchor the title to the bottom of the slide (just above the
   nav row) instead of vertically centring it — this keeps the title sitting
   directly above the arrows regardless of how many lines it wraps to,
   rather than floating at an inconsistent height mid-slide. */
@media (max-width: 639px) {
  .hero-slide { justify-content: flex-end; }
}

@media (min-width: 640px) {
  .hero-slide-text { padding: 28px 32px 68px; }
}

@media (min-width: 1024px) {
  .hero-slide-text { padding: 36px 48px 40px; }
}

.hero-slider-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hero-slider-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  transition: background-color 150ms ease;
}

.hero-slider-arrow:hover { background: rgba(212, 123, 46, 0.85); border-color: #d47b2e; }

.hero-slider-arrow:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(27, 42, 74, 0.6), 0 0 0 4px #d47b2e;
}

.hero-slider-arrow svg { width: 18px; height: 18px; }

.hero-slider-dots {
  display: flex;
  align-items: center;
}

/* Dots are too fiddly to read/tap at this size on mobile — drop them and
   let the two arrows spread to the edges instead, so they're both larger
   targets and easier to spot against the photo. */
@media (max-width: 639px) {
  .hero-slider-dots { display: none; }
  .hero-slider-nav { justify-content: space-between; padding: 0 16px; }
}

/* The button is a large transparent hit area (a 9px dot alone is far too
   small to tap reliably); the visible dot is drawn as a pseudo-element
   centred inside it. Width is kept moderate so the widest slider — the
   7-slide Accommodation hub — still fits a 375px viewport. */
.hero-slider-dot {
  width: 26px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.hero-slider-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  transition: background-color 150ms ease, transform 150ms ease;
}

.hero-slider-dot:hover::before { background: rgba(255, 255, 255, 0.8); }

.hero-slider-dot.is-active::before {
  background: #d47b2e;
  transform: scale(1.25);
}

.hero-slider-dot:focus-visible {
  outline: none;
}

.hero-slider-dot:focus-visible::before {
  box-shadow: 0 0 0 2px rgba(27, 42, 74, 0.6), 0 0 0 4px #d47b2e;
}
