/* ========== CONTENEDOR DE IMAGEN PRINCIPAL ========== */
.listing-single__img {
    position: relative;
    width: 100%;
  overflow: visible;
    background-color: #f5f5f5;
}

#vertical-picture-container {
  width: 180px;
}

@media (max-width: 767px) {
    .listing-single__img {
        min-height: 300px;
        aspect-ratio: 16 / 9;
    }
}

@media (min-width: 768px) {
    .listing-single__img {
    min-height: 360px;
    aspect-ratio: 16 / 9;
    }
}

@media (min-width: 768px) {
  .listing-single__thumb-box {
    height: 100%;
    overflow: hidden;
  }

  #listing-single__thumb {
    height: 100%;
    overflow: hidden;
    padding-right: 18px;
  }
}

@media (min-width: 768px) {
  #listing-single__thumb .swiper-scrollbar {
    position: absolute;
    top: 8px;
    right: 4px;
    width: 8px;
    height: calc(100% - 16px);
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    opacity: 1;
    display: block;
    z-index: 20;
    pointer-events: auto;
  }

  #listing-single__thumb .swiper-scrollbar-drag {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
  }
}

.listing-single__img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== SWIPER PRINCIPAL PARA IMÁGENES (MÓVIL) ========== */
.listing-single__main-swiper {
    width: 100%;
    height: 100%;
    display: none !important;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 767px) {
    .listing-single__main-swiper {
        display: block !important;
    }
    
    .listing-single__img > img {
        display: none !important;
    }
}

.listing-single__main-swiper .swiper-wrapper {
    height: 100%;
    width: 100%;
}

.listing-single__main-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
}

.listing-single__main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-single__main-swiper .swiper-pagination {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: auto;
}

.listing-single__main-swiper .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.6);
    opacity: 1;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.listing-single__main-swiper .swiper-pagination-bullet-active {
    background-color: #ffffff;
    width: 12px;
    height: 12px;
}

/* ========== SLIDER EXPANDIDO EN MÓVIL ========== */
.mobile-photo-slider-modal .modal-content {
  background: #000;
  border: none;
}

.mobile-photo-slide-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  min-height: 60vh;
}

.mobile-photo-slider-image {
  width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  background: #000;
}

.mobile-photo-slider-modal .carousel-control-next-icon,
.mobile-photo-slider-modal .carousel-control-prev-icon {
  filter: invert(1);
}

.mobile-photo-slider-modal .carousel-indicators button {
  background-color: rgba(255, 255, 255, 0.7);
}

.mobile-photo-slider-modal .carousel-indicators .active {
  background-color: #0d6efd;
}

/* ========== RESTO DEL CSS EXISTENTE ========== */

/* ========== RESTO DEL CSS EXISTENTE ========== */
.animation-blink {
  -webkit-animation: blink 2s infinite;
  animation: blink 2s infinite;
}

/* Fix desktop thumbnail stacking beside the main image */
#listing-single__thumb {
  height: 523px;
}

#listing-single__thumb .swiper-slide {
  height: auto !important;
  margin-bottom: 16px;
}

#listing-single__thumb .swiper-slide:last-child {
  margin-bottom: 0;
}

#listing-single__thumb .listing-single__img-holder-box,
#listing-single__thumb .listing-single__img-holder {
  width: 161px;
  height: auto;
  aspect-ratio: 16 / 9;
}

#listing-single__thumb .listing-single__img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Remove dark overlay on thumbnails */
#listing-single__thumb .listing-single__img-holder:before,
#listing-single__thumb .swiper-slide-thumb-active .listing-single__img-holder:before,
#listing-single__thumb .swiper-slide-active .listing-single__img-holder:before {
  background-color: transparent !important;
}

/* Watermark on main vehicle image (dynamic via JS) */
.listing-single__img {
  position: relative;
}

.listing-single__watermark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  pointer-events: none;
}

.listing-single__watermark img {
  width: 140px;
  opacity: 0.35;
  display: block;
  border-radius: 0 !important;
}

@-webkit-keyframes blink {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes blink {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}