/**
 * MONSTER PERFORMANCE CUSTOM FULLSCREEN MENU CSS 🚀
 * Enhanced for consistent appearance across all screen sizes
 * WCAG 2.1 AA compliant
 * Ultra-optimized for iPhone SE to iPhone 16 Pro Max
 */

/* 🔥 CRITICAL PERFORMANCE OPTIMIZATIONS */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    /* Critical rendering optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* 🚀 OPTIMIZED HARDWARE ACCELERATION - Only for active elements */
.custom-fullscreen-menu-overlay.open,
.custom-menu-container,
.carousel-track {
    /* Hardware acceleration only when needed to prevent scroll lag */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Remove will-change for static elements to improve scroll performance */
.custom-menu-right-content,
.package-card,
.custom-menu-header,
.custom-main-navigation {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* 📱 DEVICE-SPECIFIC OPTIMIZATIONS */
@supports (max-width: 375px) {
    /* iPhone SE optimizations */
    .custom-fullscreen-menu-overlay {
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
        -webkit-transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
        transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    }
}

@media (width: 390px) and (height: 844px) {
    /* iPhone 12/13/14 optimizations */
    .custom-menu-container {
        -webkit-transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
        transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    }
}

@media (width: 393px) and (height: 852px) {
    /* iPhone 14 Pro/15/15 Pro/16 optimizations */
    .custom-fullscreen-menu-overlay {
        /* ProMotion 120Hz optimizations */
        -webkit-transition: transform 0.2s cubic-bezier(0.19, 1, 0.22, 1);
        transition: transform 0.2s cubic-bezier(0.19, 1, 0.22, 1);
    }
}

@media (width: 402px) and (height: 874px) {
    /* iPhone 16 Pro optimizations */
    .package-card {
        -webkit-transform: scale(1.02);
        transform: scale(1.02);
    }
}

@media (width: 440px) and (height: 956px) {
    /* iPhone 16 Pro Max optimizations */
    .custom-menu-container {
        font-size: 1.05em;
    }
    .package-card {
        -webkit-transform: scale(1.03);
        transform: scale(1.03);
    }
}

/* 🎮 TOUCH OPTIMIZATION */
.custom-fullscreen-menu-trigger-button,
.custom-menu-close-button,
.carousel-arrow,
.submenu-toggle,
.book-button {
    /* Ultra-responsive touch targets */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
    cursor: pointer;
    /* Minimum 44px touch target */
    min-width: 44px;
    min-height: 44px;
}

/* 🎨 ULTRA-SMOOTH ANIMATIONS */
@media (prefers-reduced-motion: no-preference) {
    .custom-fullscreen-menu-overlay {
        -webkit-transition: 
            opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
            transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        transition: 
            opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
            transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }
    
    .custom-fullscreen-menu-overlay.closing {
        -webkit-transition: 
            opacity 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53),
            transform 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);
        transition: 
            opacity 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53),
            transform 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    }
}

/* 🚀 PROMOTION 120HZ OPTIMIZATIONS */
@media (max-resolution: 120dpi) and (min-resolution: 119dpi) {
    /* Likely ProMotion display */
    .custom-fullscreen-menu-overlay,
    .package-card,
    .carousel-track {
        -webkit-transition-duration: 0.15s;
        transition-duration: 0.15s;
    }
}

/* 💾 MEMORY OPTIMIZATION */
.custom-menu-right-content {
    /* Contain layout to prevent reflows */
    contain: layout style paint;
}

.carousel-track {
    /* Optimize for scroll performance without affecting page scroll */
    contain: layout;
    -webkit-overflow-scrolling: touch;
    /* Remove scroll-behavior to prevent interference with anchor navigation */
}

/* 🔋 BATTERY OPTIMIZATION */
@media (prefers-reduced-motion: reduce) {
    * {
        -webkit-transition: none !important;
        transition: none !important;
        -webkit-animation: none !important;
        animation: none !important;
    }
}

/* Screen reader only text */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus management - only show focus outlines during keyboard navigation */
.js-focus-visible :focus:not(.focus-visible) {
    outline: none !important;
}

/* Focus styles only when using keyboard navigation */
.js-focus-visible .focus-visible {
    outline: 2px solid var(--cfm-menu-hover-color) !important;
    outline-offset: 2px !important;
}

/* Ensure no focus outline on mouse interactions */
:focus:not(:focus-visible) {
    outline: none !important;
}

/* Only show focus outline when navigating with keyboard */
:focus-visible {
    outline: 2px solid var(--cfm-menu-hover-color) !important;
    outline-offset: 2px !important;
}

: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 {
    display: inline-block;
    cursor: pointer;
    /* Removed transform transition to prevent movement */
    
    /* Clean drop shadow for visibility against backgrounds */
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4)) 
            drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.custom-fullscreen-menu-trigger-button img {
    width: 60px;
    height: 60px;
    display: block;
}

.custom-fullscreen-menu-trigger-button:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
    /* Button stays static on hover - no transform */
}

/* Menu Overlay */
.custom-fullscreen-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #36010D; /* Changed from rgba(0, 0, 0, 0.3) to solid wine red */
    z-index: 2147483647 !important; /* Maximum possible z-index value */
    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;
    /* Initial state for slide animation - start off-screen to the left */
    transform: translateX(-100%);
}

.custom-fullscreen-menu-overlay.open {
    display: flex; 
    opacity: 1;
    align-items: flex-start; 
    justify-content: flex-start;
    /* Slide in from left animation */
    transform: translateX(0);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease-in-out;
}

/* Ensure smooth slide-out when closing */
.custom-fullscreen-menu-overlay.closing {
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53), opacity 0.3s ease-in-out;
}

/* 📱 MONSTER PERFORMANCE MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    .custom-fullscreen-menu-overlay {
        /* Ultra-fast mobile animations with hardware acceleration */
        -webkit-transition: 
            -webkit-transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
            opacity 0.2s cubic-bezier(0.23, 1, 0.32, 1);
        transition: 
            transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
            opacity 0.2s cubic-bezier(0.23, 1, 0.32, 1);
        
        /* Force GPU acceleration */
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
        
        /* Optimize rendering */
        will-change: transform, opacity;
        contain: layout style paint;
    }
    
    .custom-fullscreen-menu-overlay.open {
        -webkit-transition: 
            -webkit-transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
            opacity 0.25s cubic-bezier(0.23, 1, 0.32, 1);
        transition: 
            transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
            opacity 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    }
    
    .custom-fullscreen-menu-overlay.closing {
        -webkit-transition: 
            -webkit-transform 0.2s cubic-bezier(0.55, 0.085, 0.68, 0.53),
            opacity 0.15s cubic-bezier(0.55, 0.085, 0.68, 0.53);
        transition: 
            transform 0.2s cubic-bezier(0.55, 0.085, 0.68, 0.53),
            opacity 0.15s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    }
    
    /* Ultra-performance touch optimization */
    .custom-menu-container {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
        scroll-behavior: smooth;
        contain: layout;
    }
    
    /* Optimize carousel for mobile */
    .carousel-track {
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
        will-change: transform;
    }
    
    /* Package cards performance boost */
    .package-card {
        contain: layout style;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* 🚀 IPHONE SE ULTRA-OPTIMIZATIONS */
@media (max-width: 375px) {
    .custom-fullscreen-menu-overlay {
        /* Super-fast animations for older devices */
        -webkit-transition: 
            -webkit-transform 0.2s ease-out,
            opacity 0.15s ease-out;
        transition: 
            transform 0.2s ease-out,
            opacity 0.15s ease-out;
    }
    
    .custom-menu-container {
        /* Memory-optimized container */
        contain: strict;
        will-change: auto; /* Reset will-change for memory conservation */
    }
    
    /* Reduce visual complexity for performance */
    .package-card {
        box-shadow: none;
        border-radius: 0;
    }
}

/* 🔥 IPHONE 16 PRO MAX MAXIMUM PERFORMANCE */
@media (min-width: 440px) {
    .custom-fullscreen-menu-overlay {
        /* Ultra-premium animations for latest devices */
        -webkit-transition: 
            -webkit-transform 0.35s cubic-bezier(0.19, 1, 0.22, 1),
            opacity 0.3s cubic-bezier(0.19, 1, 0.22, 1);
        transition: 
            transform 0.35s cubic-bezier(0.19, 1, 0.22, 1),
            opacity 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    }
    
    /* Enhanced visuals for large displays */
    .package-card {
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        border-radius: 12px;
        -webkit-transition: 
            -webkit-transform 0.3s cubic-bezier(0.19, 1, 0.22, 1),
            box-shadow 0.3s cubic-bezier(0.19, 1, 0.22, 1);
        transition: 
            transform 0.3s cubic-bezier(0.19, 1, 0.22, 1),
            box-shadow 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    }
    
    .package-card:hover {
        /* Hover effect disabled */
        /* -webkit-transform: translateY(-4px) scale(1.02);
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 16px 48px rgba(0,0,0,0.16); */
    }
}

/* Right side content */
.custom-menu-right-content {
    position: absolute;
    top: 0;
    left: var(--cfm-design-menu-width);
    right: 0;
    width: calc(100vw - var(--cfm-design-menu-width)); /* Ensure full width coverage */
    height: 100vh; /* Use viewport height for full coverage */
    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: 40px; /* Increased from 20px for more safe area above "Rum & Paket" */
    padding-top: 20px; /* Reduced from 40px to 20px for smaller safe zone */
    padding-bottom: 20px; /* Add bottom padding for safe area */
    transform-origin: top left; /* For scaling */
    /* Ensure content extends to edges */
    box-sizing: border-box;
}

/* 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 30px; /* Reduced bottom padding from 50px to 30px */
    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;
}

/* Focus styles handled by focus-visible above */
.carousel-arrow:focus {
    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 */
}

/* Disabled arrow state for smooth UX */
.carousel-arrow.disabled {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    cursor: default !important;
}

.carousel-arrow.disabled .arrow-icon {
    color: rgba(219, 197, 140, 0.3) !important;
}

/* Smooth transitions for arrow state changes */
.carousel-arrow {
    transition: opacity 0.3s ease, visibility 0.3s ease, border-color 0.3s ease !important;
}

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

/* Boundary feedback animation for better UX */
.carousel-arrow.boundary-feedback {
    animation: boundaryShake 0.3s ease-in-out;
}

@keyframes boundaryShake {
    0%, 100% { transform: translateY(-50%) rotate(45deg) translateX(0); }
    25% { transform: translateY(-50%) rotate(45deg) translateX(-3px); }
    75% { transform: translateY(-50%) rotate(45deg) translateX(3px); }
}

/* 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 {
    /* Hover effect disabled */
    /* 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;
}

/* Header right section containing language switcher and close button */
.custom-menu-header-right {
    display: flex;
    align-items: center;
    gap: 32px; /* Increased space between language switcher and close button */
}

/* Logo styling - reduced size */
.custom-menu-logo {
    height: 46px; /* Reduced from 58px back to 46px */
    display: flex;
    align-items: center;
}

.custom-menu-logo img.menu-logo {
    max-height: 46px; /* Reduced from 58px back to 46px */
    width: auto;
}

/* Logo link styling */
.custom-menu-logo a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.custom-menu-logo a:hover {
    opacity: 0.8;
}

.custom-menu-logo a:focus {
    outline: 2px solid var(--cfm-menu-hover-color);
    outline-offset: 2px;
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 24px; /* Increased space between the two flags */
}

.language-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px; /* Move flags down more to center them better */
}

.language-link:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.language-link:focus {
    outline: 2px solid var(--cfm-menu-hover-color);
    outline-offset: 2px;
}

.language-flag {
    width: 20px; /* Reduced from 24px to make flags smaller */
    height: auto;
    display: block;
    border-radius: 2px;
}

/* 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 */
}

/* Focus styles handled by focus-visible above */
.custom-menu-close-button:focus {
    background-color: rgba(54, 1, 13, 0.1); /* Light focus effect */
    border-color: #4e0213; /* Darker border on focus */
}

.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 */
}

/* Ensure first menu item in each section has consistent spacing */
.custom-main-navigation > ul:first-child > li:first-child {
    margin-top: 0; /* No extra top margin for very first item */
}

/* Fine-tune spacing for specific menu items */
.custom-main-navigation li.has-submenu {
    margin-top: 4px; /* Further reduced spacing above "Aktiviteter" from "Coworking" */
    margin-bottom: 12px; /* Increased spacing below "Aktiviteter" to give more room from dropdown to Parkering */
}

/* Close spacing for Parkering item */
.custom-main-navigation li.close-spacing {
    margin-top: 8px; /* Increased distance from dropdown to Parkering for better spacing */
}

.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.4s ease, letter-spacing 0.4s ease, font-weight 0.4s ease, opacity 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);
    font-weight: 700; /* Bold on hover - removed letter-spacing resize effect */
}

/* Focus styles only for keyboard navigation */
.custom-main-navigation li a:focus-visible {
    color: var(--cfm-menu-hover-color);
    font-weight: 700; /* Bold on focus - removed letter-spacing resize effect */
    outline: 2px solid var(--cfm-menu-hover-color);
    outline-offset: 2px;
}

/* Remove focus styles for mouse interactions */
.custom-main-navigation li a:focus:not(:focus-visible) {
    outline: none;
}

/* Menu Separators */
.custom-menu-separator {
    border: none;
    height: 1px;
    background-color: var(--cfm-menu-border-color); 
    margin: 20px 0 24px 0; /* Consistent spacing: 20px above, 24px below separator */
    width: 100%;
}

.custom-main-navigation > hr:last-of-type { 
    margin: 20px 0 24px 0; /* Same consistent spacing for last separator */
}

/* Submenu Styles */
.custom-main-navigation li.has-submenu .submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Button styling to match menu links */
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 16.5px; /* Match menu link font size */
    font-weight: 500; /* Match menu link font weight */
    color: var(--cfm-menu-text-color);
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: color 0.4s ease, letter-spacing 0.4s ease, font-weight 0.4s ease, opacity 0.3s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.custom-main-navigation li.has-submenu .submenu-toggle:hover {
    color: var(--cfm-menu-hover-color);
    font-weight: 700;
}

.custom-main-navigation li.has-submenu .submenu-toggle:focus-visible {
    color: var(--cfm-menu-hover-color);
    font-weight: 700;
    outline: 2px solid var(--cfm-menu-hover-color);
    outline-offset: 2px;
}

.custom-main-navigation li.has-submenu .submenu-toggle:focus:not(:focus-visible) {
    outline: none;
}

/* Ensure submenu toggle doesn't behave like a link */
.custom-main-navigation li.has-submenu .submenu-toggle {
    text-decoration: none !important;
}

.custom-main-navigation li.has-submenu .submenu-toggle:visited {
    color: var(--cfm-menu-text-color);
}

.custom-main-navigation .submenu-arrow {
    font-size: 18px; 
    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.4s ease, font-weight 0.4s ease, opacity 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 - no resize effect */
}

/* Focus styles only for keyboard navigation */
.custom-menu-secondary-links a:focus-visible {
    color: var(--cfm-menu-hover-color);
    font-weight: 700; /* Bold on focus - no resize effect */
    outline: 2px solid var(--cfm-menu-hover-color);
    outline-offset: 2px;
}

.custom-menu-secondary-links a:focus:not(:focus-visible) {
    outline: none;
}

/* 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 */
}

/* Promo link styling for Håkan Hellström section */
.custom-menu-image-placeholder .promo-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
    overflow: hidden;
}

.custom-menu-image-placeholder .promo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
}

.custom-menu-image-placeholder .promo-link:focus {
    outline: 2px solid var(--cfm-menu-hover-color);
    outline-offset: 2px;
}

/* 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 */
    }
}

/* This media query is now handled by the mobile-specific rules above */

/* Mobile and iPad changes - hide right content, enable scrolling, fill gap */
@media (max-width: 1024px) {
    /* Hide right content completely on mobile and iPad */
    .custom-menu-right-content {
        display: none !important;
    }
    
    /* Make menu container fill entire screen */
    .custom-menu-container {
        width: 100% !important;
        height: 100vh !important;
        overflow-y: auto !important; /* Enable vertical scrolling */
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important; /* Smooth scrolling on iOS */
        padding: 70px 48px 48px 48px !important; /* Maintain padding */
        position: fixed !important; /* Ensure it fills the screen */
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        transform: none !important; /* Disable scaling on mobile and iPad */
        transform-origin: initial !important;
    }
    
    /* Ensure overlay fills screen properly */
    .custom-fullscreen-menu-overlay {
        width: 100vw !important;
        height: 100vh !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
    
    /* Reset any CSS variables that might affect width */
    :root {
        --cfm-design-menu-width: 100vw !important;
    }
}

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

/* Focus styles handled by focus-visible above */
.carousel-arrow:focus {
    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: 20px; /* Reduced from 40px to 20px to account for smaller safe zones */
    padding: 15px 0; /* Reduced padding from 25px to 15px */
    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: 900; /* Changed to extra bold */
    margin-bottom: 15px;
    color: #3e191e; /* Changed to requested color */
    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: #3e191e; /* Changed to match the title color */
}

.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 {
    /* Hover effect disabled */
    /* 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 {
    /* Hover effect disabled */
    /* background-color: #4E0213; */
}

/* Grid Submenu Styles */
.custom-main-navigation .submenu-grid {
    display: flex;
    justify-content: space-between;
    padding: 8px 0 0 8px; /* Reduced top padding from 15px to 8px, left padding from 12px to 8px */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease, visibility 0.3s ease;
    width: calc(100% - 8px); /* Adjusted to match new padding */
    /* Prevent affecting parent container size */
    position: relative;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
}

.custom-main-navigation li.has-submenu.open .submenu-grid {
    max-height: 300px !important; /* Adjust as needed */
    opacity: 1 !important;
    visibility: visible !important;
}

.custom-main-navigation .submenu-column {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 32%;
    /* Prevent column expansion affecting layout */
    flex-shrink: 0;
    box-sizing: border-box;
}

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

/* Mobile/Desktop title switching - inherit parent styles */
.desktop-title,
.mobile-title {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    color: inherit;
    text-transform: inherit;
    display: inline;
}

.desktop-title {
    display: inline;
}

.mobile-title {
    display: none;
}

/* Mobile optimizations for submenu */
@media (max-width: 480px) {
    .custom-main-navigation .submenu-grid {
        padding: 6px 0 0 4px; /* Even tighter margins on mobile */
        width: calc(100% - 4px);
        justify-content: flex-start; /* Left-align columns for better space usage */
        gap: 8px; /* Add small gap between columns */
    }
    
    .custom-main-navigation .submenu-column {
        width: 30%; /* Slightly smaller columns for more space */
        margin-right: 2px; /* Minimal right margin */
    }
    
    .custom-main-navigation .submenu-column li {
        margin-bottom: 6px; /* Reduced spacing between items */
    }
    
    .custom-main-navigation .submenu-column li a {
        font-size: 13px; /* Slightly smaller font on mobile */
        letter-spacing: 0.1px;
        padding: 2px 0; /* Add small vertical padding */
    }
    
    /* Switch to mobile titles on small screens */
    .desktop-title {
        display: none;
    }
    
    .mobile-title {
        display: inline;
        font-size: inherit; /* Ensure mobile title inherits the 13px */
        font-weight: inherit;
        letter-spacing: inherit;
    }
    
    /* Adjust has-submenu spacing on mobile */
    .custom-main-navigation li.has-submenu {
        margin-top: 2px;
        margin-bottom: 8px;
    }
    
    /* Adjust close-spacing for mobile */
    .custom-main-navigation li.close-spacing {
        margin-top: 4px;
    }
}

/* iPhone SE specific - ultra-compact */
@media (max-width: 375px) {
    .custom-main-navigation .submenu-grid {
        padding: 4px 0 0 2px; /* Ultra-tight margins */
        width: calc(100% - 2px);
        gap: 4px;
    }
    
    .custom-main-navigation .submenu-column {
        width: 31%; /* Use more available space */
    }
    
    .custom-main-navigation .submenu-column li a {
        font-size: 12px; /* Smaller font for iPhone SE */
        letter-spacing: 0px;
    }
    
    /* Ensure spans inherit iPhone SE styling */
    .custom-main-navigation .submenu-column .desktop-title,
    .custom-main-navigation .submenu-column .mobile-title {
        font-size: inherit; /* Inherit the 12px */
        font-weight: inherit;
        letter-spacing: inherit;
    }
}

/* ====================================================================
   HOMEPAGE BOOKING WIDGET - EXACT DESIGN MATCH
   ==================================================================== */

/* Homepage Booking Widget - Base Styles */
.homepage-booking-widget {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    z-index: 9999995; /* Very high z-index, still under boka menu and custom menu */
    pointer-events: none;
}

.booking-widget-container {
    background: transparent;
    pointer-events: all;
    width: 100%;
    
    /* Strong drop shadow for visibility against backgrounds */
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6)) 
            drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4))
            drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

/* Booking Header with Lines */
.booking-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px; /* Reduced from 20px to bring closer to buttons */
    position: relative;
    width: 100%;
}

.booking-header::before,
.booking-header::after {
    content: '';
    height: 1px;
    background: #dbc58c; /* Gold color like your image */
    /* Lines extend to button edges */
    flex: 1; /* Take up all available space */
    max-width: none; /* Remove max-width restriction */
    min-width: 20px; /* Minimum fallback */
    margin: 0 10px; /* Small margin next to BOKA text */
}

.booking-title {
    font-size: 13px; /* Reduced from 16px to make smaller */
    font-weight: 700;
    letter-spacing: 3px; /* Reduced from 4px for smaller text */
    color: #dbc58c; /* Gold color like your image */
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0;
    padding: 0 8px; /* Reduced padding for smaller text */
}

/* Booking Buttons Row */
.booking-buttons-row {
    display: flex;
    gap: 2vw; /* Responsive gap that scales with viewport */
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap; /* Never wrap - always 3 in a row */
}

.booking-btn {
    /* EXACT styling from boka-paket-btn but with reduced height */
    background-color: #36010d;
    color: #dbc58c;
    text-decoration: none;
    padding: 10px 20px; /* Reduced from 14px to make shorter */
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
    min-width: 110px;
    text-align: center;
    cursor: pointer;
    font-family: 'futura-pt', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 40px; /* Reduced from 48px */
    height: 40px; /* Reduced from 48px */
    line-height: 1;
    margin: 0;
    outline: none;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Responsive scaling */
    flex: 1;
    max-width: 180px;
    
    /* Text fitting optimizations */
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-btn:hover {
    background-color: #4a1a1a; /* Exact same as boka menu hover */
    color: #e6c547; /* Exact same as boka menu hover */
    box-shadow: 0 4px 12px rgba(54, 1, 13, 0.4);
}

.booking-btn:active {
    /* Removed transform animation */
}

.booking-btn:focus {
    outline: 2px solid #dbc58c;
    outline-offset: 2px;
}

.booking-btn span {
    white-space: nowrap;
    font-family: inherit;
}

/* ====================================================================
   RESPONSIVE OPTIMIZATIONS FOR ALL DEVICES
   ==================================================================== */

/* iPhone SE (375×667) - Ultra Conservative - HEAVY TEXT OPTIMIZATION */
@media (width: 375px) and (height: 667px) {
    .homepage-booking-widget {
        padding: 12px 8px calc(12px + env(safe-area-inset-bottom)) 8px;
    }
    
    .booking-title {
        font-size: 10px; /* Ultra compact for SE */
        letter-spacing: 1.8px;
    }
    
    .booking-header {
        margin-bottom: 8px;
    }
    
    .booking-header::before,
    .booking-header::after {
        margin: 0 6px; /* Tight margin for SE */
        flex: 1;
        min-width: 12px;
    }
    
    .booking-buttons-row {
        gap: 0.6vw; /* Minimal gap for maximum button space */
    }
    
    .booking-btn {
        padding: 7px 4px; /* Ultra tight padding */
        /* Ultra-compact for iPhone SE */
        padding: 7px 4px; /* Minimal padding for text space */
        font-size: 8px; /* Very small for tight space */
        letter-spacing: 0.2px;
        min-width: 90px; /* Increased width for text */
        max-width: 110px;
        min-height: 30px; /* Shorter for compact look */
        height: 30px;
        flex: 1; /* Equal distribution */
    }
    
    /* Special ultra-compact for "KONFERENS" */
    .booking-btn[data-booking-type="meeting"] {
        font-size: 7px; /* Tiny for longest text */
        letter-spacing: 0.1px;
        padding: 7px 2px; /* Minimal horizontal padding */
    }
}

/* iPhone 12 Mini (375×812) - HEAVY TEXT OPTIMIZATION */
@media (width: 375px) and (height: 812px) {
    .homepage-booking-widget {
        padding: 14px 10px calc(14px + env(safe-area-inset-bottom)) 10px;
    }
    
    .booking-title {
        font-size: 11px; /* Optimized size */
        letter-spacing: 2px;
    }
    
    .booking-header {
        margin-bottom: 9px;
    }
    
    .booking-header::before,
    .booking-header::after {
        margin: 0 7px; /* Balanced margin */
        flex: 1;
        min-width: 15px;
    }
    
    .booking-buttons-row {
        gap: 0.8vw; /* Tighter for text space */
    }
    
    .booking-btn {
        padding: 8px 6px; /* Optimized padding */
        font-size: 9px; /* Better fit for "KONFERENS" */
        letter-spacing: 0.3px;
        min-width: 95px; /* More width for text */
        max-width: 118px;
        min-height: 32px; /* Compact height */
        height: 32px;
        flex: 1; /* Equal distribution */
    }
    
    .booking-btn[data-booking-type="meeting"] {
        font-size: 8px; /* Smaller for "KONFERENS" */
        letter-spacing: 0.15px;
        padding: 8px 4px;
    }
}

/* iPhone 13/14/15 (390×844) - HEAVY TEXT OPTIMIZATION */
@media (width: 390px) and (height: 844px) {
    .homepage-booking-widget {
        padding: 16px 12px calc(16px + env(safe-area-inset-bottom)) 12px;
    }
    
    .booking-title {
        font-size: 12px; /* Good size for this screen */
        letter-spacing: 2.5px;
    }
    
    .booking-header {
        margin-bottom: 10px;
    }
    
    .booking-header::before,
    .booking-header::after {
        margin: 0 9px; /* Balanced margin */
        flex: 1;
        min-width: 18px;
    }
    
    .booking-buttons-row {
        gap: 1vw; /* Optimized gap */
    }
    
    .booking-btn {
        padding: 9px 8px; /* Good padding for text */
        font-size: 10px; /* Better fit for "KONFERENS" */
        letter-spacing: 0.4px;
        min-width: 100px; /* More width for text */
        max-width: 128px;
        min-height: 34px; /* Balanced height */
        height: 34px;
        flex: 1; /* Equal distribution */
    }
    
    .booking-btn[data-booking-type="meeting"] {
        font-size: 9px; /* Optimized for "KONFERENS" */
        letter-spacing: 0.25px;
        padding: 9px 6px;
    }
}

/* iPhone 12/13/14/15 Pro (393×852) - HEAVY TEXT OPTIMIZATION */
@media (width: 393px) and (height: 852px) {
    .homepage-booking-widget {
        padding: 16px 14px calc(16px + env(safe-area-inset-bottom)) 14px;
    }
    
    .booking-title {
        font-size: 12px; /* Optimized size */
        letter-spacing: 2.8px;
    }
    
    .booking-header {
        margin-bottom: 10px;
    }
    
    .booking-header::before,
    .booking-header::after {
        margin: 0 10px; /* Balanced margin */
        flex: 1;
        min-width: 20px;
    }
    
    .booking-buttons-row {
        gap: 1.2vw; /* Better spacing */
    }
    
    .booking-btn {
        padding: 10px 10px; /* Good padding for text */
        font-size: 10.5px; /* Better fit */
        letter-spacing: 0.5px;
        min-width: 105px; /* More width for "KONFERENS" */
        max-width: 132px;
        min-height: 36px; /* Balanced height */
        height: 36px;
        flex: 1; /* Equal distribution */
    }
    
    .booking-btn[data-booking-type="meeting"] {
        font-size: 9.5px; /* Optimized for "KONFERENS" */
        letter-spacing: 0.3px;
        padding: 10px 8px;
    }
}

/* iPhone 16 Pro (402×874) - HEAVY TEXT OPTIMIZATION */
@media (width: 402px) and (height: 874px) {
    .homepage-booking-widget {
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom)) 16px;
    }
    
    .booking-title {
        font-size: 13px; /* Good size for larger screen */
        letter-spacing: 3px;
    }
    
    .booking-header {
        margin-bottom: 11px;
    }
    
    .booking-header::before,
    .booking-header::after {
        margin: 0 12px; /* Balanced margin */
        flex: 1;
        min-width: 22px;
    }
    
    .booking-buttons-row {
        gap: 1.5vw; /* Optimized spacing */
    }
    
    .booking-btn {
        padding: 11px 12px; /* Good padding */
        font-size: 11px; /* Better fit for "KONFERENS" */
        letter-spacing: 0.6px;
        min-width: 110px; /* More width for text */
        max-width: 138px;
        min-height: 38px; /* Balanced height */
        height: 38px;
        flex: 1; /* Equal distribution */
    }
    
    .booking-btn[data-booking-type="meeting"] {
        font-size: 10px; /* Optimized for "KONFERENS" */
        letter-spacing: 0.4px;
        padding: 11px 10px;
    }
}

/* iPhone 12/13/14/15 Pro Max (428×926) - HEAVY TEXT OPTIMIZATION */
@media (width: 428px) and (height: 926px) {
    .homepage-booking-widget {
        padding: 20px 18px calc(20px + env(safe-area-inset-bottom)) 18px;
    }
    
    .booking-title {
        font-size: 14px; /* Good size for Pro Max */
        letter-spacing: 3.2px;
    }
    
    .booking-header {
        margin-bottom: 11px;
    }
    
    .booking-header::before,
    .booking-header::after {
        margin: 0 14px; /* Balanced margin */
        flex: 1;
        min-width: 25px;
    }
    
    .booking-buttons-row {
        gap: 1.8vw; /* Better spacing */
    }
    
    .booking-btn {
        padding: 11px 14px; /* Good padding */
        font-size: 11.5px; /* Better fit for "KONFERENS" */
        letter-spacing: 0.7px;
        min-width: 118px; /* More width for text */
        max-width: 148px;
        min-height: 38px; /* Balanced height */
        height: 38px;
        flex: 1; /* Equal distribution */
    }
    
    .booking-btn[data-booking-type="meeting"] {
        font-size: 10.5px; /* Optimized for "KONFERENS" */
        letter-spacing: 0.5px;
        padding: 11px 12px;
    }
}

/* iPhone 16 Pro Max (440×956) - HEAVY TEXT OPTIMIZATION */
@media (width: 440px) and (height: 956px) {
    .homepage-booking-widget {
        padding: 22px 20px calc(22px + env(safe-area-inset-bottom)) 20px;
    }
    
    .booking-title {
        font-size: 15px; /* Good size for largest iPhone */
        letter-spacing: 3.5px;
    }
    
    .booking-header {
        margin-bottom: 12px;
    }
    
    .booking-header::before,
    .booking-header::after {
        margin: 0 16px; /* Balanced margin */
        flex: 1;
        min-width: 28px;
    }
    
    .booking-buttons-row {
        gap: 2vw; /* Optimized spacing */
    }
    
    .booking-btn {
        padding: 11px 16px; /* Comfortable padding */
        font-size: 12px; /* Perfect fit for "KONFERENS" */
        letter-spacing: 0.8px;
        min-width: 125px; /* Generous width for text */
        max-width: 160px;
        min-height: 40px; /* Match base design */
        height: 40px;
        flex: 1; /* Equal distribution */
    }
    
    .booking-btn[data-booking-type="meeting"] {
        font-size: 11px; /* Optimized for "KONFERENS" */
        letter-spacing: 0.6px;
        padding: 11px 14px;
    }
}

/* Small Mobile Devices - EXTREME TEXT OPTIMIZATION */
@media (max-width: 374px) {
    .homepage-booking-widget {
        padding: 10px 6px calc(10px + env(safe-area-inset-bottom)) 6px;
    }
    
    .booking-title {
        font-size: 9px; /* Very small for tiny screens */
        letter-spacing: 1.2px;
    }
    
    .booking-header {
        margin-bottom: 6px; /* Tight spacing */
    }
    
    .booking-header::before,
    .booking-header::after {
        margin: 0 4px; /* Minimal margin */
        flex: 1;
        min-width: 8px;
    }
    
    .booking-buttons-row {
        gap: 0.2vw; /* Extremely tight gap */
        flex-wrap: nowrap;
    }
    
    .booking-btn {
        padding: 6px 2px; /* Minimal padding for max text space */
        font-size: 7px; /* Tiny font for extreme space saving */
        letter-spacing: 0.05px;
        min-width: 85px; /* More width for "KONFERENS" */
        max-width: 100px;
        min-height: 28px; /* Very compact */
        height: 28px;
        flex: 1; /* Equal distribution */
    }
    
    /* Ultra-compact for "KONFERENS" */
    .booking-btn[data-booking-type="meeting"] {
        font-size: 6px; /* Extremely small */
        letter-spacing: 0px;
        padding: 6px 1px; /* Minimal padding */
    }
}

/* Large Mobile Devices */
@media (min-width: 480px) and (max-width: 767px) {
    .homepage-booking-widget {
        padding: 24px 28px calc(24px + env(safe-area-inset-bottom)) 28px;
    }
    
    .booking-title {
        font-size: 15px; /* Reduced from 18px to make smaller */
        letter-spacing: 4px; /* Reduced for smaller text */
    }
    
    .booking-header {
        margin-bottom: 12px; /* Reduced to bring closer to buttons */
    }
    
    .booking-header::before,
    .booking-header::after {
        margin: 0 20px; /* Small margin next to BOKA text */
        flex: 1; /* Extend to button edges */
        min-width: 30px;
    }
    
    .booking-buttons-row {
        gap: 20px;
    }
    
    .booking-btn {
        padding: 11px 30px; /* Reduced vertical padding for shorter buttons */
        font-size: 15px;
        letter-spacing: 1.8px;
        min-width: 140px;
        min-height: 40px; /* Added explicit height to match base */
        height: 40px; /* Added explicit height to match base */
    }
}

/* Tablet Devices */
@media (min-width: 768px) and (max-width: 1024px) {
    .homepage-booking-widget {
        padding: 28px 32px calc(28px + env(safe-area-inset-bottom)) 32px;
    }
    
    .booking-title {
        font-size: 16px; /* Reduced from 20px to make smaller */
        letter-spacing: 4.5px; /* Reduced for smaller text */
    }
    
    .booking-header {
        margin-bottom: 12px; /* Reduced to bring closer to buttons */
    }
    
    .booking-header::before,
    .booking-header::after {
        margin: 0 24px; /* Small margin next to BOKA text */
        flex: 1; /* Extend to button edges */
        min-width: 35px;
    }
    
    .booking-buttons-row {
        gap: 24px;
    }
    
    .booking-btn {
        padding: 11px 36px; /* Reduced vertical padding for shorter buttons */
        font-size: 16px;
        letter-spacing: 2px;
        min-width: 160px;
        min-height: 40px; /* Added explicit height to match base */
        height: 40px; /* Added explicit height to match base */
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .homepage-booking-widget {
        padding: 32px 40px calc(32px + env(safe-area-inset-bottom)) 40px;
    }
    
    .booking-title {
        font-size: 17px; /* Reduced from 22px to make smaller */
        letter-spacing: 5px; /* Reduced for smaller text */
    }
    
    .booking-header {
        margin-bottom: 12px; /* Reduced to bring closer to buttons */
    }
    
    .booking-header::before,
    .booking-header::after {
        margin: 0 28px; /* Small margin next to BOKA text */
        flex: 1; /* Extend to button edges */
        min-width: 40px;
    }
    
    .booking-buttons-row {
        gap: 28px;
    }
    
    .booking-btn {
        padding: 11px 40px; /* Reduced vertical padding for shorter buttons */
        font-size: 18px;
        letter-spacing: 2.2px;
        min-width: 180px;
        min-height: 40px; /* Added explicit height to match base */
        height: 40px; /* Added explicit height to match base */
    }
}

/* ====================================================================
   ACCESSIBILITY & TOUCH OPTIMIZATIONS
   ==================================================================== */

/* Enhanced touch targets for mobile */
@media (max-width: 767px) {
    .booking-btn {
        -webkit-tap-highlight-color: rgba(219, 196, 138, 0.3);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        touch-action: manipulation;
    }
    
    .booking-buttons-row {
        flex-wrap: nowrap; /* Always keep 3 buttons in a row */
    }
}

/* Dark mode support - matches boka menu exactly */
@media (prefers-color-scheme: dark) {
    .booking-header::before,
    .booking-header::after {
        background: #dbc58c; /* Keep gold lines in dark mode */
    }
    
    .booking-title {
        color: #dbc58c; /* Keep gold text in dark mode */
    }
    
    .booking-btn {
        background-color: #36010d; /* Exact same as boka-paket-btn */
        color: #dbc58c; /* Exact same as boka-paket-btn */
        border: none;
    }
    
    .booking-btn:hover {
        background-color: #4a1a1a; /* Exact same as boka-paket-btn hover */
        color: #e6c547; /* Exact same as boka-paket-btn hover */
    }
    
    .booking-btn:focus {
        outline-color: #dbc58c;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .booking-widget-container {
        border-width: 3px;
        background: rgba(255, 255, 255, 1); /* Solid background for high contrast */
    }
    
    .booking-header {
        border-bottom-width: 3px;
    }
    
    .booking-buttons-row .booking-btn {
        border-right-width: 3px;
    }
    
    .booking-btn:focus {
        outline-width: 3px;
    }
}

/* Add bottom padding to body to prevent content overlap */
body:has(.homepage-booking-widget) {
    padding-bottom: 100px; /* Ensure content doesn't get hidden behind the fixed widget */
}

/* Fallback for browsers that don't support :has() */
.has-homepage-booking {
    padding-bottom: 100px !important;
}

/* Hide on print */
@media print {
    .homepage-booking-widget {
        display: none !important;
    }
}

/* ====================================================================
   SCROLL FADE LOGO - [logo] SHORTCODE
   ==================================================================== */

/* Logo container with scroll fade functionality */
.cfm-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    
    /* Clean drop shadow for visibility against backgrounds */
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4)) 
            drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

/* Logo image styling */
.cfm-logo-image {
    display: block;
    height: auto;
    max-width: 100%;
    width: auto;
    
    /* Default size - can be overridden by parent containers */
    max-height: 50px;
    
    /* Smooth rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
}

/* Fade states controlled by JavaScript */
.cfm-logo-container.fade-out {
    opacity: 0;
    pointer-events: none;
}

.cfm-logo-container.fade-in {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .cfm-logo-image {
        max-height: 40px; /* Smaller on mobile */
    }
}

@media (max-width: 480px) {
    .cfm-logo-image {
        max-height: 35px; /* Even smaller on very small screens */
    }
}

/* High DPI display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cfm-logo-image {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cfm-logo-container {
        transition: none;
    }
}

/* Slide up animation for initial appearance */
@keyframes slideUpFadeIn {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animation for widget appearance */
.homepage-booking-widget {
    animation: slideUpFadeIn 0.6s ease-out forwards;
}

/* Smooth scroll behavior to avoid conflicts with fixed positioning */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Reduced motion support - disable animations */
@media (prefers-reduced-motion: reduce) {
    .homepage-booking-widget {
        animation: none;
    }
}

/* ====================================================================
   RESTAURANT MENU TRIGGER CLASS
   ==================================================================== */

/* Universal class to make any button open the restaurant menu */
.open-restaurant-menu {
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.open-restaurant-menu:hover {
    opacity: 0.8;
}

.open-restaurant-menu:active {
    /* Removed transform animation */
}

/* Enhanced touch feedback for mobile */
@media (max-width: 767px) {
    .open-restaurant-menu {
        -webkit-touch-callout: none;
        touch-action: manipulation;
    }
}

/* Accessibility - focus styles */
.open-restaurant-menu:focus {
    outline: 2px solid #dbc58c;
    outline-offset: 2px;
}

.open-restaurant-menu:focus:not(:focus-visible) {
    outline: none;
} 

/* ====================================================================
   ADVANCED HORIZONTAL GRID SCROLLER FOR AVADA WORDPRESS
   Ultra-robust, mobile-optimized, iPhone-perfect implementation
   ==================================================================== */

/* 🚀 CORE SCROLLER FUNCTIONALITY */
.scroller {
    /* Core horizontal scrolling setup */
    display: flex !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    
    /* Advanced touch optimization */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding: 20px;
    
    /* Performance optimizations */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    
    /* Visual enhancements */
    gap: 20px;
    padding: 20px;
    margin: 0 -20px;
    
    /* Remove default scrollbars on desktop for cleaner look */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroller::-webkit-scrollbar {
    display: none;
}

/* 🎯 AVADA COLUMN PRESERVATION */
.scroller > * {
    /* Preserve original column behavior while enabling horizontal layout */
    flex-shrink: 0;
    scroll-snap-align: start;
    
    /* Performance optimization for scrolling */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    
    /* Ensure proper touch targets */
    min-height: 44px;
}

/* 📱 AVADA FUSION COLUMN WIDTHS - MOBILE FIRST */
/* Preserve Avada's responsive column system but ensure minimum widths for horizontal scrolling */

/* Base mobile widths (< 480px) - Set minimum widths only to preserve Avada's responsive behavior */
.scroller > .fusion-one-full,
.scroller > .fusion-column-wrapper {
    min-width: 280px;
}

.scroller > .fusion-one-half {
    min-width: 240px;
}

.scroller > .fusion-one-third {
    min-width: 200px;
}

.scroller > .fusion-one-fourth,
.scroller > .fusion-one-quarter {
    min-width: 180px;
}

.scroller > .fusion-one-fifth {
    min-width: 160px;
}

.scroller > .fusion-one-sixth {
    min-width: 140px;
}

.scroller > .fusion-two-third {
    min-width: 260px;
}

.scroller > .fusion-three-fourth {
    min-width: 240px;
}

.scroller > .fusion-two-fifth {
    min-width: 200px;
}

.scroller > .fusion-three-fifth {
    min-width: 220px;
}

.scroller > .fusion-four-fifth {
    min-width: 240px;
}

.scroller > .fusion-five-sixth {
    min-width: 260px;
}

/* 📱 IPHONE-SPECIFIC OPTIMIZATIONS */

/* iPhone SE (375×667) - Ultra-compact optimization */
@media (width: 375px) and (height: 667px) {
    .scroller {
        gap: 12px;
        padding: 12px;
        margin: 0 -12px;
        scroll-padding: 12px;
    }
    
    .scroller > .fusion-one-full,
    .scroller > .fusion-column-wrapper {
        min-width: 260px;
    }
    
    .scroller > .fusion-one-half {
        min-width: 220px;
    }
    
    .scroller > .fusion-one-third {
        min-width: 180px;
    }
    
    .scroller > .fusion-one-fourth {
        min-width: 160px;
    }
    
    .scroller > .fusion-one-fifth {
        min-width: 140px;
    }
    
    .scroller > .fusion-one-sixth {
        min-width: 120px;
    }
}

/* iPhone 12 Mini (375×812) */
@media (width: 375px) and (height: 812px) {
    .scroller {
        gap: 14px;
        padding: 14px;
        margin: 0 -14px;
        scroll-padding: 14px;
    }
    
    .scroller > .fusion-one-full {
        min-width: 270px;
    }
    
    .scroller > .fusion-one-half {
        min-width: 230px;
    }
    
    .scroller > .fusion-one-third {
        min-width: 190px;
    }
    
    .scroller > .fusion-one-fourth {
        min-width: 170px;
    }
}

/* iPhone 13/14/15 (390×844) */
@media (width: 390px) and (height: 844px) {
    .scroller {
        gap: 16px;
        padding: 16px;
        margin: 0 -16px;
        scroll-padding: 16px;
    }
    
    .scroller > .fusion-one-full {
        min-width: 280px;
    }
    
    .scroller > .fusion-one-half {
        min-width: 240px;
    }
    
    .scroller > .fusion-one-third {
        min-width: 200px;
    }
    
    .scroller > .fusion-one-fourth {
        min-width: 180px;
    }
}

/* iPhone 12/13/14/15 Pro (393×852) */
@media (width: 393px) and (height: 852px) {
    .scroller {
        gap: 16px;
        padding: 16px;
        margin: 0 -16px;
        scroll-padding: 16px;
    }
    
    .scroller > .fusion-one-full {
        min-width: 285px;
    }
    
    .scroller > .fusion-one-half {
        min-width: 245px;
    }
    
    .scroller > .fusion-one-third {
        min-width: 205px;
    }
    
    .scroller > .fusion-one-fourth {
        min-width: 185px;
    }
}

/* iPhone 16 Pro (402×874) */
@media (width: 402px) and (height: 874px) {
    .scroller {
        gap: 18px;
        padding: 18px;
        margin: 0 -18px;
        scroll-padding: 18px;
    }
    
    .scroller > .fusion-one-full {
        min-width: 290px;
    }
    
    .scroller > .fusion-one-half {
        min-width: 250px;
    }
    
    .scroller > .fusion-one-third {
        min-width: 210px;
    }
    
    .scroller > .fusion-one-fourth {
        min-width: 190px;
    }
}

/* iPhone 12/13/14 Pro Max (428×926) */
@media (width: 428px) and (height: 926px) {
    .scroller {
        gap: 20px;
        padding: 20px;
        margin: 0 -20px;
        scroll-padding: 20px;
    }
    
    .scroller > .fusion-one-full {
        min-width: 300px;
        width: 300px;
    }
    
    .scroller > .fusion-one-half {
        min-width: 260px;
        width: 260px;
    }
    
    .scroller > .fusion-one-third {
        min-width: 220px;
        width: 220px;
    }
    
    .scroller > .fusion-one-fourth {
        min-width: 200px;
        width: 200px;
    }
}

/* iPhone 15/16 Pro Max (440×956) */
@media (width: 440px) and (height: 956px) {
    .scroller {
        gap: 22px;
        padding: 22px;
        margin: 0 -22px;
        scroll-padding: 22px;
    }
    
    .scroller > .fusion-one-full {
        min-width: 310px;
        width: 310px;
    }
    
    .scroller > .fusion-one-half {
        min-width: 270px;
        width: 270px;
    }
    
    .scroller > .fusion-one-third {
        min-width: 230px;
        width: 230px;
    }
    
    .scroller > .fusion-one-fourth {
        min-width: 210px;
        width: 210px;
    }
}

/* 📱 GENERAL MOBILE OPTIMIZATIONS */
@media (max-width: 480px) {
    .scroller {
        /* Enhanced touch responsiveness */
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        
        /* Prevent elastic bounce on iOS */
        overscroll-behavior-x: contain;
        -webkit-overscroll-behavior-x: contain;
        
        /* Smoother scrolling */
        scroll-behavior: smooth;
    }
    
    .scroller > * {
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
}

/* 📟 TABLET OPTIMIZATIONS */
@media (min-width: 481px) and (max-width: 768px) {
    .scroller {
        gap: 24px;
        padding: 24px;
        margin: 0 -24px;
        scroll-padding: 24px;
    }
    
    .scroller > .fusion-one-full {
        min-width: 320px;
        width: 320px;
    }
    
    .scroller > .fusion-one-half {
        min-width: 280px;
        width: 280px;
    }
    
    .scroller > .fusion-one-third {
        min-width: 240px;
        width: 240px;
    }
    
    .scroller > .fusion-one-fourth {
        min-width: 220px;
        width: 220px;
    }
}

/* 💻 DESKTOP ENHANCEMENTS */
@media (min-width: 769px) {
    .scroller {
        gap: 30px;
        padding: 30px;
        margin: 0 -30px;
        scroll-padding: 30px;
        
        /* Desktop-specific optimizations */
        scroll-snap-type: x proximity;
    }
    
    .scroller > .fusion-one-full {
        min-width: 350px;
        width: 350px;
    }
    
    .scroller > .fusion-one-half {
        min-width: 300px;
        width: 300px;
    }
    
    .scroller > .fusion-one-third {
        min-width: 260px;
        width: 260px;
    }
    
    .scroller > .fusion-one-fourth {
        min-width: 240px;
        width: 240px;
    }
    
    /* Add subtle scroll indicators on desktop */
    .scroller::before,
    .scroller::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 30px;
        pointer-events: none;
        z-index: 10;
    }
    
    .scroller::before {
        left: 0;
        background: linear-gradient(to right, rgba(255,255,255,0.8), transparent);
    }
    
    .scroller::after {
        right: 0;
        background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
    }
}

/* 🎨 ADVANCED VISUAL ENHANCEMENTS */
.scroller {
    /* Subtle border for definition */
    border-radius: 8px;
    position: relative;
}

/* Add momentum and easing for ultra-smooth scrolling */
.scroller {
    scroll-timeline: --scroller inline;
    animation-timeline: --scroller;
}

/* 🔄 SCROLL SNAP REFINEMENTS */
.scroller > * {
    /* Perfect scroll positioning */
    scroll-margin: 20px;
    
    /* Smooth transitions when snapping */
    transition: transform 0.2s ease-out;
}

.scroller > *:hover {
    transform: translateY(-2px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🎯 ACCESSIBILITY IMPROVEMENTS */
@media (prefers-reduced-motion: reduce) {
    .scroller {
        scroll-behavior: auto;
        scroll-snap-type: none;
    }
    
    .scroller > * {
        scroll-snap-align: none;
        transition: none;
    }
    
    .scroller > *:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .scroller {
        border: 2px solid currentColor;
    }
    
    .scroller::before,
    .scroller::after {
        background: linear-gradient(to right, rgba(0,0,0,0.9), transparent);
    }
}

/* 🔋 PERFORMANCE OPTIMIZATIONS */
.scroller {
    /* GPU acceleration */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    
    /* Optimize repaints */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    
    /* Contain layout recalculations */
    contain: layout style paint size;
}

.scroller > * {
    /* Individual item optimization */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

/* 🚨 EDGE CASE HANDLING */
/* Handle empty or single-item containers gracefully */
.scroller:empty {
    display: none;
}

.scroller > *:only-child {
    scroll-snap-align: center;
    margin: 0 auto;
}

/* Handle very wide content */
.scroller > * {
    max-width: 90vw;
    min-width: 120px; /* Absolute minimum for usability */
}

/* 🔧 AVADA THEME INTEGRATION */
/* Ensure compatibility with Avada's builder elements */
.scroller .fusion-builder-row,
.scroller .fusion-row {
    flex-shrink: 0;
    display: block; /* Preserve Avada's display style */
}

.scroller .fusion-column-wrapper {
    flex-shrink: 0;
    display: block; /* Preserve Avada's display style */
}

/* Ensure Avada columns remain visible */
.scroller > [class*="fusion-one-"],
.scroller > [class*="fusion-two-"],
.scroller > [class*="fusion-three-"],
.scroller > [class*="fusion-four-"],
.scroller > [class*="fusion-five-"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 📱 ULTRA-MOBILE OPTIMIZATIONS */
@media (max-width: 320px) {
    /* For very small devices */
    .scroller {
        gap: 8px;
        padding: 8px;
        margin: 0 -8px;
    }
    
    .scroller > * {
        min-width: 100px;
        scroll-snap-align: center;
    }
}

/* 🎪 BONUS: SMOOTH SCROLLING INDICATORS */
@media (min-width: 769px) {
    .scroller-container {
        position: relative;
    }
    
    .scroller-container::after {
        content: '← Scroll to see more →';
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        color: #666;
        white-space: nowrap;
        pointer-events: none;
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }
    
    .scroller-container:hover::after {
        opacity: 1;
    }
}

/* 🔒 AVADA LIVE EDITOR CONTAINMENT FIXES */
/* Ensure static menu content only appears within menu context */
.cfm-menu-only {
    /* Only display within custom fullscreen menu */
    visibility: visible;
    position: absolute;
}

/* Prevent content from appearing during Avada live editing */
body.fusion-builder-live .cfm-menu-only,
body.fusion-builder-live .static-package-container,
body.fusion-builder-live .cfm-menu-image,
body.fusion-builder-live .cfm-menu-overlay,
body.fusion-builder-live .cfm-menu-content {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Additional safeguards for Avada frontend editor */
.avada-live-preview .cfm-menu-only,
.fusion-live-preview .cfm-menu-only,
[data-fusion-builder] .cfm-menu-only:not(.custom-fullscreen-menu-overlay .cfm-menu-only) {
    display: none !important;
}

/* Ensure menu container has proper isolation */
.custom-fullscreen-menu-overlay {
    isolation: isolate;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.custom-menu-right-content {
    /* Keep proper positioning within menu */
    position: relative !important;
    overflow: hidden !important;
    width: 100%;
    height: 100%;
}