/* 
 * package-details.css
 * Modern styling for individual tour package pages
 * Comprehensive styling for tour package detail pages
 * UPDATED: Added critical dropdown menu z-index fixes
 */

/* =============================================
 * CRITICAL NAVBAR & DROPDOWN Z-INDEX FIXES
 * ============================================= */

/* Fix navbar container z-index */
.navbar {
    position: relative !important;
    z-index: 1050 !important;
}

/* Fix top bar z-index */
.top-bar {
    position: relative !important;
    z-index: 1055 !important;
}

/* Fix header container z-index */
#header-container {
    position: relative !important;
    z-index: 1050 !important;
}

/* Standard dropdown menus */
.navbar .dropdown-menu {
    z-index: 1060 !important;
    position: absolute !important;
    background: linear-gradient(135deg, #212529 0%, #2c3034 100%) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    border-radius: 8px !important;
}

/* Mega menu specific fixes */
.mega-dropdown .dropdown-menu,
.mega-menu {
    z-index: 1065 !important;
    position: absolute !important;
}

/* Submenu z-index */
.dropdown-submenu .dropdown-menu {
    z-index: 1070 !important;
}

/* Ensure dropdown items are visible */
.dropdown-item {
    color: #fff !important;
    background-color: transparent !important;
    padding: 8px 16px !important;
    position: relative !important;
    z-index: 1 !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(248, 180, 0, 0.2) !important;
    color: var(--accent-gold, #f8b400) !important;
    z-index: 2 !important;
}

/* Dropdown headers */
.dropdown-header {
    color: var(--accent-gold, #f8b400) !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Mobile responsive fixes */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(26, 26, 26, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        border-radius: 8px !important;
        margin-top: 10px !important;
        padding: 15px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
        z-index: 1055 !important;
        position: relative !important;
    }
    
    .mega-dropdown .dropdown-menu {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        margin-top: 0 !important;
    }
    
    .dropdown-submenu .dropdown-menu {
        position: static !important;
        float: none !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 20px !important;
        background-color: rgba(255, 255, 255, 0.05) !important;
    }
    
    .navbar-toggler {
        z-index: 1060 !important;
        position: relative !important;
    }
}

/* Desktop hover effects */
@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 1060 !important;
    }
    
    .mega-dropdown:hover .mega-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 1065 !important;
    }
    
    .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .dropdown-menu.show,
    .nav-item.dropdown:hover > .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Bootstrap dropdown overrides */
.navbar-nav .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1060 !important;
}

.dropdown-toggle.show {
    background-color: rgba(248, 180, 0, 0.1) !important;
    color: var(--accent-gold, #f8b400) !important;
}

/* Light theme compatibility */
body.light-theme .dropdown-menu {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}

body.light-theme .dropdown-item {
    color: #212529 !important;
}

body.light-theme .dropdown-item:hover {
    background-color: rgba(248, 180, 0, 0.1) !important;
    color: var(--accent-gold, #f8b400) !important;
}

/* =============================================
 * HERO SECTION
 * ============================================= */
/* Hero Section Styling with Improved Header Interaction */
/* Reset default margins and padding */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Enhanced Hero Section - LOWERED Z-INDEX */
.tour-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding: 180px 0 100px;
    margin-top: 0; /* Remove negative margin */
    z-index: 1; /* LOWERED from higher values */
    overflow: hidden;
}

/* Background Image Layer */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    transform: scale(1.05);
    transition: transform 10s ease;
}

/* Dark Overlay - LOWERED Z-INDEX */
.tour-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 2; /* LOWERED to stay below navbar */
}

.tour-code-display {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-color, #6dd5ed);
    text-transform: uppercase;
    margin-bottom: 15px;
    padding: 5px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    letter-spacing: 1px;
}

.tour-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.tour-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-gold, #f8b400);
    font-weight: 500;
}

.tour-duration {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.tour-duration i {
    margin-right: 8px;
    color: var(--secondary-color, #6dd5ed);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10; /* ADJUSTED to stay below navbar */
    padding: 30px;
    animation: fadeInUp 1.2s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-cta {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.hero-cta-primary {
    background-color: var(--secondary-color, #6dd5ed);
    color: #000;
    border: none;
}

.hero-cta-primary:hover {
    background-color: #fff;
    color: var(--primary-color, #2193b0);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-cta-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.hero-cta-secondary:hover {
    background-color: #fff;
    color: var(--primary-color, #2193b0);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Keyframe Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
 * QUICK FACTS SECTION
 * ============================================= */
.quick-facts-section {
    padding: 70px 0;
    background-color: #0f0f0f;
    position: relative;
}

/* Fix for Tour Highlights section text */
.quick-facts-section .section-title,
.quick-facts-section .text-muted {
    color: #fff !important;
}

.quick-facts-section p.text-muted {
    color: #aaa !important;
}

.quick-facts {
    background-color: #1a1a1a;
    padding: 30px 20px;
    border-radius: 12px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.quick-facts:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background-color: #222;
}

.fact-icon {
    font-size: 2.5rem;
    color: var(--secondary-color, #6dd5ed);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.quick-facts:hover .fact-icon {
    transform: scale(1.2);
    color: var(--accent-gold, #f8b400);
}

.fact-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.fact-text {
    color: #aaa;
    margin-bottom: 0;
    font-size: 1rem;
}

/* =============================================
 * OVERVIEW SECTION
 * ============================================= */
.overview-section {
    padding: 80px 0;
    background-color: #121212;
}

.overview-lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 30px;
    font-weight: 300;
}

.overview-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.overview-image img {
    width: 100%;
    height: auto;
    transition: transform 0.8s ease;
}

.overview-image:hover img {
    transform: scale(1.05);
}

.overview-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.overview-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #bbb;
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 15px;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--secondary-color, #6dd5ed);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* =============================================
 * HIGHLIGHTS SECTION
 * ============================================= */
.highlights-title {
    margin-bottom: 40px;
    color: #fff;
}

.card-highlight {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.card-highlight:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background-color: #222;
}

.highlight-icon {
    font-size: 2rem;
    color: var(--accent-gold, #f8b400);
    margin-right: 15px;
    min-width: 40px;
    transition: all 0.3s ease;
}

.card-highlight:hover .highlight-icon {
    transform: scale(1.2);
}

/* Ensure text in card-highlight is visible */
.card-highlight h5 {
    color: #fff;
}

.card-highlight p {
    color: #bbb;
}

/* =============================================
 * ITINERARY SECTION
 * ============================================= */
.itinerary-section {
    padding: 80px 0;
    background-color: #0f0f0f;
}

.itinerary-section p {
    color: #bbb !important;
}

.itinerary-tabs {
    display: flex;
    overflow-x: auto;
    margin-bottom: 30px;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color, #2193b0) #1a1a1a;
}

.itinerary-tabs::-webkit-scrollbar {
    height: 6px;
}

.itinerary-tabs::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

.itinerary-tabs::-webkit-scrollbar-thumb {
    background-color: var(--primary-color, #2193b0);
    border-radius: 10px;
}

.itinerary-tabs .nav-link {
    flex: 0 0 auto;
    padding: 12px 25px;
    margin-right: 10px;
    border-radius: 30px;
    background-color: #1a1a1a;
    color: #aaa;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.itinerary-tabs .nav-link:hover {
    background-color: #252525;
    color: #ddd;
}

.itinerary-tabs .nav-link.active {
    background-color: var(--secondary-color, #6dd5ed);
    color: #000;
}

.itinerary-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.nav-button {
    padding: 10px 20px;
    border-radius: 30px;
    background-color: #1a1a1a;
    color: #aaa;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-button:hover {
    background-color: var(--primary-color, #2193b0);
    color: #fff;
    transform: translateY(-3px);
}

.nav-button i {
    font-size: 1.2rem;
    margin-right: 8px;
}

.nav-button.next i {
    margin-right: 0;
    margin-left: 8px;
}

.itinerary-day-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.itinerary-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.itinerary-day-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #fff;
}

.day-badge {
    font-size: 0.9rem;
    background-color: var(--primary-color, #2193b0);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.itinerary-distance {
    color: #aaa;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.itinerary-activities {
    margin-top: 25px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
}

.itinerary-activities h5 {
    font-size: 1.1rem;
    color: var(--secondary-color, #6dd5ed);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.itinerary-activities h5 i {
    margin-right: 10px;
}

.activities-list {
    list-style-type: none;
    padding-left: 0;
}

.activities-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: #ddd;
}

.activities-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-gold, #f8b400);
}

/* =============================================
 * BOOKING SECTION
 * ============================================= */
.booking-section {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: #fff;
}

.booking-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.booking-container {
    position: relative;
    z-index: 2;
}

.booking-card {
    background-color: rgba(26, 26, 26, 0.9);
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    padding: 30px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    color: #ddd;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color, #6dd5ed);
    box-shadow: 0 0 0 3px rgba(109, 213, 237, 0.2);
    color: #fff;
}

.form-control::placeholder {
    color: #888;
}

.form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    padding: 12px 15px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.form-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color, #6dd5ed);
    box-shadow: 0 0 0 3px rgba(109, 213, 237, 0.2);
    color: #fff;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #555;
}

.form-check-input:checked {
    background-color: var(--secondary-color, #6dd5ed);
    border-color: var(--secondary-color, #6dd5ed);
}

.form-check-label {
    color: #ddd;
}

.booking-submit-btn {
    background: var(--primary-gradient, linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%));
    border: none;
    padding: 15px 30px;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(33, 147, 176, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booking-submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(33, 147, 176, 0.4);
}

/* =============================================
 * HERO SLIDER STYLES
 * ============================================= */

/* Hero slider container */
.tour-hero-slider-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -2 !important;
    overflow: hidden !important;
}

/* Slider layers for smooth fade transitions */
.tour-hero-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    opacity: 0;
    transition: opacity 2s ease-in-out !important;
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.tour-hero-slide.active {
    opacity: 1 !important;
    z-index: 1 !important;
}

.tour-hero-slide.fade-out {
    opacity: 0 !important;
    z-index: 0 !important;
}

/* Enhanced tour hero compatibility */
.tour-hero {
    position: relative !important;
    overflow: hidden !important;
}

.tour-hero.has-slider .hero-background {
    display: none !important;
}

.tour-hero .tour-hero-slider-container {
    z-index: -2 !important;
}

.tour-hero .hero-content {
    position: relative !important;
    z-index: 10 !important;
}

/* =============================================
 * PROFESSIONAL ITINERARY SECTION
 * ============================================= */

.professional-itinerary-section {
    padding: var(--section-padding, 80px) 0;
    background-color: var(--dark-secondary, #121212);
    position: relative;
}

/* Individual Day Card */
.itinerary-day-card {
    background: var(--premium-gradient, linear-gradient(145deg, #1a1a1a, #2d2d2d));
    border-radius: var(--border-radius, 12px);
    overflow: hidden;
    box-shadow: var(--shadow-heavy, 0 10px 30px rgba(0, 0, 0, 0.3));
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast, 0.3s ease);
}

.itinerary-day-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-intense, 0 15px 40px rgba(0, 0, 0, 0.4));
}

.itinerary-day-header {
    background: linear-gradient(135deg, var(--primary-color, #2193b0), var(--secondary-color, #6dd5ed));
    padding: 25px 30px;
    color: white;
}

.day-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading, inherit);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: -10px;
}

.day-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.day-distance {
    font-size: 0.95rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.itinerary-day-content {
    padding: 30px;
}

.day-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text-secondary, #bbb);
    margin-bottom: 30px;
}

.day-image-container {
    position: relative;
    border-radius: var(--border-radius-small, 8px);
    overflow: hidden;
    box-shadow: var(--shadow-medium, 0 5px 20px rgba(0, 0, 0, 0.2));
    margin-bottom: 25px;
}

.day-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-medium, 0.5s ease);
}

.day-image-container:hover .day-image {
    transform: scale(1.05);
}

.day-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
}

.activities-section {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: var(--border-radius-small, 8px);
    border-left: 4px solid var(--accent-gold, #f8b400);
}

.activities-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color, #6dd5ed);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activities-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--dark-text-secondary, #bbb);
    transition: all var(--transition-fast, 0.3s ease);
}

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

.activity-item:hover {
    color: var(--dark-text-primary, #fff);
    transform: translateX(5px);
}

.activity-icon {
    color: var(--accent-gold, #f8b400);
    font-size: 1rem;
    margin-top: 2px;
    min-width: 16px;
}

.activity-text {
    flex: 1;
    line-height: 1.6;
}

/* =============================================
 * PROFESSIONAL PAGINATION
 * ============================================= */

.professional-pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding: 30px;
    background: var(--glass-gradient, rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius, 12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-medium, 0 5px 20px rgba(0, 0, 0, 0.2));
}

.pagination-info {
    font-size: 0.95rem;
    color: var(--dark-text-muted, #888);
    font-weight: 500;
}

.pagination-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.professional-pagination {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-numbers-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: transparent;
    color: var(--dark-text-secondary, #bbb);
    text-decoration: none;
    border-radius: var(--border-radius-small, 8px);
    font-weight: 600;
    transition: all var(--transition-fast, 0.3s ease);
    gap: 8px;
}

.page-link:hover {
    background-color: var(--primary-color, #2193b0);
    border-color: var(--primary-color, #2193b0);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 147, 176, 0.3);
}

.page-item.active .page-link {
    background-color: var(--secondary-color, #6dd5ed);
    border-color: var(--secondary-color, #6dd5ed);
    color: var(--dark-color, #000);
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(109, 213, 237, 0.4);
}

.page-item.disabled .page-link {
    color: var(--dark-text-muted, #555);
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-select {
    min-width: 150px;
    background-color: var(--dark-tertiary, #2d2d2d);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--dark-text-primary, #fff);
    border-radius: var(--border-radius-small, 8px);
    padding: 8px 12px;
    font-size: 0.9rem;
}

.pagination-select:focus {
    border-color: var(--primary-color, #2193b0);
    box-shadow: 0 0 0 0.25rem rgba(33, 147, 176, 0.25);
    background-color: var(--dark-tertiary, #2d2d2d);
    color: var(--dark-text-primary, #fff);
}

.pagination-jump {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =============================================
 * RESPONSIVE STYLES
 * ============================================= */
@media (max-width: 1199.98px) {
    .tour-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 991.98px) {
    .tour-hero {
        padding: 150px 0 80px;
    }
    
    .tour-title {
        font-size: 2.5rem;
    }
    
    .tour-subtitle {
        font-size: 1.3rem;
    }
    
    .professional-pagination-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .pagination-info {
        order: 1;
    }
    
    .pagination-nav {
        order: 2;
    }
    
    .pagination-jump {
        order: 3;
        justify-content: center;
    }
    
    .itinerary-day-header {
        padding: 20px 25px;
    }
    
    .itinerary-day-content {
        padding: 25px 20px;
    }
    
    .day-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .tour-hero {
        padding: 120px 0 60px;
    }
    
    .tour-title {
        font-size: 2rem;
    }
    
    .tour-subtitle {
        font-size: 1.1rem;
    }
    
    .tour-duration {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-cta {
        width: 100%;
    }
    
    .quick-facts {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .itinerary-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-button {
        width: 100%;
        justify-content: center;
    }
    
    .itinerary-day-title {
        font-size: 1.3rem;
    }
    
    .activities-list li {
        font-size: 0.95rem;
    }
    
    .booking-card {
        padding: 20px;
    }
    
    .professional-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-link {
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
        font-size: 0.9rem;
    }
    
    .page-link span {
        display: none !important;
    }
    
    .day-image {
        height: 200px;
    }
    
    .activities-section {
        padding: 20px;
    }
    
    .day-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .tour-hero {
        padding: 100px 0 50px;
    }
    
    .tour-title {
        font-size: 1.8rem;
    }
    
    .hero-content {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .overview-lead {
        font-size: 1rem;
    }
    
    .itinerary-day-card {
        padding: 15px;
    }
    
    .itinerary-activities {
        padding: 15px;
    }
    
    .professional-pagination-container {
        padding: 20px 15px;
    }
    
    .pagination-select {
        min-width: 120px;
        font-size: 0.85rem;
    }
    
    .itinerary-day-content {
        padding: 20px 15px;
    }
    
    .activities-section {
        padding: 15px;
    }
    
    .day-description {
        font-size: 1rem;
    }
}

/* =============================================
 * LIGHT THEME OVERRIDES
 * ============================================= */
body.light-theme .quick-facts-section,
body.light-theme .overview-section,
body.light-theme .itinerary-section {
    background-color: #f5f5f5;
}

body.light-theme .quick-facts,
body.light-theme .card-highlight,
body.light-theme .itinerary-day-card {
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

body.light-theme .quick-facts:hover,
body.light-theme .card-highlight:hover {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body.light-theme .section-title,
body.light-theme .fact-title,
body.light-theme .itinerary-day-title {
    color: #333;
}

body.light-theme .overview-lead,
body.light-theme .overview-content p,
body.light-theme .activities-list li {
    color: #555;
}

body.light-theme .fact-text,
body.light-theme .itinerary-distance {
    color: #666;
}

body.light-theme .itinerary-tabs .nav-link {
    background-color: #e9e9e9;
    color: #666;
}

body.light-theme .itinerary-tabs .nav-link:hover {
    background-color: #ddd;
    color: #333;
}

body.light-theme .itinerary-tabs .nav-link.active {
    background-color: var(--secondary-color, #6dd5ed);
    color: #fff;
}

body.light-theme .nav-button {
    background-color: #e9e9e9;
    color: #666;
}

body.light-theme .itinerary-activities {
    background-color: rgba(0, 0, 0, 0.03);
}

body.light-theme .professional-itinerary-section {
    background-color: var(--light-tertiary, #f8f9fa);
}

body.light-theme .itinerary-day-card {
    background: linear-gradient(145deg, var(--light-secondary, #ffffff), var(--light-tertiary, #f8f9fa));
    border: 1px solid var(--light-border, #dee2e6);
}

body.light-theme .day-description {
    color: var(--light-text-secondary, #6c757d);
}

body.light-theme .activities-section {
    background-color: rgba(0, 0, 0, 0.02);
}

body.light-theme .activity-item {
    color: var(--light-text-secondary, #6c757d);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .activity-item:hover {
    color: var(--light-text-primary, #212529);
}

body.light-theme .professional-pagination-container {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .page-link {
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--light-text-secondary, #6c757d);
}

body.light-theme .pagination-info {
    color: var(--light-text-muted, #6c757d);
}

body.light-theme .pagination-select {
    background-color: var(--light-secondary, #ffffff);
    border-color: var(--light-border, #dee2e6);
    color: var(--light-text-primary, #212529);
}

/* Animation for elements with AOS */
[data-aos="fade-up"] {
    transform: translateY(30px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

[data-aos="fade-in"] {
    opacity: 0;
    transition-property: opacity;
}

[data-aos="fade-in"].aos-animate {
    opacity: 1;
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
    opacity: 1;
}

/* =============================================
 * ANIMATION ENHANCEMENTS
 * ============================================= */

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

.itinerary-day-card {
    animation: slideInFromBottom 0.6s ease-out;
}

.itinerary-day-card:nth-child(even) {
    animation-delay: 0.1s;
}

/* Loading state for pagination */
.pagination-loading .page-link {
    pointer-events: none;
    opacity: 0.6;
}

.pagination-loading .page-link::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth page transitions */
.page-transition {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.page-transition.active {
    opacity: 1;
    transform: translateX(0);
}
/* =============================================
 * LOADING OVERLAY STYLES
 * ============================================= */

/* Loading overlay that shows while templates and data load */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(248, 180, 0, 0.2);
    border-top: 4px solid var(--accent-gold, #f8b400);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-overlay .loading-text {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
    opacity: 0.9;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide loading overlay when page is ready */
.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Ensure content is initially hidden while loading */
body:not(.templates-loaded) .tour-hero,
body:not(.templates-loaded) .quick-facts-section,
body:not(.templates-loaded) .overview-section,
body:not(.templates-loaded) .professional-itinerary-section {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show content when templates are loaded */
body.templates-loaded .tour-hero,
body.templates-loaded .quick-facts-section,
body.templates-loaded .overview-section,
body.templates-loaded .professional-itinerary-section {
    opacity: 1;
}

/* Fix for template containers being empty initially */
#header-container:empty,
#footer-container:empty,
#booking-section-container:empty {
    min-height: 0;
    display: block;
}

/* Ensure smooth transitions for dynamically loaded content */
.quick-facts,
.card-highlight,
.itinerary-day-card {
    transition: all 0.3s ease;
}

/* Page transition effects */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.page-transition.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive loading overlay */
@media (max-width: 768px) {
    .loading-overlay .spinner {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .loading-overlay .loading-text {
        font-size: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .loading-overlay {
        background: rgba(0, 0, 0, 0.95);
    }
    
    .loading-overlay .spinner {
        border-color: rgba(255, 255, 255, 0.3);
        border-top-color: #fff;
    }
    
    .loading-overlay .loading-text {
        color: #fff;
        font-weight: 600;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .loading-overlay,
    .page-transition,
    .spinner {
        transition: none;
        animation: none;
    }
    
    .loading-overlay .spinner {
        border: 4px solid var(--accent-gold, #f8b400);
        border-radius: 50%;
    }
}