/* ==========================================================
   Rooms page (odalar) - v4, written clean
   Same hero as the gallery; one compact block per room:
   large swipeable photo slider + text, alternating sides.
   ========================================================== */
:root {
  --hp-navy: #0a1526;
  --hp-accent: #2f86c7;
  --hp-ink: #151a22;
  --hp-muted: #5c6370;
  --hp-line: rgba(10, 21, 38, .14);
  --hp-sand: #f5f0e7;
  --hp-ease: cubic-bezier(.2, .7, .2, 1);
}

.rooms-page {
  background: #fff;
}

/* ---------- Hero (matches the gallery hero) ---------- */
.rooms-page .site-hero.inner-page {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 72vh !important;
  min-height: 500px;
  max-height: none;
  overflow: hidden;
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
}

.rooms-page .site-hero.inner-page.overlay:before {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(10, 21, 38, .45) 0%, rgba(10, 21, 38, .25) 45%, rgba(10, 21, 38, .75) 100%);
}

.rooms-page .site-hero .container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 6.5rem;
  z-index: 2;
}

.rooms-page .site-hero .site-hero-inner {
  height: auto !important;
  min-height: 0 !important;
  margin: 0;
  justify-content: center !important;
}

.rooms-page .site-hero .text-center {
  text-align: center !important;
}

.rooms-page .page-hero-logo,
.rooms-page .mouse.smoothscroll {
  display: none;
}

.rooms-page .page-hero-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-main);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
  text-shadow: none;
}

.rooms-page .page-hero-breadcrumbs {
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.rooms-page .page-hero-breadcrumbs li,
.rooms-page .page-hero-breadcrumbs li a {
  color: rgba(255, 255, 255, .85);
}

/* ---------- Intro ---------- */
.rooms-intro {
  padding: 5.5rem 0 1rem;
}

.rooms-intro .section-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--hp-accent);
}

.rooms-title {
  max-width: 18ch;
  margin: 1rem 0 1.2rem;
  font-family: var(--font-main);
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--hp-ink);
}

.rooms-lead {
  max-width: 42rem;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--hp-muted);
}

.rooms-stats {
  display: flex;
  gap: 3.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hp-line);
}

.rooms-stats strong {
  display: block;
  font-family: var(--font-main);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--hp-ink);
}

.rooms-stats span {
  display: block;
  margin-top: .5rem;
  font-size: .88rem;
  color: var(--hp-muted);
}

/* ---------- Room block ---------- */
.room-showcase {
  padding: 4.5rem 0;
}

.room-showcase + .room-showcase {
  border-top: 1px solid var(--hp-line);
}

.room-showcase > .container {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 4rem;
  align-items: center;
}

.room-showcase--right > .container {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.room-showcase--right .room-showcase-media {
  order: 2;
}

/* Photo slider: native horizontal scroll with snap, buttons + counter */
.room-showcase-media {
  position: relative;
  min-width: 0;
}

.room-slider-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 28px;
  background: var(--hp-sand);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.room-slider-track::-webkit-scrollbar {
  display: none;
}

.room-slider-track a {
  display: block;
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
  cursor: zoom-in;
}

.room-slider-track img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.room-slider-ui {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 24px rgba(10, 21, 38, .15);
}

.room-slider-ui button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--hp-ink);
  cursor: pointer;
  transition: background-color .25s ease;
}

.room-slider-ui button:hover {
  background: var(--hp-sand);
}

.room-slider-count {
  min-width: 3.6rem;
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
  color: var(--hp-ink);
  font-variant-numeric: tabular-nums;
}

/* Text column */
.room-showcase-text {
  min-width: 0;
}

.room-showcase-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--hp-accent);
}

.room-showcase-text h3 {
  margin: .8rem 0 1rem;
  font-family: var(--font-main);
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--hp-ink);
}

.room-showcase-text > p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--hp-muted);
}

.room-showcase-size {
  margin: 1.6rem 0 1.3rem;
  padding: 1rem 0;
  border-top: 1px solid var(--hp-line);
  border-bottom: 1px solid var(--hp-line);
}

.room-showcase-size strong {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--hp-ink);
}

.room-showcase-features {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.room-showcase-features li {
  padding: .35rem .8rem;
  border-radius: 999px;
  background: var(--hp-sand);
  font-size: .78rem;
  line-height: 1.3;
  color: var(--hp-ink);
}

/* Lightbox above the fixed header */
.fancybox-container,
.fancybox__container {
  z-index: 100001 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .room-showcase > .container,
  .room-showcase--right > .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .room-showcase--right .room-showcase-media {
    order: 0;
  }
}

@media (max-width: 767.98px) {
  .rooms-page .site-hero.inner-page {
    height: 62vh !important;
    min-height: 420px;
  }

  .rooms-page .site-hero .container {
    padding-bottom: 4.5rem;
  }

  .rooms-intro {
    padding: 4rem 0 .5rem;
  }

  .rooms-stats {
    gap: 2rem;
  }

  .room-showcase {
    padding: 3rem 0;
  }

  .room-slider-track {
    border-radius: 22px;
  }

  .room-slider-ui {
    left: .8rem;
    bottom: .8rem;
  }
}

/* Side gutters: this page's containers had no horizontal padding on phones */
.rooms-page .rooms-intro > .container,
.rooms-page .room-showcase > .container {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 992px) {
  .rooms-page .rooms-intro > .container,
  .rooms-page .room-showcase > .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ---------- Mobile hero: taller, tighter crop on the beds, stronger contrast ---------- */
@media (max-width: 767.98px) {
  .rooms-page .site-hero.inner-page {
    height: 78vh !important;
    height: 78svh !important;
    min-height: 520px;
    /* !important: the parallax script writes an inline background-position */
    background-position: 70% 78% !important;
  }

  .rooms-page .site-hero.inner-page.overlay:before {
    background:
      linear-gradient(180deg,
        rgba(10, 21, 38, .6) 0%,
        rgba(10, 21, 38, .12) 28%,
        rgba(10, 21, 38, .18) 55%,
        rgba(10, 21, 38, .88) 100%);
  }

  .rooms-page .site-hero .container {
    padding-bottom: 3.25rem;
  }

  .rooms-page .page-hero-title {
    margin-bottom: .75rem;
    font-size: 3.7rem;
    letter-spacing: -.04em;
  }

  .rooms-page .page-hero-breadcrumbs {
    font-size: .68rem;
    letter-spacing: .2em;
  }
}

/* ---------- Desktop hero: same treatment as mobile (crop on the beds, stronger contrast, larger title) ---------- */
@media (min-width: 768px) {
  .rooms-page .site-hero.inner-page {
    /* !important: the parallax script writes an inline background-position */
    background-position: center 72% !important;
  }

  .rooms-page .site-hero.inner-page.overlay:before {
    background:
      linear-gradient(180deg,
        rgba(10, 21, 38, .6) 0%,
        rgba(10, 21, 38, .12) 30%,
        rgba(10, 21, 38, .18) 55%,
        rgba(10, 21, 38, .85) 100%);
  }

  .rooms-page .page-hero-title {
    font-size: clamp(4rem, 8vw, 7rem);
    letter-spacing: -.045em;
  }
}

/* ---------- Mobile hero: shorter ---------- */
@media (max-width: 767.98px) {
  .rooms-page .site-hero.inner-page {
    height: 64vh !important;
    height: 64svh !important;
    min-height: 440px;
  }
}
