/* Timeline Styles */
.itinerary {
  padding: 6rem 0;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--delay, 0);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--primary-color);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-connector {
  position: absolute;
  left: 50%;
  width: 4px;
  background: #e0e0e0;
  top: 24px;
  bottom: -3rem;
  margin-left: -2px;
  z-index: 1;
}

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

.timeline-content {
  position: relative;
  width: calc(50% - 40px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.timeline-item:nth-child(odd) .timeline-content {
  left: 0;
  margin-right: auto;
  margin-left: 40px;
}

.timeline-item:nth-child(even) .timeline-content {
  left: calc(50% + 40px);
  margin-left: 0;
}

.timeline-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.day-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-right: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.timeline-header i {
  font-size: 1.25rem;
  color: #888;
  transition: transform 0.3s ease;
}

.timeline-item.expanded .timeline-header i {
  transform: rotate(180deg);
}

.timeline-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  opacity: 0;
}

.timeline-item.expanded .timeline-details {
  max-height: 1000px;
  opacity: 1;
}

.timeline-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.timeline-highlights span {
  background: #f8f9fa;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #555;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.timeline-highlights i {
  color: var(--accent-color);
  font-size: 0.9em;
}

.timeline-content p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.timeline-features {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed #e0e0e0;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.95rem;
}

.feature i {
  color: var(--accent-color);
  font-size: 1.1rem;
}

/* Hover Effects */
.timeline-item:hover .timeline-dot {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.timeline-highlights span:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-highlights span:hover i {
  color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
  .timeline::before {
    left: 40px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: calc(100% - 80px);
    left: 80px;
    margin-left: 0;
  }
  
  .timeline-dot {
    left: 40px;
    transform: translateX(-50%);
  }
  
  .timeline-connector {
    left: 40px;
  }
}

@media (max-width: 576px) {
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: calc(100% - 60px);
    left: 60px;
    padding: 1.5rem 1rem;
  }
  
  .timeline-header h3 {
    font-size: 1.25rem;
  }
  
  .day-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-right: 1rem;
  }
  
  .timeline-highlights {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .timeline-features {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Animation for timeline items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
