/*
Theme Name:  Listeo ChildTheme
Theme URI: http://listeo.pro
Author: Purethemes
Author URI: http://themeforest.net/user/purethemes
Description: Directory WordPress Theme by Purethemes
Version: 1.0
License: ThemeForest
License URI: http://themeforest.net/licenses
Text Domain: listeo
Domain Path: /languages/
Tags: light, responsive-layout, post-formats, theme-options, translation-ready, two-columns
Template:  listeo
*/

/* ===== SEOFIX-10 CLS Fix: Reserve space for layout elements ===== */

/* Reserve space for Leaflet map container */
.listeo-map-container, #map, div[id^="map"] {
    aspect-ratio: 16 / 9;
    min-height: 300px;
    background: #f0f0f0;
}

/* Reserve space for listing images (prevents CLS on taxonomy pages) */
.listing-item img,
.listing-thumbnail img,
img[src*="listeo_placeholder"] {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
}

/* Prevent header shift from cookie banner */
#header.custom-header {
    min-height: 80px;
}

/* Ensure listing grid items have consistent height before images load */
.listing-item {
    min-height: 200px;
}