/**
 * Itinerary Timeline Styles
 * Vertical timeline for tour itinerary display
 */

.itinerary-timeline {
    position: relative;
    padding: var(--spacing-lg) 0;
    margin: var(--spacing-lg) 0;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

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

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 48px;
    bottom: -24px;
    width: 2px;
    background: linear-gradient(to bottom, #1aabe7 0%, #46c7f0 100%);
    opacity: 0.3;
}

.timeline-marker {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    z-index: 1;
}

.timeline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #003284 0%, #1aabe7 100%);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 50, 132, 0.25);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 50, 132, 0.35);
}

.timeline-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.timeline-content {
    flex: 1;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: var(--spacing-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #1aabe7;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.timeline-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #003284;
    line-height: 1.3;
}

.timeline-date {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    background: #f0f5ff;
    padding: 4px 12px;
    border-radius: 6px;
}

.timeline-time {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.timeline-time span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
}

.time-arrival {
    color: #16a34a;
    background: #f0fdf4;
}

.time-arrival svg {
    stroke: #16a34a;
}

.time-departure {
    color: #dc2626;
    background: #fef2f2;
}

.time-departure svg {
    stroke: #dc2626;
}

.timeline-notes {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-item {
        gap: var(--spacing-md);
    }
    
    .timeline-item:not(:last-child)::before {
        left: 20px;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
    }
    
    .timeline-icon {
        width: 40px;
        height: 40px;
    }
    
    .timeline-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .timeline-header {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .timeline-title {
        font-size: 18px;
    }
    
    .timeline-date {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .itinerary-timeline {
        padding: var(--spacing-md) 0;
    }
    
    .timeline-item {
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
    
    .timeline-marker {
        width: 36px;
        height: 36px;
    }
    
    .timeline-icon {
        width: 36px;
        height: 36px;
    }
    
    .timeline-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .timeline-content {
        padding: var(--spacing-sm);
    }
    
    .timeline-time {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}
