/* Rooms page (rooms/all/): loaded after ../all-rooms.css.
   1. Three category buttons, centred; the one on show is dark with a
      pointer under it.
   2. The room card's own parts (room-section.php): description, room
      facts, "Room details" button, the Youthpods card.
   3. Screen-by-screen layout (html.lux-deck, set by luxJump.js): every
      .luxSeg is one screen under the header and the pinned buttons.
      With scripts off none of part 3 applies and the page is a long page.
   At the swap these rules move into all-rooms.css. */

/* ─── Category buttons ───────────────────────────────────────── */
.lux-cat-tabs { justify-content: center; }
.lux-cat-tablist { justify-content: center; align-items: stretch; }
.lux-cat-tab {
  position: relative;
  background: #fff;
  color: var(--lux-deep-green);
  border: 1px solid var(--lux-sage);
}
.lux-cat-tab:hover { background: var(--lux-cream); }
.lux-cat-tab[aria-selected="true"],
.lux-cat-tab.is-current {
  background: var(--lux-deep-green);
  color: #fff;
  border-color: var(--lux-deep-green);
  box-shadow: 0 6px 14px -8px var(--lux-shadow);
}
/* Pointer joining the dark button to the list it opened. */
.lux-cat-tablist .lux-cat-tab[aria-selected="true"]::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  background: var(--lux-deep-green);
  transform: rotate(45deg);
}
@media (min-width: 900px) {
  #allRoomsContainer .lux-cat-tabs { justify-content: center; padding-bottom: 1.25rem; }
  .lux-cat-tab { flex: 0 1 auto; min-width: 15rem; padding: 0.95rem 1.5rem; white-space: nowrap; }
}
@media (max-width: 899px) {
  /* Three long names: let each wrap inside its button. */
  .lux-cat-tab { font-size: 0.66rem; letter-spacing: 0.06em; padding: 0.8rem 0.35rem; }
  .lux-cat-tabs { gap: 0.35rem; }
}

/* ═══ 2. The room card's own parts ═══════════════════════════════ */

/* No gap or rule between rooms: each is its own block. */
#allRoomsContainer .roomSection + .roomSection { margin-top: 3.5rem; }

/* Description, on the cream side (it used to sit on the green photo panel). */
#allRoomsContainer .lux-room-text {
  max-width: 64ch;
  margin: 0;
  padding: 1.5rem 2.5rem 1.1rem;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.005em;
  color: var(--lux-text);
  text-align: left;
  text-shadow: none;
}

/* Room facts: label above value, hairline between. */
#allRoomsContainer .roomBed { padding: 0; border-bottom: none; }
#allRoomsContainer .lux-specs { margin: 0; padding: 0; }
#allRoomsContainer .lux-spec {
  padding: 0.75rem 2.5rem 0.8rem;
  border-top: 1px solid rgba(184, 136, 46, 0.18);
}
#allRoomsContainer .lux-spec dt {
  margin: 0 0 0.2rem;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lux-gold);
  text-shadow: none;
}
#allRoomsContainer .lux-spec dd {
  margin: 0;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--lux-text);
  text-shadow: none;
}
#allRoomsContainer .lux-spec--wide dd { position: relative; padding-left: 1rem; margin-top: 0.3rem; }
#allRoomsContainer .lux-spec--wide dd::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: var(--lux-gold);
}
#allRoomsContainer .lux-room-note { margin: 0; padding: 0.75rem 2.5rem 1rem; font-size: 0.88rem; line-height: 1.5; text-shadow: none; }

/* "Room details": only used by the phone screens (part 3). */
.lux-more-btn { display: none; }

/* The photo panel now holds only the photos and their credentials. */
#allRoomsContainer .roomDesc .lux-prov { margin: 0; padding: 0.5rem 0.75rem 0.6rem; }

/* Card that opens another page (Youthpods by the Bay). */
.lux-link-card-body {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 3rem 2.5rem;
}
.lux-link-card-photo { display: block; max-width: 760px; }
.lux-link-card-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--lux-gold-border);
}
#allRoomsContainer a.lux-link-card-btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.9rem 1.6rem;
  background: var(--lux-deep-green);
  color: #fff;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: none;
  border-radius: 2px;
}
#allRoomsContainer a.lux-link-card-btn:hover,
#allRoomsContainer a.lux-link-card-btn:focus-visible { background: var(--lux-sage); }
@media (max-width: 899px) {
  #allRoomsContainer .lux-room-text { padding: 1.25rem 1.5rem 1rem; }
  #allRoomsContainer .lux-spec { padding: 0.7rem 1.5rem 0.75rem; }
  #allRoomsContainer .lux-room-note { padding: 0.6rem 1.5rem 0.9rem; }
  .lux-link-card-body { padding: 0 1.5rem 2rem; }
}

/* ═══ 3. Screen-by-screen (html.lux-deck) ════════════════════════ */
/* --lux-head: what the fixed header covers. --lux-bar: the pinned
   category buttons. Both are measured by the buttons' script. */
html.lux-deck {
  --lux-screen: calc(100vh - var(--lux-head, 185px));
  --lux-room: calc(100vh - var(--lux-head, 185px) - var(--lux-bar, 70px));
}
@supports (height: 100svh) {
  html.lux-deck {
    --lux-screen: calc(100svh - var(--lux-head, 185px));
    --lux-room: calc(100svh - var(--lux-head, 185px) - var(--lux-bar, 70px));
  }
}
html.lux-deck .luxSeg {
  box-sizing: border-box;
  height: var(--lux-room);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-margin-top: calc(var(--lux-head, 185px) + var(--lux-bar, 70px));
  scrollbar-width: thin;
}
/* Opening screen: the buttons sit at its foot, not yet pinned. */
html.lux-deck .luxSeg-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: var(--lux-head, 185px);
  /* Not clipped: the booking search opens its calendar over the page. */
  height: auto;
  min-height: var(--lux-room);
  overflow: visible;
}
html.lux-deck #allRoomsContainer .luxSeg-intro .hero-search-widget { margin-bottom: 0; }
html.lux-deck #allRoomsContainer .luxSeg-intro .lux-rooms-lead { margin-bottom: 1.5rem; }

/* The buttons stay pinned under the header at every width. */
html.lux-deck #allRoomsContainer .lux-cat-tabs {
  position: -webkit-sticky;
  position: sticky;
  top: var(--lux-tabs-top, 0px);
  z-index: 50;
  background: var(--lux-ivory);
  border-top: 1px solid var(--lux-gold-border);
}
html.lux-deck .lux-cat-end { display: none; }

/* A room: its name, then photos beside facts and rates, filling the screen. */
html.lux-deck #allRoomsContainer .roomSection.luxSeg {
  display: flex;
  flex-direction: column;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0;
}
html.lux-deck #allRoomsContainer .roomSection + .roomSection { margin-top: 0; }
html.lux-deck #allRoomsContainer .roomSection + .roomSection::before { display: none; }
html.lux-deck #allRoomsContainer .roomSection .roomTypeName {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 1.1rem 3rem 0.5rem;
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  letter-spacing: 0.16em;
}
html.lux-deck #allRoomsContainer .roomSection .roomTypeName::after { display: none; }
html.lux-deck #allRoomsContainer .lux-room-deck { flex: 0 0 auto; width: 100%; box-sizing: border-box; margin: 0 auto 0.9rem; }
html.lux-deck #allRoomsContainer .lux-room-deck span { max-width: 90ch; font-size: clamp(0.95rem, 1.25vw, 1.05rem); line-height: 1.45; }
html.lux-deck #allRoomsContainer .roomSection:not(:has(.lux-room-deck)) .roomTypeName { padding-bottom: 0.9rem; }

@media (min-width: 900px) {
  html.lux-deck #allRoomsContainer .room {
    flex: 1 1 auto;
    min-height: 0 !important;
    width: 100%;
    align-items: stretch !important;
  }
  /* Photos: the featured photo takes the height left over. */
  html.lux-deck #allRoomsContainer .roomDesc {
    flex: 0 0 44% !important;
    width: 44% !important;
    max-width: 44% !important;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  html.lux-deck #allRoomsContainer .roomDesc > section { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  html.lux-deck #allRoomsContainer .roomDesc > section > div { flex: 1 1 auto; min-height: 0; display: flex !important; flex-direction: column; }
  html.lux-deck #allRoomsContainer .roomDesc .lux-hero-frame { flex: 1 1 auto; min-height: 200px; }
  html.lux-deck #allRoomsContainer .roomDesc .lux-hero-frame img { height: 100% !important; min-height: 0 !important; width: 100% !important; aspect-ratio: auto !important; }
  html.lux-deck #allRoomsContainer .roomDesc .lux-hero-progress,
  html.lux-deck #allRoomsContainer .roomDesc .lux-thumb-strip,
  html.lux-deck #allRoomsContainer .roomDesc .lux-prov { flex: 0 0 auto; }
  html.lux-deck #allRoomsContainer .roomDesc .lux-thumb-strip { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  html.lux-deck #allRoomsContainer .roomDesc .lux-thumb { flex: 1 0 84px; height: 58px; }

  /* Facts on the left, rates and the booking button on the right. */
  html.lux-deck #allRoomsContainer .roomBedandPrice,
  html.lux-deck #allRoomsContainer .room > .roomBedandPrice {
    flex: 1 1 56% !important;
    width: 56% !important;
    max-width: 56% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
    grid-template-areas: "info price";
    align-items: stretch;
    overflow: visible;
  }
  /* A long list of facts scrolls inside its own column, so the photos
     and the rates stay in view; a soft edge shows there is more. */
  html.lux-deck #allRoomsContainer .roomBedandPrice { grid-template-rows: minmax(0, 1fr); min-height: 0; }
  html.lux-deck #allRoomsContainer .lux-info {
    grid-area: info;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 136, 46, 0.6) transparent;
    background:
      linear-gradient(var(--lux-cream) 30%, rgba(255, 254, 249, 0)) top / 100% 28px no-repeat local,
      linear-gradient(rgba(255, 254, 249, 0), var(--lux-cream) 70%) bottom / 100% 28px no-repeat local,
      linear-gradient(rgba(26, 54, 40, 0.14), rgba(26, 54, 40, 0)) top / 100% 10px no-repeat scroll,
      linear-gradient(rgba(26, 54, 40, 0), rgba(26, 54, 40, 0.14)) bottom / 100% 10px no-repeat scroll;
  }
  html.lux-deck #allRoomsContainer .roomBedandPrice > .roomPrice {
    grid-area: price;
    width: auto !important;
    max-width: none !important;
    border-left: 1px solid var(--lux-gold-border);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  html.lux-deck #allRoomsContainer .lux-room-text { padding: 1.1rem 1.75rem 0.9rem; font-size: 0.94rem; line-height: 1.62; }
  html.lux-deck #allRoomsContainer .lux-spec { padding: 0.55rem 1.75rem 0.6rem; }
  html.lux-deck #allRoomsContainer .lux-spec dd { font-size: 0.9rem; line-height: 1.5; }
  html.lux-deck #allRoomsContainer .rates { border-top: none; flex: 1 1 auto; display: flex; flex-direction: column; }
  html.lux-deck #allRoomsContainer .rates::before { padding: 1.1rem 1.5rem 0.3rem; }
  html.lux-deck #allRoomsContainer .rates .rateItem { padding: 0.5rem 1.5rem; }
  html.lux-deck #allRoomsContainer .rates .rateLabel { letter-spacing: 0.08em; line-height: 1.45; }
  html.lux-deck #allRoomsContainer .rates .rateNote { letter-spacing: 0.02em; text-transform: none; margin-top: 0.3rem; line-height: 1.45; }
  html.lux-deck #allRoomsContainer .roomAction { margin-top: auto !important; padding: 1.1rem 1.5rem 1.4rem !important; }
  html.lux-deck #allRoomsContainer .roomAction button.book-now-button { padding: 1rem 0.75rem !important; letter-spacing: 0.16em !important; white-space: normal !important; line-height: 1.3 !important; }
  html.lux-deck #allRoomsContainer .roomAction button.book-now-button .button-text { white-space: normal !important; }
  html.lux-deck #allRoomsContainer .lux-room-note { padding: 0.6rem 1.5rem 0.9rem; }

  /* Youthpods card: photo beside the line and the button. */
  html.lux-deck .lux-link-card-body {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    padding: 0 3rem 2rem;
  }
  html.lux-deck .lux-link-card-photo { max-width: none; height: 100%; min-height: 0; }
  html.lux-deck .lux-link-card-photo img { height: 100%; object-fit: cover; }
  html.lux-deck #allRoomsContainer a.lux-link-card-btn { margin-top: 0; justify-self: start; }
}

/* Phones and tablets: photo, rates and the booking button fit the
   screen; the description and the facts open with "Room details". */
@media (max-width: 899px) {
  html.lux-deck #allRoomsContainer .lux-cat-tabs { padding: 8px 10px; gap: 0.3rem; border-bottom: 1px solid var(--lux-gold-border); }
  html.lux-deck .lux-cat-tab { font-size: 0.6rem; letter-spacing: 0.04em; line-height: 1.25; padding: 0.55rem 0.25rem; }
  html.lux-deck .lux-cat-tablist .lux-cat-tab[aria-selected="true"]::after { width: 10px; height: 10px; bottom: -5px; margin-left: -5px; }

  html.lux-deck #allRoomsContainer .lux-rooms-hero { padding-top: 0; }
  html.lux-deck #allRoomsContainer .roomSection .roomTypeName { padding: 0.9rem 1.25rem 0.35rem; font-size: clamp(1.05rem, 4.4vw, 1.4rem); letter-spacing: 0.12em; gap: 0.7rem; }
  html.lux-deck #allRoomsContainer .lux-room-deck { padding: 0 1.25rem; margin-bottom: 0.7rem; }
  html.lux-deck #allRoomsContainer .lux-room-deck span { font-size: 0.88rem; line-height: 1.4; padding-left: 0.75rem; }
  /* width: its auto side margins would otherwise let a long photo strip widen it */
  html.lux-deck #allRoomsContainer .room { flex: 0 0 auto; width: 100%; min-width: 0; }
  html.lux-deck #allRoomsContainer .roomDesc .lux-hero-frame img { aspect-ratio: 16 / 9 !important; height: auto !important; min-height: 0 !important; }
  html.lux-deck #allRoomsContainer .roomDesc .lux-thumb-strip { padding: 4px; gap: 4px; }
  html.lux-deck #allRoomsContainer .roomDesc .lux-thumb { width: 64px; height: 36px; }
  html.lux-deck #allRoomsContainer .roomBedandPrice { border-top: none; }
  html.lux-deck #allRoomsContainer .rates { border-top: none; }
  html.lux-deck #allRoomsContainer .rates::before { padding: 0.6rem 1.25rem 0.15rem; }
  html.lux-deck #allRoomsContainer .rates .rateItem { padding: 0.32rem 1.25rem; }
  html.lux-deck #allRoomsContainer .rates .rateLabel { letter-spacing: 0.06em; line-height: 1.4; }
  html.lux-deck #allRoomsContainer .rates .rateNote { letter-spacing: 0.01em; text-transform: none; margin-top: 0.2rem; line-height: 1.4; }
  html.lux-deck #allRoomsContainer .roomAction { padding: 0.6rem 1.25rem 0.7rem !important; }
  html.lux-deck #allRoomsContainer .roomAction button.book-now-button { padding: 0.95rem 1rem !important; }
  html.lux-deck #allRoomsContainer .lux-room-note { padding: 0.4rem 1.25rem 0.6rem; }

  html.lux-deck .lux-more-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0.85rem 1.25rem;
    background: var(--lux-cream);
    border: 0;
    border-top: 1px solid var(--lux-gold-border);
    border-bottom: 1px solid var(--lux-gold-border);
    border-radius: 0;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: none;
    color: var(--lux-deep-green);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }
  html.lux-deck .lux-more-btn::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--lux-gold);
    border-bottom: 2px solid var(--lux-gold);
    transform: rotate(45deg) translateY(-3px);
  }
  html.lux-deck .lux-more-btn[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
  html.lux-deck .lux-more-btn:focus-visible { outline: 2px solid var(--lux-gold); outline-offset: -3px; }
  html.lux-deck #allRoomsContainer .roomSection:not(.is-open) .lux-info,
  html.lux-deck #allRoomsContainer .roomSection:not(.is-open) .lux-prov,
  html.lux-deck #allRoomsContainer .roomSection:not(.is-open) .rates .rateItem--long,
  html.lux-deck #allRoomsContainer .roomSection:not(.is-open) .lux-room-note { display: none; }
  html.lux-deck #allRoomsContainer .lux-room-text { padding: 1rem 1.25rem 0.8rem; }
  html.lux-deck #allRoomsContainer .lux-spec { padding: 0.6rem 1.25rem 0.65rem; }

  html.lux-deck .lux-link-card-body { padding: 0 1.25rem 1.5rem; }
}

/* Walk-through and the questions: one screen, scrolling inside itself. */
html.lux-deck .luxSeg-more { background: var(--lux-ivory); }
html.lux-deck #allRoomsContainer .luxSeg-more .room-walkthrough-wrap { margin-top: 0; padding-top: 28px; border-top: none; }

/* Last screen: booking search in the middle, footer flush at the foot.
   The category buttons are not pinned here (their container has ended). */
html.lux-deck .luxSeg-foot {
  /* Not clipped either: the booking search opens upward here. */
  height: auto;
  min-height: var(--lux-screen);
  overflow: visible;
  scroll-margin-top: var(--lux-head, 185px);
  display: flex;
  flex-direction: column;
  background: var(--lux-ivory);
}
html.lux-deck .luxSeg-foot .luxFootMid { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
html.lux-deck .luxSeg-foot > .ui-footer { flex: 0 0 auto; width: 100%; }
html.lux-deck .luxSeg-foot .bottom-booking-section { margin-top: 0; }

/* Dots and the "next screen" cue (built by luxJump.js), in one rail
   at the right edge. */
.luxRail { position: fixed; right: 10px; top: 50%; transform: translateY(-50%); z-index: 9000; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.luxDots { display: grid; gap: 9px; }
.luxDots button { display: block; width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(184, 136, 46, 0.7); background: var(--lux-cream, #FFFEF9); cursor: pointer; padding: 0; margin: 0; -webkit-appearance: none; appearance: none; }
.luxDots button.on { background: #B8882E; border-color: #B8882E; }
.luxDots button:focus-visible { outline: 2px solid #1A3628; outline-offset: 2px; }
.luxCue { position: relative; display: block; width: 20px; height: 32px; border: 2px solid #B8882E; border-radius: 12px; background: rgba(255, 254, 249, 0.9); cursor: pointer; padding: 0; margin: 0; -webkit-appearance: none; appearance: none; }
.luxCue::after { content: ''; position: absolute; left: 50%; top: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #B8882E; animation: lux-cue-drop 1.6s ease-in-out infinite; }
.luxCue:hover { border-color: #C0392B; }
@keyframes lux-cue-drop { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(13px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .luxCue::after { animation: none; top: 12px; } }
@media (max-width: 899px) {
  .luxRail { right: 3px; gap: 10px; }
  .luxDots { gap: 7px; }
  .luxDots button { width: 7px; height: 7px; }
  .luxCue { width: 16px; height: 26px; }
}

/* The room list could not be read (no database answer and no copy): a
   plain line under the booking search, and no empty category buttons. */
.lux-rooms-unavailable { max-width: 40em; margin: 1.5em auto 0; padding: 0 16px; text-align: center; font-size: 1.05em; line-height: 1.5; }
.lux-no-rooms .lux-cat-tabs, .lux-no-rooms .lux-cat-panel, .lux-no-rooms .lux-cat-end { display: none; }
