/* Modern Trip Content Styles */

/* Section styling */
.trip-section {
    margin-bottom: 2.5rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trip-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* Optional: Keep hover effect or remove it too if desired, keeping original logic */
}

/* Section header */
.section-header {
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

.section-header h2 i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Section content */
.section-content {
    padding: 1.5rem;
}

/* Highlights styling */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    transition: background-color 0.3s ease;
}

.highlight-item:hover {
    background-color: #f3f4f6;
}

.highlight-icon {
    color: var(--orange);
    margin-right: 0.75rem;
    font-size: 1rem;
    margin-top: 0.25rem;
}



/* =========================================
   New Timeline Itinerary Styles
   ========================================= */
.timeline-container {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #e5e7eb;
    /* Timeline line */
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2.9rem;
    /* Adjust based on container padding */
    top: 0;
    width: 2rem;
    height: 2rem;
    background-color: var(--orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    z-index: 10;
    border: 4px solid white;
    /* Creates gap effect from line */
    box-shadow: 0 0 0 1px #e5e7eb;
    /* Optional ring definition */
}

/* Timeline Card (Accordion) */
.timeline-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.timeline-header {
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    transition: background-color 0.2s ease;
}

.timeline-header:hover {
    background-color: #f9fafb;
}

.timeline-title {
    font-family: 'Roca', serif;
    /* Brand Font */
    font-size: 1.125rem;
    color: var(--dark-gray);
    /* Brand Indigo */
    margin: 0;
    font-weight: 600;
}

.timeline-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.timeline-content-inner {
    padding: 1.25rem;
    border-top: 1px solid #f3f4f6;
    color: #4b5563;
    line-height: 1.6;
    text-align: justify;
}

/* Active State */
.timeline-item.active .timeline-marker {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(255, 117, 31, 0.2);
    /* Brand Orange Glow */
    box-shadow: 0 0 0 4px rgba(255, 117, 31, 0.2);
    /* Brand Orange Glow */
}

.timeline-item.active .timeline-card {
    border-color: var(--orange);
}

.timeline-item.active .timeline-header i {
    transform: rotate(180deg);
    color: var(--orange);
}

/* Explicit fix for accordion items: No shadow, visible border */
.accordion-item {
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
    /* gray-200 equivalent */
}


/* Inclusions/Exclusions styling */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-icon {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.feature-icon.included {
    color: #10b981;
}

.feature-icon.excluded {
    color: #ef4444;
}

/* FAQ styling */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
    overflow: hidden;
}

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

.faq-question {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #1a2b48;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--orange);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .highlights-grid,
    .feature-list {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .section-content {
        padding: 1.25rem;
    }
}

/* Animation for section appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease forwards;
}

/* Staggered animation for children */
.stagger-children>* {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.stagger-children>*:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-children>*:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-children>*:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-children>*:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-children>*:nth-child(5) {
    animation-delay: 0.5s;
}

.stagger-children>*:nth-child(6) {
    animation-delay: 0.6s;
}

.stagger-children>*:nth-child(7) {
    animation-delay: 0.7s;
}

.stagger-children>*:nth-child(8) {
    animation-delay: 0.8s;
}

.stagger-children>*:nth-child(9) {
    animation-delay: 0.9s;
}

.stagger-children>*:nth-child(10) {
    animation-delay: 1.0s;
}