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

/* Loading spinner overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-overlay.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 16px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    text-align: center;
}

/* Boat icon base class */
.boat-icon {
    width: 32px;
    height: 32px;
    display: block;
}

/* Rotated boat class using CSS custom property */
.rotated-boat {
    width: 32px;
    height: 32px;
    display: block;
    transform: rotate(var(--boat-rotation, 0deg));
    transition: transform 0.3s ease;
}

/* Tooltip styling for timestamps */
.leaflet-tooltip {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    border: none;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

/* Circle marker appearance (red dot) */
/* .leaflet-interactive.red-dot {
    fill: red;
    stroke: red;
    stroke-width: 1;
    opacity: 1;
    fill-opacity: 0.8;
} */
