/* Day Group Visualization */
.timeline-day-group {
    margin-bottom: 30px;
    border-left: 2px dashed #cbd5e1;
    padding-left: 20px;
    position: relative;
}

.timeline-day-header {
    background: linear-gradient(135deg, var(--dark-blue), #334155);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    left: -32px;
}

/* Itinerary Item (Card) */
.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
    align-items: flex-start;
    transition: all 0.2s ease;
    cursor: grab;
}

.timeline-item.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.timeline-item.drag-over {
    border-top: 2px solid var(--primary-sky);
    margin-top: 10px;
}

/* Icons on the timeline */
.timeline-icon-marker {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 3px solid #e2e8f0;
    z-index: 2;
    position: relative;
    left: -42px;
    margin-right: -42px;
}

.timeline-icon-marker.morning {
    border-color: #fca5a5;
    color: #ef4444;
}

.timeline-icon-marker.afternoon {
    border-color: #fcd34d;
    color: #d97706;
}

.timeline-icon-marker.evening {
    border-color: #818cf8;
    color: #4f46e5;
}

.itinerary-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    flex: 1;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.itinerary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.itinerary-card .card-image-header {
    background: #e2e8f0;
}

.itinerary-card .card-body {
    padding: 15px;
}

.card-title {
    font-size: 1.1rem;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.card-description {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 15px;
    line-height: 1.5;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-action {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border-radius: 8px;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-action.primary {
    background: #f1f5f9;
    color: var(--text-dark);
}

.btn-action.primary:hover {
    background: #e2e8f0;
}

.btn-action.secondary {
    background: #ecfdf5;
    color: var(--primary-green);
}

.btn-action.secondary:hover {
    background: #d1fae5;
}