/* Progressive room-category photo preview. The gallery link is the no-JS fallback. */
.editorial-body a.room-preview-trigger {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}
.editorial-body a.room-preview-trigger:hover,
.editorial-body a.room-preview-trigger[aria-expanded="true"] {
  text-decoration-style: solid;
}
.editorial-body a.room-preview-trigger:focus-visible {
  outline: 2px solid #a7503d;
  outline-offset: 3px;
}
.room-preview-panel {
  position: fixed;
  z-index: 260;
  box-sizing: border-box;
  width: min(290px, calc(100vw - 24px));
  margin: 0;
  padding: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #b8c7bd;
  border-radius: 8px;
  background: #fffdf8;
  color: #17342c;
  box-shadow: 0 12px 28px #102d2b33;
  font: 15px/1.4 'Segoe UI', Arial, sans-serif;
  text-align: left;
}
.room-preview-panel[hidden] { display: none !important; }
.room-preview-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  margin-bottom: 7px;
}
.room-preview-panel__title {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
}
.room-preview-panel__close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: 25px/1 Arial, sans-serif;
  cursor: pointer;
}
.room-preview-panel__close:hover { background: #e9efe9; }
.room-preview-panel__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  margin: 0 0 8px;
  object-fit: contain;
  background: #e9efe9;
}
.room-preview-panel__error {
  margin: 6px 0 10px;
  color: #5d3c31;
  font-size: 14px;
}
.room-preview-panel__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #17342c;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.room-preview-panel :focus-visible {
  outline: 2px solid #a7503d;
  outline-offset: 2px;
}
@media (min-width: 1100px) {
  .room-preview-panel { width: 250px; }
}
@media (min-width: 1360px) {
  .room-preview-panel { width: 190px; }
}
