/* CEMI Core v1.2.82 — single property top gap fix desktop/tablet/mobile
   La captura mostró un espacio blanco grande antes del hero en escritorio/tablet.
   Causa: el spacer/offset del header + buscador sticky seguía empujando el single.
   Regla: en single property el hero no debe reservar altura superior; el buscador sticky
   aparece más abajo por JS sin desplazar el contenido. */

body.cemi-ui-single-property,
body.single-cemi_property,
body.single-opalestate_property{
  --cemi-hdr-height:0px!important;
  --cemi-sticky-search-height:0px!important;
}

body.cemi-ui-single-property .cemi-hdr-spacer,
body.single-cemi_property .cemi-hdr-spacer,
body.single-opalestate_property .cemi-hdr-spacer,
body.cemi-ui-single-property .cemi-header-spacer,
body.single-cemi_property .cemi-header-spacer,
body.single-opalestate_property .cemi-header-spacer{
  display:block!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  overflow:hidden!important;
}

/* Quita offsets del theme/plantilla solo en single property. */
body.cemi-ui-single-property #page,
body.cemi-ui-single-property #content,
body.cemi-ui-single-property .site-content,
body.cemi-ui-single-property .ast-container,
body.cemi-ui-single-property #primary,
body.cemi-ui-single-property .content-area,
body.cemi-ui-single-property .site-main,
body.cemi-ui-single-property article,
body.cemi-ui-single-property .entry-content,
body.cemi-ui-single-property .cemi-single-property,
body.single-cemi_property #page,
body.single-cemi_property #content,
body.single-cemi_property .site-content,
body.single-cemi_property .ast-container,
body.single-cemi_property #primary,
body.single-cemi_property .content-area,
body.single-cemi_property .site-main,
body.single-cemi_property article,
body.single-cemi_property .entry-content,
body.single-cemi_property .cemi-single-property,
body.single-opalestate_property #page,
body.single-opalestate_property #content,
body.single-opalestate_property .site-content,
body.single-opalestate_property .ast-container,
body.single-opalestate_property #primary,
body.single-opalestate_property .content-area,
body.single-opalestate_property .site-main,
body.single-opalestate_property article,
body.single-opalestate_property .entry-content,
body.single-opalestate_property .cemi-single-property{
  margin-top:0!important;
  padding-top:0!important;
}

/* El hero debe ser el primer bloque visible. */
body.cemi-ui-single-property .cemi-single-property > .cemi-single-hero:first-child,
body.cemi-ui-single-property .cemi-single-hero,
body.single-cemi_property .cemi-single-property > .cemi-single-hero:first-child,
body.single-cemi_property .cemi-single-hero,
body.single-opalestate_property .cemi-single-property > .cemi-single-hero:first-child,
body.single-opalestate_property .cemi-single-hero{
  margin-top:0!important;
  top:auto!important;
}

/* En escritorio deja aire dentro del hero, no afuera. */
@media (min-width:1181px){
  body.cemi-ui-single-property .cemi-single-hero-inner,
  body.single-cemi_property .cemi-single-hero-inner,
  body.single-opalestate_property .cemi-single-hero-inner{
    padding-top:clamp(56px,5.5vw,92px)!important;
  }
}

/* En tablet/móvil conserva el ajuste de lectura sin crear hueco externo. */
@media (max-width:1180px){
  body.cemi-ui-single-property .cemi-single-hero-inner,
  body.single-cemi_property .cemi-single-hero-inner,
  body.single-opalestate_property .cemi-single-hero-inner{
    padding-top:clamp(42px,9vw,70px)!important;
  }
}

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