/* CEMI Core v1.2.170 — Corrección puntual de dirección visual
   No rediseña el single: corrige alineación de herramientas, armoniza recuadros
   con el lenguaje del mapa y devuelve similares al fondo azul CEMI. */

body.cemi-ui-single-property{
  --cemi170-bg:#101827;
  --cemi170-bg2:#141f31;
  --cemi170-line:rgba(215,38,107,.20);
  --cemi170-line-soft:rgba(255,255,255,.075);
  --cemi170-glow:0 18px 44px rgba(15,23,42,.18), 0 0 0 1px rgba(215,38,107,.08), 0 0 26px rgba(215,38,107,.08);
  --cemi170-radius:22px;
}

/* 1) La barra de herramientas vuelve a comportarse como bloque ancho tipo hero,
      centrado y alineado con el contenido principal. */
.cemi-single-property .cemi-single-tools-strip{
  grid-column:1 / -1!important;
  justify-self:center!important;
  width:min(1180px, calc(100% - 32px))!important;
  max-width:1180px!important;
  margin:34px auto 30px!important;
  box-sizing:border-box!important;
}

.cemi-single-property .cemi-single-tools-track{
  grid-template-columns:repeat(3, minmax(0,1fr))!important;
}

/* 2) Mismo idioma visual del mapa para recuadros de contenido:
      azul profundo, borde rosa sutil, sombra controlada; no cajas internas pesadas. */
.cemi-single-property .cemi-card-services,
.cemi-single-property .cemi-card-property-summary,
.cemi-single-property .cemi-card-credit-commercial,
.cemi-single-property .cemi-card-price,
.cemi-single-property .cemi-card-land-summary,
.cemi-single-property .cemi-card-amenidades,
.cemi-single-property .cemi-card-characteristics,
.cemi-single-property .cemi-description-card,
.cemi-single-property .cemi-card-description,
.cemi-single-property .cemi-payment-methods-mobile-inline,
.cemi-single-property .cemi-single-hero-price,
.cemi-single-property .cemi-single-hero-payments{
  background:linear-gradient(180deg, rgba(18,28,43,.985), rgba(12,20,34,.985))!important;
  border:1px solid var(--cemi170-line)!important;
  border-radius:var(--cemi170-radius)!important;
  box-shadow:var(--cemi170-glow)!important;
}

/* Recuadros internos: integrados, no otro glow encima. */
.cemi-single-property .cemi-card-services .cemi-service-item,
.cemi-single-property .cemi-card-property-summary .cemi-summary-section,
.cemi-single-property .cemi-card-property-summary .cemi-summary-item,
.cemi-single-property .cemi-amenidad-chip,
.cemi-single-property .cemi-summary-item,
.cemi-single-property .cemi-feature-item,
.cemi-single-property .cemi-credit-pill,
.cemi-single-property .cemi-single-hero-pay-pills span{
  background:rgba(255,255,255,.045)!important;
  border:1px solid var(--cemi170-line-soft)!important;
  box-shadow:none!important;
}

.cemi-single-property .cemi-card-services h3,
.cemi-single-property .cemi-card-property-summary h3,
.cemi-single-property .cemi-card-credit-commercial h3,
.cemi-single-property .cemi-card-price h3{
  color:#fff!important;
  letter-spacing:-.025em!important;
}

/* El resumen/características debe sentirse como información premium, no panel admin. */
.cemi-single-property .cemi-card-property-summary .cemi-summary-front,
.cemi-single-property .cemi-card-property-summary .cemi-summary-grid,
.cemi-single-property .cemi-card-property-summary .cemi-summary-section{
  gap:10px!important;
}

.cemi-single-property .cemi-card-property-summary .cemi-summary-section{
  padding:12px!important;
  border-radius:16px!important;
}

/* 3) Similares: quitar fondo blanco y devolverlo a línea azul/glow. */
.cemi-single-property .cemi-nearby-full-wrap{
  grid-column:1 / -1!important;
  justify-self:center!important;
  width:min(1180px, calc(100% - 32px))!important;
  max-width:1180px!important;
  margin:0 auto 56px!important;
  padding:0!important;
  box-sizing:border-box!important;
}

.cemi-single-property .cemi-nearby-full-wrap > .cemi-card,
.cemi-single-property .cemi-nearby-full-wrap .cemi-card.cemi-nearby-card,
.cemi-single-property .cemi-related-section,
.cemi-single-property .cemi-nearby-slider-section{
  background:linear-gradient(180deg, rgba(18,28,43,.985), rgba(12,20,34,.985))!important;
  border:1px solid rgba(215,38,107,.18)!important;
  border-radius:24px!important;
  box-shadow:0 22px 56px rgba(15,23,42,.20), 0 0 28px rgba(215,38,107,.07)!important;
  color:#fff!important;
}

.cemi-single-property .cemi-nearby-full-wrap .cemi-nearby-head h2,
.cemi-single-property .cemi-nearby-full-wrap h2{
  color:#fff!important;
}

.cemi-single-property .cemi-nearby-full-wrap .cemi-nearby-head span{
  color:rgba(255,255,255,.58)!important;
}

.cemi-single-property .cemi-nearby-full-wrap .cemi-nearby-img-wrap,
.cemi-single-property .cemi-nearby-full-wrap .cemi-nearby-info,
.cemi-single-property .cemi-nearby-full-wrap .cemi-nearby-facts{
  background:rgba(255,255,255,.045)!important;
  border-color:rgba(255,255,255,.075)!important;
}

.cemi-single-property .cemi-nearby-full-wrap .cemi-nearby-title,
.cemi-single-property .cemi-nearby-full-wrap .cemi-nearby-fact{
  color:rgba(255,255,255,.86)!important;
}

.cemi-single-property .cemi-nearby-full-wrap .cemi-nearby-loc{
  color:rgba(255,255,255,.58)!important;
}

.cemi-single-property .cemi-nearby-full-wrap .cemi-nearby-prev,
.cemi-single-property .cemi-nearby-full-wrap .cemi-nearby-next{
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.14)!important;
  box-shadow:none!important;
}

/* 4) Responsive: conservar alineación y evitar que herramientas vuelvan a quedar sueltas. */
@media (max-width:980px){
  .cemi-single-property .cemi-single-tools-strip,
  .cemi-single-property .cemi-nearby-full-wrap{
    width:calc(100% - 28px)!important;
  }
  .cemi-single-property .cemi-single-tools-track{
    grid-template-columns:repeat(2, minmax(0,1fr))!important;
  }
}

@media (max-width:640px){
  .cemi-single-property .cemi-single-tools-strip,
  .cemi-single-property .cemi-nearby-full-wrap{
    width:calc(100% - 22px)!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  .cemi-single-property .cemi-single-tools-strip{
    padding:18px 14px!important;
  }
  .cemi-single-property .cemi-single-tools-track{
    display:flex!important;
    overflow-x:auto!important;
    gap:10px!important;
    scroll-snap-type:x mandatory!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .cemi-single-property .cemi-single-tool-pill{
    flex:0 0 82%!important;
    min-width:260px!important;
    scroll-snap-align:start!important;
  }
}
