html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

.foliumtooltip table { margin: auto; }
.foliumtooltip tr { text-align: left; }
.foliumtooltip th { padding: 2px; padding-right: 8px; }

.boat-marker { background: none; border: none; }

/* Dynamic (date-grouped) satellite layer control */
.leaflet-control-layers { padding-bottom: 0 !important; }
.layer-refresh-link {
    display: block; text-align: center; padding: 8px;
    border-top: 1px solid #ddd; margin-top: 5px; font-size: 12px;
    color: #0078A8; text-decoration: none; cursor: pointer;
}
.layer-refresh-link:hover { background-color: #f4f4f4; text-decoration: underline; }

/* Colorbar legend */
.colorbar-box {
    position: absolute;
    bottom: 60px; right: 10px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    pointer-events: auto;
    resize: both;
    overflow: hidden;
    min-width: 100px;
    min-height: 80px;
}
.colorbar-box.hidden { display: none; }
.colorbar-box-title {
    margin: 0 0 10px 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    opacity: 0.8;
}
.colorbar-box-content {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: stretch;
    height: calc(100% - 30px);
}
.colorbar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}
.colorbar-container img {
    height: 100%;
    width: auto;
    object-fit: contain;
}
