/* RMH hacienda suites (session 09). Tokens from rmh-brand (brand/web-design-system.md §3); px only (html is 10px). */
#rmh-suites {
  --rmh-suites-radius: 12px;
  --rmh-suites-line: var(--rmh-sand, #DED5CC);
  --rmh-suites-soft: var(--rmh-ink-soft, #625A55);
  --rmh-suites-accent: var(--rmh-taupe-deep, #80655A);
  --rmh-suites-ink: var(--rmh-ink, #231F20);
  --rmh-suites-backdrop: rgba(35, 31, 32, .88);
}
#rmh-suites .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#rmh-suites .rmh-suites__lead { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin: 0 0 var(--rmh-space-1, 24px); }
#rmh-suites .rmh-suites__lead p { margin: 0; max-width: 60ch; color: var(--rmh-suites-soft); font-size: 17px; line-height: 1.65; }

/* Buttons: secondary pill (floor plan), quiet text button (Photos). 44 px tap areas. */
#rmh-suites .rmh-suites__plan {
  min-height: 48px; padding: 0 24px; border: 1px solid var(--rmh-suites-ink); border-radius: var(--rmh-pill, 999px);
  background: #fff; color: var(--rmh-suites-ink); font: 600 16px/1 var(--rmh-sans, 'DM Sans', Arial, sans-serif); cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
#rmh-suites .rmh-suites__plan:hover { background: var(--rmh-cream, #F7F3EE); }
#rmh-suites .rmh-suites__plan:active { transform: scale(.98); }
@media (max-width: 767px) { #rmh-suites .rmh-suites__plan { width: 100%; } }

#rmh-suites button:focus-visible { outline: 2px solid var(--rmh-suites-ink); outline-offset: 2px; box-shadow: 0 0 0 6px #fff; }

/* Every suite once, grouped by floor or guest house. From 1024 px the rows flow into two balanced columns (one column per
   floor left Jaguar at 11 rows against 2: design walk 10-16); a floor's heading never ends a column. */
#rmh-suites .rmh-suites__all { display: grid; gap: var(--rmh-space-1, 24px); }
@media (min-width: 1024px) {
  #rmh-suites .rmh-suites__all { display: block; columns: 2; column-gap: 40px; }
  #rmh-suites .rmh-suites__group { margin-bottom: var(--rmh-space-1, 24px); }
  #rmh-suites .rmh-suites__group:last-child { margin-bottom: 0; }
  #rmh-suites .rmh-suites__rows { display: block; }
  #rmh-suites .rmh-suites__row { break-inside: avoid; }
  #rmh-suites h3.rmh-suites__gh { break-after: avoid; }
}
#rmh-suites h3.rmh-suites__gh { margin: 0 0 4px; font: 500 13px/1.4 var(--rmh-sans, 'DM Sans', Arial, sans-serif); letter-spacing: .1em; text-transform: uppercase; color: var(--rmh-suites-soft); }
#rmh-suites .rmh-suites__rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rmh-suites-ink); }
#rmh-suites .rmh-suites__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name photos" "meta photos";
  align-items: center; column-gap: 16px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rmh-suites-line);
}
/* a row with a thumbnail is taller: name and meta stay together, centred on it */
#rmh-suites .rmh-suites__row:has(.rmh-suites__thumb) .rmh-suites__rname { align-self: end; }
#rmh-suites .rmh-suites__row:has(.rmh-suites__thumb) .rmh-suites__rmeta { align-self: start; }
#rmh-suites .rmh-suites__rname { grid-area: name; font: 400 19px/1.3 var(--rmh-serif, Marcellus, Georgia, serif); color: var(--rmh-suites-ink); }
#rmh-suites .rmh-suites__rmeta { grid-area: meta; font-size: 15px; line-height: 1.45; color: var(--rmh-suites-soft); }
/* A photographed suite: its first photo opens the gallery; the small count says there are more */
#rmh-suites .rmh-suites__thumb {
  grid-area: photos; position: relative; display: block; width: 112px; aspect-ratio: 4 / 3; padding: 0; border: 0; overflow: hidden;
  border-radius: 8px; background: var(--rmh-cream, #F7F3EE); cursor: pointer;
}
#rmh-suites .rmh-suites__thumb img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .4s ease; }
#rmh-suites .rmh-suites__thumb:hover img { transform: scale(1.05); }
#rmh-suites .rmh-suites__tcount {
  position: absolute; right: 6px; bottom: 6px; min-width: 24px; padding: 3px 7px; border-radius: var(--rmh-pill, 999px);
  background: rgba(35, 31, 32, .78); color: #fff; font: 600 12px/1.2 var(--rmh-sans, 'DM Sans', Arial, sans-serif); text-align: center;
}
@media (max-width: 767px) { #rmh-suites .rmh-suites__thumb { width: 88px; } }

/* Gallery dialog: full screen on phones, a framed sheet from 768 px. */
#rmh-suites .rmh-suites__dlg {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 16px; border: 0;
  background: var(--rmh-suites-ink); color: #fff; overflow: hidden;
}
#rmh-suites .rmh-suites__dlg[open] { display: flex; flex-direction: column; gap: 12px; }
#rmh-suites .rmh-suites__dlg::backdrop { background: var(--rmh-suites-backdrop); }
@media (min-width: 768px) {
  #rmh-suites .rmh-suites__dlg { width: min(1100px, calc(100% - 64px)); height: auto; max-height: calc(100% - 64px); margin: auto; padding: 24px; border-radius: var(--rmh-suites-radius); }
}
#rmh-suites .rmh-suites__dhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
#rmh-suites .rmh-suites__dtitle { margin: 0; font: 400 24px/1.2 var(--rmh-serif, Marcellus, Georgia, serif); }
#rmh-suites .rmh-suites__dmeta { margin: 4px 0 0; font-size: 15px; color: var(--rmh-sand, #DED5CC); }
#rmh-suites .rmh-suites__close, #rmh-suites .rmh-suites__step {
  flex: none; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: none;
  color: #fff; font: 400 26px/1 var(--rmh-sans, 'DM Sans', Arial, sans-serif); cursor: pointer; transition: background-color .15s ease;
}
#rmh-suites .rmh-suites__close:hover, #rmh-suites .rmh-suites__step:hover { background: rgba(255, 255, 255, .12); }
#rmh-suites .rmh-suites__dlg button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: none; }
#rmh-suites .rmh-suites__track {
  flex: 1; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
#rmh-suites .rmh-suites__track::-webkit-scrollbar { display: none; }
#rmh-suites .rmh-suites__track:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#rmh-suites .rmh-suites__slide { flex: 0 0 100%; margin: 0; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; }
#rmh-suites .rmh-suites__slide img { display: block; max-width: 100%; max-height: calc(100vh - 200px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
@media (min-width: 768px) { #rmh-suites .rmh-suites__slide img { max-height: min(70vh, 700px); } }
#rmh-suites .rmh-suites__nav { display: flex; justify-content: center; align-items: center; gap: 24px; }
#rmh-suites .rmh-suites__count { min-width: 48px; text-align: center; font-size: 15px; color: var(--rmh-sand, #DED5CC); }

@media (prefers-reduced-motion: reduce) {
  #rmh-suites .rmh-suites__thumb img, #rmh-suites .rmh-suites__plan, #rmh-suites .rmh-suites__close, #rmh-suites .rmh-suites__step { transition: none; }
  #rmh-suites .rmh-suites__thumb:hover img { transform: none; }
}
