/* Establish a relative layout frame spanning full width */
.itinerary-nav-wrapper {
    position: relative; 
    width: 100%;
    margin-bottom: 25px;
    display: block; /* Overrides flex flow to allow full-width calculation */
}

/* Container for the nav pills */
.itinerary-nav-pills {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
	overflow-x: scroll;
	scrollbar-width: none;
}

.itinerary-nav-pills::-webkit-scrollbar {
    display: none; /* Hide default scroll indicators on Webkit engines */
}

/* Base button styling */
.nav-pill-btn {
    padding: 5px 10px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 50px; /* Creates the "pill" shape */
    color: #333;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
	min-width: 150px;
	line-height: 1;
	font-size: 0.8rem;
}

.nav-pill-btn:hover {
    background-color: #e2e2e2;
}

/* Active button styling */
.nav-pill-btn.active {
    background-color: #3b5998; /* Adjust to match your theme's primary color */
    color: #ffffff;
    border-color: #3b5998;
}

/* Hide tab panels by default */
.itinerary-content.show .tab-panel {
    display: none;
    border-radius: 8px;
    background: #fff;
}

/* Show only the active panel */
.itinerary-content.show .tab-panel.active {
    display: block;
}

/* Navigation control parameters button style configurations */
.itinerary-scroll-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    color: #4a5568;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    flex-shrink: 0;
	position: absolute !important;
    top: 50% !important;
    transform: translateY(-75%) !important;
    z-index: 10;
    margin: 0 !important; /* Strip original inline margins causing compression */
}

/* Anchor buttons flush against their respective edge boundaries */
.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.itinerary-scroll-btn:hover {
    background: #f7fafc;
    color: #1a202c;
    border-color: #cbd5e0;
}