/* The live-3D room trial's page: one full-window canvas and a few quiet pills over it. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #d9d6cf; font: 14px/1.3 system-ui, "Segoe UI", sans-serif; color: #1d1c1a;
  -webkit-user-select: none; user-select: none; touch-action: none; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#view:active { cursor: grabbing; }
.hidden { display: none !important; }
.pill { position: fixed; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(8px);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12); pointer-events: none; }
#loading { left: 50%; top: 50%; transform: translate(-50%, -50%); }
/* (Opened from a phone's home screen the page runs to the screen's edges: its labels keep clear of the notch at the
   left or right of a phone lying sideways, of the status bar at the top of one held upright, and of the home bar.) */
#title { left: max(14px, env(safe-area-inset-left)); top: max(14px, env(safe-area-inset-top)); font-weight: 600; }
#fps { right: max(14px, env(safe-area-inset-right)); top: max(14px, env(safe-area-inset-top)); font-variant-numeric: tabular-nums; }
#hint { left: 50%; top: max(14px, env(safe-area-inset-top)); transform: translateX(-50%); }
#note { left: 50%; top: calc(44px + max(14px, env(safe-area-inset-top))); transform: translateX(-50%); background: rgba(160, 40, 30, 0.92); color: #fff; max-width: 90vw; border-radius: 12px; }
/* the hours of the day: a small switch under the flat's name (it shows only when another hour's light is there) */
.hours { position: fixed; left: max(14px, env(safe-area-inset-left)); top: calc(46px + max(14px, env(safe-area-inset-top))); display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(8px); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12); }
.hours button { font: inherit; font-weight: 600; min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
.hours button.on { background: #1d1c1a; color: #fff; }
.bar { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 8px; }
.bar button { font: inherit; font-weight: 600; padding: 11px 18px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.16); color: inherit; cursor: pointer; }
.bar button.on { background: #1d1c1a; color: #fff; }
#stick { position: fixed; left: max(34px, calc(env(safe-area-inset-left) + 12px)); bottom: max(34px, calc(env(safe-area-inset-bottom) + 14px)); width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.6); pointer-events: none; }
#stick .knob { position: absolute; left: 35px; top: 35px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); }
#turn { position: fixed; inset: 0; background: #1d1c1a; color: #fff; display: grid; place-items: center; font-size: 18px; z-index: 10; }
.panel { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); box-shadow: 0 1px 8px rgba(0, 0, 0, 0.16); flex-wrap: wrap; justify-content: center;
  max-width: min(94vw, calc(100vw - 2 * max(env(safe-area-inset-left), env(safe-area-inset-right)) - 12px)); }
.panel .row { display: flex; align-items: center; gap: 6px; }
.panel .row span { font-weight: 600; margin-right: 2px; }
.panel .row b { min-width: 26px; text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; }
.panel button { font: inherit; font-weight: 600; min-width: 40px; height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: #eceae4; color: inherit; cursor: pointer; }
.panel button.on { background: #1d1c1a; color: #fff; }
.panel button.go { background: #1d1c1a; color: #fff; padding: 0 20px; }
.panel p { margin: 0; flex-basis: 100%; text-align: center; font-size: 12.5px; color: #5b5953; }
/* the picked flat's facts (page/facts.js): rooms, area, price, and a small mark saying free, reserved or sold */
.panel #pickFacts { font-size: 14px; color: #1d1c1a; font-variant-numeric: tabular-nums; }
.panel #pickFacts b { display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.panel #pickFacts b:empty { display: none; }
.panel #pickFacts.free b { background: #dcefe2; color: #1f6b3d; }
.panel #pickFacts.reserved b { background: #f6e7c4; color: #7a5a12; }
.panel #pickFacts.sold b { background: #e4e2dc; color: #6b6963; }
.panel #pickFacts.sold span { color: #6b6963; }
.panel p:empty { display: none; }
#veil { position: fixed; inset: 0; background: rgba(29, 28, 26, 0.55); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 5; }
#veil span { padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); font-weight: 600; }
