#updateButton {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}
#updatePButton {
    position: absolute;
    top: 20px;
    right: 140px;
    z-index: 1000;
}
.plane-icon {
    /* Enable smooth rotation transitions */
    transition: transform 0.3s ease-in-out;
}
#updateButton:hover {
    background-color: #f0f0f0;
}
body, html {
    margin: 0;
    overflow:hidden;
}
#map {
    height: calc(100dvh - 56px);
    position:absolute;
    width: 100%;

}
#windy {
    width: 100%;
    height: 45dvh;
    border: 2px solid #2d3748;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Style the zoom controls */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}
.leaflet-control-zoom a {
    background-color: #4a5568 !important;
    color: white !important;
    border: none !important;
}
.leaflet-control-zoom a:hover {
    background-color: #2d3748 !important;
}
/* Style the attribution */
.leaflet-control-attribution {
    background-color: rgba(45, 55, 72, 0.8) !important;
    color: white !important;
    padding: 4px 8px !important;
}
/* Style popups */
.info-box {
    padding: 12px 16px;
    background: #2d3748;
    color: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.info-box p {
    line-height: 3px;
}
.info-box h4 {
    margin: 0 0 8px 0;
    color: #90cdf4;
}
.leaflet-popup-content-wrapper {
    border-radius: 6px;
    padding: 0;
}
.leaflet-popup-content {
    margin: 0;
}
.leaflet-popup-tip {
    background: #2d3748;
}

.mapboxgl-popup-content p{
    margin-bottom: 0;
        line-height: 15px;
}
.mapboxgl-popup-content h4{
    margin: 0 0 8px 0;
    color: #90cdf4;
}
.mapboxgl-popup-content {
    padding: 12px 16px!important;
    background: #2d3748!important;
    color: white;
    border-radius: 6px!important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2)!important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

}

.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    border-top-color: #2d3748!important;
}

#SatToggle {
    position: absolute;
    right: 20px;
    top: 80px;
}
#terrainToggle {
    position: absolute;
    right: 20px;
    top: 130px;
}
#aircraftToggle {
    position: absolute;
    right: 20px;
    top: 30px;
}
#fireSmokeToggle {
    position: absolute;
    right: 20px;
    top: 180px;
}

.firesmoke-time-label {
    background: rgba(45, 55, 72, 0.88);
    border-radius: 4px;
    color: #fff;
    display: none;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    right: 20px;
    padding: 7px 10px;
    position: absolute;
    z-index: 1000;
    top: 230px;
}


.sat {
    right: 110px;
}

.aircraft {
    right: 200px;
}

.firesmoke {
    right: 290px;
}

.timer {
    right: 295px;
}

.map-button:hover,
.map-toggle:hover {
    background: #f0f0f0;
}

.map-button, .map-toggle, #updateButton, #updatePButton {
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif;
    cursor: pointer;
    z-index: 1000;
    border-radius: 4px;
    padding: 10px;
}
#updateButton, #updatePButton {/* hide these for now */
    display: none;
}
.map-toggle {
    align-items: center;
    display: flex;
    gap: 8px;
    height: 42px;
    min-width: 82px;
    padding: 7px 9px;
}

.toggle-label {
    color: #2d3748;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    min-width: 30px;
    text-align: left;
}

.toggle-track {
    background: #cbd5e0;
    border-radius: 999px;
    display: inline-flex;
    height: 20px;
    padding: 2px;
    transition: background 0.2s ease;
    width: 38px;
}

.toggle-thumb {
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    height: 16px;
    transform: translateX(0);
    transition: transform 0.2s ease;
    width: 16px;
}

.map-toggle.is-on .toggle-track {
    background: #2f855a;
}

.map-toggle.is-on .toggle-thumb {
    transform: translateX(18px);
}

.plane-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.altitude-line {
    width: 1px;
    background: rgba(255, 255, 255, 0.5);
    position: absolute;
    bottom: 12px; /* Half of marker height */
    z-index: -1;
}

.marker img {
    transition: transform 0.3s ease;
}

.locationbuttons {
    justify-content: center;
}

.locationbuttons button {
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    cursor: pointer;
    z-index: 1000;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 5px;
}

.locationbuttons {
    position: absolute;
    bottom: 40px;
    width: 120px;
    height: 200px;
    display: flex;
    left: 0;
    padding: 7px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    background: #fff;
    flex-direction: column;
    
}
