/* Tour Itinerary Accordion Styles for Day Trip and Exclusive Tour (Shared) */

.tour-itinerary {
    margin: 2rem 0;
    width: 100%;
}

.tour-itinerary h2 {
    text-align: left;
}

.accordion {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.accordion-item {
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 1rem;
    background: #f8fafc;
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    color: #333;
    transition: background 0.2s ease;
    flex-wrap: wrap;
    gap: 0.5rem;
    box-sizing: border-box;
}

.accordion-header:hover {
    background: #edf2f7;
}

.accordion-item.active .accordion-header {
    background: #2b6cb0;
    color: white;
}

.time-slot {
    background: #4a5568;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.accordion-item.active .time-slot {
    background: white;
    color: #2b6cb0;
}

.day-title {
    flex: 1;
    text-align: left;
    font-size: 0.95rem;
}

.accordion-header i {
    margin-left: auto;
    flex-shrink: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
}

.accordion-content .day-content {
    padding: 1rem;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.timeline-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item h4 {
    font-family: 'Merriweather', serif;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0.25rem;
    text-align: left;
}

.timeline-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    .accordion-header {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .time-slot {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
    
    .day-title {
        font-size: 0.9rem;
    }
    
    .accordion-content .day-content {
        padding: 0.75rem;
    }
    
    .timeline-item {
        padding: 0.5rem 0;
    }
    
    .timeline-item h4 {
        font-size: 0.9rem;
    }
    
    .timeline-item p {
        font-size: 0.85rem;
    }
}

/* Styles for when time-slot is used for an icon */
.time-slot.icon-mode {
    background: transparent;
    padding: 0;
    margin-right: 0.5rem; /* Add some space between icon and title */
    font-size: 1.1rem;
    color: #4a5568; /* Match original background color for visibility */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.accordion-item.active .time-slot.icon-mode {
    background: transparent;
    color: white; /* Match active header text color */
}
