/* p-rooms.css - Rooms page, round 3 (r3-ROOMS). Needs css/base.css only. Radius 0, no shadows, no eyebrows, no overlays on photos.
 * Calm hero (text block + 21:9 clip), three stacked rooms (16:9 picture + solid information rail), sticky name sub-nav,
 * paired gallery rows, compact ending. Hooks used by js/rooms.js: .pg-room, [data-room-nav], [data-rail], [data-lb], .pg-lb*. */
.rooms-page { background: var(--bone); color: var(--ink); overflow-x: clip; }
.rooms-page main { overflow-x: clip; }

/* ---------- hero: one calm block, clip below ---------- */
.pg-hero { padding-top: calc(var(--header-h) + 72px); }
.pg-hero__text { row-gap: 0; }
.pg-hero__title { grid-column: 1 / span 7; margin: 0; font-size: clamp(52px, 6.12vw, 88px); line-height: 1; letter-spacing: -.03em; }
.pg-hero__lede { grid-column: 1 / span 7; margin: 28px 0 0; max-width: 44em; font-size: 17px; line-height: 26px; color: var(--ink); text-wrap: pretty; }
.pg-hero__lede--2 { margin-top: 6px; color: var(--ink-2); }
.pg-hero__media { position: relative; margin-top: 48px; aspect-ratio: 21 / 9; overflow: hidden; background: var(--ink); }
.pg-hero__media video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- sticky sub-nav: room names, solid bone band under the header ---------- */
.pg-rooms { position: relative; margin-top: 96px; }
.pg-subnav { position: sticky; top: 0; z-index: 40; margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); background: var(--bone); }
.pg-subnav__list { display: flex; flex-wrap: wrap; gap: 4px 36px; margin: 0; padding-top: 6px; padding-bottom: 6px; list-style: none; }
.pg-subnav a { display: inline-block; padding: 10px 0 8px; color: var(--ink-2); font: 400 16px/22px var(--font-sans); text-decoration: none;
  border-bottom: 2px solid transparent; transition: color .25s, border-color .25s; }
.pg-subnav a:hover { color: var(--ink); border-bottom-color: var(--stone); }
.pg-subnav a[aria-current="true"] { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }
.pg-subnav a:focus-visible { outline: 2px solid var(--pool); outline-offset: 3px; }

/* ---------- rooms: facts first (summary row, definition list), then the pictures ---------- */
.pg-cap { display: block; margin: 10px 0 0; font: 400 13px/18px var(--font-sans); color: var(--ink-2); }
.pg-hero__cap { margin-top: 12px; }
.pg-room { scroll-margin-top: calc(var(--header-h) + 64px); padding-top: 24px; }
.pg-room + .pg-room { margin-top: 96px; }
.pg-room__sum { min-height: 120px; padding: 24px 0; align-items: center; border-top: 1px solid var(--rule, var(--stone)); }
.pg-room__name { grid-column: 1 / span 4; margin: 0; font-size: clamp(32px, 2.9vw, 42px); line-height: 1.05; white-space: nowrap; }
.pg-room__line { grid-column: 5 / span 3; margin: 0; color: var(--ink); }
.pg-room__cta { grid-column: 8 / span 2; justify-self: start; }
.pg-room__rate { grid-column: 10 / span 3; display: grid; gap: 6px; margin: 0; }
.pg-room__price { font-size: 30px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.pg-room__qual { font: 400 13px/18px var(--font-sans); color: var(--ink-2); }
.pg-room__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); margin: 0 0 28px; padding: 18px 0; border-top: 1px solid var(--rule, var(--stone)); border-bottom: 1px solid var(--rule, var(--stone)); }
.pg-room__facts div { min-width: 0; }
.pg-room__facts dt { font: 400 13px/18px var(--font-sans); color: var(--ink-2); }
.pg-room__facts dd { margin: 2px 0 0; font: 400 16px/24px var(--font-sans); color: var(--ink); }
.pg-room__pics { align-items: stretch; row-gap: 28px; }
.pg-room__fig { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.pg-room__fig--main { grid-column: 1 / span 7; }
.pg-room__fig--bed { grid-column: 8 / span 5; }
.pg-room__pics--one .pg-room__fig--main { grid-column: 1 / -1; }
.pg-room__pic { position: relative; overflow: hidden; background: var(--stone); }
.pg-room__fig--main .pg-room__pic { aspect-ratio: 16 / 9; max-height: 560px; width: 100%; }
.pg-room__fig--bed .pg-room__pic { flex: 1 1 auto; min-height: 0; }
.pg-room__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-room__fig--bed .pg-room__img { position: absolute; inset: 0; }

/* ---------- gallery: bedroom first, 2 + 2 + 1 wide ---------- */
.pg-gal { padding-top: 120px; }
.pg-gal__title { margin: 0; }
.pg-gallery { container-type: inline-size; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 72px;
  align-items: start; margin: 48px 0 0; padding: 0; list-style: none; }
.pg-g { min-width: 0; --gc: calc((100cqw - 11 * 32px) / 12); --rowh: calc((7 * var(--gc) + 6 * 32px) * 9 / 16); }
.pg-g--a1 { grid-column: 1 / span 7; grid-row: 1; }
.pg-g--a2 { grid-column: 8 / span 5; grid-row: 1; }
.pg-g--b1 { grid-column: 2 / span 5; grid-row: 2; }
.pg-g--b2 { grid-column: 7 / span 5; grid-row: 2; }
.pg-g--c1 { grid-column: 1 / -1; grid-row: 3; }
.pg-g--a1 .pg-tile__m, .pg-g--a2 .pg-tile__m { height: var(--rowh); }
.pg-g--b1 .pg-tile__m, .pg-g--b2 .pg-tile__m { aspect-ratio: 4 / 5; }
.pg-g--c1 .pg-tile__m { aspect-ratio: 21 / 9; }
.pg-tile { display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: none; text-align: left; color: inherit; cursor: pointer; }
.pg-tile:focus-visible { outline: 2px solid var(--pool); outline-offset: 4px; }
.pg-tile__m { position: relative; display: block; overflow: hidden; background: var(--stone); }
.pg-tile__m img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-tile__en { position: absolute; right: 0; bottom: 0; padding: 8px 12px; background: var(--chalk); color: var(--ink); font: 500 14px/18px var(--font-sans); opacity: 0; transition: opacity .2s; pointer-events: none; }
.pg-tile:hover .pg-tile__en, .pg-tile:focus-visible .pg-tile__en { opacity: 1; }
.pg-tile__c { display: block; margin-top: 10px; font: 400 13px/18px var(--font-sans); color: var(--ink-2); }
.pg-tile:hover .pg-tile__c { color: var(--ink); }

/* ---------- ending: one 160 px strip ---------- */
.pg-end { padding-top: 120px; padding-bottom: 104px; }
.pg-end__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 160px; border-top: 1px solid var(--rule, var(--stone)); }
.pg-end__title { margin: 0; }
.pg-end__act { display: grid; justify-items: start; gap: 10px; }
.pg-note { margin: 0; font: 400 13px/18px var(--font-sans); color: var(--ink-2); }

/* ---------- lightbox ---------- */
.pg-lb { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(23, 17, 13, .97); color: var(--chalk); }
.pg-lb[data-open] { display: flex; }
.pg-lb__fig { margin: 0; max-width: min(1400px, 88vw); max-height: 90svh; display: grid; gap: 14px; }
.pg-lb__fig img { max-width: 88vw; max-height: 76svh; width: auto; height: auto; margin: 0 auto; object-fit: contain; }
.pg-lb__hint { margin: 0; text-align: center; font: 400 13px/18px var(--font-sans); color: var(--chalk-2); }
.pg-lb__cap { font: 400 13px/18px var(--font-sans); color: var(--chalk-2); }
.pg-lb button { position: absolute; height: 44px; padding: 0 18px; border: 1px solid var(--rule-dark); border-radius: 0; background: transparent; color: var(--chalk); font: 500 14px/1 var(--font-sans); cursor: pointer; transition: background-color .25s, color .25s; }
.pg-lb button:hover { background: var(--chalk); color: var(--ink); }
.pg-lb button:focus-visible { outline: 2px solid var(--pool-hi); outline-offset: 3px; }
.pg-lb__close { top: 24px; right: var(--margin); }
.pg-lb__prev { left: var(--margin); top: 50%; margin-top: -22px; }
.pg-lb__next { right: var(--margin); top: 50%; margin-top: -22px; }

/* ---------- 1100 / 800: keep it from breaking (desktop-first) ---------- */
@media (max-width: 1100px) {
  .pg-room__name { grid-column: 1 / span 12; white-space: normal; }
  .pg-room__line { grid-column: 1 / span 7; }
  .pg-room__cta { grid-column: 1 / span 4; }
  .pg-room__rate { grid-column: 6 / span 7; }
}
@media (max-width: 800px) {
  .pg-hero { padding-top: calc(var(--header-h) + 40px); }
  .pg-hero__title, .pg-hero__lede { grid-column: 1 / -1; }
  .pg-hero__media { aspect-ratio: 4 / 3; margin-top: 32px; }
  .pg-rooms { margin-top: 64px; }
  .pg-subnav__list { gap: 0 20px; }
  .pg-subnav a { font-size: 15px; }
  .pg-room__sum { row-gap: 14px; }
  .pg-room__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .pg-room__fig--bed .pg-room__pic { aspect-ratio: 16 / 9; flex: none; }
  .pg-gal { padding-top: 88px; }
  .pg-gallery { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .pg-g--a1, .pg-g--a2, .pg-g--b1, .pg-g--b2, .pg-g--c1 { grid-column: 1 / -1; grid-row: auto; }
  .pg-g--a1 .pg-tile__m, .pg-g--a2 .pg-tile__m, .pg-g--c1 .pg-tile__m { height: auto; aspect-ratio: 16 / 10; }
  .pg-end { padding-top: 88px; padding-bottom: 72px; }
  .pg-end__in { flex-direction: column; align-items: flex-start; padding: 24px 0; }
  .pg-lb__prev, .pg-lb__next { top: auto; bottom: 20px; margin-top: 0; }
}
