/* Seekarte under timeline; soft swell ribbons; line-drawn symbols */

body.timemap-seekarte .leaflet-container {
    background-color: var(--seekarte-ocean-fallback, #1a4a5c);
}

.leaflet-pane.seekarteSeaPane,
.leaflet-pane.seekarteLandPane,
.leaflet-pane.seekarteTerrainPane,
.leaflet-pane.seekarteDecorPane,
.leaflet-pane.seekarteWavePane {
    pointer-events: none;
}

.leaflet-pane.seekarteSeaPane .seekarte-sea-overlay,
.seekarte-sea-overlay {
    filter: saturate(0.88) brightness(0.96) contrast(1.06);
}

.seekarte-swell-canvas {
    pointer-events: none !important;
}

/* While editing routes, handles sit above timeline and catch pointer */
body.timemap-seekarte-editing .leaflet-pane.seekarteDecorPane {
    pointer-events: auto !important;
}

body.timemap-seekarte-editing .leaflet-overlay-pane {
    pointer-events: none !important;
}

.seekarte-vertex {
    cursor: grab !important;
}

.seekarte-vertex:active {
    cursor: grabbing !important;
}

.seekarte-vertex-tip {
    font-size: 11px;
    background: #f3ead7;
    border: 1px solid #6b5438;
    color: #4a3b28;
}

path.seekarte-river,
path.seekarte-caravan {
    fill: none !important;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.seekarte-land {
    filter: drop-shadow(0 1px 0 rgba(55, 40, 25, 0.22));
}

.seekarte-coast {
    pointer-events: none;
}

.seekarte-symbol,
.seekarte-mountain,
.seekarte-compass,
.seekarte-boat,
.seekarte-label {
    background: transparent !important;
    border: none !important;
    pointer-events: none;
}

.seekarte-symbol-svg {
    opacity: 0.82;
    overflow: visible;
}

.seekarte-depth {
    display: inline-block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 9px;
    font-style: italic;
    color: #2a4a55;
    opacity: 0.7;
    letter-spacing: 0.02em;
    text-shadow: 0 0 2px rgba(220, 240, 245, 0.9);
}

.seekarte-basemap-control {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.seekarte-switch {
    display: inline-flex;
    align-items: stretch;
    padding: 3px;
    border-radius: 999px;
    background: rgba(28, 36, 44, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.28),
        0 8px 20px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.seekarte-switch-opt {
    appearance: none;
    border: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: transparent;
    color: rgba(240, 236, 228, 0.72);
    font-family: "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    transition:
        background 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.seekarte-switch-opt:hover {
    color: #f7f3ea;
}

.seekarte-switch-opt:focus-visible {
    outline: 2px solid rgba(232, 214, 170, 0.85);
    outline-offset: 2px;
}

.seekarte-switch-opt.is-active {
    background: linear-gradient(180deg, #f4ead7 0%, #e7d7b8 100%);
    color: #3d3224;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.seekarte-switch-icon {
    display: inline-flex;
    opacity: 0.9;
}

.seekarte-admin-btns a {
    width: auto !important;
    min-width: 26px;
    padding: 0 8px;
    line-height: 26px;
    font-size: 12px;
    font-family: Georgia, "Times New Roman", serif;
    color: #4a3b28;
    background: #f3ead7;
    display: block;
}

.seekarte-admin-btns a:hover {
    background: #ebe0c8;
}

/* Legacy class kept for any cached markup */
.seekarte-toggle a {
    width: auto !important;
    min-width: 26px;
    padding: 0 8px;
    line-height: 26px;
    font-size: 12px;
    font-family: Georgia, "Times New Roman", serif;
    color: #4a3b28;
    background: #f3ead7;
    display: block;
}

.seekarte-toggle a:hover {
    background: #ebe0c8;
}

.seekarte-label span {
    display: inline-block;
    color: #4e3b28;
    font-family: "Palatino Linotype", Palatino, Georgia, serif;
    font-style: italic;
    letter-spacing: 0.05em;
    text-shadow:
        0 0 3px rgba(237, 217, 176, 0.95),
        0 0 8px rgba(237, 217, 176, 0.75);
    white-space: nowrap;
    opacity: 0.9;
}

.seekarte-compass-svg {
    width: 72px;
    height: 72px;
    opacity: 0.92;
    filter: drop-shadow(0 1px 1px rgba(60, 40, 20, 0.25));
}

.seekarte-boat-svg {
    width: 28px;
    height: 28px;
    opacity: 0.95;
    filter: drop-shadow(0 1px 1px rgba(40, 30, 20, 0.3));
    animation: seekarte-boat-bob 5.5s ease-in-out infinite;
}

@keyframes seekarte-boat-bob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-2px) rotate(2deg); }
}

path.seekarte-route {
    animation: seekarte-dash 40s linear infinite;
}

@keyframes seekarte-dash {
    to { stroke-dashoffset: -160; }
}

body.timemap-seekarte-editing .leaflet-container {
    cursor: crosshair;
}

body:not(.timemap-seekarte-editing) .seekarte-vertex {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .seekarte-swell-canvas,
    .seekarte-boat-svg,
    path.seekarte-route {
        animation: none !important;
    }
    .seekarte-swell-canvas {
        display: none !important;
    }
}
