/*
 * Final pointer positioning:
 * - Desktop: keep dolphin out of hero copy, in the empty gap beside search.
 * - Mobile EN: retain approved right-side position.
 * - Mobile AR/RTL: move to physical left and reverse direction.
 */

/* DESKTOP — both languages */
@media (min-width: 901px) {

    .modern-public-site .ticket-lookup-form label:first-child::after {
        width: 142px !important;

        left: auto !important;
        right: -190px !important;

        inset-inline-start: auto !important;
        inset-inline-end: auto !important;

        top: -104px !important;

        animation:
            hd-pointer-desktop-gap
            2.5s
            ease-in-out
            infinite !important;
    }

    .modern-public-site .ticket-lookup-form label:first-child::before {
        display: none !important;
    }

    @keyframes hd-pointer-desktop-gap {
        0%,100% {
            transform:
                translate3d(0,0,0)
                scaleX(-1)
                rotate(-1deg);
        }

        50% {
            transform:
                translate3d(-4px,-6px,0)
                scaleX(-1)
                rotate(1deg);
        }
    }
}

/* Slightly tighter desktop/laptop widths */
@media (min-width: 901px) and (max-width: 1120px) {

    .modern-public-site .ticket-lookup-form label:first-child::after {
        width: 126px !important;
        right: -158px !important;
        top: -93px !important;
    }
}

/* MOBILE EN / normal LTR remains on physical right */
@media (max-width: 900px) {

    html:not([dir="rtl"]) .modern-public-site
    .ticket-lookup-form label:first-child::after,
    html:not([lang^="ar"]) .modern-public-site
    .ticket-lookup-form label:first-child::after {
        left: auto !important;
        right: -6px !important;
    }
}

/* MOBILE ARABIC / RTL: move to physical left */
@media (max-width: 900px) {

    html[dir="rtl"] .modern-public-site
    .ticket-lookup-form label:first-child::after,

    html[lang^="ar"] .modern-public-site
    .ticket-lookup-form label:first-child::after,

    [dir="rtl"] .modern-public-site
    .ticket-lookup-form label:first-child::after {
        right: auto !important;
        left: -6px !important;

        inset-inline-start: auto !important;
        inset-inline-end: auto !important;

        animation:
            hd-pointer-mobile-rtl
            2.5s
            ease-in-out
            infinite !important;
    }

    @keyframes hd-pointer-mobile-rtl {
        0%,100% {
            transform:
                translate3d(0,0,0)
                scaleX(1)
                rotate(1deg);
        }

        50% {
            transform:
                translate3d(4px,-6px,0)
                scaleX(1)
                rotate(-1deg);
        }
    }
}

@media (max-width: 420px) {

    html[dir="rtl"] .modern-public-site
    .ticket-lookup-form label:first-child::after,

    html[lang^="ar"] .modern-public-site
    .ticket-lookup-form label:first-child::after,

    [dir="rtl"] .modern-public-site
    .ticket-lookup-form label:first-child::after {
        left: -3px !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    html[dir="rtl"] .modern-public-site
    .ticket-lookup-form label:first-child::after,
    html[lang^="ar"] .modern-public-site
    .ticket-lookup-form label:first-child::after {
        animation: none !important;
        transform: scaleX(1) !important;
    }
}
