:root {
    --primary: #c4a484;
    --bg: #0f1115;
    --text: #e0e0e0;
    --accent: #ff4d4d;
    --glass: rgba(20, 22, 26, 0.85);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow: hidden;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    padding: 1.5rem 2rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.2rem;
}

main {
    flex: 1;
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
    background: #1a1c20;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

#info-panel {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 320px;
    padding: 20px;
    z-index: 1000;
}

.info-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--primary);
}

#point-date {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 12px;
}

#point-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.controls {
    display: flex;
    gap: 8px;
}

button {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

button:hover {
    background: var(--primary);
    color: black;
}

#play-btn {
    background: rgba(196, 164, 132, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

#play-btn:hover {
    background: var(--primary);
    color: black;
}

#legend {
    position: absolute;
    bottom: 30px;
    right: 30px;
    padding: 16px;
    z-index: 1000;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.line {
    width: 30px;
    height: 3px;
    border-radius: 2px;
}

.outward {
    background: var(--accent);
    border-bottom: 2px dashed rgba(255,255,255,0.3);
}

.return {
    background: #4d94ff;
    border-bottom: 2px dashed rgba(255,255,255,0.3);
}

/* Leaflet Overrides */
.leaflet-container {
    background: #0f1115 !important;
}

.leaflet-bar {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}

.leaflet-bar a {
    background-color: var(--glass) !important;
    color: var(--text) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    backdrop-filter: blur(8px);
}

/* Ship Marker Animation */
.ship-icon {
    transition: all 0.5s linear;
}
