﻿/* Nav overrides (loaded on every ElvesLab page from _Layout.cshtml): changes on top of master.v1.1.min.css (CDN)
   for the "Destination" menu item. */

/* Tighter gap (master.css: 2.75vw) so eight items fit on one line. */
@media screen and (min-width: 1024px) {
    #Master #Nav .w1542 #NavLink .navcol {
        margin-right: 2vw;
    }
}

/* Page-load entrance: master.v1.1.min.css staggers each .navcol by position
   (nth-child 2..7, +0.2s each) and then the language/user .wrapper at 1.4s.
   "Destination" made Contact Us the 8th item, which had no delay, so it popped
   in before the rest. Continue the sequence: 8th at 1.4s, .wrapper at 1.6s. */
@media screen and (min-width: 1024px) {
    body.pageload #Master #Nav .w1542 #NavLink .navcol:nth-child(8) {
        transition-delay: 1.4s;
    }

    body.pageload #Master #Nav .w1542 #NavLink .wrapper {
        transition-delay: 1.6s;
    }
}

/* ---------- Destination dropdown (.nav-destination in _Nav.cshtml) ---------- */

/* Same thumbnail shape as the other dropdowns (their Nav-*.webp images are 408 x 134). */
#Master #Nav .w1542 #NavLink .navcol.nav-destination .ddlwrapper .flex .imglink .img {
    aspect-ratio: 408 / 134;
    object-fit: cover;
}

#Master #Nav .w1542 #NavLink .navcol.nav-destination .ddlwrapper .flex .imglink.is-disabled {
    cursor: not-allowed;
    pointer-events: none;
}

    #Master #Nav .w1542 #NavLink .navcol.nav-destination .ddlwrapper .flex .imglink.is-disabled .img {
        filter: grayscale(1);
        opacity: .45;
    }

#Master #Nav .w1542 #NavLink .navcol.nav-destination .nav-soon {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background-color: #fff;
    color: #313131;
    font-family: "Inter-SemiBold";
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media screen and (min-width: 1024px) {
    /* Destination sits near the right end of the nav and its panel holds four thumbnails,
       so opening it from the left edge (master.css: left -30%) pushes it off-screen.
       Open it from the right edge instead, mirroring the same 30% overhang. */
    #Master #Nav .w1542 #NavLink .navcol.nav-destination .ddlwrapper {
        left: auto;
        right: -30%;
    }

    #Master #Nav .w1542 #NavLink .navcol.nav-destination .nav-soon {
        position: absolute;
        z-index: 2;
        top: .5vw;
        right: .5vw;
        font-size: 10px;
    }
}

@media screen and (max-width: 1023px) {
    #Master #Nav .w1542 #NavLink .navcol.nav-destination .ddlwrapper .flex .imglink.is-disabled > div {
        display: inline;
    }

    #Master #Nav .w1542 #NavLink .navcol.nav-destination .nav-soon {
        margin-left: 8px;
        vertical-align: middle;
    }
}
