* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Cal Sans', 'Noto Sans', sans-serif;
    height: 100vh;
    overflow: hidden;
}

#map {
    width: calc(100% - 300px);
    height: calc(100vh - 60px);
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: calc(100vh - 60px);
    background: white;
    border-left: 1px solid #e0e0e0;
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar h1 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    padding-bottom: 10px;
}

.sidebar h2 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #007cbf;
    padding-bottom: 10px;
}

.sidebar p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-list:first-child {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cbf;
}

.stat-label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.stat-value {
    font-weight: 700;
    color: #007cbf;
    font-size: 16px;
    font-family: 'Space Mono', monospace;
}

.mapboxgl-popup-close-button {
    font-size: 18px !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 18px !important;
    text-align: center !important;
    background: #f5f5f5 !important;
    color: #666 !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-weight: bold !important;
    display: block !important;
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    margin: 0 !important;
    z-index: 10 !important;
}

.mapboxgl-popup-close-button:hover {
    background: #e0e0e0 !important;
    color: #333 !important;
}

.mapboxgl-popup-content {
    padding-top: 50px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 768px) {
    #map {
        width: 100%;
    }
    
    .sidebar {
        position: fixed;
        bottom: 60px;
        right: 0;
        left: 0;
        width: 100%;
        height: 200px;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }
    
    .stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .stat-item {
        flex: 1;
        min-width: calc(50% - 5px);
        padding: 8px 10px;
    }
    
    .stat-label, .stat-value {
        font-size: 12px;
    }
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    height: 60px;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.footer a {
    color: #007cbf;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

.footer p {
    margin: 0;
    font-size: 14px;
    color: #333;
    text-align: center;
    font-weight: 400;
}