.ags-prop-buscador,
.ags-prop-results-wrap {
  width: 100%;
}

.ags-prop-grid,
.ags-prop-grid-secondary {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
}

.ags-prop-grid-secondary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 12px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8dde6;
  border-radius: 12px;
}

.field-btn .btn-buscar {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: #0a2a5a;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.radio-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.ags-prop-cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.ags-resultados-wrap .ags-prop-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ags-card {
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 13px rgba(10, 15, 20, 0.08);
}

.ags-card-img {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.ags-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ags-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #ff7a00;
  color: #fff;
  font-weight: 800;
  padding: 5px 7px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  font-size: 11px;
}

/* Diferenciar operación por color */
.ags-badge--venta    { background: #ff7a00; } /* naranja */
.ags-badge--arriendo { background: #1e88e5; } /* azul */

.ags-card-body {
  padding: 18px 18px 20px;
}

.ags-card-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-family: 'Raleway', sans-serif;
}

.ags-card-tags span {
  background: #eef2f8;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 600;
  font-size: 13px;
  color: #1b2a3a;
}

.ags-card-link {
  text-decoration:none;
}

.ags-card-title {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
  color: #000C36;
  font-family: 'Montserrat', sans-serif;
}

.ags-card-loc {
  color: #6b7684;
  font-weight: 400;
  margin-bottom: 14px;
  font-family: 'Raleway', sans-serif;
}

.ags-card-price {
  font-weight: 900;
  font-size: 18px;
  color: #000C36;
  margin-top: 20px;
}

.ags-prop-empty {
  margin-top: 20px;
  font-weight: 700;
}

.ags-card-address {
  font-size: 14px;
  opacity: .75;
  margin-top: 2px;
}


@media (max-width: 980px) {
  .ags-prop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ags-prop-grid-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Incluir la variante de resultados (si no, su selector más específico
     mantiene las 4 columnas y se desbordan en móvil). */
  .ags-prop-cards,
  .ags-resultados-wrap .ags-prop-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ags-prop-cards,
  .ags-resultados-wrap .ags-prop-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
