.home-room-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-block: clamp(24px,4vw,54px);
  padding: clamp(14px,2vw,25px);
  border-block: 1px solid var(--es-border);
}
.home-room-link h2 {
  margin: 0;
  font: clamp(22px,3.2vw,40px)/1.1 var(--serif);
  letter-spacing: -.04em;
}
.home-room-link .pill-link { flex: none; }

.room-explorer {
  width: min(1720px,calc(100% - 2 * var(--hc-gutter)));
  margin: 0 auto clamp(28px,6vw,76px);
}
.room-explorer-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 14px 28px;
  padding-block: clamp(18px,3vw,36px) 18px;
}
.room-explorer h1 {
  margin: 0;
  font: clamp(32px,4.4vw,63px)/1.02 var(--serif);
  letter-spacing: -.045em;
}
.room-explorer-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 12px;
  color: var(--es-link);
}
.room-explorer-crumb a:hover { text-decoration: underline; }
.room-explorer-choices, .room-explorer-areas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.room-explorer-choices a, .room-explorer-areas a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 7px;
  min-height: 42px;
  padding: 5px clamp(9px,1.15vw,17px);
  border: 1px solid var(--es-border);
  border-radius: 10px;
  background: var(--es-surface);
  color: var(--es-link);
  text-align: center;
  font-size: 13px;
  font-weight: 650;
}
.room-explorer-choices a[aria-current] {
  background: var(--es-primary);
  border-color: var(--es-primary);
  color: var(--es-on-primary);
}
.room-explorer-choices a:not([aria-current]):hover, .room-explorer-areas a:hover {
  background: var(--es-tint);
}
.room-explorer-choices small { color: var(--es-muted); font-size: 10px; font-weight: 500; }
.room-explorer-view {
  --room-view-height: clamp(380px,calc(100svh - var(--hc-header-height,66px) - var(--announcement-height,0px) - 146px),1000px);
  position: relative;
  isolation: isolate;
  border: 1px solid var(--es-border);
  border-radius: clamp(12px,2vw,24px);
  overflow: hidden;
  background: var(--es-tint);
}
.room-explorer-viewport {
  block-size: var(--room-view-height);
  overflow: auto hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
.room-explorer-viewport:focus-visible { outline-offset: -3px; }
.room-explorer-canvas {
  position: relative;
  width: min(100%,calc(var(--room-view-height) * var(--room-aspect)));
  height: 100%;
  margin-inline: auto;
}
.room-explorer-canvas .room-image { inset: 0; }
.room-explorer-canvas :is(.room-initial-photo,.room-artwork) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.room-explorer-tools button, .room-explorer-pan button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  min-height: 42px;
  padding-inline: 10px;
  border: 1px solid var(--es-border);
  border-radius: 999px;
  background: var(--es-surface);
  color: var(--es-text);
  font-size: 12px;
  font-weight: 650;
}
.room-explorer-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.room-explorer-tools button { box-shadow: 0 3px 12px #29211725; }
.room-explorer-view:fullscreen [data-room-open] { display: none; }
.room-explorer-view[data-room-art="sketch"] {
  background: radial-gradient(ellipse at 50% 38%,var(--es-surface),var(--es-tint));
}
.room-explorer-view[data-room-art="sketch"] :is(.room-initial-photo,.room-photograph) { filter: none; }
.room-explorer-view .room-object:focus-visible {
  stroke: var(--es-focus);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}
.room-explorer-view svg:not(.room-artwork,.room-initial-photo) { width: 17px; height: 17px; }
.room-explorer-view .room-hover-card svg { flex: none; }
.room-explorer-pan { display: none; }
.room-explorer-pan button:hover:not(:disabled), .room-explorer-tools button:hover { border-color: var(--es-focus); }
.room-explorer-pan button[aria-pressed="true"] { background: var(--es-soft-accent); color: var(--es-on-soft-accent); }
.room-explorer-pan button:disabled { opacity: .42; cursor: default; }
.room-explorer-view:fullscreen {
  --room-view-height: 100dvh;
  border: 0;
  border-radius: 0;
}
.room-explorer-actions {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.room-explorer-actions .pill-link { flex: none; }
.room-explorer-actions > .pill-link { margin-inline-start: auto; }
.room-explorer-view[data-room-art="sketch"] .room-touch-labels button {
  position: absolute;
  translate: -50% -50%;
  padding: 5px 9px;
  min-height: 28px;
  border: 1px solid var(--es-border);
  border-radius: 999px;
  background: var(--es-surface);
  color: var(--es-text);
  box-shadow: 0 2px 7px #2819091f;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: auto;
}

@media (max-width: 680px) {
  .room-explorer { width: 100%; }
  .room-explorer-header, .room-explorer-actions { padding-inline: var(--hc-gutter); }
  .room-explorer-header { padding-bottom: 14px; }
  .room-explorer-choices { display: grid; width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .room-explorer-view {
    --room-view-height: clamp(320px,54svh,560px);
    border-radius: 0;
    border-inline: 0;
  }
  .room-explorer-view:not(.is-fitted) .room-explorer-canvas {
    width: max(100%,calc(var(--room-view-height) * var(--room-aspect)));
  }
  .room-explorer-view.is-fitted:not(:fullscreen) {
    --room-view-height: calc(100vw / var(--room-aspect));
  }
  .room-explorer-pan {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 7px;
    background: var(--es-tint);
  }
  .room-explorer-view:fullscreen { --room-view-height: calc(100dvh - 56px); }
  .room-explorer-actions { flex-wrap: wrap; }
  .room-explorer-view .room-touch-labels { display: block; }
  .room-explorer-view .room-hover-card:not([hidden]) { display: none; }
}
@media (forced-colors: active) {
  .room-explorer-choices a[aria-current] { outline: 2px solid SelectedItem; }
}
