/* Vercetti Propiedades — tarjetas y operaciones cerradas v1.6.7 */
.vc-card-display-title{
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
}
.vc-card-display-location{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Catálogo y propiedades similares */
.vc-property-card .vc-card-heading{
  min-height:76px;
  margin:18px 20px 0;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}
.vc-property-card .vc-card-heading .product-classic-title{
  margin:0;
  min-height:46px;
  line-height:1.35;
}
.vc-property-card .vc-card-heading .vc-property-location{
  margin:5px 0 0;
  color:#747b88;
}
.vc-property-card .vc-card-heading + .product-classic-divider{
  margin-top:13px;
}

/* Home — Últimas propiedades */
#propiedades-destacadas .vc-home-property-card{
  height:100%;
}
#propiedades-destacadas .vc-home-property-heading{
  min-height:43px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  text-align:left;
}
#propiedades-destacadas .vc-home-property-heading .product-classic-title{
  margin:0;
  min-height:21px;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  display:block;
}
#propiedades-destacadas .vc-home-property-location{
  display:flex;
  align-items:center;
  gap:5px;
  margin:5px 0 0;
  color:#858c96;
  font-size:12px;
  line-height:1.35;
  letter-spacing:.01em;
}
#propiedades-destacadas .vc-home-location-icon{
  display:inline-flex;
  flex:0 0 auto;
  color:#6b3b86;
}
#propiedades-destacadas .vc-home-location-icon .vc-inline-icon{
  width:13px;
  height:13px;
}
#propiedades-destacadas .vc-home-property-location > span:last-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#propiedades-destacadas .vc-home-property-heading + .product-classic-media{
  margin-top:9px;
}
#propiedades-destacadas .vc-home-property-media{
  position:relative;
}

/* Guardar propiedad desde el Home */
#propiedades-destacadas .vc-home-favorite-btn{
  position:absolute;
  top:12px;
  right:12px;
  z-index:105;
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.96);
  color:#444c57;
  box-shadow:0 5px 16px rgba(23,28,38,.17);
  cursor:pointer;
  transition:transform .18s ease,color .18s ease,background .18s ease;
}
#propiedades-destacadas .vc-home-favorite-btn:hover{
  transform:translateY(-1px);
  color:#4d0e79;
}
#propiedades-destacadas .vc-home-favorite-btn.is-active{
  background:#4d0e79;
  color:#fff;
}
#propiedades-destacadas .vc-home-favorite-btn .vc-inline-icon{
  width:18px;
  height:18px;
}

/* Una sola etiqueta contextual por propiedad */
#propiedades-destacadas .vc-home-context-badge{
  position:absolute;
  top:13px;
  left:13px;
  z-index:104;
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.95);
  color:#4d0e79;
  box-shadow:0 4px 14px rgba(23,28,38,.13);
  font-size:11px;
  line-height:1;
  font-weight:700;
  letter-spacing:.025em;
  white-space:nowrap;
}
#propiedades-destacadas .vc-home-context-badge.reserved{
  background:#4d0e79;
  color:#fff;
}

@media (max-width:575.98px){
  #propiedades-destacadas .vc-home-property-heading{min-height:42px}
  #propiedades-destacadas .vc-home-property-heading + .product-classic-media{margin-top:8px}
  #propiedades-destacadas .vc-home-favorite-btn{width:36px;height:36px;top:10px;right:10px}
  #propiedades-destacadas .vc-home-context-badge{top:11px;left:11px}
  .vc-property-card .vc-card-heading{min-height:72px}
}

/* =========================================================
   Vercetti Propiedades · cierre de operaciones v1.6.7
   ========================================================= */

/* Badges de operaciones cerradas en Home */
#propiedades-destacadas .vc-home-context-badge.sold,
#propiedades-gestionadas .vc-home-context-badge.sold{
  background:#4d0e79;
  color:#fff;
}
#propiedades-destacadas .vc-home-context-badge.rented,
#propiedades-gestionadas .vc-home-context-badge.rented{
  background:#273149;
  color:#fff;
}

/* La sección de operaciones cerradas usa las mismas tarjetas del Home */
#propiedades-gestionadas .vc-home-property-heading{
  min-height:58px;
  padding:20px 23px 10px;
  text-align:left;
}
#propiedades-gestionadas .vc-home-property-heading .product-classic-title{
  margin:0;
  font-size:17px;
  line-height:1.35;
}
#propiedades-gestionadas .vc-home-property-location{
  display:flex;
  align-items:center;
  gap:6px;
  margin:7px 0 0;
  color:#828a96;
  font-size:12px;
  line-height:1.25;
}
#propiedades-gestionadas .vc-home-property-location .vc-inline-icon{
  flex:0 0 auto;
  width:13px;
  height:13px;
}
#propiedades-gestionadas .vc-home-property-heading + .product-classic-media{
  margin-top:9px;
}
#propiedades-gestionadas .vc-home-property-media{
  position:relative;
}
#propiedades-gestionadas .vc-home-context-badge{
  position:absolute;
  top:13px;
  left:13px;
  z-index:104;
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:999px;
  box-shadow:0 4px 14px rgba(23,28,38,.13);
  font-size:11px;
  line-height:1;
  font-weight:800;
  letter-spacing:.025em;
  white-space:nowrap;
}
.vc-home-managed-section{
  border-top:1px solid rgba(38,45,57,.07);
}
.vc-home-managed-actions{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:28px;
}
.vc-home-property-closed .product-classic-media:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(20,24,31,.02),rgba(20,24,31,.08));
}
.vc-home-property-closed .product-classic-price{
  z-index:106;
}

/* Estado de las tarjetas del catálogo */
.vc-property-badge{
  position:absolute;
  top:13px;
  left:13px;
  z-index:9;
  display:inline-flex;
  align-items:center;
  min-height:29px;
  padding:6px 11px;
  border-radius:999px;
  color:#fff;
  font-size:11px;
  line-height:1;
  font-weight:800;
  letter-spacing:.02em;
  box-shadow:0 5px 16px rgba(24,29,39,.18);
}
.vc-property-badge.reserved{background:#4d0e79}
.vc-property-badge.sold{background:#4d0e79}
.vc-property-badge.rented{background:#273149}
.vc-property-col-closed .vc-property-card{
  border-color:#ddd6e2;
}
.vc-property-col-closed .vc-property-media:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(17,21,29,.01),rgba(17,21,29,.08));
}
.vc-property-col-closed .product-classic-price,
.vc-property-col-closed .vc-property-badge{
  z-index:10;
}
.vc-card-closed-note{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:8px 20px 0;
  padding:9px 11px;
  border:1px solid #e3d8e8;
  border-radius:10px;
  background:#f8f3fa;
}
.vc-card-closed-note strong{
  color:#4d0e79;
  font-size:12px;
  line-height:1.3;
}
.vc-card-closed-note span{
  color:#7e7584;
  font-size:11px;
  white-space:nowrap;
}

/* Banner y CTA de una ficha ya cerrada */
.vc-property-op-closed{
  background:#4d0e79!important;
  color:#fff!important;
  border-color:#4d0e79!important;
}
.vc-property-closed-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin:0 0 24px;
  padding:19px 21px;
  border:1px solid #ddcbe5;
  border-radius:16px;
  background:linear-gradient(135deg,#fbf8fc 0%,#f2e9f6 100%);
}
.vc-property-closed-banner > div{
  min-width:0;
}
.vc-property-closed-banner strong{
  display:block;
  margin-top:3px;
  color:#4d0e79;
  font-size:22px;
  line-height:1.2;
}
.vc-property-closed-banner p{
  margin:6px 0 0;
  color:#6f6675;
  font-size:13px;
}
.vc-side-cta-closed{
  border-color:#ddcbe5!important;
  background:linear-gradient(145deg,#fff 0%,#f8f2fa 100%)!important;
}
.vc-side-cta-closed h3{
  color:#4d0e79;
}

/* Requisitos de arriendo estructurados */
.vc-rent-requirement-list{
  display:grid;
  gap:7px;
  margin:9px 0 0;
  padding:0;
  list-style:none;
}
.vc-rent-requirement-list li{
  display:flex;
  align-items:flex-start;
  gap:8px;
  color:#59616c;
  font-size:12px;
  line-height:1.45;
}
.vc-rent-requirement-list .vc-inline-icon{
  flex:0 0 auto;
  width:15px;
  height:15px;
  margin-top:1px;
  color:#4d0e79;
}
.vc-rent-extra{
  margin-top:8px!important;
}

html[data-vc-theme="dark"] .vc-card-closed-note,
html[data-vc-theme="dark"] .vc-property-closed-banner,
html[data-vc-theme="dark"] .vc-side-cta-closed{
  background:#2a2430!important;
  border-color:#57405f!important;
}
html[data-vc-theme="dark"] .vc-card-closed-note strong,
html[data-vc-theme="dark"] .vc-property-closed-banner strong,
html[data-vc-theme="dark"] .vc-side-cta-closed h3{
  color:#f3e9f7;
}
html[data-vc-theme="dark"] .vc-property-closed-banner p,
html[data-vc-theme="dark"] .vc-card-closed-note span,
html[data-vc-theme="dark"] .vc-rent-requirement-list li{
  color:#c9cbd2;
}

@media (max-width:767.98px){
  .vc-property-closed-banner{
    align-items:flex-start;
    flex-direction:column;
  }
  .vc-property-closed-banner .button{
    width:100%;
  }
  .vc-home-managed-actions{
    align-items:stretch;
    flex-direction:column;
  }
  .vc-home-managed-actions .button{
    width:100%;
  }
}

.vc-rent-multiplier-only{font-size:13px;font-weight:700;color:inherit}

/* =========================================================
   Vercetti Propiedades · tarjetas unificadas v1.6.12
   ========================================================= */
/* Catálogo / similares: dirección y ubicación con la misma jerarquía compacta del Home. */
.vc-property-card .vc-card-heading{
  min-height:58px;
  margin:14px 20px 0;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:5px;
}
.vc-property-card .vc-card-heading .product-classic-title{
  margin:0;
  min-height:0;
  line-height:1.3;
  font-size:17px;
}
.vc-property-card .vc-card-heading .vc-property-location{
  display:flex;
  align-items:center;
  gap:5px;
  margin:0;
  min-height:18px;
  color:#858c96;
  font-size:12px;
  line-height:1.35;
}
.vc-property-card .vc-card-heading .vc-property-location .mdi{
  flex:0 0 auto;
  color:#6b3b86;
}
.vc-property-card .vc-card-heading + .product-classic-divider{
  margin-top:10px;
}
@media (max-width:575.98px){
  .vc-property-card .vc-card-heading{min-height:56px;margin-top:13px}
}

/* =========================================================
   Home · buscador principal + ubicación v1.6.18
   ========================================================= */
.vc-home-property-search{
  width:100%;max-width:650px;margin:25px 0 18px;padding:12px;
  border:1px solid #e1e4e9;border-radius:17px;background:#fff;
  box-shadow:0 10px 28px rgba(29,34,43,.055);text-align:left
}
.vc-home-search-top{display:flex;align-items:center;justify-content:flex-start;margin-bottom:10px}
.vc-home-search-tabs{display:inline-flex;width:auto;gap:3px;margin:0;padding:3px;border-radius:11px;background:#f2f3f5}
.vc-home-search-tabs button{
  min-width:96px;height:36px;padding:0 16px;border:0;border-radius:8px;background:transparent;
  color:#5f6671;font-family:inherit;font-size:12px;font-weight:800;cursor:pointer;transition:.18s ease
}
.vc-home-search-tabs button:hover{color:#222832}
.vc-home-search-tabs button.active{background:#fff;color:#222832;box-shadow:0 2px 7px rgba(26,31,39,.08)}
.vc-home-search-query-row{display:block;margin-bottom:9px}
.vc-home-search-actions-row{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(118px,.65fr);gap:9px;align-items:stretch}
.vc-home-search-query,.vc-home-search-type{
  position:relative;display:flex;align-items:center;min-width:0;height:48px;margin:0;
  border:1px solid #d9dde5;border-radius:11px;background:#fff;transition:border-color .18s,box-shadow .18s
}
.vc-home-search-query:focus-within,.vc-home-search-type:focus-within{border-color:#4d0e79;box-shadow:0 0 0 3px rgba(101,40,133,.065)}
.vc-home-search-query>span{display:inline-flex;flex:0 0 41px;align-items:center;justify-content:center;color:#555e69}
.vc-home-search-query .vc-inline-icon{width:18px;height:18px}
.vc-home-search-query input{
  width:100%;height:46px;padding:0 15px 0 0;border:0;outline:0;background:transparent;
  color:#252b34;font-family:inherit;font-size:14px;letter-spacing:0
}
.vc-home-search-query input::placeholder{color:#9097a2}
.vc-home-search-type select{
  display:block;width:100%;height:46px;padding:0 38px 0 14px;border:0;outline:0;border-radius:11px;
  background:#fff;color:#343b45;font-family:inherit;font-size:13px;letter-spacing:0;appearance:auto
}
.vc-home-search-submit{
  min-height:48px;padding:0 18px;border:1px solid #4d0e79;border-radius:11px;background:#4d0e79;color:#fff;
  font-family:inherit;font-size:12px;font-weight:800;letter-spacing:0;cursor:pointer;white-space:nowrap;transition:.18s ease
}
.vc-home-search-submit:hover{background:#3d0b61;border-color:#3d0b61;transform:translateY(-1px)}
.vc-home-search-links{display:flex;align-items:center;gap:11px;padding:10px 5px 1px;font-size:11px;line-height:1.25}
.vc-home-search-links a{color:#59616d;font-weight:700;letter-spacing:0}
.vc-home-search-links a:hover{color:#4d0e79}
.vc-home-search-separator{color:#b4bac2;font-size:14px}

/* CTA inferior del hero: más discreto que una acción principal. */
.vc-home-property-search + br + br + .product-classic-title,
.vc-home-property-search + .product-classic-title{margin-top:4px}

/* catálogo/similares: ícono propio sin reserva fantasma */
.vc-property-card .vc-card-location-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 14px;width:14px;height:14px;color:#59626d}
.vc-property-card .vc-card-location-icon .vc-inline-icon{width:13px;height:13px}

@media(max-width:991.98px){
  .vc-home-property-search{max-width:720px}
}
@media(max-width:575.98px){
  .vc-home-property-search{margin-top:20px;padding:10px;border-radius:15px}
  .vc-home-search-tabs{width:100%}
  .vc-home-search-tabs button{flex:1;min-width:0}
  .vc-home-search-actions-row{grid-template-columns:1fr}
  .vc-home-search-query,.vc-home-search-type,.vc-home-search-submit{width:100%}
  .vc-home-search-submit{height:47px}
  .vc-home-search-links{gap:8px;flex-wrap:wrap;padding-left:2px}
  .vc-home-search-separator{display:none}
  .vc-home-search-links a{margin-right:10px}
}

/* =========================================================
   Vercetti Propiedades v1.6.19 · Home hero + buscador nativo
   ========================================================= */

/* El primer bloque del Home debe entrar completo en el primer viewport de PC. */
#main-content > .section.section-lg.bg-default.section-bottom-0:first-child{
  padding-top:44px!important;
}

/* El selector del hero es nativo: evita el rectángulo legado de Select2. */
.vc-home-search-type{
  overflow:hidden;
}
.vc-home-search-type select,
.vc-home-search-type select.vc-home-native-select{
  display:block!important;
  position:static!important;
  left:auto!important;
  width:100%!important;
  height:46px!important;
  min-height:46px!important;
  margin:0!important;
  padding:0 42px 0 15px!important;
  border:0!important;
  border-radius:11px!important;
  background-color:#fff!important;
  color:#2f3640!important;
  font-family:inherit!important;
  font-size:13px!important;
  font-weight:500!important;
  line-height:46px!important;
  letter-spacing:0!important;
  opacity:1!important;
  visibility:visible!important;
  -webkit-appearance:auto!important;
  appearance:auto!important;
  box-shadow:none!important;
}
.vc-home-search-type .select2-container{
  display:none!important;
}

/* Un poco menos de aire vertical dentro del hero sin comprimirlo. */
.vc-home-property-search{
  margin-top:20px;
  margin-bottom:14px;
}

@media(max-width:991.98px){
  #main-content > .section.section-lg.bg-default.section-bottom-0:first-child{
    padding-top:36px!important;
  }
}
@media(max-width:575.98px){
  #main-content > .section.section-lg.bg-default.section-bottom-0:first-child{
    padding-top:26px!important;
  }
  .vc-home-property-search{margin-top:17px;margin-bottom:12px}
}

/* =========================================================
   Vercetti v1.6.20 · Buscador Home resiliente
   ========================================================= */
.vc-home-search-tabs label{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  min-width:96px;height:36px;padding:0 16px;border:0;border-radius:8px;
  background:transparent;color:#5f6671;font-family:inherit;font-size:12px;font-weight:800;
  cursor:pointer;transition:.18s ease;user-select:none
}
.vc-home-search-tabs label:hover{color:#222832}
.vc-home-search-tabs label.active{background:#fff;color:#222832;box-shadow:0 2px 7px rgba(26,31,39,.08)}
.vc-home-search-tabs input[type="radio"]{
  position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;
  pointer-events:none!important;margin:0!important
}
.vc-home-search-tabs label:focus-within{outline:2px solid var(--vc-brand,#4d0e79);outline-offset:2px}
.vc-home-search-type select{cursor:pointer}
@media(max-width:575.98px){.vc-home-search-tabs label{flex:1;min-width:0}}

/* ================================================================
   Vercetti Propiedades v1.6.21 · buscador Home en modo oscuro
   ================================================================ */
html[data-vc-theme="dark"] .vc-home-property-search{
  background:#20242d!important;
  border-color:#353c49!important;
  box-shadow:0 14px 34px rgba(0,0,0,.18)!important;
}
html[data-vc-theme="dark"] .vc-home-search-tabs{
  background:#171b22!important;
}
html[data-vc-theme="dark"] .vc-home-search-tabs label{
  color:#b9c1cc!important;
}
html[data-vc-theme="dark"] .vc-home-search-tabs label:hover{
  color:#f3f5f7!important;
}
html[data-vc-theme="dark"] .vc-home-search-tabs label.active{
  background:#303642!important;
  color:#fff!important;
  box-shadow:0 2px 8px rgba(0,0,0,.22)!important;
}
html[data-vc-theme="dark"] .vc-home-search-query,
html[data-vc-theme="dark"] .vc-home-search-type{
  background:#171b22!important;
  border-color:#3b4351!important;
}
html[data-vc-theme="dark"] .vc-home-search-query>span{
  color:#c7cdd6!important;
}
html[data-vc-theme="dark"] .vc-home-search-query input{
  background:transparent!important;
  color:#f2f4f7!important;
  caret-color:#fff!important;
}
html[data-vc-theme="dark"] .vc-home-search-query input::placeholder{
  color:#929aa7!important;
  opacity:1!important;
}
html[data-vc-theme="dark"] .vc-home-search-type select,
html[data-vc-theme="dark"] .vc-home-search-type select.vc-home-native-select{
  background-color:#171b22!important;
  border-color:transparent!important;
  color:#f2f4f7!important;
  color-scheme:dark;
}
html[data-vc-theme="dark"] .vc-home-search-links a{
  color:#c5cbd4!important;
}
html[data-vc-theme="dark"] .vc-home-search-links a:hover,
html[data-vc-theme="dark"] .vc-home-search-links a:focus{
  color:#e0c8eb!important;
}
html[data-vc-theme="dark"] .vc-home-search-separator{
  color:#68717e!important;
}

/* El CTA bajo el buscador conserva identidad de marca en ambos temas. */
.vc-home-property-search + .product-classic-title a,
.vc-home-property-search + br + br + .product-classic-title a{
  color:var(--vc-brand,#4d0e79)!important;
}
html[data-vc-theme="dark"] .vc-home-property-search + .product-classic-title a,
html[data-vc-theme="dark"] .vc-home-property-search + br + br + .product-classic-title a{
  color:#d8bee6!important;
}

/* ================================================================
   v1.6.24 · cierre visual de tarjetas de propiedades
   ================================================================ */
.vc-property-card a:focus-visible,
.vc-property-card button:focus-visible,
.vc-home-property-card a:focus-visible,
.vc-home-property-card button:focus-visible{
  outline:3px solid rgba(77,14,121,.2);
  outline-offset:2px;
}
html[data-vc-theme="dark"] .vc-property-card a:focus-visible,
html[data-vc-theme="dark"] .vc-property-card button:focus-visible,
html[data-vc-theme="dark"] .vc-home-property-card a:focus-visible,
html[data-vc-theme="dark"] .vc-home-property-card button:focus-visible{
  outline-color:rgba(218,190,230,.55);
}


/* Vercetti v1.7.0 · enlaces de tarjetas en modo oscuro */
html[data-vc-theme="dark"] .vc-property-card .vc-card-display-title a{color:#f0f2f6!important}
html[data-vc-theme="dark"] .vc-property-card .vc-card-display-location{color:#b6bec9!important}
html[data-vc-theme="dark"] .vc-property-card .vc-card-location-icon{color:#aeb7c3!important}
