/* Houses list — filters and cards. Variables: site.css */

.filter-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.house-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.house-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.house-card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-bottom: 3px solid var(--main-red);
}

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

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

.house-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--main-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.house-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.house-address {
    font-weight: 800;
    color: var(--main-blue);
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

.house-address i {
    color: var(--main-red);
    margin-right: 8px;
}

.house-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.house-specs li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #eaeaea;
    font-size: 0.9rem;
    color: #555;
}

.house-specs li:last-child {
    border-bottom: none;
}

.spec-label {
    color: #888;
}

.spec-value {
    font-weight: 600;
    color: var(--main-blue);
}

.btn-house {
    color: var(--main-blue);
    border: 1px solid var(--main-blue);
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 20px;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    margin-top: auto;
}

.btn-house:hover {
    background-color: var(--main-blue);
    color: #fff;
}

@media (max-width: 768px) {
    .filter-box {
        padding: 15px;
        margin-bottom: 20px;
    }

    .house-card-body {
        padding: 20px;
    }

    .house-address {
        font-size: 1.05rem;
    }
}
