/* CEMI Core v1.2.113 — desktop real: galería amplia + datos legibles + contacto compacto */

/* Desktop: el problema era que el bloque de datos quedó demasiado angosto en 3 columnas.
   Regresamos a 2 columnas grandes y dejamos el contacto dentro del panel derecho, debajo de datos. */
@media (min-width:1280px){
  .single-cemi_property .cemi-property-wrap,
  .cemi-single-property .cemi-property-wrap,
  .cemi-property-wrap{
    max-width:1540px!important;
    padding-left:28px!important;
    padding-right:28px!important;
    grid-template-columns:minmax(680px,1.08fr) minmax(520px,.82fr)!important;
    gap:28px!important;
    align-items:start!important;
  }

  .single-cemi_property .cemi-sticky-panel,
  .cemi-single-property .cemi-sticky-panel,
  .cemi-sticky-panel{
    position:sticky!important;
    top:18px!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:16px!important;
    align-items:start!important;
  }

  .single-cemi_property .cemi-card-property-summary,
  .cemi-single-property .cemi-card-property-summary,
  .cemi-card-property-summary{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:24px!important;
  }

  .single-cemi_property .cemi-card-contact,
  .cemi-single-property .cemi-card-contact,
  .cemi-card-contact{
    position:relative!important;
    top:auto!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
  }
}

/* Pantallas muy grandes: galería protagonista y datos con aire suficiente */
@media (min-width:1600px){
  .single-cemi_property .cemi-property-wrap,
  .cemi-single-property .cemi-property-wrap,
  .cemi-property-wrap{
    max-width:1660px!important;
    grid-template-columns:minmax(760px,1.12fr) minmax(560px,.78fr)!important;
    gap:34px!important;
  }
}

/* Tablet / laptop: evitar columnas estrechas */
@media (min-width:900px) and (max-width:1279px){
  .single-cemi_property .cemi-property-wrap,
  .cemi-single-property .cemi-property-wrap,
  .cemi-property-wrap{
    max-width:1100px!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:20px!important;
  }
  .single-cemi_property .cemi-sticky-panel,
  .cemi-single-property .cemi-sticky-panel,
  .cemi-sticky-panel{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:16px!important;
    position:relative!important;
    top:auto!important;
  }
}

/* Encabezado del bloque */
.single-cemi_property .cemi-card-property-summary .cemi-property-summary-head h3,
.cemi-single-property .cemi-card-property-summary .cemi-property-summary-head h3,
.cemi-card-property-summary .cemi-property-summary-head h3{
  font-size:clamp(23px,1.75vw,32px)!important;
  line-height:1.02!important;
  letter-spacing:-.035em!important;
  max-width:780px!important;
}

.single-cemi_property .cemi-property-summary-sections,
.cemi-single-property .cemi-property-summary-sections,
.cemi-property-summary-sections{
  display:grid!important;
  gap:20px!important;
}

.single-cemi_property .cemi-property-summary-section,
.cemi-single-property .cemi-property-summary-section,
.cemi-property-summary-section{
  display:grid!important;
  gap:12px!important;
}

.single-cemi_property .cemi-property-summary-section h4,
.cemi-single-property .cemi-property-summary-section h4,
.cemi-property-summary-section h4{
  font-size:clamp(14px,1vw,17px)!important;
  line-height:1.15!important;
  margin:0!important;
  color:rgba(255,255,255,.88)!important;
}

/* Rejilla inteligente: nunca columnas de 120px que ponen texto vertical */
.single-cemi_property .cemi-property-summary-grid,
.cemi-single-property .cemi-property-summary-grid,
.cemi-property-summary-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;
  gap:12px!important;
}

/* Datos de casa suelen ser pocos: pueden respirar más */
.single-cemi_property .cemi-summary-section-casa .cemi-property-summary-grid,
.cemi-single-property .cemi-summary-section-casa .cemi-property-summary-grid,
.cemi-summary-section-casa .cemi-property-summary-grid{
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;
}

.single-cemi_property .cemi-property-summary-item,
.cemi-single-property .cemi-property-summary-item,
.cemi-property-summary-item{
  min-height:72px!important;
  padding:16px 18px!important;
  border-radius:18px!important;
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  background:rgba(255,255,255,.075)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  overflow:visible!important;
}

/* Con check: lectura natural, no vertical */
.single-cemi_property .cemi-property-summary-item.is-yes,
.single-cemi_property .cemi-property-summary-item.is-text,
.cemi-single-property .cemi-property-summary-item.is-yes,
.cemi-single-property .cemi-property-summary-item.is-text,
.cemi-property-summary-item.is-yes,
.cemi-property-summary-item.is-text{
  justify-content:flex-start!important;
}

.single-cemi_property .cemi-summary-mark,
.cemi-single-property .cemi-summary-mark,
.cemi-summary-mark{
  flex:0 0 auto!important;
  width:26px!important;
  min-width:26px!important;
  height:26px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#D7266B!important;
  font-size:30px!important;
  line-height:1!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  text-shadow:0 0 12px rgba(215,38,107,.34)!important;
}

.single-cemi_property .cemi-property-summary-item strong,
.cemi-single-property .cemi-property-summary-item strong,
.cemi-property-summary-item strong{
  min-width:0!important;
  color:#fff!important;
  font-size:clamp(20px,1.35vw,25px)!important;
  line-height:1.05!important;
  font-weight:950!important;
  letter-spacing:-.025em!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}

/* Valor numérico a la derecha, sin competir con labels */
.single-cemi_property .cemi-property-summary-item.is-pair,
.cemi-single-property .cemi-property-summary-item.is-pair,
.cemi-property-summary-item.is-pair{
  justify-content:space-between!important;
}
.single-cemi_property .cemi-property-summary-item.is-pair > span:not(.cemi-summary-mark),
.cemi-single-property .cemi-property-summary-item.is-pair > span:not(.cemi-summary-mark),
.cemi-property-summary-item.is-pair > span:not(.cemi-summary-mark){
  min-width:0!important;
  max-width:70%!important;
  color:rgba(255,255,255,.78)!important;
  font-size:clamp(13px,.9vw,15px)!important;
  line-height:1.08!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
  text-transform:uppercase!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
.single-cemi_property .cemi-property-summary-item.is-pair strong,
.cemi-single-property .cemi-property-summary-item.is-pair strong,
.cemi-property-summary-item.is-pair strong{
  flex:0 0 auto!important;
  text-align:right!important;
  font-size:clamp(24px,1.65vw,32px)!important;
}

/* Contacto: no debe robar protagonismo ni formar una tercera columna angosta */
.single-cemi_property .cemi-card-contact,
.cemi-single-property .cemi-card-contact,
.cemi-card-contact{
  padding:20px!important;
}
.single-cemi_property .cemi-card-contact .cemi-asesor-card,
.cemi-single-property .cemi-card-contact .cemi-asesor-card,
.cemi-card-contact .cemi-asesor-card{
  margin-bottom:14px!important;
}
.single-cemi_property .cemi-card-contact .cemi-btn-whatsapp,
.cemi-single-property .cemi-card-contact .cemi-btn-whatsapp,
.cemi-card-contact .cemi-btn-whatsapp{
  display:none!important;
}
.single-cemi_property .cemi-card-contact .cemi-btn-dark,
.cemi-single-property .cemi-card-contact .cemi-btn-dark,
.cemi-card-contact .cemi-btn-dark{
  width:100%!important;
  min-height:54px!important;
  font-size:17px!important;
  border-radius:16px!important;
}

/* Si el formulario existe, que sea compacto y no una columna enorme */
.single-cemi_property .cemi-card-contact form,
.cemi-single-property .cemi-card-contact form,
.cemi-card-contact form{
  margin-top:16px!important;
}
.single-cemi_property .cemi-card-contact input,
.single-cemi_property .cemi-card-contact select,
.single-cemi_property .cemi-card-contact textarea,
.cemi-single-property .cemi-card-contact input,
.cemi-single-property .cemi-card-contact select,
.cemi-single-property .cemi-card-contact textarea,
.cemi-card-contact input,
.cemi-card-contact select,
.cemi-card-contact textarea{
  min-height:42px!important;
  font-size:14px!important;
}

/* Cercanías con más lectura en escritorio */
@media (min-width:900px){
  .single-cemi_property .cemi-nearby-front-list,
  .cemi-single-property .cemi-nearby-front-list,
  .cemi-nearby-front-list{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .single-cemi_property .cemi-card-nearby-front,
  .cemi-single-property .cemi-card-nearby-front,
  .cemi-card-nearby-front{
    padding:24px!important;
  }
}

/* Mobile: mantener lo que se veía mejor, pero ordenar check / números */
@media (max-width:680px){
  .single-cemi_property .cemi-property-summary-grid,
  .cemi-single-property .cemi-property-summary-grid,
  .cemi-property-summary-grid{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .single-cemi_property .cemi-property-summary-item,
  .cemi-single-property .cemi-property-summary-item,
  .cemi-property-summary-item{
    min-height:60px!important;
    padding:14px 16px!important;
  }
  .single-cemi_property .cemi-property-summary-item strong,
  .cemi-single-property .cemi-property-summary-item strong,
  .cemi-property-summary-item strong{
    font-size:22px!important;
    line-height:1.05!important;
  }
  .single-cemi_property .cemi-property-summary-item.is-pair strong,
  .cemi-single-property .cemi-property-summary-item.is-pair strong,
  .cemi-property-summary-item.is-pair strong{
    font-size:24px!important;
  }
  .single-cemi_property .cemi-summary-mark,
  .cemi-single-property .cemi-summary-mark,
  .cemi-summary-mark{
    font-size:28px!important;
    width:24px!important;
    min-width:24px!important;
  }
}
