.scene-hotspot-layer {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.scene-hotspot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #443626;
  font: inherit;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.scene-hotspot__dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .96);
  border-radius: 50%;
  background: #f8f2e8;
  box-shadow: 0 0 0 4px rgba(43, 35, 26, .22), 0 2px 10px rgba(0, 0, 0, .28);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.scene-hotspot__dot::before {
  content: '+';
  color: #58432c;
  font: 500 16px/1 system-ui, sans-serif;
  transform: translateY(-.5px);
}

.scene-hotspot[data-kind='room'] .scene-hotspot__dot {
  background: #715637;
  border-color: #f9f0df;
}

.scene-hotspot[data-kind='room'] .scene-hotspot__dot::before {
  content: '→';
  color: #fff9ee;
  font-size: 15px;
}

.scene-hotspot__label {
  position: absolute;
  top: 50%;
  left: calc(100% - 4px);
  width: max-content;
  max-width: min(220px, calc(100vw - 88px));
  box-sizing: border-box;
  padding: 8px 11px;
  border: 1px solid rgba(245, 231, 210, .28);
  border-radius: 7px;
  background: rgba(29, 34, 29, .94);
  color: #fffaf2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
  font: 500 12px/1.4 system-ui, sans-serif;
  letter-spacing: .01em;
  text-align: left;
  text-shadow: none;
  overflow-wrap: break-word;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 140ms ease, visibility 140ms ease;
}

.scene-hotspot[data-label-side='left'] .scene-hotspot__label {
  right: calc(100% - 4px);
  left: auto;
}

.scene-hotspot:hover .scene-hotspot__dot,
.scene-hotspot:focus-visible .scene-hotspot__dot {
  transform: scale(1.1);
  box-shadow: 0 0 0 5px rgba(43, 35, 26, .32), 0 2px 12px rgba(0, 0, 0, .36);
}

.scene-hotspot:hover .scene-hotspot__label,
.scene-hotspot:focus-visible .scene-hotspot__label {
  opacity: 1;
  visibility: visible;
}

.scene-hotspot:focus-visible {
  outline: 2px solid #fff9eb;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(36, 29, 22, .7);
}

.scene-hotspot[hidden],
.scene-hotspot-layer[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .scene-hotspot__dot,
  .scene-hotspot__label {
    transition: none;
  }
}

@media (forced-colors: active) {
  .scene-hotspot__dot,
  .scene-hotspot[data-kind='room'] .scene-hotspot__dot {
    border: 2px solid ButtonText;
    background: ButtonFace;
    box-shadow: none;
  }
  .scene-hotspot__dot::before,
  .scene-hotspot[data-kind='room'] .scene-hotspot__dot::before {
    color: ButtonText;
  }
  .scene-hotspot__label {
    border-color: ButtonText;
    background: ButtonFace;
    color: ButtonText;
  }
  .scene-hotspot:focus-visible {
    outline-color: Highlight;
    box-shadow: none;
  }
}
