/* v4: The four photographed elevations form one closed architectural volume.
   Coordinates: floor rectangle x=0..420, y=0..310, roof z=185. */
.three-viewport.model-active {
  background: radial-gradient(ellipse at 51% 24%,#f0faf8 0,#daedf1 67%,#b8d1db 100%);
}
.three-building { transform-style:preserve-3d; }
.three-building .three-floor,
.three-building .three-obj { display:none !important; }
.three-building .three-wall {
  box-sizing:border-box;
  display:block;
  margin:0;
  padding:0;
  opacity:1 !important;
  border:1px solid rgba(45,78,84,.35);
  border-radius:0;
  transform-origin:0 0 !important;
  backface-visibility:visible;
  background-repeat:no-repeat;
  background-size:cover;
  box-shadow:inset 0 0 15px rgba(7,32,44,.12);
  transition:none;
  pointer-events:auto;
}
.three-building .wall-front {
  left:0;top:310px;width:420px;height:185px;
  transform:translateZ(185px) rotateX(-90deg) !important;
  background-image:url('facility_exterior_v2.png');
  background-position:center 46%;
}
.three-building .wall-back {
  left:420px;top:0;width:420px;height:185px;
  transform:translateZ(185px) rotateZ(180deg) rotateX(-90deg) !important;
  background-image:url('facility_rear_v4.png');
  background-position:center 52%;
}
.three-building .wall-left {
  left:0;top:0;width:310px;height:185px;
  transform:translateZ(185px) rotateZ(90deg) rotateX(-90deg) !important;
  background-image:url('facility_left_v4.png');
  background-position:center 52%;
}
.three-building .wall-right {
  left:420px;top:310px;width:310px;height:185px;
  transform:translateZ(185px) rotateZ(-90deg) rotateX(-90deg) !important;
  background-image:url('facility_right_v4.png');
  background-position:center 52%;
}
.three-building .building-roof {
  left:0;top:0;width:420px;height:310px;
  border:3px solid #93b0b5;
  box-shadow:0 0 0 3px #b7c7c8,0 5px 14px #183e4b30;
  background:linear-gradient(#d0e5e126,#173d4933),url('facility_roof_v3.png') center 50%/cover no-repeat;
  transform:translateZ(185px);
  opacity:1 !important;
}
.three-building .building-roof span {display:none !important}
.three-building .ground-base {
  width:470px;height:360px;left:-25px;top:-25px;
  background:linear-gradient(135deg,#cbd6d3,#f0f1ea 55%,#b8cfcc);
  box-shadow:0 12px 40px #143c4652;
  border:6px solid #dbe6e1;
  transform:translateZ(-5px);
}
.three-viewport.model-active .three-scene {transition:transform .12s linear;}
.facade-point {
  position:absolute;z-index:2;left:50%;top:50%;
  min-width:56px;max-width:94px;padding:5px 7px;
  border:1px solid #fff;border-radius:12px;
  background:#064d58e8;color:white;
  font-size:11px;font-weight:800;line-height:1.3;
  box-shadow:0 3px 8px #062f3b8a;
  cursor:pointer;transform:translate(-50%,-50%);
  pointer-events:auto;
}
.facade-point:hover,.facade-point.selected{background:#f8ca65;color:#173b45;box-shadow:0 0 0 4px #f8ca6555,0 4px 10px #062f3b88}
.front-window{left:36%;top:35%}.front-door{left:51%;top:78%}.front-wall{left:82%;top:60%}
.left-window{left:32%;top:40%}.back-wall{left:67%;top:55%}.right-wall{left:62%;top:52%}
.three-building .facade-point{backface-visibility:visible}
@media(max-width:680px){
  .three-viewport.model-active {height:430px}
}
@media(prefers-reduced-motion:reduce){
  .three-viewport.model-active .three-scene{transition:none}
}
