    body, html {
        margin: 0;
        padding: 0;
        height: 100%;
        font-family: Arial, sans-serif;
    }
    
    .container {
        display: flex;
        flex-direction: column; 
        height: 100vh;
    }
    
    #map {
        position: sticky;
        top: 0;
        height: 50vh;
        width: 100%;
        z-index: 10;
    }
    
    #sidebar {
        flex: 1;
        padding: 10px;
        background: #EEEEEE;
        overflow-y: auto;
    }
    
    @media (min-width: 1024px) {
        .container {
            flex-direction: row;
            height: 100vh;
            overflow: hidden;
        }
    
        #map {
            flex: 1;
            height: 100vh;
            position: sticky;
            top: 0;
            width: auto;
        }
    
        #sidebar {
            flex: 1;
            overflow-y: auto;
            height: 100vh;
            border-left: 1px solid #ccc;
        }
    }

    #sidebar strong {
        font-size: 36px;
        color: #333;
        font-weight: bold;
        text-align: center;
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .temp-icon div {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        line-height: 30px;
        text-align: center;
        color: black;
        font-weight: bold;
        font-size: 14px;
        border: 2px solid white;
        box-shadow: 0 0 4px rgba(0,0,0,0.5);
        transition: transform 0.2s ease;
    }

    .leaflet-control-legend {
        background: #fff;
        padding: 10px;
        border-radius: 6px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.3);
        font-family: Arial, sans-serif;
        font-size: 12px;
        line-height: 1.2;
        width: 300px;
    }
    
    .legend-title {
        font-weight: bold;
        text-align: center;
        margin-bottom: 6px;
    }
    
    .legend-title-top {
        font-weight: bold;
        text-align: center;
    }
    
    .legend-scale {
        display: flex;
        height: 12px;
        margin-bottom: 4px;
        overflow: hidden;
        border: 1px solid #ccc;
        border-radius: 3px;
    }
    
    .legend-step {
        flex: 1;
    }
    
    .legend-labels {
        position: relative;
        height: 1em;
    }
    
    .legend-label {
        position: absolute;
        top: 0;
        font-size: 11px;
        color: #333;
        white-space: nowrap;
    }

    
    #heatmap td {
        height: 30px;
        width: 30px;
        text-align: center;
        border: 1px solid #ddd;
    }
    
    #tempcurve-container {
        overflow: visible;
    }
    
    #temp-curve-plot {
        width: 100%;
        height: 300px;
        cursor: pointer;
        pointer-events: auto;
    }

    #custom-tooltip {
        background: rgba(0, 0, 0, 0.7);
        color: white;
        font-size: 12px;
        padding: 6px 8px;
        border-radius: 4px;
        pointer-events: none;
        white-space: pre-line;
        box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    }
    
    #dropdown, #dropdown-bottom {
        text-align: center;
        margin-top: 20px;
    }
    
    #dropdown select,
    #dropdown-bottom select {
        font-size: 1em;
        padding: 8px 12px;
        margin: 4px 4px;
        border: 1px solid #ccc;
        border-radius: 6px;
        background-color: #f9f9f9;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        transition: border-color 0.3s, box-shadow 0.3s;
    }
    
    #dropdown select:focus,
    #dropdown-bottom select:focus {
        outline: none;
        border-color: green;
        box-shadow: 0 0 5px rgba(0, 122, 204, 0.5);
    }
    
    #dropdown button,
    #dropdown-bottom button {
        font-size: 1em;
        padding: 6px 12px;
        margin: 4px 4px;
        border: none;
        border-radius: 6px;
        background-color: #78BFD6;
        color: white;
        cursor: pointer;
        transition: background-color 0.3s;
    }
    
    #dropdown button:hover,
    #dropdown-bottom button:hover {
        background-color: #FB9171;
    }
