[data-panorama-open] { cursor: pointer; }
.cabin-card__tour-badge,
.panorama-card__badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 20px;
  background: rgb(16 43 34 / 86%);
  color: #fff;
  font: 500 13px/1.3 "Manrope", sans-serif;
  pointer-events: none;
}
html.room-panorama-open { overflow: hidden; }
.room-panorama {
  width: min(1280px, calc(100vw - 48px));
  height: min(820px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 20px;
  overflow: hidden;
  background: #16261e;
  color: #fff;
  font-family: "Manrope", sans-serif;
}
.room-panorama::backdrop { background: rgb(7 17 12 / 82%); }
.room-panorama__stage { position: relative; width: 100%; height: 100%; }
.room-panorama__canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; outline-offset: -3px; }
.room-panorama:not([data-state="ready"]) .room-panorama__canvas { visibility: hidden; }
.room-panorama__canvas:focus-visible { outline: 2px solid #d0cba0; }
.room-panorama__canvas.is-dragging { cursor: grabbing; }
.room-panorama__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room-panorama__fallback[hidden] { display: none; }
.room-panorama__header {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 24px 60px;
  background: linear-gradient(rgb(4 15 9 / 76%), transparent);
  pointer-events: none;
}
.room-panorama__title-group { display: flex; align-items: center; gap: 14px; }
.room-panorama__badge { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgb(255 255 255 / 55%); border-radius: 50%; font-size: 15px; }
.room-panorama h2 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.3; }
.room-panorama__title-group p { margin: 4px 0 0; font-size: 14px; color: #e4e8df; }
.room-panorama__close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; color: #fff; background: rgb(7 17 12 / 50%); cursor: pointer; pointer-events: auto; }
.room-panorama__close:hover { background: #1b3b31; }
.room-panorama__close:focus-visible { outline: 3px solid #d0cba0; outline-offset: 4px; }
.room-panorama__status { position: absolute; top: 50%; left: 50%; width: min(80%, 420px); margin: 0; padding: 16px 20px; transform: translate(-50%, -50%); border-radius: 12px; background: rgb(7 17 12 / 78%); text-align: center; font-size: 16px; line-height: 1.5; }
.room-panorama[data-state="ready"] .room-panorama__status { display: none; }
.room-panorama__help { position: absolute; left: 50%; bottom: 24px; max-width: calc(100% - 32px); width: max-content; margin: 0; padding: 12px 20px; transform: translateX(-50%); border: 1px solid rgb(255 255 255 / 22%); border-radius: 30px; background: rgb(7 17 12 / 65%); color: #fff; text-align: center; font-size: 14px; line-height: 1.5; pointer-events: none; }
.room-panorama[data-state="error"] .room-panorama__help { display: none; }
.room-panorama__touch-help { display: none; }
@media (pointer: coarse) {
  .room-panorama__desktop-help { display: none; }
  .room-panorama__touch-help { display: inline; }
}
@media (max-width: 600px) {
  .cabin-card__tour-badge, .panorama-card__badge { right: 6px; bottom: 6px; padding: 4px 7px; font-size: 10px; }
  .room-panorama { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .room-panorama__header { padding: max(16px, env(safe-area-inset-top)) 16px 50px; }
  .room-panorama h2 { font-size: 20px; }
  .room-panorama__badge { width: 44px; height: 44px; font-size: 13px; }
  .room-panorama__help { bottom: max(20px, env(safe-area-inset-bottom)); font-size: 12px; }
}
