/* Rooms on a website (src/examples/ex-website-rooms.js), loaded after the Business Website
   engine's own stylesheet by the examples that have rooms to show. Every colour, radius and
   display face is the business's own (--x-* on main#main). Phone first: a room is a picture
   with its facts under it; from a tablet up the facts stand beside the picture as a rail.
   Widths are in em, as the kit's are. */

/* ---- who is coming, and what the room must have ---------------------------------------- */
.xw-roomtools { display: grid; align-items: start; gap: 18px clamp(28px, 5vw, 64px); }
@media (min-width: 53.75em) { .xw-roomtools { grid-template-columns: auto minmax(0, 1fr); } }
.xw-party { display: grid; gap: 8px; min-width: 0; padding: 0; border: 0; }
.xw-party-row { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.xw-party-one { display: flex; align-items: center; gap: 12px; }
.xw-party-label { font-size: .9375rem; }
.xw-result-more { margin-inline-start: auto; }
.xw-result .x-btn + .xw-result-more { margin-inline-start: 0; }

/* ---- the list: one room to a row -------------------------------------------------------- */
.xw-rooms { display: grid; gap: clamp(20px, 3vw, 32px); }
.xw-rooms > * { min-width: 0; }
.xw-room .x-card-body { gap: 10px; padding: 18px clamp(16px, 2.4vw, 28px) 22px; }
.xw-room .x-card-title { font: var(--x-display-weight, 600) clamp(1.375rem, 1.2rem + .8vw, 1.75rem)/var(--x-lh-head) var(--x-display, var(--x-text)); }
.xw-room .x-card-title:lang(th) { font-family: "x-figures", var(--x-display, var(--x-text)); font-weight: var(--x-th-display-weight, 600); }
/* The line saying where the room is reads before its name, as a small label. */
.xw-room .x-card-meta { order: -1; font-size: .8125rem; font-weight: 600; line-height: var(--x-lh-label); letter-spacing: var(--x-caps-track); text-transform: var(--x-caps); }
.xw-room .x-card-actions { margin-top: 2px; }
.xw-room-flag { display: flex; }
.xw-room-sum { max-width: 36rem; }
.xw-rail-facts { --x-fact-label: 6.75rem; font-size: .9375rem; }
.xw-rail-facts .x-fact { padding-block: 8px; }
.xw-marks { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--x-muted); font-size: .9375rem; }
.xw-marks li, .xw-amen li { display: flex; align-items: flex-start; gap: 8px; }
.xw-marks .x-i, .xw-amen .x-i { flex: none; margin-top: .3em; color: var(--x-ok); }
@media (min-width: 45em) {
  .xw-room { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  /* The picture fills its side of the row when the facts run longer than its own shape, and is never wider than that side. */
  .xw-room .x-card-media { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: calc(var(--x-radius, 8px) - 1px) 0 0 calc(var(--x-radius, 8px) - 1px); }
  .xw-room .x-card-media .x-img { height: 100%; min-height: 100%; }
}
.xw-rooms-small { display: grid; gap: 16px; padding-top: clamp(20px, 3vw, 32px); border-top: 1px solid var(--x-hair); }
.xw-rooms-n { color: var(--x-muted); font-weight: 400; }

/* ---- one room on its own page ------------------------------------------------------------ */
.xw-roompage { display: grid; align-items: start; gap: clamp(18px, 3vw, 28px) clamp(24px, 4vw, 56px); }
.xw-roompage > * { min-width: 0; }
.xw-roompage-head { display: grid; gap: 10px; max-width: 46rem; }
.xw-roompage-media { overflow: hidden; border-radius: calc(var(--x-radius, 8px) * 2); }
.xw-roompage-main { display: grid; gap: clamp(24px, 4vw, 40px); }
.xw-rail { display: grid; gap: 12px; padding: 18px 20px 20px; border: 1px solid var(--x-hair); border-radius: var(--x-radius, 8px); background: var(--x-surface); }
/* The rail stays in view only where it has a column to itself and the screen is tall enough to show all of it. */
.xw-rail.x-stick { position: static; }
.xw-rail h2 { font-size: 1.1875rem; }
.xw-rail-actions { display: grid; gap: 8px; margin-top: 4px; }
.xw-rail-actions .x-btn { justify-content: center; text-align: center; }
@media (min-width: 56.25em) {
  .xw-roompage { grid-template-columns: minmax(0, 7fr) minmax(17rem, 4fr); }
  .xw-roompage-head, .xw-roompage-media, .xw-roompage-main { grid-column: 1; }
  .xw-rail { grid-column: 2; grid-row: 1 / span 3; }
}
@media (min-width: 56.25em) and (min-height: 43.75em) { .xw-rail.x-stick { position: sticky; top: calc(var(--ex-top, 0px) + 16px); } }
.xw-amen { display: grid; gap: 8px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }

/* ---- the rooms side by side ----------------------------------------------------------------- */
/* The columns are the rooms themselves: their names are set as names, in the ink of the page. */
.xw-compare thead th { color: var(--x-ink); }

@media (hover: hover) and (pointer: fine) {
  .xw-room.x-card--link:hover { transform: none; }
  .xw-room.x-card--link:hover .x-card-title a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
}
