/* CEMI Core v1.2.81 — single property mobile top-space fix
   Corrige el hueco blanco superior que aparecía antes del hero en móvil.
   Causa: el spacer del header/sticky search seguía reservando altura aunque el buscador no estuviera activo.
   Scope: solo single property en tablet/móvil; no toca escritorio. */

@media (max-width:1180px){
  body.cemi-ui-single-property .cemi-hdr-spacer,
  body.single-cemi_property .cemi-hdr-spacer,
  body.single-opalestate_property .cemi-hdr-spacer{
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    padding:0!important;
    margin:0!important;
    overflow:hidden!important;
  }

  body.cemi-ui-single-property .site-main,
  body.cemi-ui-single-property #primary,
  body.cemi-ui-single-property .content-area,
  body.cemi-ui-single-property .cemi-single-property{
    padding-top:0!important;
    margin-top:0!important;
  }

  body.cemi-ui-single-property .cemi-single-property > .cemi-single-hero,
  body.cemi-ui-single-property .cemi-single-hero{
    margin-top:0!important;
    top:auto!important;
  }

  /* Como el spacer ya no reserva altura, dejamos aire interno suficiente sin crear hueco externo. */
  body.cemi-ui-single-property .cemi-single-hero-inner{
    padding-top:clamp(44px,10vw,70px)!important;
  }
}

@media (max-width:720px){
  body.cemi-ui-single-property .cemi-single-hero-inner{
    padding-top:44px!important;
  }
}

/* Cuando el sticky search ya esté activo más abajo de la single, no debe empujar contenido hacia abajo. */
body.cemi-ui-single-property.cemi-sticky-search-active .cemi-hdr-spacer,
body.single-cemi_property.cemi-sticky-search-active .cemi-hdr-spacer,
body.single-opalestate_property.cemi-sticky-search-active .cemi-hdr-spacer{
  height:0!important;
}
