/**
 * Components — Pool Visualizer
 * Migrated from legacy/visualization.css. Renders the static pool preview:
 * a fixed-ratio container with stacked background + model image layers.
 * The container is positioned by visualization.js (sets position:relative inline),
 * which the absolutely-positioned layers below depend on.
 */

#wppb_wrapper .wppb_pool_visualization {
  aspect-ratio: 3 / 2;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  border: 2px solid #ccc;
  border-radius: 16px;
  background-color: #f0f0f0;
  margin-bottom: var(--wppb-space-2); /* gap between visualizer and quick summary */
}

/* Background layer — bottom of the z-stack */
#wppb_wrapper .wppb_pool_background {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  background-color: #e0e0e0;
  background-size: cover;
  background-position: center;
}

/* Pool model layer — sits above the background */
#wppb_wrapper .wppb_pool_model {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100% !important;
  height: 100% !important;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  #wppb_wrapper .wppb_pool_visualization {
    min-height: 200px !important;
    max-height: 300px !important;
    margin-bottom: var(--wppb-space-3);
  }
}

@media (max-width: 480px) {
  #wppb_wrapper .wppb_pool_visualization {
    min-height: 200px !important;
    max-height: 300px !important;
    border-radius: 12px;
  }
}
