.acgh-header .acgh-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: var(--acgh-actions-gap, 10px);
    direction: ltr;
    white-space: nowrap;
}

/*
 * The action row uses direction:ltr so CTA/booking/language keep a deterministic
 * visual order. Because logical auto margins follow the element's own direction,
 * the legacy margin-inline-start:auto could then resolve to the wrong physical
 * side in an RTL header and pull the whole group next to the hamburger button.
 *
 * Keep the default action group on the physical edge opposite the brand:
 * RTL => left edge, LTR => right edge. This restores the original CTA position
 * while keeping the two new utility buttons attached to the CTA as one group.
 */
.acgh-header[dir="rtl"] .acgh-actions {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.acgh-header[dir="ltr"] .acgh-actions {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* Optional manual mode exposed by the Global Header layout controls. */
.acgh-actions-position-manual .acgh-header[dir="rtl"] .acgh-actions {
    margin-right: var(--acgh-menu-actions-gap, 32px) !important;
    margin-left: 0 !important;
}

.acgh-actions-position-manual .acgh-header[dir="ltr"] .acgh-actions {
    margin-left: var(--acgh-menu-actions-gap, 32px) !important;
    margin-right: 0 !important;
}

/*
 * Keep the CTA and the two quick utilities in a deterministic physical order.
 * The header itself can be RTL or LTR, but these actions should not flip just
 * because the document direction changes. In the approved RTL header the
 * booking/language tools belong physically to the RIGHT of the CTA, i.e. between
 * the CTA and the hamburger/brand side of the header.
 */
.acgh-header .acgh-actions > .acgh-cta {
    order: 1;
    flex: 0 0 auto;
}

.acgh-header .acgh-actions > .acgh-utilities {
    order: 2;
}

.acgh-header .acgh-utilities {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    direction: ltr;
}

/* Keep booking closest to the CTA, then language farther to its right. */
.acgh-header .acgh-booking-utility {
    order: 1;
}

.acgh-header .acgh-language-utility {
    order: 2;
}

.acgh-header .acgh-utility {
    position: relative;
    margin: 0;
    flex: 0 0 auto;
}

.acgh-header .acgh-utility > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--acgh-utility-button-size, 44px);
    height: var(--acgh-utility-button-size, 44px);
    padding: 5px;
    border: 1px solid var(--acgh-utility-border, #e2e8f0);
    border-radius: 12px;
    background: var(--acgh-utility-bg, #ffffff);
    color: #1f2937;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .06);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    list-style: none;
    user-select: none;
}

.acgh-header .acgh-utility > summary::-webkit-details-marker {
    display: none;
}

.acgh-header .acgh-utility > summary:hover,
.acgh-header .acgh-utility > summary:focus-visible,
.acgh-header .acgh-utility[open] > summary {
    border-color: var(--acgh-utility-hover-border, #b9d3f8);
    background: var(--acgh-utility-hover-bg, #f7faff);
    box-shadow: 0 9px 24px rgba(23, 105, 224, .12);
    transform: translateY(-1px);
    outline: none;
}

.acgh-header .acgh-utility-icon {
    display: block;
    width: var(--acgh-utility-icon-size, 32px);
    height: var(--acgh-utility-icon-size, 32px);
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
}

.acgh-header .acgh-utility-panel {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    z-index: 100120;
    width: max-content;
    min-width: var(--acgh-utility-dropdown-width, 235px);
    max-width: min(320px, calc(100vw - 28px));
    padding: 8px;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
    direction: rtl;
    text-align: right;
}

.acgh-header[dir="ltr"] .acgh-utility-panel {
    direction: ltr;
    text-align: left;
}

.acgh-header .acgh-utility-panel::before {
    content: "";
    position: absolute;
    top: -6px;
    inset-inline-end: 17px;
    width: 11px;
    height: 11px;
    border-top: 1px solid #e5eaf2;
    border-inline-start: 1px solid #e5eaf2;
    background: #ffffff;
    transform: rotate(45deg);
}

.acgh-header .acgh-utility-menu {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.acgh-header .acgh-utility-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 9px;
    color: #1f2937;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    transition: color 150ms ease, background-color 150ms ease;
}

.acgh-header .acgh-utility-link:hover,
.acgh-header .acgh-utility-link:focus-visible,
.acgh-header .acgh-utility-link[aria-current="true"] {
    background: #eff6ff;
    color: #1769e0;
    outline: none;
}

.acgh-header .acgh-language-code {
    flex: 0 0 auto;
    min-width: 28px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.acgh-header .acgh-utility-empty {
    padding: 10px 12px;
    color: #7c8798;
    font-size: 12px;
    line-height: 1.7;
}

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

.elementor-editor-active .acgh-utilities,
.elementor-edit-mode .acgh-utilities {
    pointer-events: none;
}

@media (max-width: 1024px) {
    .acgh-header .acgh-actions {
        gap: var(--acgh-actions-gap, 8px);
    }
}

@media (max-width: 767px) {
    .acgh-header .acgh-actions {
        flex: 1 0 100%;
        width: 100%;
        gap: var(--acgh-actions-gap, 8px);
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .acgh-header .acgh-cta {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    .acgh-header .acgh-utilities {
        flex: 0 0 auto;
    }

    .acgh-header .acgh-utility > summary {
        width: min(var(--acgh-utility-button-size, 42px), 44px);
        height: min(var(--acgh-utility-button-size, 42px), 44px);
        border-radius: 10px;
    }

    .acgh-header .acgh-utility-panel {
        position: fixed;
        top: auto;
        right: 14px;
        bottom: 14px;
        left: 14px;
        width: auto;
        max-width: none;
        min-width: 0;
        border-radius: 16px;
    }

    .acgh-header .acgh-utility-panel::before {
        display: none;
    }
}

@media (max-width: 420px) {
    .acgh-header .acgh-actions {
        gap: var(--acgh-actions-gap, 6px);
    }

    .acgh-header .acgh-utilities {
        gap: 6px;
    }
}

/* --------------------------------------------------------------------------
 * Mobile drawer actions
 *
 * This presentation is deliberately self-contained. It consumes the canonical
 * CTA/booking/language CONTENT, but not Elementor utility colors/hover styles.
 * Keeping the rules in this versioned stylesheet also avoids stale @import cache
 * combinations where JavaScript and mobile CSS came from different releases.
 * -------------------------------------------------------------------------- */
.acgh-header .acgh-mobile-actions {
    display: none;
}

@media (max-width: 767px) {
    .acgh-header .acgh-inner > .acgh-actions {
        display: none !important;
    }

    .acgh-header .acgh-mobile-actions {
        --acgh-mobile-trigger-gap: 8px;
        --acgh-mobile-panel-reserve: 0px;
        display: block !important;
        position: relative !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 18px 0 0 !important;
        padding: 18px 0 var(--acgh-mobile-panel-reserve) !important;
        border-top: 1px solid #e8eef7 !important;
        white-space: normal !important;
        overflow: visible !important;
        transition: padding-bottom 120ms ease;
    }

    .acgh-header .acgh-mobile-actions > .acgh-mobile-cta {
        display: flex !important;
        width: 100% !important;
        min-height: 48px !important;
        margin: 0 !important;
    }

    .acgh-header .acgh-mobile-utilities {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-items: stretch !important;
        gap: var(--acgh-mobile-trigger-gap) !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 10px 0 0 !important;
        padding: 0 !important;
        direction: inherit !important;
    }

    /*
     * Reset theme/Elementor button skinning at the boundary, then apply one
     * stable mobile design. Important declarations are intentional here because
     * many Elementor/theme button states are emitted with !important.
     */
    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-trigger {
        all: unset;
        -webkit-appearance: none !important;
        appearance: none !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 9px 12px !important;
        border: 1px solid #dbe7f6 !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #22324a !important;
        font: inherit !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        letter-spacing: normal !important;
        text-align: center !important;
        text-decoration: none !important;
        text-transform: none !important;
        direction: inherit !important;
        cursor: pointer !important;
        box-shadow: 0 5px 16px rgba(15, 23, 42, .05) !important;
        transform: none !important;
        outline: none !important;
        -webkit-tap-highlight-color: transparent;
        transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease !important;
    }

    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-trigger:hover,
    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-trigger:focus,
    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-trigger:active,
    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-trigger.is-active {
        border-color: #b9d3f8 !important;
        background: #f7faff !important;
        background-color: #f7faff !important;
        color: #1769e0 !important;
        box-shadow: 0 7px 18px rgba(23, 105, 224, .10) !important;
        transform: none !important;
    }

    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-trigger.is-active {
        border-color: #8fbaf2 !important;
        background: #edf5ff !important;
        background-color: #edf5ff !important;
    }

    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-trigger:focus-visible {
        outline: 2px solid #1769e0 !important;
        outline-offset: 2px !important;
    }

    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-trigger .acgh-utility-icon {
        display: block !important;
        flex: 0 0 30px !important;
        width: 30px !important;
        height: 30px !important;
        max-width: 30px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: transparent !important;
        box-shadow: none !important;
        object-fit: contain !important;
        transform: none !important;
    }

    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-label {
        display: block !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        color: inherit !important;
        font: inherit !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    /*
     * The panel host has zero flow height. The active panel is anchored exactly
     * below the permanent trigger row, while JS reserves the same measured space
     * as bottom padding so short screens remain naturally scrollable with no gap.
     */
    .acgh-header .acgh-mobile-utility-panels {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        z-index: 30 !important;
    }

    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-panel {
        position: absolute !important;
        top: 8px !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        inset-inline: 0 !important;
        z-index: 31 !important;
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        max-height: min(320px, 42dvh) !important;
        margin: 0 !important;
        padding: 8px !important;
        border: 1px solid #e1e9f4 !important;
        border-radius: 14px !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #22324a !important;
        direction: inherit !important;
        text-align: start !important;
        box-shadow: 0 14px 34px rgba(15, 23, 42, .13) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        transform: none !important;
    }

    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-panel[hidden] {
        display: none !important;
    }

    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-panel::before {
        display: none !important;
        content: none !important;
    }

    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-panel .acgh-utility-menu {
        display: grid !important;
        gap: 4px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-panel .acgh-utility-link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 9px 10px !important;
        border: 0 !important;
        border-radius: 9px !important;
        background: transparent !important;
        background-color: transparent !important;
        color: #22324a !important;
        text-decoration: none !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-panel .acgh-utility-link:hover,
    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-panel .acgh-utility-link:focus-visible,
    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-panel .acgh-utility-link[aria-current="true"] {
        background: #f1f6fd !important;
        background-color: #f1f6fd !important;
        color: #1769e0 !important;
        outline: none !important;
    }

    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-panel .acgh-language-code {
        background: #eef3f9 !important;
        color: #64748b !important;
    }

    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-panel .acgh-utility-empty {
        margin: 0 !important;
        padding: 9px 10px !important;
        color: #64748b !important;
    }
}

@media (max-width: 420px) {
    .acgh-header .acgh-mobile-actions {
        --acgh-mobile-trigger-gap: 6px;
        margin-top: 16px !important;
        padding-top: 16px !important;
    }

    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-trigger {
        gap: 6px !important;
        padding-inline: 9px !important;
    }

    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-trigger .acgh-utility-icon {
        flex-basis: 28px !important;
        width: 28px !important;
        height: 28px !important;
        max-width: 28px !important;
    }

    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-label {
        font-size: 12px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .acgh-header .acgh-utility > summary,
    .acgh-header .acgh-utility-link,
    .acgh-header .acgh-mobile-actions,
    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-trigger,
    .acgh-header .acgh-mobile-actions .acgh-mobile-utility-panel .acgh-utility-link {
        transition: none !important;
    }
}
