/* Tour Itinerary Accordion Styles for Multi-Day Tour */

.tour-itinerary {
    margin: 2rem 0;
    width: 100%;
}

.tour-itinerary h2 {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #1a202c;
}

/* Main Accordion Container */
.accordion {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.accordion-item {
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
}

.accordion-item:last-child {
    border-bottom: none;
}

/* Day Header */
.accordion-header {
    width: 100%;
    padding: 1.1rem 1.25rem;
    background: #f8fafc;
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    color: #333;
    transition: all 0.25s ease;
    gap: 0.75rem;
    box-sizing: border-box;
}

.accordion-header:hover {
    background: #edf2f7;
}

.accordion-item.active > .accordion-header {
    background: linear-gradient(135deg, #2b6cb0, #2c5282);
    color: white;
}

/* Day Number Badge */
.day-number {
    background: #2b6cb0;
    color: white;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.accordion-item.active > .accordion-header .day-number {
    background: rgba(255,255,255,0.95);
    color: #2b6cb0;
}

/* Day Title */
.day-title {
    flex: 1;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Chevron Icon */
.accordion-header > i {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.accordion-item.active > .accordion-header > i {
    opacity: 1;
}

/* Accordion Content */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    width: 100%;
    background: #fff;
}

.accordion-content .day-content {
    padding: 1.25rem;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.day-intro {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e2e8f0;
}

/* ========================================= */
/* Nested Points - Timeline Design           */
/* ========================================= */

.nested-accordion {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    width: 100%;
    box-shadow: none;
}

.nested-accordion .accordion-item.point-item {
    border: none;
    border-bottom: none;
    margin: 0;
    background: transparent;
    position: relative;
}

/* Timeline Line */
.nested-accordion .accordion-item.point-item::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #cbd5e0 0%, #e2e8f0 100%);
}

.nested-accordion .accordion-item.point-item:last-child::before {
    display: none;
}

/* Point Header - Timeline Style */
.nested-accordion .accordion-header.point-header {
    background: transparent;
    padding: 0.85rem 0.5rem 0.85rem 0.25rem;
    font-size: 0.95rem;
    border-radius: 0;
    color: #2d3748;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.nested-accordion .accordion-header.point-header:hover {
    background: transparent;
    color: #2b6cb0;
}

.nested-accordion .accordion-item.active > .accordion-header.point-header {
    background: transparent;
    color: #2b6cb0;
}

/* Point Icon (Circle) */
.nested-accordion .time-slot.icon-mode {
    background: #fff;
    border: 3px solid #cbd5e0;
    color: #718096;
    padding: 0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    position: relative;
    z-index: 1;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nested-accordion .accordion-header.point-header:hover .time-slot.icon-mode {
    border-color: #2b6cb0;
    color: #2b6cb0;
    transform: scale(1.1);
}

.nested-accordion .accordion-item.active .time-slot.icon-mode {
    background: #2b6cb0;
    border-color: #2b6cb0;
    color: white;
    box-shadow: 0 3px 8px rgba(43, 108, 176, 0.3);
}

/* Point Title */
.nested-accordion .point-header .day-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: inherit;
    flex: 1;
    margin-right: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chevron for Points */
.nested-accordion .accordion-chevron {
    font-size: 0.7rem;
    color: #a0aec0;
    flex-shrink: 0;
    padding-left: 0.5rem;
    transition: all 0.2s ease;
}

.nested-accordion .accordion-header.point-header:hover .accordion-chevron {
    color: #2b6cb0;
}

.nested-accordion .accordion-item.active .accordion-chevron {
    color: #2b6cb0;
    transform: rotate(180deg);
}

/* Point Content */
.nested-accordion .accordion-content {
    background: transparent;
}

.nested-accordion .accordion-content .point-content {
    padding: 0.25rem 2.5rem 1rem 1.5rem;
    margin-left: 15px;
    border-left: 2px solid #e2e8f0;
    background: transparent;
    color: #4a5568;
    font-size: 0.88rem;
    line-height: 1.65;
    text-align: justify;
}

.nested-accordion .accordion-content .point-content p {
    margin: 0;
    padding: 0.5rem 0;
    background: transparent;
    text-align: justify;
}

/* No Points Message */
.text-muted {
    color: #a0aec0;
    font-style: italic;
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
    background: #f7fafc;
    border-radius: 8px;
}

/* ========================================= */
/* Responsive Design                         */
/* ========================================= */

@media (max-width: 768px) {
    .accordion-header {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .day-number {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }

    .day-title {
        font-size: 0.88rem;
    }

    .accordion-content .day-content {
        padding: 1rem;
    }

    .nested-accordion .accordion-header.point-header {
        padding: 0.7rem 0;
    }

    .nested-accordion .time-slot.icon-mode {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 0.65rem;
    }

    .nested-accordion .point-header .day-title {
        font-size: 0.85rem;
    }

    .nested-accordion .accordion-content .point-content {
        padding: 0.2rem 0 1rem 2.5rem;
        margin-left: 13px;
        font-size: 0.85rem;
    }

    .nested-accordion .accordion-item.point-item::before {
        left: 12px;
        top: 36px;
    }
}

@media (max-width: 480px) {
    .tour-itinerary h2 {
        font-size: 1.25rem;
    }

    .accordion-header {
        padding: 0.8rem;
        flex-wrap: wrap;
    }

    .nested-accordion .accordion-content .point-content {
        padding-left: 2rem;
        margin-left: 10px;
    }

    .nested-accordion .accordion-content .point-content p {
        padding: 0.6rem 0.8rem;
    }
}
