/* Main layout container - Fresh Vibrant Redesign */
:root {
    /* Vibrant color scheme */
    --vibrant-primary: #2E8B57;     /* Vibrant Green */
    --vibrant-dark: #1B4332;        /* Deep Forest Green */
    --vibrant-accent: #FFB100;      /* Golden Yellow */
    --vibrant-accent2: #FF6B6B;     /* Coral */
    --vibrant-light: #F0F7F4;       /* Light Mint */
    --vibrant-secondary: #3A9F6B;   /* Secondary Green */
    --vibrant-gray: #F8F9FA;        /* Light gray */
}

.tour-details-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1280px;
    padding: 0 1.5rem;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

@media (min-width: 768px) {
    .tour-details-container {
        padding: 0 2rem;
    }
}

@media (min-width: 992px) {
    .tour-details-container {
        flex-direction: row;
        gap: 3.5rem;
        margin: 3rem auto 5rem;
    }
}

/* Main content column */
.tour-main-content {
    flex: 1;
    order: 1;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    scroll-margin-top: 6rem; /* Push content down when navigating to anchors */
}

/* Sidebar column */
.tour-sidebar {
    width: 100%;
    order: 2;
    position: relative;
}

@media (min-width: 992px) {
    .tour-sidebar {
        width: 400px;
        position: sticky;
        top: 6rem; /* Account for fixed header */
        overflow-y: auto;
        align-self: flex-start;
        margin-left: 0;
        padding-right: 0.5rem; /* Add some space for scrollbar */
        scrollbar-width: thin;
        scrollbar-color: var(--vibrant-primary) var(--vibrant-light);
    }
    
    .tour-main-content {
        max-width: calc(100% - 450px);
    }
}

/* Common section styling - Fresh Design */
.tour-section {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
    margin-bottom: 3.5rem;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    border: none;
    will-change: transform, box-shadow;
}

.tour-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.section-header {
    background-color: #000000;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.section-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    margin-bottom: 0;
    font-family: var(--font-body);
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.section-content {
    background: white;
}

/* Decorative elements */
.tour-section::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--vibrant-accent);
    opacity: 0.1;
    border-radius: 50%;
    top: -30px;
    right: -30px;
    z-index: 1;
}

.tour-section::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--vibrant-accent2);
    opacity: 0.08;
    border-radius: 50%;
    bottom: -20px;
    left: -20px;
}

/* Premium print icon for sharing/printing */
.print-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 5;
}

.print-icon:hover {
    background: white;
    color: var(--vibrant-primary);
    transform: translateY(-3px) rotate(8deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Sticky behavior for sidebar */
.sticky-sidebar {
    position: sticky;
    top: 2rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-header {
        padding: 0.8rem 1.2rem;
    }
    
    .section-header h3 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 2rem;
    }
    
    .tour-section {
        margin-bottom: 2.75rem;
        border-radius: 18px;
    }
}

/* Animation for section appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tour-section {
    animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

/* Add delay for each section but keep it short */
.tour-section:nth-child(1) { animation-delay: 0.05s; }
.tour-section:nth-child(2) { animation-delay: 0.1s; }
.tour-section:nth-child(3) { animation-delay: 0.15s; }
.tour-section:nth-child(4) { animation-delay: 0.2s; }
.tour-section:nth-child(5) { animation-delay: 0.25s; }

/* Disable hover effects while scrolling */
body.is-scrolling .tour-section:hover {
    transform: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
}

/* Custom scrollbar for the page */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--vibrant-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--vibrant-primary), var(--vibrant-secondary));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--vibrant-secondary);
}

/* More Menu Popup */
.more-menu-popup {
    position: fixed;
    bottom: 76px;
    left: 0;
    right: 0;
    background: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    max-height: 70vh;
    overflow-y: auto;
    display: none;
}

.more-menu-popup.active {
    transform: translateY(0);
    display: block;
}

.more-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.more-menu-header h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--color-primary);
}

.more-menu-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #888;
    cursor: pointer;
}

.more-menu-content {
    padding: 12px 0;
}

.more-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--color-dark);
    transition: background-color 0.2s;
}

.more-menu-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.more-menu-item i {
    font-size: 1.2rem;
    width: 30px;
    color: var(--color-primary);
    margin-right: 12px;
    text-align: center;
}

.more-menu-item span {
    font-size: 1rem;
}
