.room-slider-section {
  width: 100%;
  max-width: 1300px;
  margin: 32px auto 0;
}

.room-slider-frame {
  width: 100%;
}

.room-slider-viewport {
  width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: 22px;
  background: #f2f2f2; /* shows behind images while loading */
}

.room-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden; /* important */
}

.room-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.room-slider-track {
  height: 100%;
  display: flex;
  transform: translateX(0);
  transition: transform 420ms ease;
  will-change: transform;
}

/* Caption overlay */
.room-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(120, 120, 120, 0.75);
  color: #fff;

  font-family:
    "Lato",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  font-weight: 600;
  font-size: 26px;
  text-align: center;

  padding: 0 22px;
}

/* Controls row under image */
.room-slider-controls {
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

/* Paging */
.room-slider-paging {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family:
    "Lato",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: #1d1d1f;
}

.room-slider-current {
  font-size: 16px;
  font-weight: 700;
}

.room-slider-sep,
.room-slider-total {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.7;
}

/* Progress */
.room-slider-progress {
  height: 2px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.room-slider-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 999px;
  transition: width 420ms ease;
}

/* Arrows (no circle) */
.room-slider-arrows {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.room-arrow {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px 4px;
  line-height: 1;
}

.room-arrow span {
  font-size: 34px;
  color: rgba(0, 0, 0, 0.6);
}

.room-arrow:hover span {
  color: rgba(0, 0, 0, 0.9);
}

/* =========================
   Mobile
========================= */

@media (max-width: 768px) {
  .room-slider-section {
    margin-top: 24px;
  }

  .room-slider-viewport {
    width: 100%;

    /* Height is controlled by JavaScript */
    min-height: 0;

    overflow: hidden;

    border-radius: 16px;

    background: transparent;

    transition: height 300ms ease;
  }

  .room-slider-track {
    height: 100%;

    display: flex;

    align-items: flex-start;
  }

  .room-slide {
    position: relative;

    flex: 0 0 100%;
    width: 100%;

    height: auto;

    overflow: hidden;
  }

  .room-slide img {
    width: 100%;
    height: auto;

    display: block;

    object-fit: contain;
    object-position: center;
  }

  .room-slide-caption {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 16px;

    background: rgba(120, 120, 120, 0.75);

    color: #fff;

    font-size: 18px;
    font-weight: 600;

    text-align: center;
  }

  .room-slider-controls {
    margin-top: 14px;

    display: grid;

    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;

    align-items: center;

    gap: 12px;
  }

  .room-slider-arrows {
    justify-content: end;
  }

  .room-arrow {
    padding: 4px;
  }

  .room-arrow span {
    font-size: 30px;
  }
}
