/* Walk-around of the DC Sample Apartment: Plan, 3D and Walk. Copied from the Villa del Mare viewer on DevCorner. */
:root {
  --navy: #13243a;
  --ink: #0d1a2b;
  --pink: #ff0066;
  --pink-dark: #d10054;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--ink); color: #fff; font: 400 16px/1.5 var(--body); overflow: hidden; -webkit-tap-highlight-color: transparent; }
.mono { font-family: var(--mono); letter-spacing: .03em; }
#view { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; outline: none; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top));
  background: linear-gradient(rgba(13, 26, 43, .92), rgba(13, 26, 43, .6) 70%, transparent); pointer-events: none; }
.bar > * { pointer-events: auto; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px 0 6px; color: #fff; text-decoration: none; font-weight: 600; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.back svg { width: 20px; height: 20px; }
.back span { display: none; }
.title { display: grid; line-height: 1.15; min-width: 0; }
.title b { font: 700 20px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.title span { font-size: 11px; color: rgba(255, 255, 255, .7); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modes { margin-left: auto; display: flex; padding: 3px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.modes button { min-width: 50px; min-height: 36px; padding: 0 12px; border: 0; background: transparent; color: rgba(255, 255, 255, .8); font: 600 15px var(--body); cursor: pointer; }
.modes button[aria-selected="true"] { background: var(--pink); color: #fff; }

.hint { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 4; margin: 0; padding: 8px 14px; max-width: calc(100vw - 24px); width: max-content;
  background: rgba(13, 26, 43, .78); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .88); text-align: center; pointer-events: none; }
.room { position: fixed; left: 12px; top: 72px; z-index: 4; margin: 0; padding: 6px 10px; background: rgba(13, 26, 43, .78); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; display: none; }
.room span { color: rgba(255, 255, 255, .6); }
.walk .room { max-width: calc(100vw - 170px); }
@media (min-width: 700px) { .walk .room { max-width: none; } }
.mini { position: fixed; right: 12px; top: 72px; z-index: 4; width: 132px; height: 140px; background: rgba(255, 255, 255, .92); border: 1px solid rgba(255, 255, 255, .5); display: none; }
.walk .room, .walk .mini { display: block; }

.labels { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.labels span { position: absolute; transform: translate(-50%, -50%); padding: 3px 7px; background: rgba(13, 26, 43, .82); font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.labels span i { display: block; font-style: normal; color: rgba(255, 255, 255, .65); font-size: 10px; }
.labels span b { font-weight: 500; }
.labels span .short { display: none; }
@media (max-width: 599px) {
  .labels span.small .full, .labels span.small i { display: none; }
  .labels span.small .short { display: inline; }
}

.joy { position: fixed; left: 22px; bottom: 64px; z-index: 4; width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); background: rgba(13, 26, 43, .35); display: none; touch-action: none; }
.joy .knob { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--pink); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.touch.walk .joy { display: block; }

.enter { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; min-height: 52px; padding: 0 24px; border: 0; background: var(--pink); color: #fff; font: 600 17px var(--body); cursor: pointer; display: none; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.enter:hover { background: var(--pink-dark); }
.walk.can-lock:not(.locked):not(.touch) .enter { display: block; }

.loading { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: var(--ink);
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 50px 50px; transition: opacity .5s; }
.loading.done { opacity: 0; pointer-events: none; }
.loading-in { width: min(320px, 80vw); text-align: center; }
.loading p { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 255, 255, .8); }
.bar-track { height: 3px; margin: 14px 0 10px; background: rgba(255, 255, 255, .15); }
.bar-fill { display: block; height: 100%; width: 0; background: var(--pink); transition: width .2s; }

@media (min-width: 700px) {
  .bar { padding: 14px 20px; gap: 16px; }
  .back span { display: inline; }
  .title b { font-size: 24px; }
  .title span { font-size: 12px; }
  .modes button { min-width: 64px; }
  .room { left: 20px; top: 84px; }
  .mini { right: 20px; top: 84px; width: 180px; height: 190px; }
  .hint { font-size: 13px; bottom: 20px; }
}

.no3d { margin: 14px 0 18px !important; font: 400 16px/1.5 var(--body) !important; text-transform: none !important; letter-spacing: 0 !important; color: rgba(255, 255, 255, .85) !important; }
.no3d b { color: #fff; }
.no3d-back { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; background: var(--pink); color: #fff; font-weight: 600; text-decoration: none; }
.loading-in { width: min(420px, 86vw); }

.shot .bar, .shot .hint, .shot .room, .shot .mini, .shot .joy, .shot .enter, .shot .labels { display: none !important; }
