/* The house: rules only this page needs, served after styles.css.

   (1) The house rules are the record's own text (the house-rules fact), one rule to a line. The
       static page broke its lines with <br>; the fact keeps them as line breaks, so they show as
       line breaks here and the passage is the static passage, line for line. */
.rules-text { white-space: pre-line; }

/* (2) The platform draws each amenity's icon INSIDE the design's own <span data-item-icon>, where
       the static page had the icon as the row's own first child. As an inline box the span sat
       the icon on a text baseline and made every row 4 to 5px taller; as a flex box it is exactly
       the icon's own size, so each row is the static row again (measured: 50.4px a featured row,
       54.2px a sheet row, the same as the static page). */
.amen-list li > span:has(> .amenity-icon) { display: flex; flex: none; }

/* (3) Homes that wait for the record (hidden today, seen with render.sh --samples). A feature,
       occasion or access feature is a longer name than a room's, so its label column is wider,
       and on a phone the label sits over its line. The film and the floor plans sit where every
       other passage's pictures sit, and a floor plan is shown whole, never cropped. */
.rooms.long div { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.sec > .film { grid-column: 6 / 13; grid-row: 1; }
.plans .place .pic img { object-fit: contain; }
@media (max-width: 1023px) {
  .sec > .film { grid-column: 1 / 13; grid-row: 2; }
}
@media (max-width: 767px) {
  .rooms.long div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
