.room-stage {
  height: min(67vw, 760px);
}

.room-stage > img {
  position: absolute;
  left: var(--room-image-x, 0%);
  top: var(--room-image-y, 0%);
  width: var(--room-image-size, 100%);
  height: var(--room-image-size, 100%);
  object-fit: cover;
  transition: left .45s ease, top .45s ease, width .45s ease, height .45s ease;
}

.room-category-hotspot {
  position: absolute;
  z-index: 3;
  left: var(--hotspot-x);
  top: var(--hotspot-y);
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 253, 247, .92);
  border-radius: 50%;
  background: rgba(32, 35, 31, .12);
  box-shadow: 0 1px 8px rgba(20, 20, 16, .2);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 0;
  backdrop-filter: blur(2px);
}

.room-category-hotspot span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fffdf7;
  box-shadow: 0 0 0 6px rgba(255, 253, 247, .2);
  animation: room-hotspot-pulse 3.2s ease-in-out infinite;
}

.room-category-hotspot:hover,
.room-category-hotspot:focus-visible,
.room-category-hotspot[aria-expanded="true"] {
  background: rgba(250, 248, 243, .28);
  border-color: #fff;
  outline: none;
}

.room-category-hotspot:focus-visible {
  box-shadow: 0 0 0 3px rgba(32, 35, 31, .55), 0 0 0 5px #fffdf7;
}

@keyframes room-hotspot-pulse {
  50% { box-shadow: 0 0 0 11px rgba(255, 253, 247, 0); }
}

.room-hotspot-label {
  position: absolute;
  z-index: 7;
  max-width: min(320px, calc(100% - 32px));
  padding: 7px 0 6px;
  border-bottom: 1px solid rgba(255, 253, 247, .82);
  color: #fffdf7;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(15, 15, 12, .9), 0 3px 14px rgba(15, 15, 12, .72);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .22s ease, transform .22s ease;
}

.room-hotspot-label[hidden] { display: none; }
.room-hotspot-label.open { opacity: 1; transform: none; }
.room-hotspot-label:focus-visible { outline: 2px solid #fffdf7; outline-offset: 4px; }

.room-category-panel {
  position: absolute;
  z-index: 7;
  width: min(290px, calc(100% - 32px));
  padding: 20px;
  border: 1px solid rgba(32, 35, 31, .16);
  background: rgba(250, 248, 243, .97);
  color: var(--ink);
  box-shadow: 0 18px 45px rgba(24, 22, 18, .2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}

.room-category-panel[hidden] { display: none; }
.room-category-panel.open { opacity: 1; transform: none; }
.room-category-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.room-category-panel-head .eyebrow { margin: 2px 0 0; }
.room-category-panel-close { width: 32px; height: 32px; border: 0; background: transparent; font: 27px/1 var(--serif); padding: 0; }
.room-category-panel h3 { margin: 8px 0 10px; font: 28px/1.02 var(--serif); font-weight: 400; }
.room-category-panel > p:not(.eyebrow) { margin: 0; color: #62645e; font-size: 12px; }
.room-category-count { padding: 12px 0; border-bottom: 1px solid var(--line); }
.room-category-count strong { color: var(--ink); font-size: 15px; }
.room-category-related { display: flex; flex-wrap: wrap; gap: 7px 12px; padding: 13px 0 16px; }
.room-category-related > span { width: 100%; color: #777a72; font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.room-category-related a { border-bottom: 1px solid rgba(32, 35, 31, .45); font-size: 11px; }
.room-category-explore { width: 100%; min-height: 43px; }

.room-hotspot-backdrop { display: none; }
.room-category-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 1px; background: var(--line); }
.room-category-links[hidden] { display: none; }
.room-category-links a { min-width: 0; padding: 14px 16px; background: var(--paper); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.room-category-links span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 16px var(--serif); }
.room-category-links small { flex: 0 0 auto; color: #62655e; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.room-category-links a:hover span,
.room-category-links a:focus-visible span { color: var(--clay); }
.room-category-links a:focus-visible { outline: 2px solid var(--clay); outline-offset: -2px; }

@media (max-width: 720px) {
  .room-hotspot-label { display: none !important; }
  .room-category-hotspot,
  .room-category-panel,
  .room-hotspot-backdrop { display: none !important; }
  .room-stage { height: 610px; }
  .room-stage > img {
    left: var(--room-mobile-image-x, 0%);
    top: var(--room-mobile-image-y, 0%);
    width: var(--room-mobile-image-size, 100%);
    height: var(--room-mobile-image-size, 100%);
    object-position: var(--room-mobile-position, 64% center);
  }
  .room-category-links { grid-template-columns: 1fr 1fr; }
  .room-category-links a { min-height: 58px; padding: 11px 12px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
  .room-category-links span { width: 100%; font-size: 15px; }
  .room-thumbs { display: flex; gap: 1px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .room-thumbs button,
  .room-thumbs button:not(.active) { display: grid; min-width: 72%; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .room-category-hotspot span { animation: none; }
  .room-stage > img,
  .room-category-panel,
  .room-hotspot-label { transition: none; }
}
