* { box-sizing: border-box; }

html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: #111; color: #fff; font-family: Arial, Helvetica, sans-serif; }
#pano { position: fixed !important; inset: 0; z-index: 0; width: 100vw !important; height: 100vh !important; height: 100dvh !important; }

.room-header {
  position: fixed; z-index: 20; inset: 0 0 auto; display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px);
  min-height: 66px; padding: 0 clamp(16px, 3.1vw, 42px); border-bottom: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(180deg, rgba(12,12,12,.94), rgba(12,12,12,.84)); color: #fff;
  pointer-events: none; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.room-brand, .room-back, .room-fullscreen { pointer-events: auto; color: inherit; text-decoration: none; }
.room-brand { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; }
.room-brand-logo { display: block; width: 56px; height: 40px; object-fit: contain; filter: brightness(0) invert(1); }
.room-brand:focus-visible, .room-back:focus-visible, .room-fullscreen:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.room-divider { width: 1px; height: 30px; flex: 0 0 1px; background: rgba(255,255,255,.22); }
.room-kicker { color: rgba(255,255,255,.48); font-size: 7px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.room-name { overflow: hidden; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.room-identity {
  position: absolute; top: 50%; left: 50%; z-index: 25; display: flex; width: max-content; min-width: 0;
  flex-direction: column; align-items: center; gap: 3px;
  transform: translate(-50%, -50%); text-align: center;
}
.room-collection-picker { position: relative; z-index: 25; width: max-content; pointer-events: auto; }
.room-collection-trigger {
  display: inline-flex; max-width: 100%; align-items: center; justify-content: center; gap: 8px; padding: 0; border: 0; background: transparent;
  color: #fff; cursor: pointer; text-align: left; pointer-events: auto;
}
.room-collection-trigger .room-name { display: block; max-width: clamp(110px, 24vw, 230px); }
.room-collection-trigger svg {
  display: block; width: 12px; height: 12px; flex: 0 0 12px; fill: none; stroke: rgba(255,255,255,.72);
  stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; transition: transform .2s ease, stroke .2s ease;
}
.room-collection-picker[data-open="true"] .room-collection-trigger svg { transform: rotate(180deg); stroke: #fff; }
.room-collection-trigger:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.room-collection-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; z-index: 30; width: 220px; padding: 7px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 7px; background: rgba(15,15,15,.96); color: #fff;
  box-shadow: 0 16px 42px rgba(0,0,0,.34); opacity: 0; pointer-events: none; transform: translate(-50%, -5px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s; visibility: hidden;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.room-collection-picker[data-open="true"] .room-collection-menu {
  opacity: 1; pointer-events: auto; transform: translate(-50%, 0); visibility: visible;
}
.room-collection-menu-title {
  display: block; padding: 8px 9px 7px; color: rgba(255,255,255,.46); font-size: 8px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.room-collection-item {
  display: flex; min-height: 36px; align-items: center; padding: 0 9px; border-radius: 4px; color: rgba(255,255,255,.76);
  font-size: 10px; font-weight: 600; letter-spacing: .04em; text-decoration: none; transition: color .16s, background .16s;
}
.room-collection-item:hover, .room-collection-item:focus-visible { background: rgba(255,255,255,.09); color: #fff; outline: none; }
.room-collection-item.is-current { color: #fff; }
.room-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; margin-left: auto; }
.room-fullscreen {
  width: 34px; height: 34px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: transparent; color: rgba(255,255,255,.86);
  cursor: pointer; transition: color .2s, background .2s, border-color .2s;
}
.room-fullscreen:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); color: #fff; }
.room-fullscreen svg { display: block; width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }

@media (max-width: 560px) {
  .room-header { min-height: 58px; gap: 12px; padding-inline: 13px; }
  .room-brand-logo { width: 48px; height: 34px; }
  .room-divider { height: 26px; }
  .room-kicker { display: block; font-size: 6px; }
  .room-name { font-size: 10px; }
  .room-collection-trigger { gap: 6px; }
  .room-collection-trigger .room-name { max-width: clamp(86px, 27vw, 150px); }
  .room-collection-menu { top: calc(100% + 10px); width: min(220px, calc(100vw - 24px)); }
  .room-actions { gap: 6px; }
  .room-fullscreen { width: 32px; height: 32px; min-height: 32px; }
  .room-fullscreen svg { width: 13px; height: 13px; flex-basis: 13px; }
}

@media (max-width: 360px) {
  .room-header { gap: 9px; padding-inline: 9px; }
  .room-brand-logo { width: 42px; height: 30px; }
}

/* Embedded in the site pop-up (?embed=1): the pop-up bar carries the brand and close button. */
.room-embedded .room-brand, .room-embedded .room-divider { display: none; }
