:root{
  --brand:#16a34a;
  --brand-2:#22c55e;
}
.btn-success{ background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: none; }
.badge-verified{ background: linear-gradient(90deg, #22c55e, #16a34a); }
.card-business{ border: 1px solid #eaeaea; box-shadow: 0 6px 24px rgba(0,0,0,.06); border-radius: 18px; }

/* ===== Galería (Swiper) — 100% estática, sin efectos, sin reflows ===== */
.card-business .swiper{
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
}
@media (min-width: 576px){ .card-business .swiper{ height: 260px; } }
@media (min-width: 768px){ .card-business .swiper{ height: 280px; } }
@media (min-width: 992px){ .card-business .swiper{ height: 300px; } }

.card-business .swiper-wrapper,
.card-business .swiper-slide{ height: 100%; }

.card-business .swiper-slide{ position: relative; }

/* Imagen congelada: ocupa contenedor, sin transiciones ni animaciones (override con !important) */
.card-business .swiper-slide img{
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  /* Desactivar cualquier estilo global de animación/kenburns/hover */
  animation: none !important;
  transition: none !important;
  transform: none !important;
  will-change: auto !important;
  max-width: 100% !important;
}

/* Resto */
#map { height: 52vh; border-radius: 16px; }
@media (min-width: 992px){ #map { height: 58vh; } }

.filters{ position: relative; margin-top: .75rem; }
.chip{ border: 1px solid #e3e3e3; border-radius: 999px; padding: .4rem .8rem; background: #fff; }
.chip.active{ border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.result-distance{ font-weight: 600; color: #0ea5e9; }
.result-actions .btn{ border-radius: 999px; }
.result-actions .btn i{ font-size: 1.2rem; }
.pagination .page-link{ border-radius: 999px !important; }

/* === Robust desktop stacking: map above, results below === */
@media (min-width: 992px){
  /* Force the first .row.g-3 to stack its two main columns */
  .row.g-3:first-of-type > .col-lg-8{
    order: 1 !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .row.g-3:first-of-type > .col-lg-4{
    order: 2 !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  /* Horizontal business cards: image left, text right */
  #resultList .card-business{
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
  }
  #resultList .card-business .swiper{
    flex: 0 0 320px;
    width: 320px;
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
  }
  #resultList .card-business > .p-2{
    flex: 1 1 auto;
    padding: 0 !important;
  }
}
/* Ensure images fill the slide frame */
#resultList .card-business .swiper .swiper-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
