/* Rooms reuse the .space-card carousel; these rules add the room details dialog and the room chosen in the enquiry form. */
.spaces-gallery[hidden],
.space-arrow[hidden],
#open-gallery[hidden],
.room-choice[hidden],
.room-dialog [hidden] { display: none !important; }

.room-card .space-card__media { position: relative; }
.room-card__count {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 10px;
  background: rgba(247, 243, 236, .92);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.room-card__unit { text-transform: none; }
.room-card__price { margin-top: 3px; color: var(--taupe); font: 400 17px/1.3 Georgia, serif; letter-spacing: -.01em; }
.room-card.is-loading { cursor: default; }
.room-card.is-loading .space-card__media { animation: room-loading 1.2s ease-in-out infinite alternate; }
.room-card.is-loading .space-card__caption strong,
.room-card.is-loading .space-card__caption small { display: block; width: 46%; height: 26px; background: #ebe4d9; }
.room-card.is-loading .space-card__caption small { width: 28%; height: 10px; }
@keyframes room-loading { to { opacity: .55; } }

.room-dialog {
  width: min(1240px, calc(100vw - 48px));
  max-width: none;
  height: min(820px, calc(100dvh - 48px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--ivory);
  box-shadow: 0 35px 100px rgba(26, 31, 26, .3);
  color: var(--ink);
}
.room-dialog[open] {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr);
  animation: dialog-enter .42s var(--ease-out) both;
}
.room-dialog::backdrop { background: rgba(35, 38, 33, .72); backdrop-filter: blur(5px); }
.room-dialog__close {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #c5b9a9;
  border-radius: 50%;
  background: #eee8df;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  transition: background .25s, transform .25s;
}
.room-dialog__close:hover { background: #e2d8ca; transform: rotate(90deg); }

.room-dialog__media { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #22241f; }
.room-dialog__stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #e3dccc; }
.room-dialog__photo { width: 100%; height: 100%; object-fit: cover; }
.room-dialog__arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 300 24px/1 var(--sans);
  transition: background .2s, color .2s;
}
.room-dialog__arrow:hover { background: var(--ink); color: var(--ivory); }
.room-dialog__arrow--prev { left: 0; }
.room-dialog__arrow--next { right: 0; }
.room-dialog__count {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 7px 10px;
  background: rgba(247, 243, 236, .92);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}
.room-dialog__thumbs { display: flex; flex: none; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: none; }
.room-dialog__thumbs::-webkit-scrollbar { display: none; }
.room-dialog__thumbs button { flex: 0 0 92px; height: 64px; padding: 0; border: 0; background: none; opacity: .5; transition: opacity .2s; }
.room-dialog__thumbs button:hover,
.room-dialog__thumbs button[aria-current="true"] { opacity: 1; }
.room-dialog__thumbs button[aria-current="true"] { outline: 2px solid var(--ivory); outline-offset: -2px; }
.room-dialog__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.room-dialog__info { min-width: 0; overflow-y: auto; padding: clamp(36px, 4vw, 58px) clamp(28px, 3.4vw, 52px) 40px; }
.room-dialog__eyebrow { display: block; color: var(--sage); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.room-dialog__info h2 { margin: 18px 50px 26px 0; font: 400 clamp(36px, 3.2vw, 50px)/1.04 Georgia, serif; letter-spacing: -.045em; }
.room-dialog__facts { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0 0 28px; padding: 0 0 26px; border-bottom: 1px solid var(--line); list-style: none; }
.room-dialog__facts li { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.room-dialog__facts svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--sage); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.room-dialog__description p { margin: 0 0 14px; color: var(--taupe); font: 400 17px/1.58 Georgia, serif; letter-spacing: -.012em; white-space: pre-line; }
.room-dialog__prices,
.room-dialog__facilities { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.room-dialog__prices ul { margin: 0; padding: 0; list-style: none; }
.room-dialog__prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.room-dialog__prices li:last-child { border-bottom: 0; }
.room-dialog__prices strong { font: 400 19px/1.2 Georgia, serif; letter-spacing: -.01em; white-space: nowrap; }
.room-dialog__prices p { margin: 12px 0 0; color: #746b60; font-size: 12px; line-height: 1.5; }
.room-dialog__prices h3,
.room-dialog__facilities h3 { margin: 0 0 18px; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.room-dialog__facilities ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; padding: 0; list-style: none; }
.room-dialog__facilities li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.35; }
.room-dialog__facilities li::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 2px;
  width: 10px;
  height: 5px;
  border-bottom: 1.5px solid var(--sage);
  border-left: 1.5px solid var(--sage);
  transform: rotate(-45deg);
}
.room-dialog__request {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 60px;
  margin-top: 36px;
  padding: 18px 20px;
  border: 0;
  background: var(--ink);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-align: left;
  text-transform: uppercase;
  transition: background .2s;
}
.room-dialog__request:hover { background: #55594c; }
.room-dialog__request span:last-child { font-size: 19px; font-weight: 400; }
.room-dialog__note { margin: 12px 0 0; color: #746b60; font-size: 12px; line-height: 1.5; }

.room-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 19px;
  padding: 12px 12px 12px 17px;
  border: 1px solid var(--wood);
  border-radius: 10px;
  background: #faf7f2;
}
.room-choice__text { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.room-choice__label { color: #746b60; font: 700 10px/1.2 var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.room-choice strong { overflow: hidden; font: 400 18px/1.2 Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.room-choice__price { color: var(--taupe); font-size: 13px; line-height: 1.4; }
.room-choice__price:empty { display: none; }
.room-choice__remove { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border: 1px solid #c8bcad; border-radius: 50%; background: none; color: var(--ink); font-size: 20px; line-height: 1; }
.room-choice__remove:hover { background: #e2d8ca; }

@media (max-width: 900px) {
  .room-dialog { width: 100vw; height: 100dvh; margin: 0; }
  .room-dialog[open] { display: flex; flex-direction: column; overflow-y: auto; }
  .room-dialog__media { flex: none; }
  .room-dialog__stage { flex: none; aspect-ratio: 4 / 3; }
  .room-dialog__info { overflow: visible; padding: 30px 24px 40px; }
  .room-dialog__info h2 { margin-right: 0; }
  .room-dialog__close { top: 14px; right: 14px; }
}
@media (max-width: 480px) {
  .room-dialog__facilities ul { grid-template-columns: 1fr; }
  .room-dialog__arrow { width: 42px; height: 42px; }
  .room-dialog__thumbs button { flex-basis: 76px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .room-dialog[open],
  .room-card.is-loading .space-card__media { animation: none; }
}
