body {
    font-family: Arial, sans-serif;
}
.container {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
}

.chart-container {
    margin: 60px auto;
    height: 620px;
    background: #fff;
    padding: 40px 25px 70px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    position: relative;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;      /* Allows buttons to wrap to the next line */
    justify-content: center; /* Center them horizontally */
    gap: 4px;            /* Space between buttons */
    margin-bottom: 30px;
}

.filter-buttons button {
    padding: 12px 18px;
    margin: 0 10px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    background: #e0e0e0;
    color: #333;
}

.filter-buttons button.active,
.filter-buttons button:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.house-card {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto 40px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.house-card .image {
    flex: 0 0 250px; /* fixed width */
    display: flex;
}

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


.house-card .info {
    flex: 1;
    padding: 20px;
}

.house-card h2 {
    margin: 0 0 15px 0;
    font-size: 1.8rem;
    color: #34495e;
}

.house-card p {
    margin: 6px 0;
    font-size: 1rem;
}

.house-card p strong {
    color: #2c3e50;
}

/* Scatter Plot */
.chart-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto 60px auto;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}