/* ============================================
   NAVEGUE BÚZIOS — Gallery Carousel
   Carrossel de fotos/vídeo da embarcação
   CSS-native scroll-snap, touch-friendly
   ============================================ */

.gallery-carousel {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background-color: var(--color-navy);
}

/* Track com scroll-snap nativo */
.gallery-carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.gallery-carousel__track::-webkit-scrollbar {
  display: none;
}

/* Slide */
.gallery-carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
}

.gallery-carousel__slide img,
.gallery-carousel__slide video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.gallery-carousel__slide video {
  background-color: var(--color-navy);
}

/* Caption no slide */
.gallery-carousel__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(to top, rgba(11, 29, 58, 0.85) 0%, transparent 100%);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}

/* --- Botões Prev/Next --- */
.gallery-carousel__prev,
.gallery-carousel__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(11, 29, 58, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  opacity: 0;
  pointer-events: none;
}

.gallery-carousel:hover .gallery-carousel__prev,
.gallery-carousel:hover .gallery-carousel__next {
  opacity: 1;
  pointer-events: auto;
}

/* Em mobile os botões ficam sempre visíveis */
@media (max-width: 767px) {
  .gallery-carousel__prev,
  .gallery-carousel__next {
    opacity: 1;
    pointer-events: auto;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

.gallery-carousel__prev {
  left: var(--space-3);
}

.gallery-carousel__next {
  right: var(--space-3);
}

.gallery-carousel__prev:hover,
.gallery-carousel__next:hover {
  background: rgba(11, 29, 58, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.gallery-carousel__prev:active,
.gallery-carousel__next:active {
  transform: translateY(-50%) scale(0.95);
}

/* --- Dots de Navegação --- */
.gallery-carousel__dots {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 10;
}

.gallery-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  border: none;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.gallery-carousel__dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.gallery-carousel__dot.is-active {
  background-color: var(--color-white);
  width: 24px;
}

/* --- Contador de slides --- */
.gallery-carousel__counter {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: rgba(11, 29, 58, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
}
