/* Tab Navigation */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 35px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover {
    background: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    color: var(--accent-color);
}

.tab-btn.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

/* Tab Content Animation */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Itinerary Expandable Cards */
.itinerary-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.itinerary-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.itinerary-header {
    display: flex;
    cursor: pointer;
    min-height: 250px;
    /* Increased height for better visual */
    position: relative;
    user-select: none;
    /* Prevent text selection on click */
}

.itinerary-img {
    flex: 0 0 40%;
    /* Wider image */
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.itinerary-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.itinerary-card:hover .itinerary-img img {
    transform: scale(1.05);
}

.itinerary-summary {
    flex: 1;
    padding: 30px 40px;
    /* More padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.itinerary-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.itinerary-meta i {
    color: var(--accent-color);
    margin-right: 5px;
}

.itinerary-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.2;
}

.itinerary-short-desc {
    color: #555;
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 1.05rem;
    max-width: 90%;
}

.toggle-icon {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #f4f4f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: 1px solid #ddd;
}

.itinerary-card:hover .toggle-icon {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.toggle-icon i {
    transition: transform 0.4s ease;
}

/* Expanded State for Icon */
.itinerary-card.active .toggle-icon i {
    transform: rotate(180deg);
}

/* Details Section */
.itinerary-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    /* Ease-out for smooth open */
    background: #fcfcfc;
    border-top: 1px solid #eee;
}

.itinerary-card.active .itinerary-details {
    max-height: 2000px;
    /* Large enough to fit content */
    transition: max-height 0.8s ease-in-out;
}

.details-content {
    padding: 40px;
    display: flex;
    /* Changed to flex for better responsive control */
    flex-wrap: wrap;
    gap: 50px;
}

.itinerary-timeline {
    flex: 2;
    min-width: 300px;
}

.itinerary-sidebar {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.day-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 30px;
}

.day-item::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 5px;
    bottom: -35px;
    /* Extend line to next item */
    width: 2px;
    background: #e0e0e0;
}

.day-item:last-child::before {
    display: none;
}

.day-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px #e0e0e0;
}

.day-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.day-desc {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.sidebar-block {
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    color: var(--primary-color);
}

.highlights-list {
    list-style: none;
    padding: 0;
}

.highlights-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.highlights-list li::before {
    content: '\f00c';
    /* FontAwesome Check */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
}

.sidebar-cta .btn {
    width: 100%;
    margin-top: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .itinerary-header {
        flex-direction: column;
        min-height: auto;
    }

    .itinerary-img {
        flex: none;
        height: 200px;
        min-height: 200px;
    }

    .itinerary-summary {
        padding: 25px;
    }

    .toggle-icon {
        bottom: 20px;
        right: 20px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .details-content {
        padding: 25px;
        flex-direction: column;
        gap: 30px;
    }

    .itinerary-timeline,
    .itinerary-sidebar {
        flex: 1;
        width: 100%;
    }

    .itinerary-title {
        font-size: 1.5rem;
    }
}