/* Viewport presentation: edit this file for graphics and controls inside the preview. */
@font-face { font-family: "Satoshi"; src: url("viewport/assets/fonts/Satoshi-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("viewport/assets/fonts/Satoshi-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("viewport/assets/fonts/Satoshi-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
.render-area { font-family: "Satoshi", Arial, sans-serif; --modulam-view-background: url("viewport/assets/images/view_background.png"); }
.render-construction-view[hidden] { display: none !important; }
.render-window {
  position: relative;
  width: 100%;
  max-height: calc(100% - 48px);
  aspect-ratio: 16 / 9;
  flex: 0 1 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #111;
  box-shadow: none;
}

.render-window #frame,
.render-window #frameOverlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.render-window #frame {
  z-index: 1;
}

.render-window #frameOverlay {
  z-index: 2;
}

.render-loading {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: rgba(253, 251, 246, 0.82);
}

.render-loading[hidden] {
  display: none;
}

.render-window.is-loading #emptyState {
  visibility: hidden;
}

.render-loading img {
  width: min(210px, 55%);
  height: auto;
  object-fit: contain;
}

.render-loading-spinner {
  width: 38px;
  height: 38px;
  box-sizing: border-box;
  border: 3px solid rgba(40, 44, 46, 0.2);
  border-top-color: var(--modulam-accent);
  border-radius: 50%;
  animation: render-loading-spin 850ms linear infinite;
}

@keyframes render-loading-spin {
  to { transform: rotate(360deg); }
}

.render-window:fullscreen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: #111;
  box-shadow: none;
}

.verge3d-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #111;
}

.verge3d-layer[hidden] {
  display: none !important;
}

.verge3d-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #111;
}

.verge3d-back {
  left: 14px;
  right: auto;
  z-index: 2;
}

.render-window #emptyState {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(20, 23, 25, 0.7);
  text-align: center;
}

.render-window #emptyState[hidden] {
  display: none !important;
}

.render-configuration {
  width: 100%;
  box-sizing: border-box;
  color: var(--modulam-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.render-configuration output {
  display: block;
  margin-top: 4px;
  color: var(--modulam-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Viewport actions, environment picker and camera map */
.render-window-action {
  box-sizing: border-box;
  position: absolute;
  top: 14px;
  z-index: 5;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(20, 23, 25, 0.72);
  color: #fff;
  cursor: pointer;
  box-shadow: none;
  transform: none;
  transition: background 160ms ease, transform 160ms ease;
}

.render-window-action:hover {
  background: rgba(20, 23, 25, 0.92);
  transform: scale(1.04);
}

.render-window-action:focus-visible {
  outline: 2px solid var(--modulam-accent);
  outline-offset: 3px;
}

.render-window-action svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.render-environment-toggle,
.render-construction-view,
.render-animation,
.render-sound,
.render-fullscreen {
  border: 0;
  background: rgba(40, 44, 46, 0.72);
}

.render-view-speed {
  right: 164px;
  width: 52px;
  border: 0;
  background: rgba(40, 44, 46, 0.72);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.render-view-speed:hover {
  background: rgba(32, 35, 38, 0.88);
}

.render-environment-toggle:hover,
.render-construction-view:hover,
.render-animation:hover,
.render-sound:hover,
.render-fullscreen:hover {
  background: rgba(32, 35, 38, 0.88);
}

.render-construction-view {
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  white-space: nowrap;
}

.render-3d-view {
  top: auto;
  right: 14px;
  bottom: 14px;
  z-index: 8;
  width: 108px;
  min-width: 108px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-color: var(--modulam-accent);
  background: var(--modulam-accent);
  transition: background 160ms ease, transform 160ms ease;
}

.render-3d-view:hover {
  background: #e34850;
}

.render-construction-view {
  width: 160px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.render-construction-view[aria-pressed="true"] {
  background: rgba(32, 35, 38, 0.88);
}

.render-bottom-controls {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 7;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  width: calc(100% - 28px);
}

.render-environment-control {
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  z-index: 1;
  width: 148px;
  flex: 0 0 148px;
  height: 42px;
}

.render-environment-toggle {
  position: relative;
  top: 0;
  right: auto;
  z-index: 1;
  border: 0;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: normal;
  text-align: center;
}

.environment-choice:focus-visible {
  outline: 2px solid var(--modulam-accent);
  outline-offset: 3px;
}

.render-environment-toggle span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.render-environment-options {
  position: absolute;
  bottom: 42px;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(20, 23, 25, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.render-environment-control.open .render-environment-options {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.environment-choice {
  box-sizing: border-box;
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  z-index: auto;
  display: block;
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 0 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: normal;
  text-align: left;
  transform: none;
}

.environment-choice:hover,
.environment-choice.active {
  background: rgba(255, 255, 255, 0.18);
}

.render-animation {
  right: 114px;
}

.render-sound {
  right: 64px;
}

.render-sound .sound-off,
.render-sound[aria-pressed="false"] .sound-on {
  display: none;
}

.render-sound[aria-pressed="false"] .sound-off {
  display: block;
}

.render-sound.is-playing::after,
.render-animation.is-playing::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--modulam-accent);
}

.render-animation .animation-play,
.render-animation.is-playing .animation-stop {
  display: none;
}

.render-animation.is-playing .animation-play {
  display: block;
}

.render-fullscreen {
  right: 14px;
}

.render-fullscreen[aria-pressed="false"] svg {
  transform: translateX(1px);
}

.views-widget {
  position: relative;
  bottom: auto;
  left: auto;
  width: 222px;
  flex: 0 0 222px;
}

.views-map {
  width: 100%;
  box-sizing: border-box;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(20, 23, 25, 0.72);
}

.views-map .interior-plan {
  width: 100%;
  margin: 0;
  border-color: rgba(255, 255, 255, 0.62);
  border-radius: 6px;
  background: transparent;
}

.views-map .interior-plan::before {
  border-radius: 6px;
  background-image: url("viewport/assets/images/view_background.png") !important;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
}

@media (max-width: 1200px) {
  .render-bottom-controls {
    display: grid;
    grid-template-columns: minmax(0, 222px) 148px;
    grid-template-rows: repeat(3, 42px);
    align-items: end;
    gap: 8px 12px;
  }

  .views-widget {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 100%;
  }

  .render-environment-control {
    grid-column: 2;
    grid-row: 1;
  }

  .render-construction-view {
    grid-column: 2;
    grid-row: 2;
    width: 148px;
  }

  .render-3d-view { width: 148px; }
}

@media (max-width: 700px) {
  .render-bottom-controls {
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    grid-template-columns: minmax(0, 1fr) 128px;
  }

  .render-environment-control,
  .render-construction-view,
  .render-3d-view {
    width: 128px;
  }

  .render-3d-view {
    right: 12px;
    bottom: 12px;
    font-size: 11px;
  }

  .render-construction-view {
    font-size: 9px;
  }

  .render-environment-toggle {
    font-size: 11px;
  }

}

/* Fine details previously shared with the page. */
.render-window .views-map .interior-plan {
  position: relative;
  width: 100%;
  aspect-ratio: 1.45 / 1;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 6px;
  background: transparent;
  overflow: visible;
}
.render-window .views-map .interior-plan::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 6px;
  background: url("viewport/assets/images/view_background.png") center / cover no-repeat;
  pointer-events: none;
  transform: rotate(180deg);
}
.render-window .plan-hotspot {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--modulam-accent);
  box-shadow: 0 0 0 7px var(--modulam-accent-soft);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.render-window .plan-hotspot:hover { transform: scale(1.12); }
.render-window .camera-hotspot-one { left: -12px; bottom: -12px; }
.render-window .camera-hotspot-two { right: -12px; bottom: -12px; }
.render-window .camera-hotspot-three { right: -12px; top: -12px; }
.render-window .camera-hotspot-four { left: -12px; top: -12px; }
.render-window .camera-link.active {
  border-color: #fff;
  background: var(--modulam-accent) !important;
  box-shadow: 0 0 0 7px var(--modulam-accent-soft);
  color: #fff !important;
}
.render-window #emptyState {
  padding: 22px 26px;
  border: 1px solid var(--modulam-line);
  border-radius: 12px;
  color: var(--modulam-ink);
  box-shadow: var(--modulam-shadow);
  font-family: "Satoshi", Arial, sans-serif;
}
.render-window #emptyState small { color: var(--modulam-muted); }
#frame,#frameOverlay{pointer-events:none}
#frame:not([src]),#frameOverlay:not([src]){visibility:hidden}
#emptyState{position:fixed;inset:42% 25% auto;text-align:center;color:#ddd;font:20px/1.5 Arial;z-index:2}
#emptyState small{display:block;font-size:14px;margin-top:12px;color:#aaa}
.camera-hotspot-four{left:-12px;top:-12px}
#frameOverlay{mix-blend-mode:screen}
@media(max-width:700px){#emptyState{inset:40% 12% auto}}
