/**
 * Hero / filter bar stability — reduces CLS on listing archive headers.
 * Targets elementor-element-6bff407 (hero + filters = current LCP element).
 */

/* Reserve hero height so filter facets loading does not shift layout */
.elementor-element-6bff407,
.elementor-element-1e39fb3e {
  min-height: min(33vh, 372px);
}

.elementor-element-6bff407 > .e-con-inner,
.elementor-element-1e39fb3e > .e-con-inner {
  min-height: inherit;
}

/* Filter bar — prevent collapse before FacetWP fselect initialises */
#filter-bar,
.elementor-element-123a623,
.elementor-element-397ecf4b {
  min-height: 88px;
}

#filter-bar .e-con-inner,
.elementor-element-7ca781c > .e-con-inner,
.elementor-element-fa56af2 > .e-con-inner {
  padding-bottom: 4px;
}

/* Keep fselect dropdowns hidden until opened — avoid repaints affecting CLS */
.facetwp-facet .fs-dropdown.fs-hidden {
  display: none !important;
}

/* Disable entrance animations that delay LCP paint on listing pages */
.elementor-element-6bff407,
.elementor-element-1e39fb3e,
.ae-post-blocks-adv,
.pl-listings-grid,
.pl-listing-card {
  animation: none !important;
  animation-delay: 0s !important;
  opacity: 1 !important;
  transform: none !important;
}

/* AE slider backgrounds — prevent Ken Burns / motion from delaying first paint */
.has_ae_slider.elementor-element-6bff407 .elementor-background-slideshow,
.has_ae_slider.elementor-element-1e39fb3e .elementor-background-slideshow {
  animation: none !important;
}

/* PureView dropdown (#property-feature-dropdown) — stable width */
.showme-wrapper,
#pureview-bar .showme-wrapper,
#property-feature-dropdown {
  min-width: 180px;
}

@media (max-width: 767px) {
  .elementor-element-6bff407,
  .elementor-element-1e39fb3e {
    min-height: 280px;
  }

  #filter-bar,
  .elementor-element-123a623 {
    min-height: 0;
  }
}
