* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.header {
    background-color: #f9f9f9;
    padding: 0px 30px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: 60px;
}

.logo {
    height: 40px;
    width: auto;
    margin-right: 20px;
    display: flex;
    align-self: center;
}

.header-title {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.container {
    display: flex;
    height: calc(100vh - 60px);
    margin-top: 60px;
}

#map-container {
    flex: 1;
    height: 100%;
    box-shadow: inset -2px 0 5px rgba(0,0,0,0.1);
}

#map {
    height: 100%;
    width: 100%;
}

/* Sidebar Base Styles */
#sidebar {
    width: 45%;
    height: 100%;
    background-color: #f8f9fa;
    overflow-y: auto;
    padding: 0;
    border-left: 1px solid #eaeaea;
}

/* Search Container */
.search-container {
    padding: 24px;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#search {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #eaeaea;
    border-radius: 12px;
    font-size: 15px;
    background-color: white;
    transition: all 0.2s ease;
    color: #2c3e50;
}

#search:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

#search::placeholder {
    color: #95a5a6;
    font-weight: 500;
}

/* Areas Container */
.areas-container {
    padding: 20px;
}

.area-group {
    background-color: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.area-group:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.area-group h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f2f5;
    text-transform: none;
    letter-spacing: 0;
}

/* Area Buttons */
.area-button {
    width: 100%;
    padding: 16px;
    margin-bottom: 12px;
    background-color: #f8f9fa;
    border: none;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 500;
    color: #34495e;
    display: flex;
    align-items: center;
    position: relative;
}

.area-button:last-child {
    margin-bottom: 0;
}

.area-button:hover {
    background-color: #edf2f7;
    transform: translateX(4px);
    box-shadow: none;
}

.area-button::after {
    content: '→';
    position: absolute;
    right: 16px;
    opacity: 0;
    transition: all 0.2s ease;
}

.area-button:hover::after {
    opacity: 1;
    transform: translateX(4px);
}

/* Scrollbar Styling */
#sidebar::-webkit-scrollbar {
    width: 8px;
}

#sidebar::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
    border: 2px solid #f8f9fa;
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Map Controls */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

.leaflet-control-zoom a {
    border: none !important;
    background-color: white !important;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 5px;
}

.leaflet-popup-content {
    margin: 10px;
    min-width: 200px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #sidebar {
        width: 100%;
    }
    
    .area-group {
        padding: 20px;
    }
    
    .area-button {
        padding: 14px;
    }
}