body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #eceff1;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: auto;
}

header {
    margin-bottom: 20px;
}

.controls {
    display: flex;
    gap: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

select, 
input {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    min-width: 150px;
}

.map-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#map {
    height: 700px;
    width: 100%;
}

.bar-container {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 480px;

    max-height: 85vh;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    
    display: flex;
    flex-direction: column;
    overflow: hidden; 
}

.bar-header {
    padding: 15px 20px 10px 20px;
    border-bottom: 1px solid #eee;
    background: white;
    flex-shrink: 0;
}

.bar-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    background: white;
}

.bar-footer {
    padding: 12px;
    border-top: 1px solid #eee;
    background: #fcfcfc;
    flex-shrink: 0;
}

.hidden {
    display: none;
}

.close-btn {
    float: right;
    border: none;
    background: none;
    font-size: 24px;
    line-height: 20px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #e74c3c;
}

#barTitle {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #2c3e50;
    padding-right: 25px;
}

.legend {
    text-align: center;
    font-size: 0.9em;
    font-weight: 500;
}

.sold {
    color: #3498db;
}

.forecast {
    color: #e74c3c;
}

.xlabel {
    text-align: center;
    font-size: 0.85em;
    color: #7f8c8d;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bar-body::-webkit-scrollbar {
    width: 6px;
}

.bar-body::-webkit-scrollbar-thumb {
    background: #dcdde1;
    border-radius: 10px;
}

.bar-body::-webkit-scrollbar-thumb:hover {
    background: #bdc3c7;
}