/* Custom CSS for Malta Trip Dashboard */

/* --- Keyframes & Animations --- */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 10s ease infinite;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }

/* --- Map Overrides --- */
/* Ensure map tiles have a slight modern feel */
.leaflet-container {
    font-family: 'Outfit', sans-serif !important;
}

/* Custom Marker styling */
.custom-marker {
    background: transparent;
    border: none;
}
.marker-pin {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 3px solid white;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}
.marker-pin::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid white;
}
.marker-pin.activity { border-color: #0bc5ea; color: #0bc5ea; }
.marker-pin.logistics { border-color: #a0aec0; color: #a0aec0; }
.marker-pin.transport { border-color: #f6ad55; color: #f6ad55; }

.custom-marker:hover .marker-pin {
    transform: scale(1.15) translateY(-4px);
    z-index: 1000;
}

/* Hide default leaflet attribution to keep it clean (or position it) */
.leaflet-control-attribution {
    display: none !important; 
}

/* --- Timeline Styles --- */
.timeline-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}
.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Transport/Uber specific styling */
.timeline-card.transport-alert {
    border-left: 4px solid #f6ad55;
    background: linear-gradient(to right, rgba(255, 246, 230, 0.4), white 15%);
}

.timeline-card:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Hide default routing UI */
.leaflet-routing-container {
    display: none !important;
}

/* --- Tabs & Modals --- */
.tab-btn.active {
    background-color: #e0f2fe;
    color: #0369a1;
}

/* Hide scrollbar for a cleaner look */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9; 
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}

/* --- Vintage Camera Filter --- */
.filter-vintage {
    filter: sepia(0.3) contrast(1.2) brightness(0.9) saturate(1.2) hue-rotate(-10deg);
}
