/* v21 - styles owned by the 3D-side work (basement focus, FPV hints, touch controls, teaser) */

/* ── job 3: shared areas view, a part chosen by a click or a tap ── */
#app[data-cmpick="1"] #canvasHost canvas { cursor: pointer !important; }
.xcm-pick { position: absolute; left: 0; top: 0; z-index: 7; pointer-events: none; padding: 7px 12px; border-radius: 999px; background: var(--green-deep); color: var(--cream); font: 600 12.5px/1 var(--font-ui); white-space: nowrap; box-shadow: 0 8px 18px -8px rgba(26,42,26,.55); opacity: 0; transition: opacity .12s; }
.xcm-pick.on { opacity: 1; }
#app:not([data-commons="1"]) .xcm-pick { display: none; }
.xcm-layers button.xcm-all { display: inline-flex; align-items: center; gap: 6px; color: var(--green-deep); border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; margin-bottom: 2px; }
.xcm-layers button.xcm-all svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 760px) {
  .xcm-layers button { flex: none; }
  .xcm-layers button.xcm-all span { display: none; }
  .xcm-layers button.xcm-all { border-bottom: 0; border-right: 1px solid var(--line); border-radius: 10px 0 0 10px; margin: 0 2px 0 0; padding: 0 10px 0 6px; }
}
@media (prefers-color-scheme: dark) { .xcm-pick { color: #0f1812; } }

/* ── job 5: the opened flat's furniture is on its way ── */
.xload .xload-spin { display: inline-block; width: 11px; height: 11px; margin: 0 8px -1px 0; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--green-deep); animation: xspin .8s linear infinite; vertical-align: baseline; }
@keyframes xspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .xload .xload-spin { animation: none; } }

/* ── job 6: walk controls (built by walk.js, placed in the tool row of the walk) ── */
.xtools.walking .xwalk-hint { display: none !important; }      /* replaced by the controls below */
.xwk { display: contents; }
.xwk[hidden] { display: none; }
.xwk-q { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--green-deep); box-shadow: var(--shadow); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.xwk-q svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.xwk-q .xwk-dot { fill: currentColor; stroke: none; }
.xwk-q:hover { background: var(--hover); }
.xwk-q:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 3px; }
.xwk[data-shown="1"] .xwk-q { background: var(--green-deep); color: var(--cream); border-color: var(--green-deep); }
.xwk-card { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); display: flex; align-items: flex-end; gap: 24px; padding: 12px 20px 10px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); pointer-events: none; transition: opacity .6s, transform .6s; max-width: calc(100vw - 32px); box-sizing: border-box; }
.xwk[data-shown="0"] .xwk-card { opacity: 0; transform: translate(-50%, 8px); }
.xwk-i { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.xwk-lbl, .xwk-look span, .xwk-sl { font: 600 12px/1.2 var(--font-ui); color: var(--green-deep); white-space: nowrap; }
.xwk-svg { display: block; fill: none; stroke: var(--green-deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.xwk-svg text { fill: var(--green-deep); stroke: none; font: 600 11.5px/1 var(--font-ui); text-anchor: middle; }
.xwk-svg text.xwk-or { fill: var(--muted); font-weight: 400; }
.xwk-key rect { fill: var(--hover); transition: fill .1s; }
.xwk-key.lit rect { fill: var(--green-deep); }
.xwk-key.lit text { fill: var(--cream); }
.xwk-key.lit .xwk-ar { stroke: var(--cream); }
.xwk-fill { fill: var(--green-deep); stroke: none; }
/* touch: joystick on the left, look hint on the right */
.xwk-stick { position: absolute; left: 4px; bottom: calc(100% + 16px); width: 124px; height: 124px; touch-action: none; pointer-events: auto; transition: opacity .6s; -webkit-user-select: none; user-select: none; }
.xwk-base { position: absolute; inset: 0; width: 100%; height: 100%; }
.xwk-base circle { fill: var(--glass); stroke: var(--green-deep); stroke-opacity: .35; stroke-width: 1.5; }
.xwk-base path { fill: none; stroke: var(--green-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.xwk-knob { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--green-deep); box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); pointer-events: none; }
.xwk-stick.on .xwk-knob { transition: none; }
.xwk-stick:not(.on) .xwk-knob { transition: transform .18s ease-out; }
.xwk-sl { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); transition: opacity .6s; }
.xwk-look { position: absolute; right: 4px; bottom: calc(100% + 16px); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); pointer-events: none; transition: opacity .6s; max-width: 46vw; }
.xwk-look span { white-space: normal; text-align: center; }
.xwk-look .xwk-l2 { font-weight: 400; color: var(--muted); }
.xwk.touch[data-shown="0"] .xwk-stick { opacity: .5; }
.xwk.touch[data-shown="0"] .xwk-sl, .xwk.touch[data-shown="0"] .xwk-look { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .xwk-card, .xwk-look, .xwk-stick, .xwk-sl { transition: none; } }
@media (prefers-color-scheme: dark) { .xwk[data-shown="1"] .xwk-q { color: #0f1812; } .xwk-key.lit text { fill: #0f1812; } .xwk-key.lit .xwk-ar { stroke: #0f1812; } }

/* ── round 21 joint fixes: phone crumb trail = Back + the current place only (the middle steps slid under the sticky Back button) ── */
@media (max-width: 760px) {
  #crumbs .back ~ button:not([aria-current]), #crumbs .back ~ .sep { display: none; }
  #crumbs .back { box-shadow: none; }
  #crumbs button[aria-current="page"] { overflow: hidden; text-overflow: ellipsis; }
}

/* ── teaser (?teaser=1): only the scene, a cursor, a caption, the brand ── */
#app[data-teaser="1"] #top, #app[data-teaser="1"] #aptPanel, #app[data-teaser="1"] #listPanel, #app[data-teaser="1"] #levelNav, #app[data-teaser="1"] #legend,
#app[data-teaser="1"] #compass, #app[data-teaser="1"] #hint, #app[data-teaser="1"] #indicative, #app[data-teaser="1"] #filterBadge, #app[data-teaser="1"] #ctxToggle,
#app[data-teaser="1"] .xtools, #app[data-teaser="1"] .xload, #app[data-teaser="1"] .xwk, #app[data-teaser="1"] .xcm-pick, #app[data-teaser="1"] .xcm-hover,
#app[data-teaser="1"] .xsnap, #app[data-teaser="1"] .xveil, #app[data-teaser="1"] #notice { display: none !important; }
#app[data-teaser="1"] #canvasHost canvas { cursor: none; }
#app[data-teaser="1"] .xstyle { pointer-events: none; }
html.teaser-capture, html.teaser-capture body { width: 1920px; height: 1080px; overflow: hidden; }
html.teaser-capture #app { width: 1920px; height: 1080px; }
.tz { position: absolute; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.tz-snap { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.tz-cursor { position: absolute; left: 0; top: 0; margin: -2px 0 0 -3px; width: 28px; height: 34px; opacity: 0; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.tz-cursor path { fill: #fff; stroke: #1f2a20; stroke-width: 1.6; stroke-linejoin: round; }
.tz-ripple { position: absolute; left: 0; top: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(44,74,46,.55); opacity: 0; }
.tz-cap { position: absolute; left: 0; right: 0; top: 4.5%; display: flex; justify-content: center; opacity: 0; }
.tz-cap span { padding: .45em 1.1em; border-radius: 999px; background: rgba(255,253,248,.9); color: #2c4a2e; font: 400 clamp(18px, 2.2vw, 40px)/1.15 var(--font-display); box-shadow: 0 10px 28px -12px rgba(26,42,26,.45); }
.tz-brand { position: absolute; left: 2.2%; bottom: 3.2%; display: flex; align-items: center; gap: .7em; padding: .45em .9em .45em .5em; border-radius: 999px; background: rgba(255,253,248,.88); color: #2c4a2e; font: 600 clamp(12px, 1.05vw, 20px)/1 var(--font-ui); }
.tz-brand img { width: 2.2em; height: 2.2em; }
#app[data-teaser="1"][data-walk="1"] .xstyle, #app[data-teaser="1"][data-apt="open"] #aptLabels { display: none !important; }
html.teaser-capture *, html.teaser-capture *::before, html.teaser-capture *::after { transition: none !important; animation: none !important; }      /* capture: nothing moves on the wall clock */
