/* Negril Beach Villa — per-section image sliders (WI-1093)
 * Content-hashed sheet. Styles ONLY the new section sliders; the existing
 * .activityimage.X box keeps its width/min-height/border-radius from the main
 * stylesheet, and we overlay the slider to fill that box exactly. */

/* The activityimage box becomes the slider stage. Hide its CSS background
 * (an <img> slide now renders the same first image on top) and clip slides. */
.activityimage.nbv-has-slider {
  position: relative;
  background-image: none !important;
  overflow: hidden;
}

.nbv-sslider {
  position: absolute;
  inset: 0;
  outline: none;
}

.nbv-sslider-track {
  position: absolute;
  inset: 0;
}

.nbv-sslide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease;
}

.nbv-sslide.is-active {
  opacity: 1;
  visibility: visible;
}

.nbv-sslide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Prev / next arrows — match the dark translucent → brand-green hover look
 * used by the gallery lightbox buttons (#5a803a brand green). */
.nbv-sslider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: rgba(34, 34, 34, .55);
  font-size: 26px;
  line-height: 40px;
  text-align: center;
  padding: 0;
  transition: background-color .25s ease;
}

.nbv-sslider-btn:hover,
.nbv-sslider-btn:focus-visible {
  background: #5a803a;
}

.nbv-sslider-btn:focus-visible {
  outline: 2px solid #f9f9f9;
  outline-offset: 2px;
}

.nbv-sslider-prev { left: 12px; }
.nbv-sslider-next { right: 12px; }

/* Dot indicators */
.nbv-sslider-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 7px;
  max-width: 80%;
  flex-wrap: wrap;
  justify-content: center;
}

.nbv-sslider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(249, 249, 249, .55);
  box-shadow: 0 0 2px rgba(34, 34, 34, .5);
  transition: background-color .25s ease, transform .25s ease;
}

.nbv-sslider-dot:hover {
  background: #f9f9f9;
}

.nbv-sslider-dot.is-active {
  background: #5a803a;
  transform: scale(1.15);
}

.nbv-sslider-dot:focus-visible {
  outline: 2px solid #f9f9f9;
  outline-offset: 2px;
}

/* Counter (top-right, subtle) */
.nbv-sslider-counter {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  color: #f9f9f9;
  background: rgba(34, 34, 34, .45);
  border-radius: 12px;
  padding: 2px 9px;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  letter-spacing: .5px;
}

@media screen and (max-width: 767px) {
  .nbv-sslider-btn {
    width: 38px;
    height: 38px;
    font-size: 22px;
    line-height: 34px;
  }
  .nbv-sslider-prev { left: 8px; }
  .nbv-sslider-next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .nbv-sslide { transition: none; }
  .nbv-sslider-dot { transition: none; }
}
