/* Pimlc - estilo inspirado en MercadoLibre Inmuebles */
.pimlc-ml-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin: 24px 0;
  padding: 0;
}

.pimlc-ml-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.pimlc-ml-link {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.pimlc-ml-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f5f5f5;
}

.pimlc-ml-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* Price badge (prominente) */
.pimlc-ml-price-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  background: rgba(255,255,255,0.95);
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  font-weight: 700;
  color: #111;
  font-size: 1rem;
}

/* Operation badge (venta / alquiler) */
.pimlc-ml-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  background: #00a650; /* verde ML */
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Body */
.pimlc-ml-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.pimlc-ml-title {
  font-size: 1rem;
  color: #222;
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

.pimlc-ml-location {
  color: #6b6b6b;
  font-size: 0.9rem;
  margin-top: 2px;
}

.pimlc-ml-features {
  margin-top: auto;
  color: #666;
  font-size: 0.9rem;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Hover */
.pimlc-ml-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

@media (max-width: 600px) {
  .pimlc-ml-image-wrap {
    height: 180px;
  }
}