/**
 * Irish Dance Party floating actions.
 *
 * Desktop: WhatsApp is fixed at the lower-right with a safe edge gap.
 * Mobile: the language trigger is placed beside the hamburger, Book Tickets
 * appears after the first screen, and WhatsApp matches the CTA height.
 */

:root {
    --idp-floating-edge-gap: 24px;
    --idp-book-bg: #ec008c;
    --idp-book-bg-hover: #d90080;
}

.idp-floating-book,
.idp-floating-whatsapp {
    position: fixed;
    z-index: 99990;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Desktop/tablet: the existing header already contains Book Tickets. */
.idp-floating-book {
    display: none;
}

/* Desktop WhatsApp: fixed lower-right, matching the requested placement. */
.idp-floating-whatsapp {
    top: auto !important;
    bottom: 30px;
    right: 15px;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    transform: none;
    cursor: pointer;
    transition: transform 180ms ease, filter 180ms ease;
    text-decoration: none !important;
    overflow: visible;
    /* Keep above Elementor sections/sticky UI; z-index:1 can be covered. */
    z-index: 99990;
}

.idp-floating-whatsapp img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.idp-floating-whatsapp:hover,
.idp-floating-whatsapp:focus-visible {
    transform: scale(1.045);
    filter: brightness(1.03);
}

.idp-floating-whatsapp:focus-visible,
.idp-floating-book:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/*
 * Mobile layout
 * ---------------------------------------------------------------
 * Book Tickets: bottom-centred after the first screen.
 * WhatsApp: same bottom line as Book Tickets + equal right edge gap.
 */
@media only screen and (max-width: 767px) {
    :root {
        --idp-floating-edge-gap: 16px;
    }

    .idp-floating-book {
        left: 50%;
        bottom: calc(var(--idp-floating-edge-gap) + env(safe-area-inset-bottom, 0px));
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 200px;
        letter-spacing: 4px;
        height: var(--idp-mobile-action-height, 50px);
        min-height: var(--idp-mobile-action-height, 50px);
        padding: 12px 20px;
        color: #fff !important;
        background: var(--idp-book-bg);
        border: 0;
        border-radius: 12px;
        box-shadow: 0 7px 20px rgba(0, 0, 0, 0.18);
        transform: translateX(-50%);
        font-family: inherit;
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        text-align: center;
        text-transform: uppercase;
        white-space: nowrap;
        text-decoration: none !important;
        transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    }

    .idp-floating-book:hover,
    .idp-floating-book:focus-visible {
        color: #fff !important;
        background: var(--idp-book-bg-hover);
        box-shadow: 0 9px 23px rgba(0, 0, 0, 0.23);
    }

    .idp-floating-book:hover {
        transform: translateX(-50%) translateY(-2px);
    }

    /* Same horizontal line as Book Tickets. Inline desktop top values are
       neutralised here so sticky/Translate detection cannot move it. */
    .idp-floating-whatsapp {
        top: auto !important;
        right: calc(var(--idp-floating-edge-gap) + env(safe-area-inset-right, 0px));
        bottom: calc(var(--idp-floating-edge-gap) + env(safe-area-inset-bottom, 0px));
        width: var(--idp-mobile-action-height, 50px);
        height: var(--idp-mobile-action-height, 50px);
        transform: none;
    }

    .idp-floating-whatsapp:hover,
    .idp-floating-whatsapp:focus-visible {
        transform: scale(1.045);
    }
}

@media (prefers-reduced-motion: reduce) {
    .idp-floating-book,
    .idp-floating-whatsapp {
        transition: none;
    }
}


/* -------------------------------------------------------------------------
 * Irish Dance Party mobile header language control + first-screen CTA rules.
 * ---------------------------------------------------------------------- */

/* The slot is rendered immediately before .navbar-toggle in the theme header. */
.idp-mobile-language-slot {
    display: none;
}

@media only screen and (max-width: 991px) {
    /* Keep logo -> current language flag -> hamburger on one line. */
    header.main-header .navbar > .container {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        overflow: visible !important;
    }

    header.main-header .navbar-brand {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        margin-right: 0 !important;
    }

    header.main-header .navbar-toggle {
        flex: 0 0 auto !important;
        margin-left: 0 !important;
        order: 4;
    }

    .idp-mobile-language-slot {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 38px !important;
        width: 38px !important;
        height: 38px !important;
        margin-left: auto !important;
        margin-right: 7px !important;
        padding: 0 !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 10050 !important;
        order: 3;
    }

    .idp-mobile-language-picker {
        position: relative !important;
        width: 38px !important;
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
    }

    .idp-mobile-language-current,
    .idp-mobile-language-option {
        appearance: none !important;
        -webkit-appearance: none !important;
        border: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
        cursor: pointer !important;
        font: inherit !important;
    }

    .idp-mobile-language-current {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 5px !important;
        border-radius: 7px !important;
        background: transparent !important;
        position: relative !important;
        z-index: 10052 !important;
    }

    .idp-mobile-language-current img,
    .idp-mobile-language-option img {
        display: block !important;
        width: 28px !important;
        height: 18px !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        object-fit: cover !important;
        border-radius: 1px !important;
        box-shadow: 0 0 0 1px rgba(255,255,255,.22) !important;
        pointer-events: none !important;
    }

    .idp-mobile-language-menu[hidden] {
        display: none !important;
    }

    .idp-mobile-language-menu {
        position: absolute !important;
        top: 44px !important;
        right: 0 !important;
        left: auto !important;
        bottom: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 3px !important;
        width: 42px !important;
        margin: 0 !important;
        padding: 5px 2px !important;
        border: 1px solid rgba(255,255,255,.12) !important;
        border-radius: 5px !important;
        background: #071a14 !important;
        box-shadow: 0 8px 24px rgba(0,0,0,.28) !important;
        z-index: 10060 !important;
    }

    .idp-mobile-language-option {
        width: 36px !important;
        height: 28px !important;
        min-width: 36px !important;
        min-height: 28px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 4px !important;
        border-radius: 3px !important;
        background: transparent !important;
    }

    .idp-mobile-language-option:hover,
    .idp-mobile-language-option:focus-visible,
    .idp-mobile-language-option.is-current {
        background: rgba(255,255,255,.12) !important;
    }

    /* The plugin's own left-side trigger / flag palette stays available in the
       DOM for translation logic, but is never shown on mobile. Our compact
       header picker calls the original language links programmatically. */
    body #glt-translate-trigger,
    body #glt-toolbar,
    body #flags {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

@media only screen and (max-width: 767px) {
    :root {
        --idp-mobile-action-height: 50px;
    }

    /* Book Tickets is hidden at the top and appears after 50px of mobile scrolling. */
    .idp-floating-book {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-50%) translateY(12px);
    }

    .idp-floating-book.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%);
    }

    .idp-floating-book.is-visible:hover {
        transform: translateX(-50%) translateY(-2px);
    }

    /* Keep the WhatsApp visual exactly the same height as Book Tickets. */
    .idp-floating-whatsapp,
    .idp-floating-whatsapp img {
        width: 55px !important;
        height: 55px !important;
    }
}

/* ========================================================================
 * Elementor / ElementsKit live header language picker — v6
 * Keep ElementsKit's native hamburger exactly where the header design puts it.
 * The language flag is absolutely aligned from JS to the hamburger's actual
 * rendered box, so it sits on the same line without changing menu layout.
 * ====================================================================== */
@media only screen and (max-width: 1024px) {
    .elementor-element-a550518,
    .elementor-element-a550518 .elementor-element-3568658,
    .elementor-element-a550518 .elementor-element-3568658 > .elementor-widget-container,
    .elementor-element-a550518 .elementor-element-3568658 nav.ekit-wid-con,
    .elementor-element-a550518 .header-menu .ekit_menu_responsive_tablet {
        overflow: visible !important;
    }

    .elementor-element-a550518 .elementor-element-3568658 nav.ekit-wid-con,
    .elementor-element-a550518 .header-menu .ekit_menu_responsive_tablet {
        position: relative !important;
    }

    /* JS writes exact top/left coordinates from the real hamburger position. */
    .elementor-element-a550518 .ekit_menu_responsive_tablet > .idp-mobile-language-slot {
        position: absolute !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        z-index: 10050 !important;
    }

    .elementor-element-a550518 .idp-mobile-language-picker {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .elementor-element-a550518 .idp-mobile-language-current {
        appearance: none !important;
        -webkit-appearance: none !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
    }

    .elementor-element-a550518 .idp-mobile-language-current:hover,
    .elementor-element-a550518 .idp-mobile-language-current:focus,
    .elementor-element-a550518 .idp-mobile-language-current:focus-visible,
    .elementor-element-a550518 .idp-mobile-language-current:active {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        border: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
    }

    .elementor-element-a550518 .idp-mobile-language-current img {
        display: block !important;
        width: 28px !important;
        height: 18px !important;
        max-width: 28px !important;
        min-width: 28px !important;
        margin: 0 !important;
        padding: 0 !important;
        object-fit: fill !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        vertical-align: middle !important;
    }

    /* Do NOT reposition, resize or add margins to the hamburger. */
    .elementor-element-a550518 .ekit_menu_responsive_tablet > .elementskit-menu-hamburger {
        z-index: 10051 !important;
    }

    .elementor-element-a550518 .idp-mobile-language-menu {
        position: absolute !important;
        top: 38px !important;
        right: 0 !important;
        left: auto !important;
        z-index: 2147483000 !important;
    }

    /* The Google translator stays in the DOM as the translation engine only. */
    body #glt-translate-trigger,
    body #glt-toolbar,
    body #flags {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Mobile home header: restore the original transparent overlay over the hero.
 * Do not create a separate black header strip. Sticky state after scrolling is
 * left to the site's existing Elementor/ElementsKit styling. */
@media only screen and (max-width: 767px) {
    html,
    body {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.home .main-header:not(.ekit-sticky--effects),
    body.home header.main-header:not(.ekit-sticky--effects) {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        border-bottom-color: transparent !important;
        z-index: 10000 !important;
    }

    body.home .main-header:not(.ekit-sticky--effects)::before,
    body.home header.main-header:not(.ekit-sticky--effects)::before,
    body.home .main-header:not(.ekit-sticky--effects) .main-header-inner,
    body.home .main-header:not(.ekit-sticky--effects) .elementor-element-32ad4f3,
    body.home .main-header:not(.ekit-sticky--effects) .elementor-element-a550518 {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
    }
}

/* ========================================================================
 * Irish Dance Party mobile hero content + language control refinement — v12
 * ====================================================================== */
@media only screen and (max-width: 767px) {
    /* Move the complete hero content only a little lower on every mobile hero.
       The offset intentionally matches the normal floating-action edge gap. */
    .artistic-has-mobile-background-slideshow > .e-con-inner,
    .elementor-element[data-artistic-mobile-background-slideshow] > .e-con-inner {
        position: relative !important;
        top: var(--idp-floating-edge-gap, 16px) !important;
    }
}

@media only screen and (max-width: 1024px) {
    /* Glass language tile matching the mobile header mockup.
       JS keeps the tile equal to the real ElementsKit hamburger height. */
    .elementor-element-a550518 .ekit_menu_responsive_tablet > .idp-mobile-language-slot {
        /* Frosted glass tile: let the green header show through, with only a
           restrained Irish-gold edge so it complements the hamburger. */
        background: rgba(255, 255, 255, 0.12) !important;
        background-color: rgba(255, 255, 255, 0.12) !important;
        border: 2px solid rgba(224, 189, 105, 0.62) !important;
        border-radius: 10px !important;
        box-shadow:
            0 3px 10px rgba(0, 0, 0, 0.10),
            inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    }

    .elementor-element-a550518 .idp-mobile-language-picker,
    .elementor-element-a550518 .idp-mobile-language-current,
    .elementor-element-a550518 .idp-mobile-language-current:hover,
    .elementor-element-a550518 .idp-mobile-language-current:focus,
    .elementor-element-a550518 .idp-mobile-language-current:focus-visible,
    .elementor-element-a550518 .idp-mobile-language-current:active {
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }

    .elementor-element-a550518 .idp-mobile-language-menu {
        top: calc(var(--idp-language-slot-size, 40px) + 6px) !important;
    }
}

@media only screen and (max-width: 1024px) {
    .elementor-element-a550518 .idp-mobile-language-picker,
    .elementor-element-a550518 .idp-mobile-language-current {
        width: var(--idp-language-slot-size, 40px) !important;
        height: var(--idp-language-slot-size, 40px) !important;
        min-width: var(--idp-language-slot-size, 40px) !important;
        min-height: var(--idp-language-slot-size, 40px) !important;
    }
}


/* ========================================================================
 * Irish Dance Party mobile hero — single bottom anchor
 *
 * Keep the hero content anchored from ONE place only. The hero itself is
 * 20px taller than the dynamic viewport, so the final content container gets
 * that 20px compensation plus the same 16px visible edge gap as WhatsApp.
 * No separate bottom padding/margin is added to .e-con-inner.
 * ====================================================================== */
@media only screen and (max-width: 767px) {
    .artistic-has-mobile-background-slideshow > .e-con-inner,
    .elementor-element[data-artistic-mobile-background-slideshow] > .e-con-inner {
        top: 0 !important;
        bottom: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: stretch !important;
        box-sizing: border-box !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .artistic-has-mobile-background-slideshow > .e-con-inner > .e-con,
    .elementor-element[data-artistic-mobile-background-slideshow] > .e-con-inner > .e-con {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: auto !important;
        margin-bottom: 0 !important;
    }

    /* One bottom offset only: 20px hero buffer + 16px visible viewport gap.
       This makes the last mobile hero CTA sit at the same bottom level as
       the WhatsApp button, without stacking extra margins/paddings. */
    .artistic-has-mobile-background-slideshow > .e-con-inner > :last-child,
    .elementor-element[data-artistic-mobile-background-slideshow] > .e-con-inner > :last-child {
        box-sizing: border-box !important;
        margin-bottom: 0 !important;
        padding-bottom: 20px !important;
    }
}
