/* Inn rooms page. Loaded from the body, not from <head>. */

.room-feature {
  display: grid;
  gap: 22px;
  min-width: 0;
  padding: 42px 0 48px;
  border-top: 1px solid var(--rule);
}

.room-feature:first-child {
  border-top: 0;
  padding-top: 8px;
}

.room-feature__hero {
  margin: 0;
  min-width: 0;
}

.room-feature__hero picture,
.room-feature__hero img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.room-feature__hero img {
  background: var(--paper-2, #e7dcc4);
}

.room-feature__body {
  min-width: 0;
  max-width: 680px;
}

.room-feature__body h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 400;
  line-height: 0.95;
}

.room-feature__body > p {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
}

.room-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.room-feature__actions .button {
  text-align: center;
}

.room-photos {
  margin: 4px 0 0;
  min-width: 0;
  max-width: 100%;
}

.room-photos__label {
  margin: 0 0 10px;
  color: var(--accent);
  font: 500 11px/1 var(--sans);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.room-photos__strip {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 2px 2px 10px;
  list-style: none;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.room-photos__strip li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.room-photos__open {
  display: block;
  line-height: 0;
}

.room-photos__open picture {
  display: block;
  width: auto;
}

.room-photos__open img {
  width: auto;
  height: 148px;
  max-width: none;
  object-fit: cover;
}

.room-photos__open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.room-lightbox {
  width: min(1100px, 96vw);
  max-height: 96vh;
  margin: auto;
  padding: 16px 16px 14px;
  border: 1px solid var(--rule, #b8a880);
  background: var(--paper, #f4efe4);
  color: var(--ink, #1c1915);
  overflow: auto;
}

.room-lightbox::backdrop {
  background: rgba(28, 25, 21, 0.72);
}

/* Fallback if the top layer loses to sticky/fixed chrome (backdrop-filter
   on the header). The class is added only while showModal() is open. */
html.room-lightbox-open,
html.room-lightbox-open body {
  overflow: hidden;
}

html.room-lightbox-open .booking-bar,
html.room-lightbox-open .nav {
  visibility: hidden;
}

.room-lightbox figure {
  margin: 0;
}

.room-lightbox picture {
  display: flex;
  width: auto;
  justify-content: center;
}

.room-lightbox img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.room-lightbox figcaption {
  margin: 10px 0 0;
  color: var(--ink-2, #3a342a);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
}

.room-lightbox__count {
  margin: 8px 0 0;
  color: var(--muted, #6b6458);
  font: 500 11px/1 var(--sans);
  letter-spacing: 1.4px;
  text-align: center;
  text-transform: uppercase;
}

.room-lightbox__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.room-lightbox button {
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--rule, #b8a880);
  background: transparent;
  color: var(--ink, #1c1915);
  font: 600 11px/1 var(--sans);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
}

.room-lightbox button:hover {
  background: var(--ink, #1c1915);
  color: var(--paper, #f4efe4);
}

.room-lightbox button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (min-width: 900px) {
  .room-feature--portrait {
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
    gap: 28px 48px;
    align-items: start;
  }
}

@media (max-width: 700px) {
  .room-feature {
    padding: 32px 0 36px;
  }

  .room-feature__actions {
    display: grid;
  }

  .room-photos__open img {
    height: 112px;
  }

  .room-lightbox {
    padding: 12px;
  }

  .room-lightbox img {
    max-height: 58vh;
  }
}
