body {
    -webkit-tap-highlight-color: transparent;
}

.fade-in {
    animation: fadeIn 0.35s ease-out forwards;
}

.slide-up {
    animation: slideUp 0.45s ease-out forwards;
}

.sidebar-link.active {
    background-color: #111827;
    border-left: 4px solid #2563eb;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.8rem;
    top: 2rem;
    bottom: -1rem;
    width: 2px;
    background-color: #e2e8f0;
}

.timeline-item:last-child::before {
    display: none;
}

.hud-panel {
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1200;
    pointer-events: auto;
}

.custom-popup .leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.95);
    color: white;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    padding: 0;
}

.custom-popup .leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.95);
}

.custom-popup .leaflet-popup-content {
    margin: 0;
    width: 280px !important;
}

.leaflet-container a.leaflet-popup-close-button {
    color: #94a3b8;
    font-size: 20px;
    padding: 8px;
}

#view-map.map-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 5000 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    max-width: none !important;
    min-height: 100vh !important;
    border-radius: 0 !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
