.grilla-propiedades {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.propiedad {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.2s;
}

.propiedad:hover {
    transform: translateY(-5px);
}

.tipo-propiedad {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 1;
}

.propiedad .imagen {
    height: 200px;
    overflow: hidden;
}

.propiedad .imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.propiedad .contenido {
    padding: 1.5rem;
}

.propiedad h3 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    color: #333;
}

.ubicacion {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    margin-bottom: .8rem;
}

.caracteristicas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.caracteristica {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.caracteristica span {
    display: block;
    font-weight: bold;
    color: #333;
    font-size: .8rem;
}

.precio {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 1rem 0 0;
}

.periodo {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}

.propiedad a {
    text-decoration: none;
    color: inherit;
}

.expensas {
    font-size: 0.9rem;
    color: #8c8c8c;
    margin: 1rem 0 0;
}


.filtros-propiedades {
    margin-bottom: 2rem;
    padding: 2rem;
    background: #f5f5f5;
    border-radius: 8px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.form-filtros {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: nowrap;
}

.filtro-grupo {
    flex: 1;
    min-width: 0; /* Esto evita que los select se desborden */
}

.filtro-grupo label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.filtro-grupo select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.boton-filtrar {
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 42px; /* Ajusta esto según la altura de tus select */
    margin-top: 24px; /* Para alinearlo con los select */
}

.boton-filtrar:hover {
    background: #0056b3;
    color: white
}

@media (width < 400px) {
    .form-filtros {
        flex-direction: column;
        align-items: stretch;
    }
}