/* Timeline Components */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-day {
    margin-bottom: 40px;
    position: relative;
}

.timeline-day:before {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: -20px;
    width: 2px;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

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

.day-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.day-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    position: relative;
    z-index: 2;
}

.day-info h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 5px;
}

.day-info p {
    color: #64748b;
    font-size: 0.9rem;
}

.timeline-activities {
    margin-left: 75px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #22c55e;
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.activity-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.activity-time {
    background: #22c55e;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.activity-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.activity-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #64748b;
}

.activity-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.activity-meta i {
    color: #22c55e;
}

/* Attractions Components */
.attractions-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.attraction-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.attraction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.attraction-image {
    height: 200px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    position: relative;
    overflow: hidden;
}

.attraction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.attraction-card:hover .attraction-image img {
    transform: scale(1.05);
}

.attraction-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #22c55e;
    backdrop-filter: blur(10px);
}

.attraction-content {
    padding: 20px;
}

.attraction-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.3;
}

.attraction-category {
    display: inline-block;
    background: #f1f5f9;
    color: #22c55e;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.attraction-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.attraction-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ffd700;
    font-size: 0.9rem;
}

.star.empty {
    color: #e2e8f0;
}

.rating-text {
    font-size: 0.85rem;
    color: #64748b;
}

.attraction-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.attraction-price {
    font-weight: 700;
    color: #2d3748;
}

.attraction-duration {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.attraction-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-add {
    background: #10b981;
    color: white;
    flex: 1;
}

.btn-add:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-remove {
    background: #ef4444;
    color: white;
    flex: 1;
}

.btn-remove:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-info {
    background: #f1f5f9;
    color: #22c55e;
    padding: 8px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-info:hover {
    background: #e2e8f0;
}

/* Intermediate Cities */
.intermediate-city {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.intermediate-city .city-input {
    flex: 1;
}

.remove-city-btn {
    background: #ef4444;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remove-city-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Loading States */
.loading-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: loadingDots 1.5s infinite;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDots {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Progress Indicators */
.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.progress-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 20px;
    left: 100%;
    width: 20px;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.progress-step.completed:not(:last-child):after {
    background: #22c55e;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: #22c55e;
    color: white;
    animation: pulse 2s infinite;
}

.progress-step.completed .step-circle {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #22c55e;
    font-weight: 600;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Error States */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.error-message i {
    color: #ef4444;
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.success-message i {
    color: #22c55e;
}

/* Mobile Specific */
@media (max-width: 768px) {
    .timeline-activities {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .timeline-day:before {
        left: 30px;
        top: 80px;
    }
    
    .attractions-container {
        grid-template-columns: 1fr;
    }
    
    .activity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .progress-step:not(:last-child):after {
        display: none;
    }
}

@media (max-width: 480px) {
    .attraction-card {
        margin: 0 -10px;
    }
    
    .timeline-container {
        padding: 10px;
    }
    
    .activity-item {
        padding: 15px;
    }
    
    .day-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .timeline-activities {
        margin-left: 65px;
    }
    
    .timeline-day:before {
        left: 25px;
    }
} 