:root {
    --primary-blue: #0d6efd;
    --light-blue: #e7f1ff;
    --dark-blue: #0a58ca;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

/* Solid Dark Header Style for Tour Details Page */
.tour-details-page .main-header.style-one {
    background: #0f172a !important;
    /* Premium Dark Navy */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    position: relative !important;
    /* Stacked below header */
    height: auto !important;
}

/* Ensure nav links are white on dark header */
.tour-details-page .main-header.style-one .main-menu .navigation>li>a {
    color: #ffffff !important;
}

.tour-details-page .main-header.style-one .mobile-nav-toggler {
    color: #ffffff !important;
}

.tour-details-wrapper {
    background-color: #f1f5f9;
    padding: 40px 0 80px 0;
    /* Added proper top padding for separation */
    position: relative;
    z-index: 10;
}

.tour-hero-backdrop {
    height: 180px !important;
    /* Standard height for a clean hero banner */
    padding: 0 !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    /* Subtle dark gradient */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 4px solid var(--primary-blue);
}

/* Itinerary Status Highlights Bar */
.itinerary-status-pills {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pill i {
    color: var(--primary-blue);
    font-size: 0.95rem;
}

.status-pill.type {
    background: rgba(13, 110, 253, 0.05);
    border-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-blue);
}

.content-box-main {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.content-box-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-blue), #60a5fa);
}

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

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

.content-section {
    margin-bottom: 40px;
}

.content-section h3 {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.content-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 10px;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    transition: all 0.3s ease;
}

.booking-sidebar {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(13, 110, 253, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.booking-sidebar:hover {
    transform: translateY(-5px);
}

.sidebar-header {
    background: var(--primary-blue);
    color: #fff;
    padding: 20px;
    text-align: center;
}

.sidebar-header h4 {
    margin: 0;
    font-weight: 900;
    color: #fff;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-content {
    padding: 30px;
}

/* Premium Timeline Itinerary */
.itinerary-day-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border-left: 4px solid var(--light-blue);
}

.itinerary-day-card:hover {
    border-color: var(--primary-blue);
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.06);
}

.itinerary-day-card::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 30px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 4px solid var(--primary-blue);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.itinerary-day-card:hover::before {
    background: var(--primary-blue);
    transform: scale(1.2);
}

.day-badge {
    display: none !important;
    /* Hidden as requested */
}

/* Package Highlights Bar */
.package-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed var(--border-color);
}

.highlight-pill {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.highlight-pill:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.highlight-pill i {
    color: var(--primary-blue);
    font-size: 1rem;
}

.price-selection-box {
    background: var(--light-blue);
    border: 1px solid rgba(13, 110, 253, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.price-selection-box h4 {
    margin: 5px 0 0;
    color: var(--dark-blue);
    font-weight: 800;
    font-size: 1.4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    transition: 0.5s;
    cursor: pointer;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.booking-btn {
    background: var(--primary-blue) !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 15px !important;
    border-radius: 12px !important;
    transition: 0.3s !important;
    border: none !important;
    margin-top: 10px;
}

.booking-btn:hover {
    background: var(--dark-blue) !important;
    box-shadow: 0 8px 15px rgba(13, 110, 253, 0.2) !important;
}

.selector-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.price-row.total {
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
    padding-top: 12px;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 800;
}

.price-row.total .price-val {
    color: var(--primary-blue);
}

@media (max-width: 991px) {
    .sidebar-sticky {
        position: relative;
        top: 0;
        margin-top: 30px;
    }
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    height: 55px;
    width: 100%;
}

.quantity-selector:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.quantity-selector button {
    background: #f8fafc;
    border: none;
    width: 60px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-selector button:hover {
    background: var(--light-blue);
    color: var(--dark-blue);
}

.quantity-selector input {
    border: none !important;
    text-align: center;
    flex: 1;
    height: 100%;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-dark);
    background: transparent;
    outline: none !important;
}

/* Business Content Styling */
.business-itinerary h3 {
    color: var(--dark-blue);
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--light-blue);
    display: inline-block;
    padding-bottom: 5px;
}

.business-itinerary ul,
.business-list {
    list-style: none;
    padding-left: 0;
}

.business-itinerary ul li,
.business-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.6;
}

.business-itinerary ul li::before,
.business-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-size: 1rem;
}

.page-title.style-three .tour-header-info .info-block .header-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.85;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-title.style-three .tour-header-info .info-block .header-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.page-title.style-three .tour-header-info .info-block .header-value.category-name {
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* --- Premium Integrated Tabs Styling --- */
.tab-system-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

.tour-type-tabs {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    background: #ffffff;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.tab-btn i {
    font-size: 1.1rem;
    color: var(--primary-blue);
    opacity: 0.7;
}

.tab-btn:hover {
    border-color: rgba(13, 110, 253, 0.2);
    color: var(--text-dark);
}

.tab-btn.active {
    background: var(--primary-blue);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.2);
    border-color: var(--primary-blue);
}

.tab-btn.active i {
    color: #fff !important;
    opacity: 1;
}

.tab-info-banner {
    background: #ffffff;
    padding: 20px 25px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-height: 80px; /* Increased height as requested */
}

.tab-info-banner i {
    margin-top: 4px;
    color: var(--primary-blue);
    font-size: 1.2rem;
    opacity: 0.8;
}

.tab-info-banner #tab-info-text {
    flex: 1;
    font-weight: 500;
    animation: fadeInScale 0.4s ease-out;
}

/* Section Transitions */
.content-section {
    animation: slideInUp 0.6s ease-out both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Micro-interactions */
.highlight-pill {
    animation: fadeInScale 0.5s ease-out both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.itinerary-day-card {
    border-left: 4px solid var(--border-color);
}

.itinerary-day-card.active {
    border-left-color: var(--primary-blue);
    background: linear-gradient(to right, rgba(13, 110, 253, 0.02), transparent);
}

/* --- Content-First Header Refinement --- */
.tour-main-header {
    text-align: center;
    margin-bottom: 45px;
    padding-top: 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.tour-category-tag {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.05));
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.tour-title-premium {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
}

.tour-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.meta-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.meta-chip i {
    color: var(--primary-blue);
    font-size: 1rem;
}

.meta-chip.verified {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.meta-chip.verified i {
    color: #22c55e;
}

.meta-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

/* Reduced spacing for mobile */
@media (max-width: 767px) {
    .tour-hero-backdrop {
        height: 120px !important;
    }

    .tour-details-wrapper {
        margin-top: 0;
        padding-top: 30px;
    }

    .tour-title-premium {
        font-size: 1.8rem;
        letter-spacing: -1px;
    }

    .tour-type-tabs {
        padding: 10px;
        gap: 8px;
    }

    .tab-btn {
        padding: 12px 18px;
        font-size: 0.85rem;
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
    }

    .tab-info-banner {
        padding: 15px;
        min-height: auto;
    }
}