/* 
 * package-details.css - CLEANED VERSION
 * Fixed z-index conflicts and navbar overlapping issues
 * CRITICAL: Proper z-index hierarchy to prevent navbar interference
 */

/* =============================================
 * CRITICAL Z-INDEX HIERARCHY FIX
 * ============================================= */

/* FIXED: Header and navbar must be highest priority */
#header-container {
    position: relative !important;
    z-index: 1050 !important;
}

.navbar {
    position: relative !important;
    z-index: 1050 !important;
}

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

/* FIXED: Dropdown menus must be above hero */
.navbar .dropdown-menu {
    z-index: 1060 !important;
    position: absolute !important;
}

.mega-dropdown .dropdown-menu,
.mega-menu {
    z-index: 1065 !important;
    position: absolute !important;
}

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

/* CRITICAL: Hero section must be BELOW navbar */
.tour-hero {
    position: relative !important;
    z-index: 1 !important; /* LOWERED from higher values */
    margin-top: 0 !important; /* Remove negative margins */
}

/* FIXED: Hero content must stay below navbar */
.hero-content {
    position: relative !important;
    z-index: 2 !important; /* Below navbar but above hero background */
}

/* FIXED: Hero overlay must not interfere with navbar */
.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: 1 !important; /* LOWERED to stay below navbar */
}

/* =============================================
 * HERO SECTION STYLING - FIXED
 * ============================================= */
.tour-hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding: 180px 0 100px;
    overflow: hidden;
}

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

.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-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);
}

/* =============================================
 * HERO SLIDER STYLES - FIXED Z-INDEX
 * ============================================= */
.tour-hero-slider-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -2 !important; /* FIXED: Below everything */
    overflow: hidden !important;
}

.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;
    z-index: -1 !important;
}

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

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

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

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

.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: #0f172a;
    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;
    position: relative;
    z-index: 10;
}

.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-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: #0f172a;
    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);
}

.card-highlight h5 {
    color: #fff;
}

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

/* =============================================
 * PROFESSIONAL ITINERARY SECTION
 * ============================================= */
.professional-itinerary-section {
    padding: 80px 0;
    background-color: #121212;
    position: relative;
    z-index: 10;
}

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

.itinerary-day-card:hover {
    transform: translateY(-5px);
    box-shadow: 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;
    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: #bbb;
    margin-bottom: 30px;
}

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

.day-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 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: 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: #bbb;
    transition: all 0.3s ease;
}

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

.activity-item:hover {
    color: #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: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.pagination-info {
    font-size: 0.95rem;
    color: #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: #bbb;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 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: #000;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(109, 213, 237, 0.4);
}

.page-item.disabled .page-link {
    color: #555;
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-select {
    min-width: 150px;
    background-color: #2d2d2d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 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: #2d2d2d;
    color: #fff;
}

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

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

.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: 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);
}

/* =============================================
 * 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;
    }
    
    .day-image {
        height: 200px;
    }
    
    .activities-section {
        padding: 20px;
    }
    
    .day-number {
        font-size: 2.5rem;
    }
    
    .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;
    }
}

@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-content {
        padding: 20px 15px;
    }
    
    .activities-section {
        padding: 15px;
    }
    
    .professional-pagination-container {
        padding: 20px 15px;
    }
    
    .pagination-select {
        min-width: 120px;
        font-size: 0.85rem;
    }
    
    .day-description {
        font-size: 1rem;
    }
}

/* =============================================
 * LIGHT THEME OVERRIDES
 * ============================================= */
body.light-theme .quick-facts-section,
body.light-theme .overview-section,
body.light-theme .professional-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 .section-title,
body.light-theme .fact-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 {
    color: #666;
}

body.light-theme .day-description {
    color: #6c757d;
}

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

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

body.light-theme .activity-item:hover {
    color: #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: #6c757d;
}

body.light-theme .pagination-info {
    color: #6c757d;
}

body.light-theme .pagination-select {
    background-color: #ffffff;
    border-color: #dee2e6;
    color: #212529;
}

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

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

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

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

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

/* AOS Animations */
[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;
}