/**
 * Shared listing-card image carousel (open trip, private trip, artikel, kendaraan).
 * Home destination/blog cards override sizing in home.css.
 */
.image-carousel:not(.image-carousel-detail):not(.trip-gallery-carousel) {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5/3;
  width: 100%;
}

.image-carousel.image-carousel--rounded {
  border-radius: 8px;
}

.image-carousel:not(.image-carousel-detail):not(.trip-gallery-carousel) .carousel-item {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.image-carousel:not(.image-carousel-detail):not(.trip-gallery-carousel) .carousel-item.active {
  display: block;
}

.image-carousel:not(.image-carousel-detail):not(.trip-gallery-carousel) .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-carousel:not(.image-carousel-detail):not(.trip-gallery-carousel) .carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0;
}

.image-carousel:not(.image-carousel-detail):not(.trip-gallery-carousel) .carousel-control:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.image-carousel:not(.image-carousel-detail):not(.trip-gallery-carousel) .carousel-control.prev {
  left: 10px;
}

.image-carousel:not(.image-carousel-detail):not(.trip-gallery-carousel) .carousel-control.next {
  right: 10px;
}

.image-carousel:not(.image-carousel-detail):not(.trip-gallery-carousel):hover .carousel-control {
  opacity: 1;
}

.image-carousel:not(.image-carousel-detail):not(.trip-gallery-carousel) .carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.image-carousel:not(.image-carousel-detail):not(.trip-gallery-carousel) .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.image-carousel:not(.image-carousel-detail):not(.trip-gallery-carousel) .dot.active {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.2);
}

.image-carousel:not(.image-carousel-detail):not(.trip-gallery-carousel) .dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .image-carousel:not(.image-carousel-detail):not(.trip-gallery-carousel) .carousel-control {
    width: 30px;
    height: 30px;
    opacity: 1;
  }

  .image-carousel:not(.image-carousel-detail):not(.trip-gallery-carousel) .carousel-dots {
    bottom: 10px;
  }

  .image-carousel:not(.image-carousel-detail):not(.trip-gallery-carousel) .dot {
    width: 6px;
    height: 6px;
  }
}
