/**
 * Custom fullscreen menu styles
 * WCAG 2.1 AA compliant
 */

/* Font face declarations */
@font-face {
    font-family: 'Inter';
    src: url('../font/Inter_18pt-Medium.ttf') format('truetype'),
         url('./font/Inter_18pt-Medium.ttf') format('truetype'),
         url('/wp-content/plugins/marienlyst/assets/font/Inter_18pt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../font/Inter_18pt-MediumItalic.ttf') format('truetype'),
         url('./font/Inter_18pt-MediumItalic.ttf') format('truetype'),
         url('/wp-content/plugins/marienlyst/assets/font/Inter_18pt-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* Additional Inter weights */
@font-face {
    font-family: 'Inter';
    src: url('../font/Inter_18pt-Regular.ttf') format('truetype'),
         url('./font/Inter_18pt-Regular.ttf') format('truetype'),
         url('/wp-content/plugins/marienlyst/assets/font/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../font/Inter_18pt-SemiBold.ttf') format('truetype'),
         url('./font/Inter_18pt-SemiBold.ttf') format('truetype'),
         url('/wp-content/plugins/marienlyst/assets/font/Inter_18pt-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* IvyMode font */
@font-face {
    font-family: 'IvyMode';
    src: url('../font/ivy-mode-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -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%;
}

/* Promote only animating elements to their own compositing layer */
.custom-fullscreen-menu-overlay.open,
.carousel-track {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@supports (max-width: 375px) {
    /* iPhone SE — shorter transition for slower hardware */
    .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 */
    .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 / 16 */
    .custom-fullscreen-menu-overlay {
        /* Shorter easing curve suited to ProMotion 120Hz displays */
        -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 */
    .package-card {
        -webkit-transform: scale(1.02);
        transform: scale(1.02);
    }
}

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

/* Touch targets — suppress default tap highlight and ensure WCAG minimum size */
.custom-fullscreen-menu-trigger-button,
.custom-menu-close-button,
.carousel-arrow,
.submenu-toggle,
.book-button {
    -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;
    min-width: 44px; /* WCAG 2.5.5 minimum touch target size */
    min-height: 44px;
}

/* Shorten transition durations on ProMotion (120Hz) displays */
@media (max-resolution: 120dpi) and (min-resolution: 119dpi) {
    .custom-fullscreen-menu-overlay,
    .package-card,
    .carousel-track {
        -webkit-transition-duration: 0.15s;
        transition-duration: 0.15s;
    }
}

.custom-menu-right-content {
    /* Scoped containment prevents layout/paint from escaping this subtree */
    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 */
}

/* Disable all transitions and animations when the user prefers reduced motion */
@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;
}

/* Hide focus outlines for mouse/pointer interactions, show only during keyboard navigation */
.js-focus-visible :focus:not(.focus-visible) {
    outline: none !important;
}

.js-focus-visible .focus-visible {
    outline: 2px solid var(--cfm-menu-hover-color) !important;
    outline-offset: 2px !important;
}

:focus:not(:focus-visible) {
    outline: none !important;
}

: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: #114542;
    --cfm-menu-prominent-text-color: #114542;
    --cfm-menu-hover-color: #114542;
    --cfm-menu-border-color: #e0e0e0;
    --cfm-menu-placeholder-bg: #ffffff;
    --cfm-menu-placeholder-text: #505050;
    --cfm-menu-close-button-bg: transparent;
    --cfm-menu-close-button-border: #36010d;
    --cfm-menu-close-button-x: #36010d;
    --cfm-design-menu-width: 520px; /* Left panel width; right content fills the remainder */
}

/* Trigger button */
.custom-fullscreen-menu-trigger-button {
    display: inline-block;
    cursor: pointer;
    /* Drop shadow for legibility against variable page 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;
}

/* Menu overlay */
.custom-fullscreen-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #36010D;
    z-index: 2147483647 !important; /* Maximum z-index — must sit above all third-party widgets */
    display: none; 
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    font-family: 'IvyMode', serif !important;
    overflow: hidden !important;
    overscroll-behavior: contain;
}

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

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

@media (max-width: 768px) {
    .custom-fullscreen-menu-overlay {
        contain: layout style paint;
    }
    
    .custom-menu-container {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
        scroll-behavior: smooth;
        contain: layout;
    }
    
    .carousel-track {
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
        will-change: transform;
    }
    
    .package-card {
        contain: layout style;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* iPhone SE — shorter transitions for slower hardware */
@media (max-width: 375px) {
    .custom-fullscreen-menu-overlay {
        -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 {
        contain: strict;
        will-change: auto; /* Reset so the browser can free the compositor layer when not animating */
    }
    
    /* Flatten cards on small screens to reduce paint complexity */
    .package-card {
        box-shadow: none;
        border-radius: 0;
    }
}

/* Wider viewports — can afford slightly richer transitions */
@media (min-width: 440px) {
    .custom-fullscreen-menu-overlay {
        -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);
    }
    
    .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 panel — fills viewport width minus the left nav panel */
.custom-menu-right-content {
    position: absolute;
    top: 0;
    left: var(--cfm-design-menu-width);
    right: 0;
    width: calc(100vw - var(--cfm-design-menu-width));
    height: 100vh;
    background-color: #36010D;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 40px;
    padding-top: 20px;
    padding-bottom: 20px;
    transform-origin: top left;
    box-sizing: border-box;
}

/* Static full-bleed background for the right panel */
.static-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #36010D;
}

/* Packages container */
.packages-container {
    width: 95%;
    max-width: 1272px;
    padding: 20px 0 30px;
    color: #fff;
    z-index: 5;
    position: relative;
    margin-left: 60px !important; /* Aligns with the first carousel card */
}

/* Packages section heading */
.packages-heading-container {
    display: flex;
    justify-content: flex-start !important;
    margin-bottom: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    margin-left: 0;
}

.packages-heading {
    font-size: 38px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    position: relative;
    margin: 0;
    letter-spacing: 2px;
    text-align: left;
    margin-left: 60px; /* Aligns with the first carousel card */
}

/* Carousel arrows — rotated square, same visual language as the close button */
.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;
    overflow: visible !important; /* Parent carousel has overflow:hidden; explicit override keeps arrows visible */
}

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

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

.carousel-arrow-left {
    left: 0 !important;
}

.carousel-arrow-right {
    right: 0 !important;
}

.arrow-icon {
    line-height: 1 !important;
    transform: rotate(-45deg) !important; /* Counter-rotates the icon back to upright after the parent's 45deg rotation */
    font-size: 20px !important;
    color: #20504e !important;
    font-weight: 300 !important; /* Make arrows thinner */
}

/* Disabled arrow state */
.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;
}

/* Arrow state transitions */
.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;
}

/* Shake animation when the carousel is already at the boundary */
.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: #20504e !important;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

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

.tab-button.active {
    color: #20504e !important;
}

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

/* Carousel container */
.packages-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1240px !important;
    margin: 0 auto 30px;
    margin-left: 0 !important;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    overflow: visible !important; /* Arrows sit outside the track; visible prevents them being clipped */
    padding: 0 60px; /* Room for the arrow buttons on each side */
}

/* Two cards visible at once */
.carousel-slide {
    min-width: 47%;
    box-sizing: border-box;
    margin: 0 1.5%;
    transition: all 0.5s ease;
    display: flex;
}

/* Carousel track */
.packages-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

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

/* Hover effects intentionally disabled */
.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 */
.package-image-container {
    position: relative;
    width: 100%;
    padding-top: 65%; /* Aspect-ratio hack: creates a fixed-height 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%; /* Crops from the top rather than centre to keep subjects in frame */
    transform: scale(1.2); /* Zoom in by 20% */
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none !important;
    z-index: 1;
}

/* Book button — absolutely positioned to align with the price container */
.book-button {
    display: inline-flex;
    align-items: center;
    background-color: #36010D;
    color: #20504e !important;
    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;
    top: 0;
    right: 20px;
}

.book-button:hover {
    /* Hover effect disabled */
    /* background-color: #4E0213; */
}

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

/* Price container */
.package-price-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: auto;
    position: relative;
    padding-bottom: 30px;
}

.price-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 40px; /* Matches the book button height for visual alignment */
}

/* 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: #20504e !important;
    margin-right: 5px;
}

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

/* Package details */
.package-details {
    position: relative;
    background-color: white;
    padding: 25px 25px 68px 25px;
    flex: 1;
    overflow: hidden;
    max-height: 400px;
}

.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: #20504e !important;
    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 */
.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;
}

/* Left nav panel */
.custom-menu-container {
    width: var(--cfm-design-menu-width);
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--cfm-menu-bg-color);
    padding: 70px 48px 48px 48px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0px 15px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #114542 rgba(17, 69, 66, 0.25);
    contain: content;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Thin scrollbar for the left nav panel */
.custom-menu-container::-webkit-scrollbar {
    width: 4px;
}

.custom-menu-container::-webkit-scrollbar-track {
    background: rgba(17, 69, 66, 0.25);
    border-radius: 2px;
}

.custom-menu-container::-webkit-scrollbar-thumb {
    background: #114542;
    border-radius: 2px;
}

.custom-menu-container::-webkit-scrollbar-thumb:hover {
    background: #1a6b67;
}

/* Menu header */
.custom-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    /* white-space:nowrap prevents the logo and close button wrapping to a second line */
    white-space: nowrap;
}

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

/* Logo */
.custom-menu-logo {
    height: 46px;
    display: flex;
    align-items: center;
}

.custom-menu-logo img.menu-logo {
    max-height: 46px;
    width: auto;
}

/* Logo link */
.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 */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 24px;
}

.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; /* Optical vertical alignment with adjacent text elements */
}

.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;
    height: auto;
    display: block;
    border-radius: 2px;
}

/* Close button — minimal thin X, no border (Rox-style) */
.custom-menu-close-button {
    background: transparent;
    border: none;
    color: #114542;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.custom-menu-close-button:hover,
.custom-menu-close-button:focus {
    opacity: 0.7;
}

.custom-menu-close-button .close-icon-x {
    display: block;
    width: 22px;
    height: 22px;
    position: relative;
}

.custom-menu-close-button .close-icon-x::before,
.custom-menu-close-button .close-icon-x::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1px;
    height: 100%;
    background-color: #114542;
    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;
    display: flex;
    flex-direction: column;
    margin-top: 25px;
    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;
    width: 100%;
}

.custom-main-navigation > ul > li:last-child {
    margin-bottom: 12px;
}

.custom-main-navigation > ul:first-child > li:first-child {
    margin-top: 0;
}

.custom-main-navigation li.has-submenu {
    margin-top: 4px;
    margin-bottom: 12px;
}

/* .close-spacing is applied to the item following a submenu to maintain correct visual gap */
.custom-main-navigation li.close-spacing {
    margin-top: 8px;
}

.custom-main-navigation li a {
    text-decoration: none;
    color: var(--cfm-menu-text-color);
    font-size: 18px;
    font-weight: 400;
    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;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-main-navigation li a:hover {
    color: var(--cfm-menu-hover-color);
    font-weight: 400;
}

/* Focus styles only for keyboard navigation */
.custom-main-navigation li a:focus-visible {
    color: var(--cfm-menu-hover-color);
    font-weight: 400;
    outline: 2px solid var(--cfm-menu-hover-color);
    outline-offset: 2px;
}

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

/* Section separators */
.custom-menu-separator {
    border: none;
    height: 1px;
    background-color: var(--cfm-menu-border-color); 
    margin: 20px 0 24px 0;
    width: 100%;
}

.custom-main-navigation > hr:last-of-type { 
    margin: 20px 0 24px 0;
}

/* Submenu */
.custom-main-navigation li.has-submenu .submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 16.5px;
    font-weight: 400;
    color: var(--cfm-menu-text-color);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-decoration: none;
    letter-spacing: 0.5px;
    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: 400;
}

.custom-main-navigation li.has-submenu .submenu-toggle:focus-visible {
    color: var(--cfm-menu-hover-color);
    font-weight: 400;
    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;
}

/* Reset link-style decoration on the <button> toggle element */
.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;
    font-weight: 300;
    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 is set by JS to the exact scrollHeight for smooth animation */
}

.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;
    font-weight: 400;
    letter-spacing: 0.2px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Secondary links */
.custom-menu-secondary-links {
    display: flex;
    flex-wrap: wrap; 
    gap: 28px;
    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: 15px;
    font-weight: 400;
    letter-spacing: 0.4px;
    transition: color 0.4s ease, font-weight 0.4s ease, opacity 0.3s ease;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-menu-secondary-links a:hover {
    color: var(--cfm-menu-hover-color);
    font-weight: 400;
}

/* Consistent font rendering across all nav text */
.custom-main-navigation,
.custom-main-navigation li a,
.custom-main-navigation .submenu-toggle,
.custom-menu-secondary-links a,
.custom-main-navigation .submenu-items li a {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Focus styles only for keyboard navigation */
.custom-menu-secondary-links a:focus-visible {
    color: var(--cfm-menu-hover-color);
    font-weight: 400;
    outline: 2px solid var(--cfm-menu-hover-color);
    outline-offset: 2px;
}

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

/* Menu footer */
.custom-menu-footer-group {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 40px;
    padding: 0;
    position: relative;
    flex-shrink: 0; /* Prevent shrinking */
}

.custom-menu-image-placeholder {
    width: 100%;
    background-color: white;
    border-radius: 0;
    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;
    position: relative;
    overflow: hidden;
}

/* Promotional image in the footer */
.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: 0;
}

.placeholder-image-content {
    background-color: transparent;
    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;
    font-weight: 500;
    color: var(--cfm-menu-text-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    text-align: left;
    font-family: 'IvyMode', serif;
}

/* Right panel content title */
.cfm-menu-content h2 span:last-child,
.hover-content h2 span:last-child {
    color: #ffffff !important;
    font-family: 'IvyMode', serif !important;
    font-weight: 500 !important;
}

.cfm-menu-content h2 span:first-child,
.hover-content h2 span:first-child {
    font-family: 'IvyMode', serif !important;
    font-weight: 500 !important;
}

/* Increased line-height prevents accented characters (e.g. å, ä) from overlapping descenders */
.cfm-menu-content h2,
.hover-content h2 {
    line-height: 1.3 !important;
}

/* Right panel CTA button */
.cfm-menu-content a,
.hover-content a {
    background: #f6f1e9 !important;
    color: #114542 !important;
    border-radius: 0 !important;
    text-transform: none !important;
    font-family: 'IvyMode', serif !important;
    font-weight: 500 !important;
}

/* Hide the arrow span injected by the theme inside the CTA button */
.cfm-menu-content a span,
.hover-content a span {
    display: none !important;
}

/* High-specificity rule to ensure IvyMode applies even when Avada/theme styles load later */
.custom-menu-image-placeholder .placeholder-image-title,
.placeholder-image-title {
    font-family: 'IvyMode', serif !important;
    font-weight: 500 !important;
}

.custom-menu-image-placeholder .placeholder-image-subtitle {
    display: block;
    font-size: 14px;
    color: var(--cfm-menu-text-color);
    line-height: 1.4; 
    margin-bottom: 0; 
    white-space: normal;
    text-align: left;
}

/* Promotional card link */
.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: 0;
    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;
}

/* Scaling is handled by JS; these breakpoints are left as fallback stubs */
@media (max-width: 768px) {}

@media (max-width: 480px) {}

/* Layout breakpoints */
@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;
    }
    
    .packages-heading {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .package-image-container {
        padding-top: 50%;
    }
    
    .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) {
    :root {
        --cfm-design-menu-width: 420px;
    }

    .custom-menu-right-content {
        padding-left: 20px;
    }
}

/* On mobile/tablet: hide the right panel and expand the nav panel to full width */
@media (max-width: 1024px) {
    .custom-menu-right-content {
        display: none !important;
    }
    
    .custom-menu-container {
        width: 100% !important;
        height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important; /* Momentum scrolling on iOS */
        padding: 70px 48px 48px 48px !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        transform: none !important; /* JS scaling is desktop-only */
        transform-origin: initial !important;
    }
    
    .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;
    }
    
    :root {
        --cfm-design-menu-width: 100vw !important;
    }
}

/* Packages carousel */
.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 — duplicate definition required to override specificity in this context */
.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:focus {
    background-color: rgba(219, 197, 140, 0.1) !important;
}

.carousel-arrow-left {
    left: 0 !important;
}

.carousel-arrow-right {
    right: 0 !important;
}

.arrow-icon {
    line-height: 1 !important;
    transform: rotate(-45deg) !important; /* Counter-rotates the icon back to upright after the parent's 45deg rotation */
    font-size: 20px !important;
    color: #20504e !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: #20504e !important;
}

/* Entrance animation — triggered by adding .animate-in via JS */
.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);
}

/* Card hover state (currently unused — JS adds .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 keyframe for initially hidden elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shimmer keyframe */
@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Subtle brightness pulse for gold accent elements */
@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;
}

/* Category tab transitions */
.tab-button {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

/* "Why book with us" section */
.why-book-section {
    margin-top: 20px;
    padding: 15px 0;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    margin-left: 60px; /* Aligns with the first carousel card */
}

.why-book-section h3 {
    font-size: 21px;
    font-weight: 900;
    margin-bottom: 15px;
    color: #3e191e;
    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;
}

.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: #20504e !important;
    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;
}

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

/* Active slide — slightly elevated to distinguish from inactive cards */
.carousel-slide.active .package-card {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

/* Dots hidden — counter is used instead */
.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 (max-width: 1200px) {
    .packages-carousel-container {
        max-width: 1050px;
    }
    
    .carousel-slide {
        min-width: 47%;
    }
}

@media (max-width: 992px) {
    .carousel-slide {
        min-width: 100%; /* Single-card view below 992px */
        margin: 0;
    }
    
    .packages-heading {
        font-size: 30px;
    }
    
    .package-features li {
        margin-bottom: 5px;
    }
}

/* Booking buttons section (right panel alternative view) */
.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;
    height: 100%;
    justify-content: center;
    padding: 0 10px;
}

.booking-button {
    background-color: #36010D;
    color: #20504e !important;
    border: 1.5px solid #36010D;
    padding: 30px 30px;
    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 */
.custom-main-navigation .submenu-grid {
    display: flex;
    justify-content: space-between;
    padding: 8px 0 0 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);
    position: relative;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
}

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

.custom-main-navigation .submenu-column {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 32%;
    flex-shrink: 0; /* Columns must not compress — each holds a fixed proportion of items */
    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: 400;
    letter-spacing: 0.2px;
}

/* Responsive title variants — JS or media queries toggle these */
.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;
}

@media (max-width: 480px) {
    .custom-main-navigation .submenu-grid {
        padding: 6px 0 0 4px;
        width: calc(100% - 4px);
        justify-content: flex-start;
        gap: 8px;
    }
    
    .custom-main-navigation .submenu-column {
        width: 30%;
        margin-right: 2px;
    }
    
    .custom-main-navigation .submenu-column li {
        margin-bottom: 6px;
    }
    
    .custom-main-navigation .submenu-column li a {
        font-size: 13px;
        letter-spacing: 0.1px;
        padding: 2px 0;
    }
    
    /* Show abbreviated mobile titles below 480px */
    .desktop-title {
        display: none;
    }
    
    .mobile-title {
        display: inline;
        font-size: inherit;
        font-weight: inherit;
        letter-spacing: inherit;
    }
    
    .custom-main-navigation li.has-submenu {
        margin-top: 2px;
        margin-bottom: 8px;
    }

    .custom-main-navigation li.close-spacing {
        margin-top: 4px;
    }
}

/* iPhone SE — tightest grid layout */
@media (max-width: 375px) {
    .custom-main-navigation .submenu-grid {
        padding: 4px 0 0 2px;
        width: calc(100% - 2px);
        gap: 4px;
    }
    
    .custom-main-navigation .submenu-column {
        width: 31%;
    }
    
    .custom-main-navigation .submenu-column li a {
        font-size: 12px;
        letter-spacing: 0px;
    }
    
    .custom-main-navigation .submenu-column .desktop-title,
    .custom-main-navigation .submenu-column .mobile-title {
        font-size: inherit;
        font-weight: inherit;
        letter-spacing: inherit;
    }
}

/* Homepage booking widget */
.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: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    z-index: 9999995; /* Below the fullscreen overlay (2147483647) but above most theme elements */
    pointer-events: none;
}

.booking-widget-container {
    background: transparent;
    pointer-events: all;
    width: 100%;
    
    /* Drop shadow for legibility against variable page 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 decorative horizontal rules */
.booking-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    width: 100%;
}

.booking-header::before,
.booking-header::after {
    content: '';
    height: 1px;
    background: white !important;
    flex: 1;
    max-width: none;
    min-width: 20px;
    margin: 0 10px;
}

.booking-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: white !important;
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0;
    padding: 0 8px;
}

/* Booking buttons row */
.booking-buttons-row {
    display: flex;
    gap: 2vw;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
}

.booking-btn {
    background-color: #f6f1e9 !important;
    color: #20504e !important;
    text-decoration: none;
    padding: 10px 20px;
    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: 'IvyMode', serif !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 40px;
    height: 40px;
    line-height: 1;
    margin: 0;
    outline: none;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    flex: 1;
    max-width: 180px;
    
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-btn:hover {
    background-color: #f0ebe2 !important;
    color: #20504e !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.booking-btn:active {
}

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

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

/* High-specificity overrides — required to win against Avada's global button rules */
.homepage-booking-widget .booking-btn,
.booking-widget-container .booking-btn,
.booking-buttons-row .booking-btn,
.homepage-booking-widget a.booking-btn,
.homepage-booking-widget button.booking-btn,
.booking-widget-container a.booking-btn,
.booking-widget-container button.booking-btn,
.booking-buttons-row a.booking-btn,
.booking-buttons-row button.booking-btn,
div.homepage-booking-widget div.booking-widget-container div.booking-buttons-row a.booking-btn,
div.homepage-booking-widget div.booking-widget-container div.booking-buttons-row button.booking-btn,
a.booking-btn,
button.booking-btn,
[class*="booking-btn"] {
    background-color: #f6f1e9 !important;
    color: #20504e !important;
    font-family: 'IvyMode', serif !important;
    border: none !important;
    text-decoration: none !important;
}

.homepage-booking-widget .booking-btn:hover,
.booking-widget-container .booking-btn:hover,
.booking-buttons-row .booking-btn:hover,
.homepage-booking-widget a.booking-btn:hover,
.homepage-booking-widget button.booking-btn:hover,
.booking-widget-container a.booking-btn:hover,
.booking-widget-container button.booking-btn:hover,
.booking-buttons-row a.booking-btn:hover,
.booking-buttons-row button.booking-btn:hover,
div.homepage-booking-widget div.booking-widget-container div.booking-buttons-row a.booking-btn:hover,
div.homepage-booking-widget div.booking-widget-container div.booking-buttons-row button.booking-btn:hover,
a.booking-btn:hover,
button.booking-btn:hover,
[class*="booking-btn"]:hover {
    background-color: #f0ebe2 !important;
    color: #20504e !important;
    font-family: 'IvyMode', serif !important;
}

.homepage-booking-widget .booking-btn:focus,
.booking-widget-container .booking-btn:focus,
.booking-buttons-row .booking-btn:focus,
.homepage-booking-widget a.booking-btn:focus,
.homepage-booking-widget button.booking-btn:focus,
.booking-widget-container a.booking-btn:focus,
.booking-widget-container button.booking-btn:focus,
.booking-buttons-row a.booking-btn:focus,
.booking-buttons-row button.booking-btn:focus,
div.homepage-booking-widget div.booking-widget-container div.booking-buttons-row a.booking-btn:focus,
div.homepage-booking-widget div.booking-widget-container div.booking-buttons-row button.booking-btn:focus,
a.booking-btn:focus,
button.booking-btn:focus,
[class*="booking-btn"]:focus {
    outline: 2px solid #20504e !important;
    outline-offset: 2px !important;
}

/* Booking widget responsive overrides */

/* iPhone SE (375×667) */
@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;
        letter-spacing: 1.8px;
    }
    
    .booking-header {
        margin-bottom: 8px;
    }
    
    .booking-header::before,
    .booking-header::after {
        margin: 0 6px;
        flex: 1;
        min-width: 12px;
    }

    .booking-buttons-row {
        gap: 0.6vw;
    }
    
    .booking-btn {
        padding: 7px 4px;
        font-size: 8px;
        letter-spacing: 0.2px;
        min-width: 90px;
        max-width: 110px;
        min-height: 30px;
        height: 30px;
        flex: 1;
    }
    
    /* "KONFERENS" is the longest label — needs extra reduction */
    .booking-btn[data-booking-type="meeting"] {
        font-size: 7px;
        letter-spacing: 0.1px;
        padding: 7px 2px;
    }
}

/* iPhone 12 Mini (375×812) */
@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;
        letter-spacing: 2px;
    }
    
    .booking-header {
        margin-bottom: 9px;
    }
    
    .booking-header::before,
    .booking-header::after {
        margin: 0 7px;
        flex: 1;
        min-width: 15px;
    }
    
    .booking-buttons-row {
        gap: 0.8vw;
    }
    
    .booking-btn {
        padding: 8px 6px;
        font-size: 9px;
        letter-spacing: 0.3px;
        min-width: 95px;
        max-width: 118px;
        min-height: 32px;
        height: 32px;
        flex: 1;
    }
    
    .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) */
@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;
        letter-spacing: 2.5px;
    }

    .booking-header {
        margin-bottom: 10px;
    }

    .booking-header::before,
    .booking-header::after {
        margin: 0 9px;
        flex: 1;
        min-width: 18px;
    }

    .booking-buttons-row {
        gap: 1vw;
    }

    .booking-btn {
        padding: 9px 8px;
        font-size: 10px;
        letter-spacing: 0.4px;
        min-width: 100px;
        max-width: 128px;
        min-height: 34px;
        height: 34px;
        flex: 1;
    }

    .booking-btn[data-booking-type="meeting"] {
        font-size: 9px;
        letter-spacing: 0.25px;
        padding: 9px 6px;
    }
}

/* iPhone 12/13/14/15 Pro (393×852) */
@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;
        letter-spacing: 2.8px;
    }

    .booking-header {
        margin-bottom: 10px;
    }

    .booking-header::before,
    .booking-header::after {
        margin: 0 10px;
        flex: 1;
        min-width: 20px;
    }

    .booking-buttons-row {
        gap: 1.2vw;
    }

    .booking-btn {
        padding: 10px 10px;
        font-size: 10.5px;
        letter-spacing: 0.5px;
        min-width: 105px;
        max-width: 132px;
        min-height: 36px;
        height: 36px;
        flex: 1;
    }

    .booking-btn[data-booking-type="meeting"] {
        font-size: 9.5px;
        letter-spacing: 0.3px;
        padding: 10px 8px;
    }
}

/* iPhone 16 Pro (402×874) */
@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;
        letter-spacing: 3px;
    }

    .booking-header {
        margin-bottom: 11px;
    }

    .booking-header::before,
    .booking-header::after {
        margin: 0 12px;
        flex: 1;
        min-width: 22px;
    }

    .booking-buttons-row {
        gap: 1.5vw;
    }

    .booking-btn {
        padding: 11px 12px;
        font-size: 11px;
        letter-spacing: 0.6px;
        min-width: 110px;
        max-width: 138px;
        min-height: 38px;
        height: 38px;
        flex: 1;
    }

    .booking-btn[data-booking-type="meeting"] {
        font-size: 10px;
        letter-spacing: 0.4px;
        padding: 11px 10px;
    }
}

/* iPhone 12/13/14/15 Pro Max (428×926) */
@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;
        letter-spacing: 3.2px;
    }

    .booking-header {
        margin-bottom: 11px;
    }

    .booking-header::before,
    .booking-header::after {
        margin: 0 14px;
        flex: 1;
        min-width: 25px;
    }

    .booking-buttons-row {
        gap: 1.8vw;
    }

    .booking-btn {
        padding: 11px 14px;
        font-size: 11.5px;
        letter-spacing: 0.7px;
        min-width: 118px;
        max-width: 148px;
        min-height: 38px;
        height: 38px;
        flex: 1;
    }

    .booking-btn[data-booking-type="meeting"] {
        font-size: 10.5px;
        letter-spacing: 0.5px;
        padding: 11px 12px;
    }
}

/* iPhone 16 Pro Max (440×956) */
@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;
        letter-spacing: 3.5px;
    }

    .booking-header {
        margin-bottom: 12px;
    }

    .booking-header::before,
    .booking-header::after {
        margin: 0 16px;
        flex: 1;
        min-width: 28px;
    }

    .booking-buttons-row {
        gap: 2vw;
    }

    .booking-btn {
        padding: 11px 16px;
        font-size: 12px;
        letter-spacing: 0.8px;
        min-width: 125px;
        max-width: 160px;
        min-height: 40px;
        height: 40px;
        flex: 1;
    }

    .booking-btn[data-booking-type="meeting"] {
        font-size: 11px;
        letter-spacing: 0.6px;
        padding: 11px 14px;
    }
}

/* Devices narrower than 375px */
@media (max-width: 374px) {
    .homepage-booking-widget {
        padding: 10px 6px calc(10px + env(safe-area-inset-bottom)) 6px;
    }
    
    .booking-title {
        font-size: 9px;
        letter-spacing: 1.2px;
    }
    
    .booking-header {
        margin-bottom: 6px;
    }
    
    .booking-header::before,
    .booking-header::after {
        margin: 0 4px;
        flex: 1;
        min-width: 8px;
    }

    .booking-buttons-row {
        gap: 0.2vw;
        flex-wrap: nowrap;
    }
    
    .booking-btn {
        padding: 6px 2px;
        font-size: 7px;
        letter-spacing: 0.05px;
        min-width: 85px;
        max-width: 100px;
        min-height: 28px;
        height: 28px;
        flex: 1;
    }

    /* "KONFERENS" is the longest label — needs the most reduction */
    .booking-btn[data-booking-type="meeting"] {
        font-size: 6px;
        letter-spacing: 0px;
        padding: 6px 1px;
    }
}

/* 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;
        letter-spacing: 4px;
    }

    .booking-header {
        margin-bottom: 12px;
    }

    .booking-header::before,
    .booking-header::after {
        margin: 0 20px;
        flex: 1;
        min-width: 30px;
    }
    
    .booking-buttons-row {
        gap: 20px;
    }
    
    .booking-btn {
        padding: 11px 30px;
        font-size: 15px;
        letter-spacing: 1.8px;
        min-width: 140px;
        min-height: 40px;
        height: 40px;
    }
}

/* Tablet */
@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;
        letter-spacing: 4.5px;
    }

    .booking-header {
        margin-bottom: 12px;
    }

    .booking-header::before,
    .booking-header::after {
        margin: 0 24px;
        flex: 1;
        min-width: 35px;
    }
    
    .booking-buttons-row {
        gap: 24px;
    }
    
    .booking-btn {
        padding: 11px 36px;
        font-size: 16px;
        letter-spacing: 2px;
        min-width: 160px;
        min-height: 40px;
        height: 40px;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .homepage-booking-widget {
        padding: 32px 40px calc(32px + env(safe-area-inset-bottom)) 40px;
    }
    
    .booking-title {
        font-size: 17px;
        letter-spacing: 5px;
    }

    .booking-header {
        margin-bottom: 12px;
    }

    .booking-header::before,
    .booking-header::after {
        margin: 0 28px;
        flex: 1;
        min-width: 40px;
    }
    
    .booking-buttons-row {
        gap: 28px;
    }
    
    .booking-btn {
        padding: 11px 40px;
        font-size: 18px;
        letter-spacing: 2.2px;
        min-width: 180px;
        min-height: 40px;
        height: 40px;
    }
}

/* Touch and accessibility */
@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;
    }
}

/* Dark mode — maintain brand colours rather than inverting */
@media (prefers-color-scheme: dark) {
    .booking-header::before,
    .booking-header::after {
        background: #dbc58c;
    }

    .booking-title {
        color: #20504e !important;
    }
    
    .booking-btn {
        background-color: #f6f1e9 !important;
        color: #20504e !important;
        border: none;
        font-family: 'IvyMode', serif !important;
    }
    
    .booking-btn:hover {
        background-color: #f0ebe2 !important;
        color: #20504e !important;
    }
    
    .booking-btn:focus {
        outline-color: #20504e !important;
    }
}

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

/* Prevent body content from hiding behind the fixed booking widget */
body:has(.homepage-booking-widget) {
    padding-bottom: 100px;
}

/* :has() fallback class applied via JS for browsers that don't support it */
.has-homepage-booking {
    padding-bottom: 100px !important;
}

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

/* Scroll-fade logo — [logo] shortcode */
.cfm-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: opacity 0.35s;
    opacity: 1;
    
    /* Drop shadow for legibility against variable page 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 */
.cfm-logo-image {
    display: block;
    height: auto;
    max-width: 100%;
    width: auto;
    
    max-height: 70px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
}

/* Opacity states toggled by JavaScript on scroll */
.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: 52.5px;
    }
}

@media (max-width: 480px) {
    .cfm-logo-image {
        max-height: 52.5px;
    }
}

/* Sharpen logo on high-DPI (Retina) displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cfm-logo-image {
        image-rendering: -webkit-optimize-contrast;
    }
}

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

/* Slide-up entrance keyframe for the booking widget */
@keyframes slideUpFadeIn {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Apply entrance animation to the widget */
.homepage-booking-widget {
    animation: slideUpFadeIn 0.6s ease-out forwards;
}

/* Enable smooth scrolling only when the user hasn't opted out of motion */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    .homepage-booking-widget {
        animation: none;
    }
}

/* Restaurant menu trigger — add this class to any element to open the 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 {
}

@media (max-width: 767px) {
    .open-restaurant-menu {
        -webkit-touch-callout: none;
        touch-action: manipulation;
    }
}

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

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

/* Horizontal grid scroller (.scroller) — Avada-compatible */
.scroller {
    display: flex !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding: 20px;
    
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    gap: 20px;
    padding: 20px;
    margin: 0 -20px;
    
    scrollbar-width: none; /* Hide scrollbar on Firefox */
    -ms-overflow-style: none;
}

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

/* Scroller children — preserve Avada column behaviour in horizontal layout */
.scroller > * {
    flex-shrink: 0;
    scroll-snap-align: start;
    
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    min-height: 44px; /* WCAG 2.5.5 minimum touch target size */
}

/* Avada column minimum widths — ensures columns remain visible when scrolling horizontally */
.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;
}

/* Scroller — iPhone-specific spacing */

/* iPhone SE (375×667) */
@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;
    }
}

@media (max-width: 480px) {
    .scroller {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain; /* Prevent elastic over-scroll bleeding into the page */
        -webkit-overscroll-behavior-x: contain;
        scroll-behavior: smooth;
    }
    
    .scroller > * {
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
}

/* Tablet */
@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 — looser snap and fade-edge indicators */
@media (min-width: 769px) {
    .scroller {
        gap: 30px;
        padding: 30px;
        margin: 0 -30px;
        scroll-padding: 30px;
        scroll-snap-type: x proximity; /* Proximity snap feels less jarring with a mouse */
    }
    
    .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;
    }
    
    /* Fade-edge gradient to indicate more content beyond the scroll boundary */
    .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);
    }
}

.scroller {
    border-radius: 8px;
    position: relative;
}

/* Experimental: animate scroller elements based on scroll position */
.scroller {
    scroll-timeline: --scroller inline;
    animation-timeline: --scroller;
}

/* Scroll snap positioning */
.scroller > * {
    scroll-margin: 20px; /* Prevents items snapping flush against the viewport edge */
    transition: transform 0.2s ease-out;
}

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

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

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

/* Force scroller onto its own compositing layer to avoid scroll-triggered repaints */
.scroller {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style paint size;
}

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

/* Edge cases */
.scroller:empty {
    display: none;
}

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

.scroller > * {
    max-width: 90vw;
    min-width: 120px;
}

/* Avada builder compatibility — preserve display:block inside a flex scroller */
.scroller .fusion-builder-row,
.scroller .fusion-row {
    flex-shrink: 0;
    display: block;
}

.scroller .fusion-column-wrapper {
    flex-shrink: 0;
    display: block;
}

/* Force visibility — Avada sometimes sets opacity:0 during builder init */
.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;
}

/* Devices narrower than 320px */
@media (max-width: 320px) {
    .scroller {
        gap: 8px;
        padding: 8px;
        margin: 0 -8px;
    }
    
    .scroller > * {
        min-width: 100px;
        scroll-snap-align: center;
    }
}

/* Scroll hint text on desktop */
@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 — hide menu-specific markup that should not appear in the editor canvas */
.cfm-menu-only {
    visibility: visible;
    position: absolute;
}

/* Hide content 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 Avada editor variants */
.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;
}

/* Stacking context isolation — prevents z-index bleed from Avada elements */
.custom-fullscreen-menu-overlay {
    isolation: isolate;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.custom-menu-right-content {
    position: relative !important;
    overflow: hidden !important;
    width: 100%;
    height: 100%;
}

/*
 * Booking button specificity escalation
 * These rules are intentionally placed at the end of the file to override
 * Avada's global button styles, which load with high specificity.
 */
body .homepage-booking-widget .booking-btn,
body .booking-widget-container .booking-btn,
body .booking-buttons-row .booking-btn,
body .homepage-booking-widget a.booking-btn,
body .homepage-booking-widget button.booking-btn,
body .booking-widget-container a.booking-btn,
body .booking-widget-container button.booking-btn,
body .booking-buttons-row a.booking-btn,
body .booking-buttons-row button.booking-btn,
body div.homepage-booking-widget div.booking-widget-container div.booking-buttons-row a.booking-btn,
body div.homepage-booking-widget div.booking-widget-container div.booking-buttons-row button.booking-btn,
body a.booking-btn,
body button.booking-btn,
body [class*="booking-btn"],
html body .booking-btn,
html body a.booking-btn,
html body button.booking-btn {
    background-color: #f6f1e9 !important;
    color: #20504e !important;
    font-family: 'IvyMode', serif !important;
    border: none !important;
    text-decoration: none !important;
}

/* Hover states */
body .homepage-booking-widget .booking-btn:hover,
body .booking-widget-container .booking-btn:hover,
body .booking-buttons-row .booking-btn:hover,
body .homepage-booking-widget a.booking-btn:hover,
body .homepage-booking-widget button.booking-btn:hover,
body .booking-widget-container a.booking-btn:hover,
body .booking-widget-container button.booking-btn:hover,
body .booking-buttons-row a.booking-btn:hover,
body .booking-buttons-row button.booking-btn:hover,
body div.homepage-booking-widget div.booking-widget-container div.booking-buttons-row a.booking-btn:hover,
body div.homepage-booking-widget div.booking-widget-container div.booking-buttons-row button.booking-btn:hover,
body a.booking-btn:hover,
body button.booking-btn:hover,
body [class*="booking-btn"]:hover,
html body .booking-btn:hover,
html body a.booking-btn:hover,
html body button.booking-btn:hover {
    background-color: #f0ebe2 !important;
    color: #20504e !important;
    font-family: 'IvyMode', serif !important;
}

/* Focus states */
body .homepage-booking-widget .booking-btn:focus,
body .booking-widget-container .booking-btn:focus,
body .booking-buttons-row .booking-btn:focus,
body .homepage-booking-widget a.booking-btn:focus,
body .homepage-booking-widget button.booking-btn:focus,
body .booking-widget-container a.booking-btn:focus,
body .booking-widget-container button.booking-btn:focus,
body .booking-buttons-row a.booking-btn:focus,
body .booking-buttons-row button.booking-btn:focus,
body div.homepage-booking-widget div.booking-widget-container div.booking-buttons-row a.booking-btn:focus,
body div.homepage-booking-widget div.booking-widget-container div.booking-buttons-row button.booking-btn:focus,
body a.booking-btn:focus,
body button.booking-btn:focus,
body [class*="booking-btn"]:focus,
html body .booking-btn:focus,
html body a.booking-btn:focus,
html body button.booking-btn:focus {
    outline: 2px solid #20504e !important;
    outline-offset: 2px !important;
    background-color: #f6f1e9 !important;
    color: #20504e !important;
    font-family: 'IvyMode', serif !important;
}

/* Override font on text spans inside buttons */
body .booking-btn span,
body .homepage-booking-widget .booking-btn span,
body .booking-widget-container .booking-btn span,
body .booking-buttons-row .booking-btn span,
body .homepage-booking-widget a.booking-btn span,
body .homepage-booking-widget button.booking-btn span,
body .booking-widget-container a.booking-btn span,
body .booking-widget-container button.booking-btn span,
body .booking-buttons-row a.booking-btn span,
body .booking-buttons-row button.booking-btn span,
body div.homepage-booking-widget div.booking-widget-container div.booking-buttons-row a.booking-btn span,
body div.homepage-booking-widget div.booking-widget-container div.booking-buttons-row button.booking-btn span,
body a.booking-btn span,
body button.booking-btn span,
body [class*="booking-btn"] span,
html body .booking-btn span,
html body a.booking-btn span,
html body button.booking-btn span,
.booking-btn span {
    font-family: 'IvyMode', serif !important;
    color: #20504e !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
    font-style: normal !important;
}

/* Override font on the booking title */
body .homepage-booking-widget .booking-title,
body .booking-widget-container .booking-title,
body .booking-header .booking-title,
html body .booking-title,
.booking-title {
    font-family: 'IvyMode', serif !important;
    color: #20504e !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 3px !important;
    font-style: normal !important;
}

/* Additional specificity pass — matches the selector pattern used on the working Boka button */
.homepage-booking-widget .booking-btn,
button.homepage-booking-widget .booking-btn,
.booking-widget-container .booking-btn,
.booking-widget-container button.booking-btn {
    background-color: #f6f1e9 !important;
    color: #20504e !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: none !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    white-space: nowrap !important;
    min-width: 110px !important;
    text-align: center !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'IvyMode', serif !important;
    
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4))
            drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2)) !important;
}

.homepage-booking-widget .booking-btn:hover,
button.homepage-booking-widget .booking-btn:hover,
.booking-widget-container .booking-btn:hover,
.booking-widget-container button.booking-btn:hover {
    background-color: #f0ebe2 !important;
    color: #20504e !important;
    text-decoration: none !important;
    font-family: 'IvyMode', serif !important;
}

/* Further escalation for body :where(...) rules that Avada generates */
.booking-widget-container .homepage-booking-widget .booking-btn,
.homepage-booking-widget .booking-widget-container .booking-btn,
.homepage-booking-widget .booking-buttons-row .booking-btn,
.booking-widget-container .booking-buttons-row .booking-btn,
div.homepage-booking-widget div.booking-widget-container a.booking-btn,
div.homepage-booking-widget div.booking-widget-container button.booking-btn,
.homepage-booking-widget.open .booking-widget-container .booking-btn,
body .homepage-booking-widget .booking-widget-container .booking-btn,
body .booking-widget-container .booking-btn {
    font-family: 'IvyMode', serif !important;
    background-color: #f6f1e9 !important;
    color: #20504e !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: none !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    min-width: 110px !important;
    text-align: center !important;
    cursor: pointer !important;
    min-height: 40px !important;
    height: 40px !important;
    line-height: 1 !important;
    margin: 0 !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* Attribute-selector catch-all for any booking button variant */
[class*="booking-btn"] {
    font-family: 'IvyMode', serif !important;
    background-color: #f6f1e9 !important;
    color: #20504e !important;
    text-transform: none !important;
    padding: 10px 20px !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    min-width: 110px !important;
    text-align: center !important;
    cursor: pointer !important;
    min-height: 40px !important;
    height: 40px !important;
    line-height: 1 !important;
    margin: 0 !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* Universal descendant catch-all */
* [class*="booking-btn"] {
    font-family: 'IvyMode', serif !important;
    background-color: #f6f1e9 !important;
    color: #20504e !important;
    text-transform: none !important;
}

/* Element-type selectors for <a> and <button> variants */
a.booking-btn,
button.booking-btn,
.booking-buttons-row a.booking-btn,
.booking-widget-container a.booking-btn,
.homepage-booking-widget a.booking-btn,
body .homepage-booking-widget .booking-buttons-row a.booking-btn,
body a[class*="booking-btn"] {
    font-family: 'IvyMode', serif !important;
    background-color: #f6f1e9 !important;
    color: #20504e !important;
    text-transform: none !important;
    padding: 10px 20px !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    min-width: 110px !important;
    text-align: center !important;
    cursor: pointer !important;
    min-height: 40px !important;
    height: 40px !important;
    line-height: 1 !important;
    margin: 0 !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
}

/* Booking title font override */
.booking-title {
    font-family: 'IvyMode', serif !important;
    color: #20504e !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 3px !important;
    font-style: normal !important;
}

/* Ensure booking title lines remain white in dark mode */
@media (prefers-color-scheme: dark) {
    .booking-header::before, .booking-header::after {
        background: #ffffff !important;
    }
}

/* Booking title colour — white, overriding any theme colour rules */
body .homepage-booking-widget .booking-title, 
body .booking-widget-container .booking-title, 
body .booking-header .booking-title, 
html body .booking-title, 
.booking-title {
    font-family: 'IvyMode', serif !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    font-style: normal !important;
}

/* Separator lines are always white regardless of colour scheme */
.booking-header::before, 
.booking-header::after {
    background: #ffffff !important;
}