/* Bedroom filter chips */
.bedroom-filter {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px;
    border-top: 1px solid #E2E8F0;
}

.bedroom-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 1200px;
    width: 100%;
}

.chip {
    padding: 6px 16px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    background: white;
    color: #4A5568;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip:hover {
    background: #e5e7eb;
}

.chip.active {
    background: #3b82f6;
    color: white;
    border-color: #2563eb;
}

.clear-all {
    padding: 4px 12px;
    color: #718096;
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.clear-all:hover {
    color: #4A5568;
}

/* Chart container */
.exposure-chart-container {
    position: relative;
    height: 400px;  /* Fixed height for the chart */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Custom legend styling */
.exposure-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.notice-color {
    background-color: #4A90E2;
}

.lease-color {
    background-color: #F5A623;
}

.legend-line {
    width: 24px;
    height: 2px;
    background-color: #2D3748;
    position: relative;
    top: 1px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .exposure-chart-container {
        height: 300px;  /* Shorter height on mobile */
        padding: 10px;
    }

    .exposure-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .bedroom-chips {
        gap: 8px;
    }

    .chip {
        padding: 4px 12px;
        font-size: 13px;
    }
}