/* =========================================================================
   Rooms (/rooms/) — styles used by this page only. Classes: .rooms-*
   Shared pieces (navbar, sticky hero mechanic, buttons, tabs, dots, photo
   band, lightbox, footer) live in components.css.
   ========================================================================= */

/* Navbar: dark from page load, like About (Oliver, Nov 16, 2026; FX-89). The page has no data-nav="overlay", so the
   shared solid bar applies. Until the room list covers the hero by 80px it is fully opaque ink with no shadow; then the
   shared solid bar takes over, as on About. The open phone menu keeps the shared fill. */
body[data-page="rooms"] .eb-nav:not([data-scrolled="1"]) { box-shadow: none; }
body[data-page="rooms"] .eb-nav:not([data-scrolled="1"]):not([data-menu-open="1"]) {
  background: var(--ink-900);
}

/* =========================================================================
   Hero: sticky room photo with a soft shade under the navbar
   ========================================================================= */
.rooms-hero {
  height: min(clamp(380px, 58vw, 640px), 100vh);
  min-height: 320px;
  background: var(--stucco-200);
}
.rooms-hero__photo { object-position: 50% 58%; }
.rooms-hero__shade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(36,28,23,.42), rgba(36,28,23,0));
  pointer-events: none;
}
@media (max-width: 760px) {
  .rooms-hero { height: 62vh; height: 62svh; min-height: 380px; }
}

/* =========================================================================
   Intro: headline card hanging over the photo's bottom-left edge,
   building tabs and the per-building line under them.
   ========================================================================= */
.rooms-intro {
  display: flow-root;
  padding: 96px 24px 8px;
  background: var(--stucco-50);
}
.rooms-intro__cardrow {
  position: relative;
  max-width: var(--container-content);
  height: 0;
  margin: 0 auto;
}
.rooms-intro__card {
  position: absolute;
  left: 0;
  bottom: 28px;
  display: inline-block;
  max-width: 100%;
  padding: clamp(18px, 2.4vw, 28px) clamp(22px, 3vw, 36px);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--stucco-50);
  /* Deeper than --shadow-raised: the card floats over the photo (one-off, from the design). */
  box-shadow: 0 2px 4px rgba(36,28,23,.08), 0 14px 32px rgba(36,28,23,.16);
}
.rooms-intro__title {
  font-size: clamp(26px, 4vw, 50px);
  line-height: 1.04;
}
.rooms-intro__line { white-space: nowrap; }
.rooms-intro__line--2 { display: block; }
.rooms-intro__script {
  font-size: 1.4em;
  line-height: 1;
  color: var(--vermillion-500);
}
.rooms-intro__inner {
  max-width: var(--container-content);
  margin: 0 auto;
}
/* The Rooms tabs sit flush on the list (no room for Home's "newly renovated" label). */
.rooms-tabs { padding-bottom: 0; }
/* Touch tablets: the tabs' 44px hit area (components.css) reaches 5px below the row. With no bottom padding here,
   the row's sideways-scroll box would clip it and scroll 5px up and down; the four tabs fit from 761px, so the row
   doesn't need to scroll there. EB-083. */
@media (pointer: coarse) and (min-width: 761px) {
  .rooms-tabs { overflow: visible; }
}
/* Short landscape touch windows: the room list starts right at the tabs' bottom edge (see the landscape rules below),
   so the 44px hit area grows upward into the intro instead of down under the list. EB-091. */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  .rooms-tabs .eb-tabs__tab::before { top: auto; bottom: 0; }
}
.rooms-countline {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--ink-700);
  font-size: 17px;
  line-height: var(--lh-body);
}
/* Without JavaScript the building tabs can't filter, and the three building descriptions (hidden until a tab shows
   one) would never appear. So the tabs go and all three descriptions show, each led by its building's name. The
   media query keeps this from flashing before rooms.js runs. EB-087. */
@media (scripting: none) {
  .rooms-tabs { display: none; }
  .rooms-countline[hidden] { display: block; }
  .rooms-countline::before {
    content: attr(data-countline) ": ";
    color: var(--text-heading);
    font-weight: var(--weight-semibold);
  }
}

@media (max-width: 820px) {
  .rooms-intro { padding: 64px 20px; }
}
@media (max-width: 760px) {
  .rooms-intro { padding-bottom: 0; }
}
/* Landscape phones get the design's spaced, centred tabs. They need about 366px, so they start at 561px: a narrower
   landscape window (a desktop window at 400% zoom is 320 × 256) keeps the phone layout instead of scrolling sideways
   (WCAG 1.4.10; EB-046, FX-30). */
@media (min-width: 561px) and (max-width: 760px) and (orientation: landscape) {
  .rooms-tabs .eb-tabs__list { justify-content: center; gap: var(--space-6); }
  .rooms-tabs .eb-tabs__tab { padding-left: 10px; padding-right: 10px; font-size: 13px; letter-spacing: var(--tracking-wide); }
}
@media (max-width: 640px) {
  .rooms-intro__card { right: 0; display: block; }
  .rooms-intro__line:not(.rooms-intro__line--2) { white-space: normal; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .rooms-intro { padding-bottom: 0; }
}
@media (orientation: landscape) and (max-height: 500px) and (min-width: 821px) {
  .rooms-intro { padding-top: 72px; }
}

/* =========================================================================
   Room list: horizontal cards (photo strip | copy), alternating sides.
   ========================================================================= */
.rooms-list {
  padding: 32px 24px 72px;
  background: var(--stucco-50);
}
.rooms-list__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: var(--container-content);
  margin: 0 auto;
}

.rooms-room {
  display: flex;
  align-items: stretch;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  scroll-margin-top: calc(110px - var(--eb-nav-clear)); /* deep links (#family-suite) land 110px down, below the navbar (base.css adds --eb-nav-clear) */
  transition: var(--transition-lift);
}
/* Alternate by position in the full list, so filtering keeps each card's side. */
.rooms-room:nth-child(even) { flex-direction: row-reverse; }
.rooms-room[hidden] { display: none; }
/* Cards rise only 14px, no scale (the design's room reveal). */
.rooms-room[data-reveal] {
  --reveal-y: 14px;
  --reveal-scale: 1;
  --reveal-fade: 520ms;
  --reveal-move: 520ms;
}
@media (hover: hover) {
  .rooms-room:hover { transform: translateY(var(--hover-lift)); box-shadow: var(--shadow-raised); }
}

/* Photo strip: native scroll-snap, arrows + dots from rooms.js */
.rooms-room__media {
  position: relative;
  flex: none;
  align-self: stretch;
  width: 54%;
  height: 430px;
  overflow: hidden;
  background: var(--stucco-300);
}
.rooms-room__strip {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rooms-room__strip::-webkit-scrollbar { display: none; }
.rooms-room__strip:focus-visible { outline: 3px solid var(--pool-500); outline-offset: -3px; }
.rooms-room__strip img {
  flex: none;
  width: 100%;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  filter: sepia(.10) saturate(1.04);
  cursor: zoom-in;
}
.rooms-room__strip .rooms-room__img--left { object-position: 0% 50%; }
/* Upright photos show whole, at the strip's full height, with the card's own white on each side; the strip keeps its
   size (Oliver, 19 Nov 2026, from Crown City Inn's Rooms page). The tone filter tints that white by at most 2 of 255. */
.rooms-room__strip .rooms-room__img--tall { object-fit: contain; background: var(--surface-card); }
/* Without JavaScript the photos don't open in the lightbox and the arrows stay hidden, so the zoom cursor goes and the
   strip shows a thin scrollbar: the way to the other photos for a mouse without sideways scrolling. The dots stay,
   as the only sign on a phone that there are more photos. EB-089. */
@media (scripting: none) {
  .rooms-room__strip { scrollbar-width: thin; }
  .rooms-room__strip img { cursor: auto; }
  /* Only rooms.js moves the dots, so without it they never follow the strip (EB-099). */
  .rooms-room__dots { display: none; }
}

.rooms-room__dots { --dot-size: 6px; bottom: 12px; gap: 6px; }
.rooms-room__dots .eb-dots__dot { transition-duration: 320ms; }
.rooms-room__dots .eb-dots__dot:not([data-active]) { background: rgba(251,247,239,.5); }

/* Round arrows (34px; 44px on touch screens) on a 65% ink disc at full opacity (WCAG 1.4.11): 5.22:1 or better even
   over a pure-white photo pixel, 7.36:1 on hover. The design's 40% disc at 85% opacity measured as low as about 1.9:1. */
.rooms-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-circle);
  background: rgba(36,28,23,.65);
  color: var(--white);
  font: 300 20px/1 var(--font-sans);
  opacity: 1;
  transform: translateY(-50%);
  transition: opacity var(--duration-base) var(--ease-out-soft), background-color var(--duration-base) var(--ease-out-soft);
}
.rooms-arrow[hidden] { display: none; }
.rooms-arrow--prev { left: 10px; }
.rooms-arrow--next { right: 10px; }
@media (hover: hover) { .rooms-arrow:hover { background: rgba(36,28,23,.75); } } /* mouse only (EB-103, 13 Nov 2026) */
/* Two-colour focus ring, as on the see-through navbar (WCAG C40): one of the two rings clears 3:1 on any photo. */
.rooms-arrow:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; box-shadow: 0 0 0 2px var(--ink-900); }
@media (hover: none) {
  .rooms-arrow { width: 44px; height: 44px; }
}

/* Copy */
.rooms-room__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 32px 32px 34px;
}
.rooms-room__name {
  margin-top: 10px;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.12;
}
.rooms-room__meta {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: var(--text-small);
}
.rooms-room__text {
  max-width: 46ch;
  margin-top: 14px;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.7;
}
.rooms-room__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.rooms-room__note {
  color: var(--text-muted);
  font-size: var(--text-micro);
  letter-spacing: .02em;
}

/* Landscape tablets / small laptops: narrower photo */
@media (min-width: 821px) and (max-width: 1100px) {
  .rooms-room { min-height: 390px; }
  .rooms-room__media { width: 46%; height: auto; min-height: 390px; }
  .rooms-room__copy { padding: 26px 24px 28px; }
}
/* Stacked cards: photo on top */
@media (max-width: 820px) {
  .rooms-room,
  .rooms-room:nth-child(even) { flex-direction: column; min-height: 0; }
  .rooms-room__media { width: 100%; height: clamp(230px, 58vw, 320px); }
  .rooms-room__copy { padding: 24px 20px 32px; }
}
@media (max-width: 760px) {
  .rooms-list { padding-top: 20px; }
  .rooms-list__inner { gap: 20px; }
  .rooms-room__media { height: clamp(240px, 66vw, 300px); }
  .rooms-room__dots { bottom: 10px; }
  .rooms-room__strip { touch-action: pan-x pan-y; }
}
@media (max-width: 560px) {
  .rooms-room__copy { padding: 22px 18px 28px; }
  .rooms-room__name { font-size: 27px; }
}
/* Upright tablets: stacked, tall photo, buttons pinned to the bottom */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .rooms-room,
  .rooms-room:nth-child(even) { flex-direction: column; min-height: 0; }
  .rooms-room__media { width: 100%; height: 400px; }
  .rooms-room__copy { flex: 1 1 auto; justify-content: flex-start; min-height: 300px; padding: 26px 28px 28px; }
  .rooms-room__copy > :last-child { margin-top: auto; }
}
/* Landscape phones: two columns of stacked cards */
@media (orientation: landscape) and (max-height: 500px) {
  /* The list tucks 2px under the intro so no seam of the sticky hero photo shows between them, and paints over the
     intro's last 2px. The tab row ends 2px higher, so that overlap no longer hides the selected tab's underline and the
     row's hairline. EB-091. */
  .rooms-tabs { margin-bottom: 2px; }
  .rooms-list { margin-top: -2px; padding-top: 22px; }
  .rooms-room[data-reveal] { --reveal-y: 0px; } /* fade only, no rise */
  .rooms-list__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 20px;
  }
  .rooms-room,
  .rooms-room:nth-child(even) { flex-direction: column; height: 100%; min-height: 0; }
  .rooms-room__media { width: 100%; height: 230px; }
  .rooms-room__copy { flex: 1 1 auto; justify-content: flex-start; padding: 18px 20px 22px; }
  .rooms-room__copy > :last-child { margin-top: auto; }
  .rooms-room__name { font-size: 23px; }
}
/* Two cards to a row only from 568px wide (the smallest phone on its side). In a narrower short window (a desktop
   window at 400% zoom is 320 × 256) each card was about 124px wide and cut off "Accessibility details" and
   "Check rates"; those keep one card per row, as Home does (WCAG 1.4.10; EB-097, 13 Nov 2026). */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 567px) {
  .rooms-list__inner { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
}

/* =========================================================================
   Info strip: check-in times, room amenities, pets
   ========================================================================= */
.rooms-info {
  padding: 72px 24px;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  background: var(--stucco-100);
}
.rooms-info__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
  max-width: var(--container-content);
  margin: 0 auto;
}
.rooms-info__title {
  color: var(--text-heading);
  font-family: var(--font-sans);
  font-size: var(--text-size-body);
  font-weight: var(--weight-semibold);
  font-variation-settings: normal;
  line-height: var(--lh-body);
  letter-spacing: normal;
}
.rooms-info__text {
  margin-top: 8px;
  color: var(--ink-700);
  font-size: var(--text-small);
  line-height: 1.7;
}
@media (max-width: 820px) {
  .rooms-info { padding: 52px 20px; }
}

/* =========================================================================
   Closing banner: pool photo, card on the right
   ========================================================================= */
.rooms-banner {
  --band-ratio: 16 / 7.2;
  --band-min: min(56vh, 420px);
  --card-max: 440px;
}
.rooms-banner__title { margin-top: 14px; }
.rooms-banner__text {
  margin-top: 14px;
  color: var(--ink-700);
  font-size: var(--text-size-body);
  line-height: 1.7;
}
.rooms-banner__text a,
.rooms-banner__text a:hover { color: var(--pool-600); }
@media (orientation: landscape) and (max-height: 500px) {
  .rooms-banner .eb-photo-band__inner { justify-content: center; }
  .rooms-banner .eb-photo-band__card { text-align: center; }
}

/* =========================================================================
   Photo viewer (shared .eb-lightbox). The Rooms design differs from the
   Gallery one in three ways: the viewer appears at once (no box-in
   animation), inactive thumbnails stay dimmed on hover, and on upright
   phones the thumbnail strip starts at the left edge instead of centring.
   ========================================================================= */
.eb-lightbox__stage { animation: none; }
@media (hover: hover) { .eb-lightbox__thumb:not([aria-current="true"]):hover { opacity: .5; } } /* mouse only (EB-103, 13 Nov 2026) */
@media (max-width: 760px) and (orientation: portrait) {
  .eb-lightbox__thumbs > :first-child { margin-left: 0; }
  .eb-lightbox__thumbs > :last-child { margin-right: 0; }
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .rooms-room { transition: none; }
  .rooms-room:hover { transform: none; }
}
