/*
 * Houzez's native "Property Details" Elementor widget
 * (houzez-property-section-details - used for tabs like Pricing) renders
 * its own container with zero content when none of its fields have a
 * value. Each accordion/toggle tab on this site's single-property template
 * wraps exactly one such widget, so an empty widget means the whole tab -
 * title bar included - has nothing to show.
 *
 * Two :has() calls chained as siblings (NOT one nested inside the other -
 * the CSS spec forbids :has() from appearing inside another :has()'s
 * argument, and a browser drops the ENTIRE selector list as invalid if any
 * one selector violates that, which is why the first version of this file
 * silently did nothing at all):
 *   - :has(WIDGET CONTAINER)      -> this tab actually has the widget
 *   - :not(:has(WIDGET CONTAINER *)) -> and that container has no element
 *                                       children (ignores stray
 *                                       whitespace/newlines, which is why
 *                                       this is used instead of :empty -
 *                                       :empty counts whitespace as
 *                                       content and would never match)
 */

details:has(.elementor-widget-houzez-property-section-details .elementor-widget-container):not(:has(.elementor-widget-houzez-property-section-details .elementor-widget-container *)),
.e-n-accordion-item:has(.elementor-widget-houzez-property-section-details .elementor-widget-container):not(:has(.elementor-widget-houzez-property-section-details .elementor-widget-container *)),
.elementor-accordion-item:has(.elementor-widget-houzez-property-section-details .elementor-widget-container):not(:has(.elementor-widget-houzez-property-section-details .elementor-widget-container *)),
.elementor-toggle-item:has(.elementor-widget-houzez-property-section-details .elementor-widget-container):not(:has(.elementor-widget-houzez-property-section-details .elementor-widget-container *)) {
    display: none;
}

.elementor-widget-houzez-property-section-details:has(.elementor-widget-container):not(:has(.elementor-widget-container *)) {
    display: none;
}
