/**
 * Custom Fullscreen Menu CSS
 * Enhanced for consistent appearance across all screen sizes
 */

:root {
    --cfm-menu-bg-color: #fdfaf5;
    --cfm-menu-text-color: #000000; /* Changed to pure black */
    --cfm-menu-prominent-text-color: #8c1919; 
    --cfm-menu-hover-color: #b73232; 
    --cfm-menu-border-color: #e0e0e0; 
    --cfm-menu-placeholder-bg: #ffffff; /* Changed to pure white */
    --cfm-menu-placeholder-text: #505050;
    --cfm-menu-close-button-bg: transparent; /* Changed to transparent for outline only */
    --cfm-menu-close-button-border: #36010d; /* Button border color */
    --cfm-menu-close-button-x: #36010d; /* X now matches border color */
    --cfm-design-menu-width: 520px; /* Design width of the menu container (reduced by 20%) */
}

/* Trigger Button */
.custom-fullscreen-menu-trigger-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: var(--cfm-menu-prominent-text-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-fullscreen-menu-trigger-button:hover {
    background-color: var(--cfm-menu-hover-color);
}

/* Menu Overlay */
.custom-fullscreen-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #36010D; /* Changed from rgba(0, 0, 0, 0.3) to solid wine red */
    z-index: 999999;
    display: none; 
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    font-family: 'futura-pt', 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Added futura-pt as primary font */
    overflow: hidden !important; /* Force hidden to prevent scrollbars */
    will-change: transform; /* Optimization for animations */
    /* Prevent any additional scrolling in overlay */
    overscroll-behavior: contain;
}

.custom-fullscreen-menu-overlay.open {
    display: flex; 
    opacity: 1;
    align-items: flex-start; 
    justify-content: flex-start;
}

/* Right side content */
.custom-menu-right-content {
    position: absolute;
    top: 0;
    left: var(--cfm-design-menu-width);
    right: 0;
    height: 100%;
    background-color: #36010D; /* Wine red background */
    overflow: hidden; /* Changed from auto to hidden for full-bleed effects */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 30px; /* Add extra padding on right side for safe zone */
    transform-origin: top left; /* For scaling */
}

/* Static background replacing the dynamic one */
.static-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #36010D; /* Solid wine red background */
}

/* Packages container - align with first package */
.packages-container {
    width: 95%; /* Increased from 90% */
    max-width: 1272px; /* Increased by 6% from 1200px */
    padding: 20px 0 50px;
    color: #fff;
    z-index: 5;
    position: relative;
    margin-left: 60px !important; /* Match the left padding of carousel to align with first package */
}

/* Heading without decorative elements - with more space below */
.packages-heading-container {
    display: flex;
    justify-content: flex-start !important; /* Align to left */
    margin-bottom: 60px; /* Increased from 30px to add more space */
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    margin-left: 0; /* Reset this so the heading's margin takes effect */
}

.packages-heading {
    font-size: 38px; /* Increased by 5% from 36px */
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    position: relative;
    margin: 0;
    letter-spacing: 2px;
    text-align: left; /* Explicitly set to left */
    margin-left: 60px; /* Align directly with first package */
}

/* Close button style arrows */
.carousel-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) rotate(45deg) !important;
    background-color: transparent !important;
    border: 1.5px solid #dbc58c !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 20 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    border-radius: 0 !important;
    /* Prevent arrows from being cut off */
    overflow: visible !important;
}

.carousel-arrow:hover {
    background-color: rgba(219, 197, 140, 0.1) !important;
}

.carousel-arrow-left {
    left: 0 !important; /* Position on the left edge of the container */
}

.carousel-arrow-right {
    right: 0 !important; /* Position on the right edge of the container */
}

.arrow-icon {
    line-height: 1 !important;
    transform: rotate(-45deg) !important; /* Counter-rotate for correct alignment */
    font-size: 20px !important;
    color: #dbc58c !important;
    font-weight: 300 !important; /* Make arrows thinner */
}

/* Experience category tabs */
.experience-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.experience-tabs::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
}

.tab-button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    letter-spacing: 0.5px;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #dbc58c;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.tab-button:hover {
    color: #fff;
}

.tab-button.active {
    color: #dbc58c;
}

.tab-button.active::after {
    width: 60%;
}

/* Enhanced carousel container - wider with 6% expansion */
.packages-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1240px !important; /* Increased by 6% from 1170px */
    margin: 0 auto 30px;
    margin-left: 0 !important; /* Align to left */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    overflow: visible !important; /* Changed from hidden to visible to prevent arrow cutting */
    padding: 0 60px; /* Add padding to make room for arrows */
}

/* Fixed package cards layout for 2-card view - slightly wider */
.carousel-slide {
    min-width: 47%; /* Increased from 45% to 47% for slightly wider cards */
    box-sizing: border-box;
    margin: 0 1.5%; /* Reduced margin to accommodate wider cards */
    transition: all 0.5s ease;
    display: flex;
}

/* Immersive carousel with 2 cards per view */
.packages-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

/* Package card styling - remove rounded edges */
.package-card {
    background-color: #fff;
    border-radius: 0; /* Removed rounded edges (was 8px) */
    overflow: hidden;
    color: #000;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    height: 100%;
    width: 100%; /* Ensure full width */
    display: flex;
    flex-direction: column;
}

/* Remove hover effects */
.carousel-slide.active .package-card,
.package-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: none !important;
}

/* Package image styling - adjusted height */
.package-image-container {
    position: relative;
    width: 100%;
    padding-top: 65%; /* Increased back to 65% for taller image area */
    overflow: hidden;
    flex-shrink: 0;
}

.package-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%; /* Adjusted to focus higher on images */
    transform: scale(1.2); /* Zoom in by 20% */
}

/* Remove image shadows */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none !important; /* Removed the gradient overlay */
    z-index: 1;
}

/* Book button styling - align with price info */
.book-button {
    display: inline-flex;
    align-items: center;
    background-color: #36010D;
    color: #dbc58c;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    position: absolute;
    bottom: auto; /* Remove bottom positioning */
    top: 0; /* Align with top of price container */
    right: 20px;
}

.book-button:hover {
    background-color: #4E0213;
}

.btn-arrow {
    margin-left: 8px;
}

/* Price container adjustments - add more space at bottom */
.package-price-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Changed to flex-start to align tops */
    margin-top: auto;
    position: relative;
    padding-bottom: 30px; /* Increased from 20px to add more space below (about 3% more) */
}

/* Align price info properly */
.price-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 40px; /* Match height of book button */
}

/* Card counter */
.card-counter {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    display: flex;
    align-items: baseline;
}

.current-card {
    font-size: 20px;
    font-weight: 600;
    color: #dbc58c;
    margin-right: 5px;
}

.card-divider {
    margin: 0 3px;
    opacity: 0.5;
}

/* Package details - adjust height and add more space at bottom */
.package-details {
    position: relative;
    background-color: white;
    padding: 25px 25px 68px 25px; /* Reduced from 75px to 68px (halfway between 60px and 75px) */
    flex: 1;
    overflow: hidden;
    max-height: 400px; /* Reduced from 420px to 400px (halfway between 380px and 420px) */
}

.package-header {
    position: relative;
    margin-bottom: 15px;
}

.package-details h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    position: relative;
    line-height: 1.3;
}

.package-rating {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.star-icon {
    color: #dbc58c;
    font-size: 14px;
    margin-right: 2px;
}

.star-icon.half {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.star-icon.half::after {
    content: '★';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: rgba(219, 197, 140, 0.3);
}

.rating-count {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

.package-subtitle {
    font-size: 14px;
    color: #555;
    margin: 5px 0 0 0;
    line-height: 1.3;
}

.expanded-content {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.package-features {
    list-style-type: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.package-features li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.package-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #36010D;
}

/* Testimonial styling */
.testimonial {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(219, 197, 140, 0.1);
    border-left: 3px solid #dbc58c;
    font-style: italic;
}

.testimonial p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.testimonial cite {
    display: block;
    font-size: 13px;
    color: #666;
    font-weight: 600;
    font-style: normal;
}

/* Menu Container */
.custom-menu-container {
    width: var(--cfm-design-menu-width); 
    /* height: 100vh; */ /* REMOVED to allow JS to control height for scaling */
    overflow: hidden !important; /* Prevent scrollbars completely */
    background-color: var(--cfm-menu-bg-color);
    padding: 70px 48px 48px 48px; /* Increased top and bottom padding */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0px 15px rgba(0, 0, 0, 0.1);
    transform-origin: top left;
    transition: transform 0.1s ease-out;
    position: absolute; /* Changed from relative to absolute for precise positioning */
    top: 0;
    left: 0;
    margin: 0;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbars in Firefox */
    /* Important for maintaining consistent appearance */
    contain: content; /* Improves performance by isolating the container */
    /* Ensure text stays crisp when scaled */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide scrollbars in all browsers */
.custom-menu-container::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.custom-menu-container::-webkit-scrollbar-track,
.custom-menu-container::-webkit-scrollbar-thumb {
    display: none;
}

/* Menu Header */
.custom-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px; /* Maintained margin */
    /* Prevent line breaks to maintain consistent appearance */
    white-space: nowrap;
}

/* Logo styling - increased size by 25% from original */
.custom-menu-logo {
    height: 58px; /* Increased further by 25% from 46px */
    display: flex;
    align-items: center;
}

.custom-menu-logo img.menu-logo {
    max-height: 58px; /* Increased further by 25% from 46px */
    width: auto;
}

/* Close Button - now outlined rectangle with matching X color */
.custom-menu-close-button { 
    background: var(--cfm-menu-close-button-bg);
    border: 1.5px solid var(--cfm-menu-close-button-border); /* Thinner border as requested */
    color: var(--cfm-menu-close-button-border);
    cursor: pointer;
    width: 48px; /* Increased size by 10% from 44px */
    height: 48px; /* Increased size by 10% from 44px */
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    padding: 0;
    border-radius: 4px; /* Rectangular with slight rounding */
    /* Ensure the button maintains its shape */
    flex-shrink: 0;
}

.custom-menu-close-button:hover {
    background-color: rgba(54, 1, 13, 0.1); /* Light hover effect */
    border-color: #4e0213; /* Darker border on hover */
}

.custom-menu-close-button .close-icon-x {
    display: block;
    width: 18px; /* Keeping X size the same */
    height: 18px; /* Keeping X size the same */
    position: relative;
    transform: rotate(-45deg);
}

.custom-menu-close-button .close-icon-x::before,
.custom-menu-close-button .close-icon-x::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px; /* Keeping line thickness the same */
    height: 100%;
    background-color: var(--cfm-menu-close-button-x);
    transform-origin: center;
}

.custom-menu-close-button .close-icon-x::before { 
    transform: translate(-50%, -50%) rotate(45deg); 
}

.custom-menu-close-button .close-icon-x::after { 
    transform: translate(-50%, -50%) rotate(-45deg); 
}

/* Main Navigation */
.custom-main-navigation {
    flex-grow: 0; /* Changed from 1 to 0 to prevent stretching */
    display: flex;
    flex-direction: column;
    margin-top: 25px;
    /* Prevent unnecessary wrapping */
    width: 100%;
}

.custom-main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.custom-main-navigation > ul > li {
    margin-top: 0;
    margin-bottom: 16px; /* Further reduced spacing between items */
    width: 100%;
}

/* Special spacing fixes for specific menu items */
.custom-main-navigation > ul > li:last-child {
    margin-bottom: 12px; /* Reduced bottom space for last items in sections */
}

.custom-main-navigation li a {
    text-decoration: none;
    color: var(--cfm-menu-text-color); 
    font-size: 16.5px; /* Increased by another 10% from 15px */
    font-weight: 500; /* Medium weight for initial state */
    display: block;
    transition: color 0.3s ease, letter-spacing 0.3s ease, font-weight 0.3s ease;
    letter-spacing: 0.5px;
    /* Prevent text overflow */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* All caps as requested */
    text-transform: uppercase;
}

.custom-main-navigation li a:hover {
    color: var(--cfm-menu-hover-color);
    letter-spacing: 0.8px;
    font-weight: 700; /* Bold on hover */
}

/* Menu Separators */
.custom-menu-separator {
    border: none;
    height: 1px;
    background-color: var(--cfm-menu-border-color); 
    margin: 16px 0; /* Further reduced margin for tighter spacing */
    width: 100%;
}

.custom-main-navigation > hr:last-of-type { 
    margin: 20px 0; /* Reduced margin for tighter spacing */
}

/* Submenu Styles */
.custom-main-navigation li.has-submenu .submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-main-navigation .submenu-arrow {
    font-size: 10px; 
    margin-left: 6px; 
    transition: transform 0.3s ease;
    color: var(--cfm-menu-text-color);
}

.custom-main-navigation li.has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

.custom-main-navigation .submenu-items {
    list-style: none;
    padding-left: 12px; 
    margin-top: 10px; 
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    width: calc(100% - 12px);
}

.custom-main-navigation li.has-submenu.open .submenu-items {
    /* max-height set by JS */
}

.custom-main-navigation .submenu-items li {
    margin-top: 0;
    margin-bottom: 8px; 
    width: 100%;
}

.custom-main-navigation .submenu-items li:last-child {
    margin-bottom: 0;
}

.custom-main-navigation .submenu-items li a {
    font-size: 14px; /* Increased submenu items to match proportion */
    font-weight: 500; /* Medium weight for initial state */
    letter-spacing: 0.2px; 
}

/* Secondary Links - increased spacing */
.custom-menu-secondary-links {
    display: flex;
    flex-wrap: wrap; 
    gap: 28px; /* Slightly increased spacing between secondary items */
    margin-top: 0; 
    margin-bottom: 30px;
    justify-content: flex-start;
    width: 100%;
}

.custom-menu-secondary-links a {
    text-decoration: none;
    color: var(--cfm-menu-text-color);
    font-size: 13px; /* Slightly increased for better proportions */
    font-weight: 500; /* Medium weight for initial state */
    letter-spacing: 0.4px; 
    transition: color 0.3s ease, font-weight 0.3s ease;
    /* Prevent text overflow */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* All caps as requested */
    text-transform: uppercase;
}

.custom-menu-secondary-links a:hover {
    color: var(--cfm-menu-hover-color);
    font-weight: 700; /* Bold on hover */
}

/* Menu Footer - fixed positioning that stays with the content */
.custom-menu-footer-group {
    width: 100%;
    margin-top: 30px; /* Fixed distance from secondary links */
    margin-bottom: 40px; /* Ensure padding at bottom */
    padding: 0;
    position: relative;
    flex-shrink: 0; /* Prevent shrinking */
}

.custom-menu-image-placeholder {
    width: 100%;
    background-color: white; /* Changed to white background */
    border-radius: 5px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    box-sizing: border-box;
    color: var(--cfm-menu-placeholder-text);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); 
    margin-bottom: 0; /* Ensure no bottom gap */
    position: relative;
    overflow: hidden;
}

/* Image container */
.placeholder-image {
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-promo-image {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

/* Content styling with rounded background */
.placeholder-image-content {
    background-color: transparent; /* Remove background as entire box is white now */
    padding: 0;
    border-radius: 0;
    position: relative;
    z-index: 1;
    text-align: left; /* Align text left */
}

.custom-menu-image-placeholder .placeholder-image-title {
    display: block;
    font-size: 22px; /* Reduced by 10% from 24px */
    font-weight: 700;
    color: var(--cfm-menu-text-color); 
    margin-bottom: 8px;
    text-transform: uppercase;
    text-align: left; /* Align text left */
}

.custom-menu-image-placeholder .placeholder-image-subtitle {
    display: block;
    font-size: 14px; /* Reduced by 10% from 16px */
    color: var(--cfm-menu-text-color); /* Match title color */
    line-height: 1.4; 
    margin-bottom: 0; 
    /* Allow subtitle to wrap properly */
    white-space: normal;
    text-align: left; /* Align text left */
}

/* These media queries are fallbacks only - the JS scaling handles most cases */
@media (max-width: 768px) {
    /* CSS variables remain unchanged to ensure consistent scaling */
    /* Only adjust if absolutely needed */
}

@media (max-width: 480px) {
    /* CSS variables remain unchanged to ensure consistent scaling */
    /* Only adjust if absolutely needed */
}

/* Media queries for overall menu layout and right content */
@media (max-width: 1366px) {
    .packages-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .packages-heading {
        font-size: 30px;
    }
    
    .package-title-overlay h3 {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .packages-container {
        padding: 30px 0;
        width: 95%;
    }
    
    .custom-menu-right-content {
        overflow-y: auto; /* Enable vertical scrolling for smaller screens */
    }
    
    .packages-heading {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .package-image-container {
        padding-top: 50%; /* Shorter image area on mobile */
    }
    
    .flash-deal-badge {
        width: 60px;
        height: 60px;
        font-size: 12px;
    }
    
    .booking-benefits {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-height: 700px) {
    .packages-container {
        padding: 20px 0;
    }
    
    .packages-heading {
        margin-bottom: 15px;
    }
    
    .package-details {
        padding: 15px;
    }
    
    .package-features li {
        margin-bottom: 4px;
        font-size: 13px;
    }
    
    .packages-grid {
        margin-bottom: 30px;
        gap: 15px;
    }
}

/* Adjustments for the combined menu with right side content */
@media (max-width: 1200px) {
    /* On smaller screens, make sure the menu area doesn't get too small */
    :root {
        --cfm-design-menu-width: 420px; /* Reduced width for smaller screens */
    }
    
    .custom-menu-right-content {
        padding-left: 20px; /* Add some space from the left menu */
    }
}

@media (max-width: 768px) {
    :root {
        --cfm-design-menu-width: 320px; /* Even smaller width for mobile */
    }
    
    .booking-buttons-section {
        padding: 20px;
    }
    
    .booking-button {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Special media query for very small screens */
@media (max-width: 576px) {
    /* On very small screens, show the menu fullscreen and hide right content */
    .custom-menu-container {
        width: 100%;
    }
    
    .custom-menu-right-content {
        display: none;
    }
}

/* Packages carousel styling */
.packages-carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 40px;
}

.packages-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

/* Carousel navigation arrows - using our main design throughout */
.carousel-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) rotate(45deg) !important;
    background-color: transparent !important;
    border: 1.5px solid #dbc58c !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 20 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    border-radius: 0 !important;
}

.carousel-arrow:hover {
    background-color: rgba(219, 197, 140, 0.1) !important;
}

.carousel-arrow-left {
    left: 0 !important; /* Position on the left edge of the container */
}

.carousel-arrow-right {
    right: 0 !important; /* Position on the right edge of the container */
}

.arrow-icon {
    line-height: 1 !important;
    transform: rotate(-45deg) !important; /* Counter-rotate for correct alignment */
    font-size: 20px !important;
    color: #dbc58c !important;
}

/* Carousel indicator dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(219, 197, 140, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #dbc58c;
}

/* Entrance animations for elements */
.packages-heading-container.animate-in,
.experience-tabs.animate-in, 
.packages-carousel-container.animate-in,
.carousel-controls.animate-in, 
.why-book-section.animate-in,
.action-banner.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 3D card effect on hover */
.package-card.hover .card-inner {
    transform: scale(1.02) translateZ(20px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.package-card.hover .package-badge {
    transform: scale(1.05);
}

/* Fade in animation for initially hidden elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shimmer effect for decoration elements */
@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Add subtle pulsing animation to the gold accents */
@keyframes accentPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

.book-button, 
.why-book-section h3::after,
.tab-button.active::after {
    animation: accentPulse 4s infinite ease-in-out;
}

/* Classy transition for category tabs */
.tab-button {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tab-button:hover::after {
    width: 40%;
}

/* Filtered slide transition */
.carousel-slide.filtered-out {
    opacity: 0.2;
    transform: scale(0.9);
    transition: all 0.5s ease;
    pointer-events: none;
}

/* Enhanced "Why Book With Us" section - adjusted spacing and size */
.why-book-section {
    margin-top: 40px; /* Increased from 15px to move it down by 4% */
    padding: 25px 0; /* Remove horizontal padding to align with carousel */
    border-radius: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    margin-left: 60px; /* Match the left padding of carousel to align with first package */
}

.why-book-section h3 {
    font-size: 21px; /* Increased by 5% from 20px */
    font-weight: 700;
    margin-bottom: 15px;
    color: #dbc58c;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
    text-align: left;
}

.why-book-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #dbc58c;
}

.booking-benefits {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
}

.booking-benefits li {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #dbc58c;
    transition: transform 0.3s ease;
}

.booking-benefits li:hover {
    transform: translateX(5px);
}

.benefit-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animation keyframes */
@keyframes dotPulse {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.5);
    }
}

/* Active slide styling */
.carousel-slide.active .package-card {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

/* Hide dots */
.carousel-controls {
    display: none !important;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-decoration {
    display: none !important;
}

.carousel-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1);
    will-change: transform;
}

.price {
    font-weight: 700;
    font-size: 18px;
}

.price-details {
    font-size: 12px;
    color: #666;
}

/* Media queries for different screen sizes */
@media (max-width: 1200px) {
    .packages-carousel-container {
        max-width: 1050px; /* Adjusted for smaller screens but still larger */
    }
    
    .carousel-slide {
        min-width: 47%; /* Maintain width */
    }
}

@media (max-width: 992px) {
    .carousel-slide {
        min-width: 100%; /* Fall back to 1 card for smaller screens */
        margin: 0; /* Remove margin when single card */
    }
    
    .packages-heading {
        font-size: 30px;
    }
    
    .package-features li {
        margin-bottom: 5px;
    }
}

/* Booking buttons section */
.booking-buttons-section {
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
    border: none;
}

.booking-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Increased from 25px for even more spacing between buttons */
    height: 100%;
    justify-content: center;
    padding: 0 10px; /* Add side padding to center content */
}

.booking-button {
    background-color: #36010D;
    color: #dbc58c;
    border: 1.5px solid #36010D;
    padding: 30px 30px; /* Increased vertical padding from 20px to 30px for much taller buttons */
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    display: block;
}

.booking-button:hover {
    background-color: #4E0213;
}

/* Grid Submenu Styles */
.custom-main-navigation .submenu-grid {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 0 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    width: calc(100% - 12px);
}

.custom-main-navigation li.has-submenu.open .submenu-grid {
    max-height: 300px; /* Adjust as needed */
}

.custom-main-navigation .submenu-column {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 32%;
}

.custom-main-navigation .submenu-column li {
    margin-top: 0;
    margin-bottom: 8px;
    width: 100%;
}

.custom-main-navigation .submenu-column li:last-child {
    margin-bottom: 0;
}

.custom-main-navigation .submenu-column li a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2px;
} 