body{margin:0;font-family:sans-serif;}
#map{height:100%;min-height:400px;background:#f4f6f9;position:relative;overflow:hidden;}
#searchBox{position:absolute;top:10px;left:10px;z-index:999;padding:6px;}
.reset-map-btn {
    position: absolute;
    top: 10px;
    left: 220px;
    z-index: 999;
    padding: 6px 12px;
    background: #6C5CE7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.reset-map-btn:hover {
    background: #5a4ad1;
}
.view-dashboard-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: linear-gradient(135deg, #6C5CE7, #0984E3);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.view-dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}
#legend{position:absolute;bottom:10px;left:10px;background:#fff;padding:8px;font-size:12px;}
#legend span{display:inline-block;width:15px;height:10px;margin-right:5px;}

/* Two column layout */
.map-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    height: 500px;
}

.map-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.map-column #map {
    flex: 1;
    min-height: 400px;
}

.district-data-column {
    width: 40%;
    flex-shrink: 0;
}

.district-data-panel {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
}

.district-data-panel h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #6C5CE7;
    padding-bottom: 10px;
}

#districtInfo {
    padding: 10px 0;
}

#districtInfo p {
    margin: 10px 0;
    color: #555;
}

#districtInfo .district-name {
    font-size: 20px;
    font-weight: bold;
    color: #6C5CE7;
}

#districtInfo .data-label {
    font-weight: 600;
    color: #333;
}

.placeholder-text {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 40px 0;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 20px 0;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-btn {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.close-btn:hover {
    color: #000;
}

#modalTitle {
    margin-top: 0;
    color: #333;
}

#modalBody p {
    margin: 10px 0;
    color: #555;
}
