/* ══════════════════════════════════════════════════════════════
   Royal Stays — Cinematic Room Showcase
   Ultra-premium vertical scroll experience
   ══════════════════════════════════════════════════════════════ */

/* ── Page-level scroll snap ───────────────────────────────── */
.rs-page {
  overflow-x: hidden;
}

.rs-page,
.rs-page html {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
}

/* ── Hero Intro ───────────────────────────────────────────── */
.rs-hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  scroll-snap-align: start;
  background: var(--heading-color);
  overflow: hidden;
}

.rs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(197,165,111,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(197,165,111,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.rs-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.rs-hero-leaf {
  display: inline-block;
  margin-bottom: 24px;
  opacity: 0.6;
}

.rs-hero-leaf svg {
  width: 48px;
  height: 48px;
  fill: var(--accent-color);
}

.rs-hero-title {
  font-family: var(--heading-font);
  font-size: clamp(32px, 7vw, 86px);
  color: var(--white-color);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
  white-space: nowrap;
}

.rs-hero-subtitle {
  font-family: var(--body-font);
  font-size: clamp(12px, 1.8vw, 18px);
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.rs-hero-tagline {
  font-family: var(--ternary-font);
  font-size: clamp(16px, 2.5vw, 28px);
  color: var(--accent-color);
  margin: 0;
}

.rs-hero-scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.rs-hero-scroll-cue span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-family: var(--body-font);
}

.rs-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-color), transparent);
  animation: rs-scrollPulse 2s ease-in-out infinite;
}

@keyframes rs-scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Room Section ─────────────────────────────────────────── */
.rs-room-section {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--heading-color);
}

.rs-room-section.rs-reversed {
  direction: rtl;
}

.rs-room-section.rs-reversed > * {
  direction: ltr;
}

/* ── Image Panel ──────────────────────────────────────────── */
.rs-image-panel {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.rs-slide-container {
  position: absolute;
  inset: 0;
}

.rs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity, transform;
}

.rs-slide.rs-active {
  opacity: 1;
}

.rs-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.0);
  transition: transform 8s ease-out;
}

.rs-slide.rs-active img {
  transform: scale(1.08);
}

/* Gradient overlay for readability */
.rs-image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.1), rgba(0,0,0,0.35)),
    linear-gradient(to top, rgba(0,0,0,0.25), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.rs-room-section.rs-reversed .rs-image-overlay {
  background:
    linear-gradient(to left, rgba(0,0,0,0.1), rgba(0,0,0,0.35)),
    linear-gradient(to top, rgba(0,0,0,0.25), transparent 40%);
}

/* Slider controls on image panel */
.rs-slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
}

.rs-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(255,255,255,0.8);
  flex-shrink: 0;
}

.rs-arrow:hover {
  background: rgba(255,255,255,0.2);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: scale(1.1);
}

.rs-arrow svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.rs-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
}

.rs-dot.rs-active {
  width: 28px;
  border-radius: 4px;
  background: var(--accent-color);
}

/* ── Content Panel ────────────────────────────────────────── */
.rs-content-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(52,57,53,0.97), rgba(52,57,53,0.88));
}

.rs-content-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(197,165,111,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.rs-content-inner {
  position: relative;
  z-index: 2;
  max-width: 480px;
  width: 100%;
}

/* Room number accent */
.rs-room-number {
  font-family: var(--heading-font);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rs-room-number::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--accent-color);
}

/* Room name */
.rs-room-name {
  font-family: var(--heading-font);
  font-size: clamp(28px, 3.5vw, 48px);
  color: var(--white-color);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 8px;
}

/* Tagline */
.rs-room-tagline {
  font-family: var(--ternary-font);
  font-size: clamp(15px, 1.6vw, 20px);
  color: var(--accent-color);
  margin-bottom: 20px;
  opacity: 0.85;
}

/* Description */
.rs-room-desc {
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
}

/* Divider */
.rs-divider {
  width: 50px;
  height: 1px;
  background: linear-gradient(to right, var(--accent-color), transparent);
  margin-bottom: 24px;
}

/* Highlights */
.rs-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.rs-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rs-highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(197,165,111,0.12);
  border: 1px solid rgba(197,165,111,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rs-highlight-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-color);
}

.rs-highlight-info {
  display: flex;
  flex-direction: column;
}

.rs-highlight-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-family: var(--body-font);
  margin-bottom: 2px;
}

.rs-highlight-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--white-color);
  font-family: var(--body-font);
}

/* ── Scroll Animations ────────────────────────────────────── */
.rs-anim {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.rs-anim.rs-visible {
  opacity: 1;
  transform: translateY(0);
}

.rs-anim-delay-1 { transition-delay: 0.08s; }
.rs-anim-delay-2 { transition-delay: 0.16s; }
.rs-anim-delay-3 { transition-delay: 0.28s; }
.rs-anim-delay-4 { transition-delay: 0.4s; }
.rs-anim-delay-5 { transition-delay: 0.52s; }

/* ── Side Navigation Dots ─────────────────────────────────── */
.rs-side-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rs-side-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
  position: relative;
}

.rs-side-dot.rs-active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(197,165,111,0.35);
}

.rs-side-dot::after {
  content: attr(data-label);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.rs-side-dot:hover::after,
.rs-side-dot.rs-active::after {
  opacity: 1;
}

/* ── Leaf decorative accent ───────────────────────────────── */
.rs-leaf-accent {
  position: absolute;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.rs-leaf-accent svg {
  width: 100%;
  height: 100%;
  fill: var(--accent-color);
}

.rs-leaf-top-right {
  top: 30px;
  right: 30px;
  width: 100px;
  height: 100px;
}

.rs-leaf-bottom-left {
  bottom: 30px;
  left: 30px;
  width: 80px;
  height: 80px;
  transform: rotate(180deg);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Laptop (≤1280px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .rs-content-panel {
    padding: 50px 30px;
  }

  .rs-room-name {
    font-size: clamp(26px, 3vw, 40px);
  }

  .rs-content-inner {
    max-width: 420px;
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤1024px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .rs-room-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
  }

  .rs-room-section.rs-reversed {
    direction: ltr;
  }

  .rs-image-panel {
    min-height: 50vh;
    height: 50vh;
    order: 1;
  }

  .rs-content-panel {
    min-height: auto;
    padding: 40px 30px 50px;
    order: 2;
  }

  .rs-content-inner {
    max-width: 100%;
  }

  .rs-room-name {
    font-size: clamp(26px, 5vw, 38px);
  }

  .rs-room-desc {
    font-size: 14px;
  }

  .rs-side-nav {
    right: 10px;
    gap: 8px;
  }

  .rs-side-dot {
    width: 7px;
    height: 7px;
  }

  .rs-side-dot::after {
    display: none;
  }

  .rs-hero {
    min-height: 70vh;
    height: 70vh;
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤768px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .rs-page,
  .rs-page html {
    scroll-snap-type: none;
  }

  .rs-hero {
    min-height: 60vh;
    height: 60vh;
  }

  .rs-hero-title {
    font-size: clamp(32px, 10vw, 52px);
  }

  .rs-hero-content {
    padding-top: 80px;
  }

  .rs-room-section {
    grid-template-rows: auto auto;
  }

  .rs-image-panel {
    min-height: 45vh;
    height: 45vh;
  }

  .rs-content-panel {
    padding: 32px 20px 40px;
  }

  .rs-room-name {
    font-size: 26px;
  }

  .rs-room-tagline {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .rs-room-desc {
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.6;
  }

  .rs-highlights {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .rs-highlight-icon {
    width: 32px;
    height: 32px;
  }

  .rs-highlight-icon svg {
    width: 14px;
    height: 14px;
  }

  .rs-highlight-value {
    font-size: 13px;
  }

  .rs-highlight-label {
    font-size: 9px;
  }

  .rs-slider-controls {
    bottom: 16px;
  }

  .rs-arrow {
    width: 34px;
    height: 34px;
  }

  .rs-arrow svg {
    width: 14px;
    height: 14px;
  }

  .rs-side-nav {
    right: 6px;
    gap: 6px;
  }

  .rs-side-dot {
    width: 6px;
    height: 6px;
  }

  .rs-leaf-accent {
    display: none;
  }

  .rs-divider {
    margin-bottom: 18px;
  }

  .rs-room-number {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .rs-hero-scroll-cue {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Small Mobile (≤480px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .rs-hero {
    min-height: 55vh;
    height: 55vh;
  }

  .rs-hero-title {
    font-size: 32px;
  }

  .rs-hero-tagline {
    font-size: 15px;
  }

  .rs-hero-scroll-cue {
    bottom: 20px;
  }

  .rs-image-panel {
    min-height: 40vh;
    height: 40vh;
  }

  .rs-content-panel {
    padding: 24px 16px 36px;
  }

  .rs-room-name {
    font-size: 22px;
  }

  .rs-room-tagline {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .rs-room-desc {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .rs-highlights {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .rs-highlight-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }

  .rs-highlight-icon svg {
    width: 12px;
    height: 12px;
  }

  .rs-highlight-value {
    font-size: 12px;
  }

  .rs-highlight-label {
    font-size: 8px;
  }

  .rs-highlight {
    gap: 8px;
  }

  .rs-slider-controls {
    bottom: 12px;
    gap: 10px;
  }

  .rs-arrow {
    width: 30px;
    height: 30px;
  }

  .rs-dots {
    gap: 6px;
  }

  .rs-side-nav {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Extra Small (≤360px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .rs-image-panel {
    min-height: 35vh;
    height: 35vh;
  }

  .rs-content-panel {
    padding: 20px 14px 30px;
  }

  .rs-room-name {
    font-size: 20px;
  }

  .rs-room-desc {
    font-size: 11px;
  }

  .rs-highlights {
    gap: 10px;
  }
}

/* ── Footer spacing ───────────────────────────────────────── */
.rs-page .cs_footer {
  scroll-snap-align: start;
}
