/* Motion and interaction polish for the Popular Destinations carousel. */
.egho-destinations.is-rail {
    scroll-behavior: auto !important;
    scroll-snap-type: x mandatory;
}

.egho-rail.is-infinite-rail .egho-destinations.is-rail,
.egho-rail.is-rail-moving .egho-destinations.is-rail {
    scroll-snap-type: none !important;
}

.egho-destination {
    position: relative;
    transform-origin: center center;
    transition:
        transform .42s cubic-bezier(.2,.75,.25,1),
        box-shadow .42s ease,
        filter .42s ease,
        opacity .42s ease !important;
    will-change: transform, filter;
}

.egho-destination::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(112deg, transparent 20%, rgba(255,255,255,.30) 48%, transparent 76%);
    transform: translateX(-150%);
    transition: transform .9s ease;
}

.egho-destination-copy {
    z-index: 2 !important;
}

.egho-destination:hover,
.egho-destination:focus-within {
    transform: translateY(-7px) scale(1.025) !important;
    box-shadow: 0 22px 44px rgba(7,35,69,.28) !important;
    filter: saturate(1.10) brightness(1.035) !important;
}

.egho-destination:hover::after,
.egho-destination:focus-within::after,
.egho-destination.is-rail-active::after {
    transform: translateX(150%);
}

.egho-destination.is-rail-active {
    transform: translateY(-4px) scale(1.018);
    box-shadow: 0 18px 38px rgba(7,35,69,.24) !important;
    filter: saturate(1.09) brightness(1.025) !important;
}

.egho-rail.is-rail-moving .egho-destination {
    opacity: .985;
}

.egho-rail.is-moving-next .egho-destination.is-rail-active {
    transform: translateY(-4px) scale(1.025);
}

.egho-rail.is-motion-ready {
    isolation: isolate;
}

.egho-rail-head > .egho-section-link {
    position: relative;
    min-height: 38px;
    padding: 8px 4px;
    color: #0b4d9a;
    font-weight: 800;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.egho-rail-head > .egho-section-link::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    background: #f59e0b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.egho-rail-head > .egho-section-link:hover,
.egho-rail-head > .egho-section-link:focus-visible {
    color: #082f5e;
    transform: translateY(-2px);
    outline: none;
}

.egho-rail-head > .egho-section-link:hover::after,
.egho-rail-head > .egho-section-link:focus-visible::after {
    transform: scaleX(1);
}

/* Keep the carousel navigation light and independent instead of a heavy pill. */
.egho-rail-head[data-egho-rail-nav] {
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.egho-rail-button {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 42px !important;
    height: 42px !important;
    overflow: hidden !important;
    border: 1px solid #d5e3f3 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #0b4d8d !important;
    box-shadow: 0 6px 16px rgba(18, 86, 160, .08) !important;
    transition:
        transform .2s cubic-bezier(.2,.8,.2,1),
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        box-shadow .2s ease !important;
}

.egho-rail-button svg {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    transition: transform .22s ease;
}

.egho-rail-button:hover:not(:disabled),
.egho-rail-button:focus-visible:not(:disabled) {
    transform: translateY(-2px) scale(1.04) !important;
    border-color: #1256a0 !important;
    background: #1256a0 !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(18, 86, 160, .16) !important;
    outline: none !important;
}

.egho-rail-button[data-egho-rail-prev]:hover svg,
.egho-rail-button[data-egho-rail-prev]:focus-visible svg {
    transform: translateX(-2px);
}

.egho-rail-button[data-egho-rail-next]:hover svg,
.egho-rail-button[data-egho-rail-next]:focus-visible svg {
    transform: translateX(2px);
}

.egho-rail-button:active:not(:disabled) {
    transform: translateY(0) scale(.94) !important;
    box-shadow: 0 3px 9px rgba(18, 86, 160, .12) !important;
}

.egho-rail.is-moving-next .egho-rail-button[data-egho-rail-next]:not(:disabled),
.egho-rail.is-moving-prev .egho-rail-button[data-egho-rail-prev]:not(:disabled) {
    border-color: #c7dcf4 !important;
    background: #edf5ff !important;
    color: #1256a0 !important;
    box-shadow: 0 6px 16px rgba(18, 86, 160, .10) !important;
}

.egho-rail.is-moving-next .egho-rail-button[data-egho-rail-next] svg {
    animation: eghRailArrowNext .62s ease;
}

.egho-rail.is-moving-prev .egho-rail-button[data-egho-rail-prev] svg {
    animation: eghRailArrowPrev .62s ease;
}

@keyframes eghRailArrowNext {
    0% { transform: translateX(0); opacity: 1; }
    45% { transform: translateX(7px); opacity: .3; }
    46% { transform: translateX(-7px); opacity: .3; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes eghRailArrowPrev {
    0% { transform: translateX(0); opacity: 1; }
    45% { transform: translateX(-7px); opacity: .3; }
    46% { transform: translateX(7px); opacity: .3; }
    100% { transform: translateX(0); opacity: 1; }
}

@media (max-width: 760px) {
    .egho-destination:hover,
    .egho-destination:focus-within {
        transform: translateY(-4px) scale(1.015) !important;
    }

    .egho-destination.is-rail-active {
        transform: translateY(-2px) scale(1.01);
    }

    .egho-rail-head[data-egho-rail-nav] {
        gap: 7px;
        padding: 0;
    }

    .egho-rail-button {
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px !important;
    }
}
