:root {
    --primary-color: #00bcd4;
    --secondary-color: #ff9800; /* The Moving Orange Color */
    --light-bg: #f4fdff;
    --text-dark: #333;
    --path-gray: #ddd;
}

/* --- Core Layout Styles --- */
.back-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.detail-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border: none;
}

.gallery-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.sticky-sidebar {
    position: sticky;
    top: 100px; /* Adjusted for fixed header if any */
}

.booking-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.15);
}

.price-highlight {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* --- ITINERARY PATH & SCROLL ANIMATION STYLES --- */

.itinerary-container {
    position: relative;
    padding: 20px 0;
}

/* The Background Line (Gray) */
.timeline-track {
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 40px; /* Adjusted to center with badge */
    width: 4px;
    background-color: var(--path-gray);
    z-index: 1;
    border-radius: 2px;
}

/* The Moving Line (Orange) */
.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%; /* JS will change this */
    background-color: var(--secondary-color);
    z-index: 2;
    border-radius: 2px;
    transition: height 0.1s linear; /* Smooth movement */
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.itinerary-item {
    position: relative;
    padding-left: 80px; /* Space for the line and badge */
    margin-bottom: 60px; /* Space between days */
    z-index: 3;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Fade in class */
.itinerary-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* The Day Badge (Circle) */
.day-badge {
    position: absolute;
    left: 17px; 
    top: 0;
    width: 50px;
    height: 50px;
    background: white;
    color: #aaa;
    border: 4px solid var(--path-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Active State for Badge */
.itinerary-item.active .day-badge {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: scale(1.2); /* Pop effect */
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.6);
}

/* Completed State for Badge */
.itinerary-item.completed .day-badge {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.day-content h4 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.4rem;
}

.location-tag {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: block;
}

.location-tag i { color: var(--primary-color); margin-right: 5px; }

.activity-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    transition: 0.3s;
}

.activity-card:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- Tab Navigation --- */
.itinerary-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 8px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(0, 188, 212, 0.05);
}

.tab-btn.active {
    background: #007bff; /* Matching the image blue */
    color: white;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Inclusion/Exclusion Lists --- */
.inclusion-list, .exclusion-list {
    list-style: none;
    padding: 0;
}

.inclusion-list li, .exclusion-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: #444;
}

.inclusion-list i {
    color: #28a745;
    margin-right: 15px;
    font-size: 1.2rem;
}

.exclusion-list i {
    color: #dc3545;
    margin-right: 15px;
    font-size: 1.2rem;
}

.list-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 15px;
}

.list-heading.included { color: #28a745; }
.list-heading.excluded { color: #dc3545; }

/* --- Map Placeholder --- */
.map-container {
    width: 100%;
    height: 450px;
    background: #f0f0f0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* --- Itinerary Sub-Tabs (multiple plans) --- */
.itinerary-sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.itinerary-sub-tab {
    padding: 8px 20px;
    border-radius: 25px;
    border: 2px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.itinerary-sub-tab.active {
    background: var(--secondary-color);
    color: #fff;
}

.itinerary-sub-tab:hover {
    background: var(--secondary-color);
    color: #fff;
}

.sub-tab-content {
    display: none;
}

.sub-tab-content.active {
    display: block;
}

.itinerary-sub-tabs .badge-price {
    margin-left: 6px;
    font-size: 0.75rem;
    opacity: 0.8;
}
