/* Mora YATCO Media Helper — header yacht search */

/*
 * Mora sticky header
 * Add `mora-sticky-header` to the outermost Elementor header container.
 * JavaScript promotes Elementor's header wrapper to the sticky shell so the
 * effect is not trapped by the Flexbox container's bounds.
 */
.mora-sticky-shell {
    position: -webkit-sticky !important;
    position: sticky !important;
    z-index: 999990 !important;
    top: 0 !important;
    width: 100% !important;
    isolation: isolate !important;
}

body.admin-bar .mora-sticky-shell {
    top: 32px !important;
}

.mora-sticky-shell.mora-sticky-header,
.mora-sticky-shell .mora-sticky-header {
    position: relative !important;
    z-index: 1 !important;
    background-color: transparent !important;
    -webkit-backdrop-filter: blur(0) saturate(100%) !important;
    backdrop-filter: blur(0) saturate(100%) !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0) !important;
    transition: background-color 280ms ease, border-color 280ms ease, box-shadow 280ms ease, -webkit-backdrop-filter 280ms ease, backdrop-filter 280ms ease !important;
}

.mora-sticky-shell.mora-sticky-header.is-scrolled,
.mora-sticky-shell.is-scrolled .mora-sticky-header {
    background-color: rgba(4, 10, 12, 0.84) !important;
    -webkit-backdrop-filter: blur(18px) saturate(125%) !important;
    backdrop-filter: blur(18px) saturate(125%) !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18) !important;
}

/* Keep Elementor's editor controls usable while the header is being edited. */
body.elementor-editor-active .mora-sticky-shell,
body.elementor-editor-preview .mora-sticky-shell {
    position: relative !important;
    top: auto !important;
}
.mora-header-search,
.mora-header-search *,
.mora-header-search *::before,
.mora-header-search *::after,
.mora-header-search__overlay,
.mora-header-search__overlay *,
.mora-header-search__overlay *::before,
.mora-header-search__overlay *::after {
    box-sizing: border-box !important;
}

.mora-header-search {
    --mora-search-ink: #17343b;
    --mora-search-deep: #0b232c;
    --mora-search-white: #ffffff;
    --mora-search-trigger: #ffffff;
    --mora-search-trigger-border: rgba(255, 255, 255, 0.42);
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--e-global-typography-text-font-family, "Atkinson Hyperlegible"), Arial, sans-serif !important;
}

.mora-header-search[data-mora-tone="dark"] {
    --mora-search-trigger: #17343b;
    --mora-search-trigger-border: rgba(23, 52, 59, 0.42);
}

.mora-header-search .mora-header-search__trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: auto !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    overflow: hidden !important;
    background: transparent !important;
    color: var(--mora-search-trigger) !important;
    border: 1px solid var(--mora-search-trigger-border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0.15em !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease !important;
}

.mora-header-search .mora-header-search__trigger:hover {
    background: var(--mora-search-trigger) !important;
    color: var(--mora-search-ink) !important;
    border-color: var(--mora-search-trigger) !important;
}

.mora-header-search[data-mora-tone="dark"] .mora-header-search__trigger:hover {
    color: var(--mora-search-white) !important;
}

.mora-header-search .mora-header-search__trigger:focus-visible,
.mora-header-search__overlay :is(button, input, select):focus-visible {
    outline: 2px solid currentColor !important;
    outline-offset: 3px !important;
}

.mora-header-search .mora-header-search__icon {
    display: block !important;
    flex: 0 0 20px !important;
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.6 !important;
    stroke-linecap: round !important;
}

.mora-header-search .mora-header-search__label {
    display: inline !important;
    color: inherit !important;
}

.mora-header-search__overlay[hidden] {
    display: none !important;
}

.mora-header-search__overlay {
    --mora-header-offset: 84px;
    position: fixed !important;
    z-index: 2147483000 !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: auto !important;
    overscroll-behavior: contain !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 220ms ease, visibility 220ms ease !important;
    font-family: var(--e-global-typography-text-font-family, "Atkinson Hyperlegible"), Arial, sans-serif !important;
}

.mora-header-search__overlay.is-open {
    opacity: 1 !important;
    visibility: visible !important;
}

.mora-header-search__backdrop {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(3, 15, 20, 0.68) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    backdrop-filter: blur(5px) !important;
}

.mora-header-search__positioner {
    position: relative !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    min-height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: calc(var(--mora-header-offset) + 22px) 24px 40px !important;
    pointer-events: none !important;
}

.mora-header-search__dialog {
    position: relative !important;
    width: min(1180px, 100%) !important;
    max-width: 1180px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: clamp(32px, 4vw, 54px) !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    background: linear-gradient(135deg, #0b232c 0%, #17343b 64%, #20454d 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 2px !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28) !important;
    transform: translateY(-14px) !important;
    transition: transform 220ms ease !important;
}

.mora-header-search__overlay.is-open .mora-header-search__dialog {
    transform: translateY(0) !important;
}

.mora-header-search__eyebrow {
    margin: 0 0 8px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
}

.mora-header-search__title {
    margin: 0 64px 28px 0 !important;
    color: #ffffff !important;
    font-family: var(--e-global-typography-primary-font-family, "Cormorant Garamond"), Georgia, serif !important;
    font-size: clamp(31px, 4vw, 52px) !important;
    font-weight: 400 !important;
    line-height: 1.02 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
}

.mora-header-search__close {
    position: absolute !important;
    z-index: 2 !important;
    top: 24px !important;
    right: 24px !important;
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.mora-header-search__close span,
.mora-header-search__close span::after {
    display: block !important;
    width: 18px !important;
    height: 1px !important;
    background: currentColor !important;
}

.mora-header-search__close span {
    transform: rotate(45deg) !important;
}

.mora-header-search__close span::after {
    content: "" !important;
    transform: rotate(90deg) !important;
}

.mora-header-search__form {
    display: grid !important;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr) minmax(0, 0.95fr) minmax(160px, 0.72fr) !important;
    align-items: end !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mora-header-search__field {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mora-header-search__field label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.mora-header-search__field :is(input, select),
.mora-header-search__submit {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 54px !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font: inherit !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.mora-header-search__field :is(input, select) {
    appearance: none !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.42) !important;
    outline: 0 !important;
}

.mora-header-search__field select {
    cursor: pointer !important;
    background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%) !important;
    background-position: calc(100% - 18px) 24px, calc(100% - 13px) 24px !important;
    background-size: 5px 5px, 5px 5px !important;
    background-repeat: no-repeat !important;
    padding-right: 38px !important;
}

.mora-header-search__field select option {
    background: #ffffff !important;
    color: #17343b !important;
}

.mora-header-search__field input::placeholder {
    color: rgba(255, 255, 255, 0.76) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.76) !important;
    opacity: 1 !important;
}

.mora-header-search__field :is(input, select):hover,
.mora-header-search__field :is(input, select):focus {
    background-color: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.88) !important;
}

.mora-header-search__field input[type="number"]::-webkit-inner-spin-button,
.mora-header-search__field input[type="number"]::-webkit-outer-spin-button {
    margin: 0 !important;
    -webkit-appearance: none !important;
}

.mora-header-search__field input[type="number"] {
    -moz-appearance: textfield !important;
}

.mora-header-search__submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: #ffffff !important;
    color: #17343b !important;
    -webkit-text-fill-color: #17343b !important;
    border: 1px solid #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background-color 180ms ease, color 180ms ease !important;
}

.mora-header-search__submit svg {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.7 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.mora-header-search__submit:hover {
    background: transparent !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html.mora-header-search-open,
html.mora-header-search-open body {
    overflow: hidden !important;
}

@media (max-width: 1024px) {
    .mora-header-search .mora-header-search__trigger {
        width: 46px !important;
        min-width: 46px !important;
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 !important;
    }

    .mora-header-search .mora-header-search__label {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
    }

    .mora-header-search__form {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 782px) {
    body.admin-bar .mora-sticky-shell {
        top: 46px !important;
    }
}

@media (max-width: 767px) {
    .mora-header-search__overlay {
        background: #0b232c !important;
    }

    .mora-header-search__backdrop {
        display: none !important;
    }

    .mora-header-search__positioner {
        display: block !important;
        min-height: 100dvh !important;
        padding: 0 !important;
    }

    .mora-header-search__dialog {
        width: 100% !important;
        max-width: none !important;
        min-height: 100dvh !important;
        padding: max(72px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom)) !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: translateY(-8px) !important;
    }

    .mora-header-search__close {
        top: max(16px, env(safe-area-inset-top)) !important;
        right: 16px !important;
    }

    .mora-header-search__title {
        margin-bottom: 26px !important;
        font-size: clamp(36px, 12vw, 50px) !important;
    }

    .mora-header-search__form {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    .mora-header-search__field :is(input, select),
    .mora-header-search__submit {
        height: 52px !important;
        min-height: 52px !important;
    }
}

/*
 * Fraser-style image motion for Happy Addons Image Accordion.
 * This layer owns only the shared background, panel expansion, image crop,
 * crossfade/zoom, dark overlay, always-visible content and touch carousel.
 * Happy Addons/Elementor retains control of widget height, content position,
 * typography, button dimensions, spacing and colours.
 */
.mora-fraser-accordion {
    position: relative !important;
    isolation: isolate !important;
}

.mora-fraser-accordion .ha-ia-container {
    position: relative !important;
}

.mora-fraser-accordion .mora-fraser-backgrounds {
    position: absolute !important;
    z-index: 0 !important;
    inset: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.mora-fraser-accordion .mora-fraser-background {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    opacity: 0 !important;
    transform: scale(1) !important;
    transform-origin: center !important;
    transition: opacity 700ms ease, transform 1300ms cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: opacity, transform !important;
}

.mora-fraser-accordion .mora-fraser-background.is-active {
    z-index: 1 !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

/*
 * Match Fraser's resting state: every panel keeps its title and CTA visible.
 * These rules only neutralise Happy Addons' inactive-content reveal state;
 * alignment, padding, sizing and visual button controls remain untouched.
 */
.mora-fraser-accordion .ha-ia-item .ha-overlay {
    background-color: rgba(0, 0, 0, 0.45) !important;
    opacity: 1 !important;
    transition: background-color 600ms ease !important;
}

.mora-fraser-accordion .ha-ia-content-wrapper,
.mora-fraser-accordion .ha-ia-item.active .ha-ia-content-wrapper,
.mora-fraser-accordion .ha-ia-item.mora-fraser-panel-active .ha-ia-content-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transform: none !important;
}

/*
 * Happy Addons hides the complete content wrapper on every non-hovered item
 * with a more specific selector. Restore only its normal flex display so the
 * title and CTA remain visible at rest; the widget still owns all positioning,
 * alignment, padding, spacing, typography and button styling.
 */
.mora-fraser-accordion.ha-image-accordion-hover .ha-ia-item:not(:hover) .ha-ia-content-wrapper,
.mora-fraser-accordion.ha-image-accordion-hover .ha-ia-item:hover .ha-ia-content-wrapper {
    display: flex !important;
}

.mora-fraser-accordion .ha-ia-content-button {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.mora-fraser-accordion .mora-fraser-dot:focus-visible {
    outline: 2px solid #ffffff !important;
    outline-offset: 3px !important;
}

.mora-fraser-accordion .mora-fraser-pagination {
    display: none !important;
}

@media (min-width: 1025px) {
    .mora-fraser-accordion .ha-ia-gallery-wrap {
        position: relative !important;
        display: flex !important;
        align-items: stretch !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .mora-fraser-accordion .ha-ia-item {
        position: relative !important;
        z-index: 2 !important;
        flex: 0 0 33.333333% !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        overflow: hidden !important;
        background-image: none !important;
        border-left: 1px solid rgba(255, 255, 255, 0.72) !important;
        transition: flex-basis 900ms cubic-bezier(0.22, 1, 0.36, 1) !important;
        will-change: flex-basis !important;
    }

    .mora-fraser-accordion .ha-ia-item[data-mora-fraser-index="0"] {
        border-left: 0 !important;
    }

    .mora-fraser-accordion .mora-fraser-gallery.mora-fraser-hovering .ha-ia-item {
        flex-basis: 17.5% !important;
    }

    .mora-fraser-accordion .mora-fraser-gallery.mora-fraser-hovering .ha-ia-item.mora-fraser-panel-active {
        flex-basis: 65% !important;
    }

}

@media (max-width: 1024px) {
    .mora-fraser-accordion .mora-fraser-backgrounds {
        display: none !important;
    }

    .mora-fraser-accordion .ha-ia-container {
        overflow: hidden !important;
    }

    .mora-fraser-accordion .ha-ia-gallery-wrap {
        position: relative !important;
        z-index: 1 !important;
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: 100% !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain !important;
        scroll-behavior: smooth !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .mora-fraser-accordion .ha-ia-gallery-wrap::-webkit-scrollbar {
        display: none !important;
    }

    .mora-fraser-accordion .ha-ia-item,
    .mora-fraser-accordion .ha-ia-item.active {
        position: relative !important;
        z-index: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        background-image: var(--mora-fraser-image) !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-size: cover !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
    }

    .mora-fraser-accordion .mora-fraser-pagination {
        position: absolute !important;
        z-index: 5 !important;
        right: 0 !important;
        bottom: 18px !important;
        left: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 9px !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
    }

    .mora-fraser-accordion .mora-fraser-dot {
        display: block !important;
        width: 26px !important;
        height: 3px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: rgba(255, 255, 255, 0.42) !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        transition: background-color 180ms ease, width 180ms ease !important;
    }

    .mora-fraser-accordion .mora-fraser-dot.is-active {
        width: 40px !important;
        background: #ffffff !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mora-sticky-shell.mora-sticky-header,
    .mora-sticky-shell .mora-sticky-header,
    .mora-header-search__overlay,
    .mora-header-search__dialog,
    .mora-header-search__trigger,
    .mora-header-search__submit,
    .mora-fraser-accordion .mora-fraser-background,
    .mora-fraser-accordion .ha-ia-item,
    .mora-fraser-accordion .mora-fraser-dot {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
