/* ========================================
   FAM Room Slideshow — Fully Automatic
   ======================================== */

/* --- Container --- */
.fam-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #e8e8e4;
}

/* --- Slide --- */
.fam-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  pointer-events: none;
}
.fam-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.fam-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Dots --- */
.fam-slideshow-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.fam-slideshow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.4s ease, width 0.4s ease;
}
.fam-slideshow-dot.active {
  background: #fff;
  width: 18px;
  border-radius: 3px;
}

/* --- Placeholder (rooms without photos) --- */
.fam-slideshow-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8e8e4 0%, #d4d4cc 100%);
  color: #727972;
  font-family: 'Inter', sans-serif;
  gap: 8px;
}
.fam-slideshow-placeholder .material-symbols-outlined {
  font-size: 48px;
  opacity: 0.4;
}
.fam-slideshow-placeholder span {
  font-size: 13px;
  opacity: 0.6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .fam-slideshow-dots {
    bottom: 8px;
    gap: 4px;
    padding: 3px 8px;
  }
  .fam-slideshow-dot {
    width: 5px;
    height: 5px;
  }
  .fam-slideshow-dot.active {
    width: 14px;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .fam-slide {
    transition: none;
  }
  .fam-slideshow-dot {
    transition: none;
  }
}
