/* ==========================================================================
   Property Preview — Slideshow thumbnails
   Thumbnail track + thumbs, split from _slideshow.css to respect the
   200-line CSS limit. Load right after _slideshow.css.
   ========================================================================== */

.property-preview-slideshow__thumbnails {
  position: fixed;
  bottom: clamp(1.5rem, 4vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  max-width: min(90vw, 960px);
  overflow-x: auto;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 1rem;
  z-index: 2;
}

.property-preview-slideshow__thumbnails::-webkit-scrollbar {
  height: 6px;
}

.property-preview-slideshow__thumbnails::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.property-preview-slideshow__thumb {
  border: 0;
  padding: 0;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.property-preview-slideshow__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video thumbnail styling */
.property-preview-slideshow__thumb-video {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(87, 166, 96, 0.25), rgba(30, 64, 175, 0.25));
  position: relative;
}

.property-preview-slideshow__thumb-video .material-icons-outlined {
  font-size: 2rem;
  color: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.property-preview-slideshow__thumb:hover,
.property-preview-slideshow__thumb:focus-visible {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.45);
  outline: none;
}

.property-preview-slideshow__thumb.is-active {
  border-color: var(--gf-color-primary, #22c55e);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}

@media (max-width: 575.98px) {
  .property-preview-slideshow__thumb {
    width: 56px;
    height: 56px;
  }
}
