/*
 * CHX property-analysis house illumination.
 * The source photograph remains the permanent image; only these local glass
 * overlays fade away. All geometry is authored in the photograph's 372×521
 * coordinate space and stretched to the image's exact aspect ratio.
 */
.property-analysis-home { --house-lights-css-ready: 1; }

.property-analysis-home.house-lights-ready {
  position: relative;
  isolation: isolate;
}

.property-analysis-home .house-window-darkness {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 1;
  pointer-events: none;
  transition: opacity 575ms ease-in-out;
}

.property-analysis-home .house-window-darkness--ground {
  transition-delay: 0ms;
}

.property-analysis-home .house-window-darkness--upper-left {
  transition-delay: 250ms;
}

.property-analysis-home .house-window-darkness--upper-right {
  transition-delay: 500ms;
}

.property-analysis-home.house-lights-on .house-window-darkness {
  opacity: 0;
}

.property-analysis-home[data-house-lights="reduced-motion"] .house-window-darkness,
.property-analysis-home[data-house-lights="complete"] .house-window-darkness {
  transition: none;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .property-analysis-home .house-window-darkness {
    transition: none !important;
  }
}
