.tour-body { overflow: hidden; height: 100%; }
.tour-body .header { background: transparent; }
.tour-body .concept-tag { display: none; }
.tour { position: fixed; inset: 0; background: #000; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.tour__gl { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; outline: none; }
.tour__gl:active { cursor: grabbing; }
.tour__gl:focus-visible { box-shadow: inset 0 0 0 2px var(--bronze); }
.tour__fallback { position: absolute; inset: 0; overflow: hidden; }
.tour__fallback img { position: absolute; top: 0; height: 100%; width: auto; max-width: none; left: 50%; transform: translateX(-50%); }
.tour__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(10,9,8,.85) 0%, rgba(10,9,8,0) 34%), linear-gradient(to bottom, rgba(10,9,8,.6), rgba(10,9,8,0) 20%); }

/* 3D-anchored door chips */
.tour__hots { position: absolute; inset: 0; pointer-events: none; }
.hot { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 10px; transform: translate(-50%, -50%); padding: 6px 14px 6px 6px; border-radius: 99px; background: rgba(14,13,12,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(233,225,211,.22); font-size: 13px; white-space: nowrap; transition: background .3s, opacity .3s; will-change: transform; }
.hot i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--stone); display: grid; place-items: center; position: relative; }
.hot i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--stone); }
.hot i::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(233,225,211,.4); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.hot:hover { background: var(--rosso); }
.hot small { font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone-dim); display: block; }
.hot[hidden] { display: none; }

/* Room info */
.tour__info { position: absolute; left: var(--gutter); bottom: 128px; z-index: 3; max-width: min(560px, calc(100% - 2 * var(--gutter) - 70px)); pointer-events: none; }
.tour__info > * { pointer-events: auto; }
.tour__proj { margin-bottom: 18px; }
.tour__sel { -webkit-appearance: none; appearance: none; background: rgba(14,13,12,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='%23b08d5e'/%3E%3C/svg%3E") right 14px center no-repeat; border: 1px solid var(--line-strong); border-radius: 99px; height: 38px; padding: 0 36px 0 16px; font-size: 13px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); max-width: 100%; }
.tour__sel option { background: var(--onyx-2); }
.tour__info .label { color: var(--bronze); margin-bottom: 10px; }
.tour__title { font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: .95; }
.tour__sub { margin: 10px 0 0; color: var(--stone-dim); font-size: 14px; }

/* Tools */
.tour__tools { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.tool { width: 56px; height: 56px; border-radius: 50%; background: rgba(14,13,12,.55); border: 1px solid var(--line-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; transition: background .3s, color .3s; }
.tool svg { width: 18px; height: 18px; }
.tool span { font-family: var(--f-mono); font-size: 7.5px; letter-spacing: .12em; text-transform: uppercase; }
.tool:hover { background: rgba(233,225,211,.15); }
.tool[aria-pressed="true"] { background: var(--stone); color: var(--onyx); }
.tool[hidden] { display: none; }

/* Room strip */
.tour__strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; gap: 8px; overflow-x: auto; padding: 14px var(--gutter) max(18px, env(safe-area-inset-bottom)); scrollbar-width: none; scroll-snap-type: x proximity; touch-action: pan-x; }
.tour__strip::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 128px; scroll-snap-align: start; text-align: left; opacity: .55; transition: opacity .3s; }
.thumb:hover, .thumb[aria-selected="true"] { opacity: 1; }
.thumb img { width: 128px; height: 68px; object-fit: cover; border-radius: 3px; border: 1px solid transparent; transition: border-color .3s; }
.thumb[aria-selected="true"] img { border-color: var(--stone); }
.thumb span { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Hint */
.tour__hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; transition: opacity .8s; font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.tour__hint svg { width: 52px; height: 52px; animation: sway 2.4s var(--ease-in-out) infinite; }
@keyframes sway { 0%, 100% { transform: translateX(-10px); } 50% { transform: translateX(10px); } }
.tour__hint.is-off { opacity: 0; }

/* Plan drawer */
.tour__plan { position: absolute; z-index: 5; top: calc(var(--header-h) + 8px); right: calc(var(--gutter) + 72px); width: min(520px, calc(100% - 2 * var(--gutter))); max-height: calc(100% - var(--header-h) - 160px); overflow: auto; background: var(--ivory); color: var(--ink); border-radius: 6px; padding: 16px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s; }
.tour__plan.is-open { opacity: 1; transform: none; visibility: visible; }
.tour__plan-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tour__plan .label { color: #7a7266; }
.tour__plan .icon-btn { width: 36px; height: 36px; border-color: rgba(26,24,22,.25); }
.tour__plan .icon-btn:hover { background: var(--ink); color: var(--ivory); }
.tour__plan .chip { height: 30px; font-size: 12px; border-color: rgba(26,24,22,.25); color: #4a453e; }
.tour__plan .chip[aria-selected="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.tour__plan-img { position: relative; margin-top: 12px; }
.tour__plan-img img { width: 100%; border-radius: 3px; }
.ppin { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: var(--rosso); color: var(--stone); font-family: var(--f-mono); font-size: 9px; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(155,34,38,.25); transition: transform .3s; }
.ppin:hover, .ppin.is-on { transform: translate(-50%, -50%) scale(1.25); }
.ppin.is-on { background: var(--ink); }
.tour__plan-note { font-size: 12.5px; color: #6a6358; margin: 12px 0 0; }

.tour__exit { position: absolute; right: var(--gutter); bottom: 128px; z-index: 3; background: rgba(14,13,12,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.tour__load { position: absolute; left: 50%; top: 50%; width: 120px; height: 1px; margin-left: -60px; background: rgba(233,225,211,.2); z-index: 2; overflow: hidden; }
.tour__load::after { content: ""; position: absolute; inset: 0; background: var(--stone); transform-origin: left; animation: load 1.2s var(--ease-in-out) infinite; }
@keyframes load { from { transform: scaleX(0); } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } to { transform: scaleX(0); transform-origin: right; } }

@media (max-width: 760px) {
  .tour__tools { top: auto; bottom: 120px; transform: none; flex-direction: column; }
  .tool { width: 48px; height: 48px; }
  .tour__info { bottom: 120px; }
  .tour__exit { display: none; }
  .tour__plan { right: var(--gutter); left: var(--gutter); width: auto; max-height: calc(100% - var(--header-h) - 150px); }
  .thumb { width: 104px; }
  .thumb img { width: 104px; height: 58px; }
  .tour__title { font-size: clamp(2.4rem, 12vw, 3.6rem); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .tour__strip { display: none; }
  .tour__info { bottom: 20px; }
  .tour__title { font-size: 2.2rem; }
  .tour__tools { top: calc(var(--header-h)); transform: none; flex-direction: row; }
  .tour__exit { bottom: 20px; }
}
