.hero-properties {
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("../img/background1.jpg") center/cover no-repeat;
  color: #fff;
  padding: 90px 0;
}

.property-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}

.property-image {
  position: relative;
  height: 230px;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-image .badge {
  position: absolute;
  top: 15px;
  left: 15px;
}

.property-body {
  padding: 20px;
}

.property-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 10px 0;
}

.property-price {
  color: #0d6efd;
  font-size: 1.25rem;
  font-weight: bold;
}

.property-location {
  color: #6c757d;
  font-size: 0.9rem;
}

.property-features {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  color: #6c757d;
}

.badge-venta {
  background: #0d6efd;
}
.badge-renta {
  background: #ffc107;
  color: #000;
}

.badge-disponible {
  background: #198754;
}
.badge-apartada {
  background: #ffc107;
  color: #000;
}
.badge-vendida {
  background: #dc3545;
}

.clickable-card {
  position: relative;
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.property-body a.btn {
  position: relative;
  z-index: 2;
}

.filter-box {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 100px;
}

/* ==============================
   PROPIEDADES DESTACADAS
================================ */

.featured-properties {
  padding: 4rem 1.5rem;
  background: var(--verde-claro);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a5d3b;
}

.section-header p {
  color: #6c757d;
  margin-top: 0.5rem;
}

/* Grid */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
}

/* Card */
.property-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* Link invisible */
.property-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* Imagen */
.property-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover img {
  transform: scale(1.05);
}

/* Estado */
.property-status {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 30px;
  color: #fff;
  z-index: 2;
}

.property-status.disponible {
  background: #28a745;
}
.property-status.apartada {
  background: #ffc107;
  color: #212529;
}
.property-status.vendida {
  background: #dc3545;
}

/* Precio */
.property-price {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: #0d6efd; /* Azul premium */
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px; /* Óvalo perfecto */
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.35);
}

/* Info */
.property-info {
  padding: 1.3rem 1.4rem 1.6rem;
}

.property-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #212529;
}

.property-location {
  font-size: 0.9rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.property-location i {
  color: #1a5d3b;
}

/* CTA */
.property-cta {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: #1a5d3b;
  transition: color 0.3s ease;
}

.property-card:hover .property-cta {
  color: #0d3622;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
}

/* Precio encima de la imagen */
.property-price-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #0d6efd; /* Azul profesional */
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 3;
}

/* Hover sutil */
.clickable-card:hover .property-price-badge {
  transform: translateY(-2px);
  transition: 0.3s ease;
}
