/* CEMI Core v1.2.84 — Single hero comercial por jerarquía
   - m² de terreno/construcción arriba.
   - características especiales abajo.
   - panel de precio más bajo, con acciones centradas al fondo.
   - mantiene tablet/móvil compactos. */

body.cemi-ui-single-property .cemi-single-hero-specs-wrap,
body.single-cemi_property .cemi-single-hero-specs-wrap,
body.single-opalestate_property .cemi-single-hero-specs-wrap{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  width:100%!important;
  max-width:min(1120px,100%)!important;
  margin-top:24px!important;
}

body.cemi-ui-single-property .cemi-single-hero-specs,
body.single-cemi_property .cemi-single-hero-specs,
body.single-opalestate_property .cemi-single-hero-specs{
  margin-top:0!important;
}

body.cemi-ui-single-property .cemi-single-hero-specs-primary,
body.single-cemi_property .cemi-single-hero-specs-primary,
body.single-opalestate_property .cemi-single-hero-specs-primary{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(160px,1fr))!important;
  gap:10px!important;
  width:min(560px,100%)!important;
  max-width:560px!important;
  justify-content:center!important;
}

body.cemi-ui-single-property .cemi-single-hero-specs-secondary,
body.single-cemi_property .cemi-single-hero-specs-secondary,
body.single-opalestate_property .cemi-single-hero-specs-secondary{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:stretch!important;
  justify-content:center!important;
  gap:10px!important;
  width:100%!important;
  max-width:1120px!important;
}

body.cemi-ui-single-property .cemi-single-hero-specs-primary span,
body.single-cemi_property .cemi-single-hero-specs-primary span,
body.single-opalestate_property .cemi-single-hero-specs-primary span{
  min-height:72px!important;
  background:rgba(255,255,255,.14)!important;
  border-color:rgba(255,255,255,.22)!important;
}

body.cemi-ui-single-property .cemi-single-hero-specs-secondary span,
body.single-cemi_property .cemi-single-hero-specs-secondary span,
body.single-opalestate_property .cemi-single-hero-specs-secondary span{
  flex:0 1 170px!important;
  min-width:130px!important;
  max-width:190px!important;
  min-height:62px!important;
}

body.cemi-ui-single-property .cemi-single-hero-specs-primary strong,
body.single-cemi_property .cemi-single-hero-specs-primary strong,
body.single-opalestate_property .cemi-single-hero-specs-primary strong{
  font-size:clamp(24px,1.85vw,34px)!important;
}

body.cemi-ui-single-property .cemi-single-hero-specs-secondary strong,
body.single-cemi_property .cemi-single-hero-specs-secondary strong,
body.single-opalestate_property .cemi-single-hero-specs-secondary strong{
  font-size:clamp(18px,1.18vw,24px)!important;
}

/* Panel de precio: más bajo y con botones centrados al fondo */
body.cemi-ui-single-property .cemi-single-hero-panel,
body.single-cemi_property .cemi-single-hero-panel,
body.single-opalestate_property .cemi-single-hero-panel{
  justify-content:flex-start!important;
}

body.cemi-ui-single-property .cemi-single-hero-actions,
body.single-cemi_property .cemi-single-hero-actions,
body.single-opalestate_property .cemi-single-hero-actions{
  margin-top:auto!important;
  justify-content:center!important;
  align-items:end!important;
}

@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{
    align-items:end!important;
  }

  body.cemi-ui-single-property .cemi-single-hero-copy,
  body.single-cemi_property .cemi-single-hero-copy,
  body.single-opalestate_property .cemi-single-hero-copy{
    align-self:end!important;
    padding-bottom:clamp(46px,6vh,86px)!important;
  }

  body.cemi-ui-single-property .cemi-single-hero-specs-wrap,
  body.single-cemi_property .cemi-single-hero-specs-wrap,
  body.single-opalestate_property .cemi-single-hero-specs-wrap{
    align-items:center!important;
    margin-inline:auto!important;
  }

  body.cemi-ui-single-property .cemi-single-hero-panel,
  body.single-cemi_property .cemi-single-hero-panel,
  body.single-opalestate_property .cemi-single-hero-panel{
    align-self:end!important;
    min-height:280px!important;
    transform:translateY(32px)!important;
  }

  body.cemi-ui-single-property .cemi-single-hero-actions,
  body.single-cemi_property .cemi-single-hero-actions,
  body.single-opalestate_property .cemi-single-hero-actions{
    max-width:100%!important;
  }

  body.cemi-ui-single-property .cemi-single-hero-actions a,
  body.single-cemi_property .cemi-single-hero-actions a,
  body.single-opalestate_property .cemi-single-hero-actions a{
    min-height:46px!important;
    border-radius:14px!important;
  }
}

/* Tablet: m² arriba en 2, secundarios compactos debajo */
@media (min-width:721px) and (max-width:1180px){
  body.cemi-ui-single-property .cemi-single-hero-specs-wrap,
  body.single-cemi_property .cemi-single-hero-specs-wrap,
  body.single-opalestate_property .cemi-single-hero-specs-wrap{
    gap:8px!important;
    margin-top:16px!important;
  }

  body.cemi-ui-single-property .cemi-single-hero-specs-primary,
  body.single-cemi_property .cemi-single-hero-specs-primary,
  body.single-opalestate_property .cemi-single-hero-specs-primary{
    width:100%!important;
    max-width:none!important;
  }

  body.cemi-ui-single-property .cemi-single-hero-specs-secondary,
  body.single-cemi_property .cemi-single-hero-specs-secondary,
  body.single-opalestate_property .cemi-single-hero-specs-secondary{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
  }

  body.cemi-ui-single-property .cemi-single-hero-specs-secondary span,
  body.single-cemi_property .cemi-single-hero-specs-secondary span,
  body.single-opalestate_property .cemi-single-hero-specs-secondary span{
    min-width:0!important;
    max-width:none!important;
    min-height:56px!important;
  }
}

/* Mobile: compacto, sin encimar precio/pagos */
@media (max-width:720px){
  body.cemi-ui-single-property .cemi-single-hero-specs-wrap,
  body.single-cemi_property .cemi-single-hero-specs-wrap,
  body.single-opalestate_property .cemi-single-hero-specs-wrap{
    gap:7px!important;
    margin-top:14px!important;
  }

  body.cemi-ui-single-property .cemi-single-hero-specs-primary,
  body.single-cemi_property .cemi-single-hero-specs-primary,
  body.single-opalestate_property .cemi-single-hero-specs-primary{
    width:100%!important;
    max-width:none!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  body.cemi-ui-single-property .cemi-single-hero-specs-secondary,
  body.single-cemi_property .cemi-single-hero-specs-secondary,
  body.single-opalestate_property .cemi-single-hero-specs-secondary{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
  }

  body.cemi-ui-single-property .cemi-single-hero-specs-secondary span,
  body.single-cemi_property .cemi-single-hero-specs-secondary span,
  body.single-opalestate_property .cemi-single-hero-specs-secondary span{
    min-width:0!important;
    max-width:none!important;
  }

  body.cemi-ui-single-property .cemi-single-hero-panel,
  body.single-cemi_property .cemi-single-hero-panel,
  body.single-opalestate_property .cemi-single-hero-panel{
    transform:none!important;
  }
}

@media (max-width:420px){
  body.cemi-ui-single-property .cemi-single-hero-specs-secondary,
  body.single-cemi_property .cemi-single-hero-specs-secondary,
  body.single-opalestate_property .cemi-single-hero-specs-secondary{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
