/* Correcciones scroll infinito — grids VC / Owl en sitio estático */

.yc-vc-grid-page #detail-content,
body.single-estate_property #detail-content {
  height: auto !important;
  width: auto !important;
  float: none !important;
  overflow: visible !important;
}

.yc-vc-grid-page #spects .vc_column-inner,
body.single-estate_property #spects .vc_column-inner {
  height: auto !important;
}

.yc-vc-grid-page .vc_pageable-wrapper.owl-carousel,
.yc-vc-grid-page .vc_grid-container-wrapper .vc_pageable-wrapper {
  overflow: visible !important;
}

.yc-vc-grid-page .vc_gitem-zone-img,
.yc-vc-grid-page .vc_pageable-wrapper .vc_gitem-zone-img {
  display: none !important;
}

.yc-vc-grid-page .vc_pageable-wrapper .owl-stage-outer,
.yc-vc-grid-page .vc_grid-container-wrapper .owl-stage-outer {
  height: auto !important;
  overflow: visible !important;
}

.yc-vc-grid-page .vc_pageable-wrapper .owl-stage,
.yc-vc-grid-page .vc_grid-container-wrapper .owl-stage {
  width: 100% !important;
  transform: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px;
}

.yc-vc-grid-page .vc_pageable-wrapper .owl-item,
.yc-vc-grid-page .vc_grid-container-wrapper .owl-item {
  width: calc(50% - 5px) !important;
  max-width: calc(50% - 5px);
  margin-right: 0 !important;
  float: none !important;
}

.yc-vc-grid-page .vc_pageable-wrapper .vc_pageable-slide-wrapper,
.yc-vc-grid-page .vc_grid-container-wrapper .vc_pageable-slide-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.yc-vc-grid-page .vc_pageable-wrapper .vc_grid-item,
.yc-vc-grid-page .vc_grid-container-wrapper .vc_grid-item {
  width: calc(50% - 5px);
  max-width: calc(50% - 5px);
}

.yc-vc-grid-page .vc_pageable-wrapper .vc_gitem-zone,
.yc-vc-grid-page .vc_grid-container-wrapper .vc_gitem-zone {
  min-height: 160px;
  max-height: 220px;
  background-size: cover !important;
  background-position: center !important;
}

.yc-vc-grid-page .vc_grid-owl-nav,
.yc-vc-grid-page .vc_grid-owl-dots {
  display: none !important;
}

.yc-vc-grid-page .vc_grid-loading {
  display: none !important;
}

.yc-vc-grid-page .vc_pageable-wrapper,
.yc-vc-grid-page .vc_grid-container-wrapper {
  max-width: 100%;
}

html.yc-vc-grid-page,
body.yc-vc-grid-page {
  overflow-x: hidden;
}

.yc-vc-grid-page .owl-stage-outer.owl-height {
  height: auto !important;
}

.yc-vc-grid-page .vc-gitem-zone-height-mode-auto-1-1::before {
  content: none !important;
  padding-top: 0 !important;
}

@media (max-width: 767px) {
  .yc-vc-grid-page .vc_pageable-wrapper .owl-item,
  .yc-vc-grid-page .vc_pageable-wrapper .vc_grid-item,
  .yc-vc-grid-page .vc_grid-container-wrapper .owl-item,
  .yc-vc-grid-page .vc_grid-container-wrapper .vc_grid-item {
    width: 100% !important;
    max-width: 100%;
  }
}
