/*
|--------------------------------------------------------------------------
| Royal Servicess LLC
| Global Authenticated UX / Calendar / Mobile Header
|--------------------------------------------------------------------------
*/

:root {
    --royal-gold: #d6aa32;
    --royal-gold-bright: #ebc85c;
    --royal-gold-soft: rgba(214, 170, 50, .14);
    --royal-bg: #0b0c0d;
    --royal-panel: #151617;
    --royal-text: #f4f1e8;
    --royal-muted: #9b9ca1;
    --royal-border: rgba(255, 255, 255, .09);
}

/* ==========================================================
   GLOBAL DATE / TIME INPUTS
   ========================================================== */

html {
    color-scheme: dark;
}

body input[type="date"],
body input[type="time"],
body input[type="month"],
body input[type="datetime-local"] {
    min-height: 48px;

    border-color:
        rgba(214, 170, 50, .22) !important;

    background:
        linear-gradient(
            145deg,
            rgba(22, 23, 24, .99),
            rgba(13, 14, 15, .99)
        ) !important;

    color:
        #f5f2e9 !important;

    color-scheme: dark;

    accent-color:
        var(--royal-gold);

    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

body input[type="date"]:hover,
body input[type="time"]:hover,
body input[type="month"]:hover,
body input[type="datetime-local"]:hover {
    border-color:
        rgba(214, 170, 50, .42) !important;
}

body input[type="date"]:focus,
body input[type="time"]:focus,
body input[type="month"]:focus,
body input[type="datetime-local"]:focus {
    border-color:
        var(--royal-gold) !important;

    outline: none !important;

    box-shadow:
        0 0 0 3px
            rgba(214, 170, 50, .12) !important;
}

body input[type="date"]::-webkit-calendar-picker-indicator,
body input[type="time"]::-webkit-calendar-picker-indicator,
body input[type="month"]::-webkit-calendar-picker-indicator,
body input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    width: 20px;
    height: 20px;

    margin-left: 8px;

    cursor: pointer;

    opacity: .9;

    filter:
        invert(77%)
        sepia(61%)
        saturate(697%)
        hue-rotate(359deg)
        brightness(94%)
        contrast(91%);
}

/*
 * Browsers control much of the actual native popup calendar.
 * The field, icon, focus state and supported color-scheme
 * are deliberately themed here.
 */

/* ==========================================================
   BOOKING DOB CARD
   ========================================================== */

.royal-booking-dob {
    position: relative;

    margin-bottom: 22px;
    padding: 20px;

    overflow: hidden;

    border:
        1px solid
        rgba(214, 170, 50, .20);

    border-radius: 16px;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(214, 170, 50, .09),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            rgba(27, 27, 24, .98),
            rgba(15, 16, 17, .98)
        );
}

.royal-booking-dob::before {
    content: "";

    position: absolute;

    top: 0;
    left: 20px;

    width: 65px;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--royal-gold),
            transparent
        );
}

.royal-booking-dob__eyebrow {
    display: block;

    margin-bottom: 6px;

    color:
        var(--royal-gold-bright);

    font-size: .72rem;
    font-weight: 850;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.royal-booking-dob__title {
    margin: 0 0 5px;

    color:
        var(--royal-text);

    font-size: 1.05rem;
    font-weight: 800;
}

.royal-booking-dob__copy {
    margin: 0 0 16px;

    color:
        var(--royal-muted);

    font-size: .9rem;
    line-height: 1.55;
}

.royal-booking-dob__field {
    max-width: 360px;
}

.royal-booking-dob__field label {
    display: block;

    margin-bottom: 7px;

    color:
        var(--royal-text);

    font-size: .88rem;
    font-weight: 750;
}

.royal-booking-dob__field input {
    width: 100%;

    box-sizing: border-box;
}

.royal-booking-dob__required {
    color:
        var(--royal-gold-bright);
}

.royal-booking-dob__help {
    display: block;

    margin-top: 7px;

    color:
        #8f9095;

    font-size: .8rem;
    line-height: 1.45;
}

.royal-booking-dob__error {
    margin-top: 8px;

    color: #ff9f9f;

    font-size: .84rem;
    font-weight: 700;
}

/* ==========================================================
   GLOBAL TOP TOASTS
   ========================================================== */

.royal-toast-stack {
    position: fixed;

    z-index: 10050;

    top: 92px;
    right: 22px;

    display: grid;

    width:
        min(
            430px,
            calc(100vw - 32px)
        );

    gap: 12px;

    pointer-events: none;
}

.royal-toast {
    --toast-accent:
        var(--royal-gold);

    position: relative;

    display: grid;

    grid-template-columns:
        38px minmax(0, 1fr) 30px;

    gap: 12px;

    align-items: start;

    padding: 15px 14px;

    overflow: hidden;

    border:
        1px solid
        rgba(214, 170, 50, .25);

    border-radius: 15px;

    background:
        radial-gradient(
            circle at 0 0,
            rgba(214, 170, 50, .12),
            transparent 37%
        ),
        rgba(15, 16, 17, .97);

    box-shadow:
        0 22px 55px
            rgba(0, 0, 0, .48),
        inset 0 1px 0
            rgba(255, 255, 255, .035);

    backdrop-filter:
        blur(15px);

    pointer-events: auto;

    animation:
        royalToastIn .28s ease both;
}

.royal-toast[data-toast-type="success"] {
    --toast-accent: #72d293;

    border-color:
        rgba(87, 185, 119, .28);
}

.royal-toast[data-toast-type="error"] {
    --toast-accent: #ff8f8f;

    border-color:
        rgba(230, 90, 90, .34);
}

.royal-toast[data-toast-type="warning"] {
    --toast-accent: #efbc45;
}

.royal-toast::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 2px;

    transform-origin:
        left center;

    background:
        var(--toast-accent);

    animation:
        royalToastProgress
        var(--toast-duration, 7000ms)
        linear forwards;
}

.royal-toast.is-paused::after {
    animation-play-state:
        paused;
}

.royal-toast.is-leaving {
    animation:
        royalToastOut .22s ease forwards;
}

.royal-toast__icon {
    display: grid;

    width: 36px;
    height: 36px;

    place-items: center;

    border:
        1px solid
        color-mix(
            in srgb,
            var(--toast-accent) 38%,
            transparent
        );

    border-radius: 10px;

    background:
        color-mix(
            in srgb,
            var(--toast-accent) 9%,
            transparent
        );

    color:
        var(--toast-accent);

    font-size: 16px;
    font-weight: 900;
}

.royal-toast__content {
    min-width: 0;
}

.royal-toast__title {
    display: block;

    margin-bottom: 3px;

    color:
        #faf7ef;

    font-size: .84rem;
    font-weight: 850;
}

.royal-toast__message {
    display: block;

    color:
        rgba(240, 237, 228, .70);

    font-size: .82rem;
    line-height: 1.45;
}

.royal-toast__close {
    display: grid;

    width: 28px;
    height: 28px;

    padding: 0;

    place-items: center;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color:
        rgba(255, 255, 255, .54);

    font: inherit;
    font-size: 18px;

    cursor: pointer;
}

.royal-toast__close:hover,
.royal-toast__close:focus-visible {
    background:
        rgba(255, 255, 255, .06);

    color: #fff;

    outline: none;
}

/* ==========================================================
   APP HEADER — DESKTOP POLISH
   ========================================================== */

.app-shell-brand {
    transition:
        opacity .16s ease,
        transform .16s ease;
}

.app-shell-brand:hover {
    opacity: .92;

    transform:
        translateY(-1px);
}

.app-shell-nav__link {
    white-space: nowrap;
}

.app-shell-nav__link[href*="/reserve"] {
    position: relative;
}

.app-shell-nav__link[href*="/reserve"]::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 6px;

    width: 18px;
    height: 1px;

    transform:
        translateX(-50%);

    border-radius: 999px;

    background:
        rgba(214, 170, 50, .58);
}

/* ==========================================================
   MOBILE BREADCRUMBS
   ========================================================== */

.app-shell-mobile-crumbs {
    display: none;
}

/* ==========================================================
   MOBILE / TABLET APP HEADER
   ========================================================== */

@media (max-width: 980px) {
    .app-shell-header {
        position: sticky;

        top: 0;

        z-index: 1000;

        backdrop-filter:
            blur(18px);
    }

    .app-shell-header__inner {
        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr)
            auto !important;

        grid-template-rows:
            auto
            auto !important;

        column-gap: 12px !important;
        row-gap: 10px !important;

        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .app-shell-brand-group {
        grid-column: 1;
        grid-row: 1;

        min-width: 0;
    }

    .app-shell-brand {
        min-width: 0;
    }

    .app-shell-brand__name {
        overflow: hidden;

        max-width: 220px;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-shell-context {
        display: none !important;
    }

    .app-shell-user {
        grid-column: 2;
        grid-row: 1;

        align-self: center;
    }

    .app-shell-user__identity {
        display: none !important;
    }

    .app-shell-nav {
        grid-column:
            1 / -1;
        grid-row: 2;

        display: flex !important;

        justify-content:
            flex-start !important;

        width: 100%;

        gap: 6px !important;

        overflow-x: auto;
        overflow-y: hidden;

        padding:
            2px 0 4px !important;

        scroll-behavior: smooth;

        scrollbar-width: none;

        -webkit-overflow-scrolling:
            touch;
    }

    .app-shell-nav::-webkit-scrollbar {
        display: none;
    }

    .app-shell-nav__link {
        flex:
            0 0 auto;

        min-height: 38px;

        padding:
            9px 13px !important;

        border:
            1px solid
            rgba(255, 255, 255, .06);

        border-radius:
            10px !important;

        background:
            rgba(255, 255, 255, .018);

        font-size:
            .76rem !important;
    }

    .app-shell-nav__link.is-active {
        border-color:
            rgba(214, 170, 50, .28);

        background:
            rgba(214, 170, 50, .08);
    }

    .app-shell-mobile-crumbs {
        display: flex;

        align-items: center;

        gap: 7px;

        min-height: 38px;

        padding:
            0 18px;

        overflow-x: auto;

        border-bottom:
            1px solid
            rgba(255, 255, 255, .055);

        background:
            rgba(10, 11, 12, .92);

        color:
            rgba(255, 255, 255, .46);

        font-size: .72rem;

        white-space: nowrap;

        scrollbar-width: none;
    }

    .app-shell-mobile-crumbs::-webkit-scrollbar {
        display: none;
    }

    .app-shell-mobile-crumbs a {
        color:
            rgba(225, 189, 85, .85);

        text-decoration: none;
    }

    .app-shell-mobile-crumbs__current {
        color:
            rgba(255, 255, 255, .68);

        font-weight: 700;
    }

    .royal-toast-stack {
        top: 124px;
        right: 14px;

        width:
            min(
                410px,
                calc(100vw - 28px)
            );
    }
}

@media (max-width: 560px) {
    .app-shell-header__inner {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .app-shell-brand__mark {
        width: 43px !important;
        height: 43px !important;
    }

    .app-shell-brand__name {
        max-width: 165px;

        font-size:
            1rem !important;
    }

    .app-shell-user summary {
        min-width: 44px !important;
        padding:
            5px !important;
    }

    .app-shell-nav__link {
        min-height: 36px;

        padding:
            8px 11px !important;

        font-size:
            .72rem !important;
    }

    .app-shell-mobile-crumbs {
        padding:
            0 12px;
    }

    .royal-toast-stack {
        top: 118px;
        right: 10px;

        width:
            calc(100vw - 20px);
    }

    .royal-toast {
        grid-template-columns:
            34px minmax(0, 1fr) 28px;

        gap: 10px;

        padding:
            13px 12px;
    }

    .royal-toast__icon {
        width: 32px;
        height: 32px;
    }

    .royal-booking-dob {
        padding: 17px;
    }

    .royal-booking-dob__field {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .royal-toast,
    .royal-toast::after,
    .app-shell-brand {
        animation: none !important;
        transition: none !important;
    }
}

@keyframes royalToastIn {
    from {
        opacity: 0;

        transform:
            translateY(-12px)
            scale(.985);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes royalToastOut {
    to {
        opacity: 0;

        transform:
            translateY(-8px)
            scale(.98);
    }
}

@keyframes royalToastProgress {
    from {
        transform:
            scaleX(1);
    }

    to {
        transform:
            scaleX(0);
    }
}

/* ==========================================================
   RESERVATION PRIMARY CTA
   ========================================================== */

.app-shell-nav__link[href*="/reserve"] {
    position: relative;

    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding:
        10px 20px !important;

    overflow: hidden;

    border:
        1px solid
        rgba(226, 190, 89, .38) !important;

    border-radius:
        12px !important;

    background:
        linear-gradient(
            135deg,
            #17634a 0%,
            #0e4d39 55%,
            #0a392b 100%
        ) !important;

    color:
        #fff8df !important;

    font-weight:
        850 !important;

    letter-spacing:
        .015em !important;

    text-shadow:
        0 1px 0
        rgba(0, 0, 0, .25);

    box-shadow:
        inset 0 1px 0
            rgba(255, 255, 255, .10),
        0 8px 22px
            rgba(0, 0, 0, .24),
        0 0 0 1px
            rgba(20, 99, 73, .15);

    transition:
        transform .16s ease,
        border-color .16s ease,
        box-shadow .16s ease,
        filter .16s ease !important;
}

.app-shell-nav__link[href*="/reserve"]::before {
    content: "";

    position: absolute;

    top: 0;
    left: -70%;

    width: 55%;
    height: 100%;

    transform:
        skewX(-20deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .11),
            transparent
        );

    transition:
        left .45s ease;

    pointer-events: none;
}

.app-shell-nav__link[href*="/reserve"]::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 5px;

    width: 26px;
    height: 2px;

    transform:
        translateX(-50%);

    border-radius:
        999px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #e1bc52,
            transparent
        );

    box-shadow:
        0 0 8px
        rgba(225, 188, 82, .35);

    pointer-events: none;
}

.app-shell-nav__link[href*="/reserve"]:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(235, 201, 104, .70) !important;

    background:
        linear-gradient(
            135deg,
            #1d7557 0%,
            #125a43 55%,
            #0c4433 100%
        ) !important;

    color:
        #ffffff !important;

    box-shadow:
        inset 0 1px 0
            rgba(255, 255, 255, .14),
        0 12px 28px
            rgba(0, 0, 0, .30),
        0 0 20px
            rgba(30, 120, 87, .16);
}

.app-shell-nav__link[href*="/reserve"]:hover::before {
    left: 125%;
}

.app-shell-nav__link[href*="/reserve"]:focus-visible {
    outline:
        2px solid
        #e6c55f !important;

    outline-offset:
        3px !important;
}

.app-shell-nav__link[href*="/reserve"]:active {
    transform:
        translateY(0);
}

/* Small premium reservation indicator */

.app-shell-nav__link[href*="/reserve"] {
    isolation: isolate;
}

@media (max-width: 980px) {
    .app-shell-nav__link[href*="/reserve"] {
        min-height:
            38px !important;

        padding:
            8px 16px !important;

        border-color:
            rgba(226, 190, 89, .42) !important;

        box-shadow:
            inset 0 1px 0
                rgba(255, 255, 255, .10),
            0 6px 16px
                rgba(0, 0, 0, .24) !important;
    }
}

@media (max-width: 560px) {
    .app-shell-nav__link[href*="/reserve"] {
        min-height:
            36px !important;

        padding:
            8px 14px !important;

        font-weight:
            850 !important;
    }
}

/* ==========================================================
   ROYAL WEBSITE GOLD RESERVATION CTA V2
   Dashboard Reservation button matches public website CTA
   ========================================================== */

.app-shell-nav__link[href*="/reserve"] {
    position: relative;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    min-height: 42px !important;

    padding:
        10px 20px !important;

    overflow: hidden !important;

    border:
        1px solid
        rgba(239, 202, 94, .72) !important;

    border-radius:
        11px !important;

    background:
        linear-gradient(
            135deg,
            #ddb536 0%,
            #c99b22 52%,
            #b98615 100%
        ) !important;

    color:
        #11110e !important;

    font-weight:
        900 !important;

    letter-spacing:
        .01em !important;

    text-shadow:
        0 1px 0
        rgba(255, 255, 255, .12) !important;

    box-shadow:
        inset 0 1px 0
            rgba(255, 255, 255, .28),
        0 7px 18px
            rgba(178, 132, 19, .18) !important;

    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease,
        filter .16s ease !important;
}

/*
 * Remove the previous underline decoration because this
 * is now a proper website-style CTA button.
 */

.app-shell-nav__link[href*="/reserve"]::after {
    display: none !important;
}

/*
 * Premium light sweep.
 */

.app-shell-nav__link[href*="/reserve"]::before {
    content: "";

    position: absolute !important;

    top: 0 !important;
    left: -65% !important;

    width: 46% !important;
    height: 100% !important;

    transform:
        skewX(-22deg) !important;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .20),
            transparent
        ) !important;

    transition:
        left .42s ease !important;

    pointer-events:
        none !important;
}

.app-shell-nav__link[href*="/reserve"]:hover {
    transform:
        translateY(-1px) !important;

    border-color:
        #f1cf69 !important;

    background:
        linear-gradient(
            135deg,
            #e6c146 0%,
            #d5a82a 52%,
            #c18f18 100%
        ) !important;

    color:
        #0d0d0b !important;

    filter:
        brightness(1.035) !important;

    box-shadow:
        inset 0 1px 0
            rgba(255, 255, 255, .34),
        0 10px 25px
            rgba(183, 135, 17, .25) !important;
}

.app-shell-nav__link[href*="/reserve"]:hover::before {
    left:
        125% !important;
}

.app-shell-nav__link[href*="/reserve"]:focus-visible {
    outline:
        2px solid
        #f0cf69 !important;

    outline-offset:
        3px !important;
}

.app-shell-nav__link[href*="/reserve"]:active {
    transform:
        translateY(0) !important;
}

/* Mobile keeps the same Royal website gold */

@media (max-width: 980px) {
    .app-shell-nav__link[href*="/reserve"] {
        min-height:
            38px !important;

        padding:
            8px 16px !important;

        border-color:
            rgba(239, 202, 94, .72) !important;

        background:
            linear-gradient(
                135deg,
                #ddb536,
                #c99b22
            ) !important;

        color:
            #10100d !important;

        box-shadow:
            inset 0 1px 0
                rgba(255, 255, 255, .25),
            0 6px 16px
                rgba(178, 132, 19, .18) !important;
    }
}

@media (max-width: 560px) {
    .app-shell-nav__link[href*="/reserve"] {
        min-height:
            36px !important;

        padding:
            8px 14px !important;

        font-weight:
            900 !important;
    }
}

/* ==========================================================
   CUSTOMER RESERVE NOW CTA — FINAL
   Royal theme accent: #c8a55b
   ========================================================== */

.app-shell-nav__reserve-cta {
    position: relative !important;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    min-height: 42px !important;

    margin-left:
        18px !important;

    padding:
        10px 21px !important;

    overflow: visible !important;

    border:
        1px solid
        #c8a55b !important;

    border-radius:
        11px !important;

    background:
        #c8a55b !important;

    color:
        #11110e !important;

    font-weight:
        900 !important;

    letter-spacing:
        .012em !important;

    text-shadow:
        none !important;

    box-shadow:
        inset 0 1px 0
            rgba(255, 255, 255, .24),
        0 7px 18px
            rgba(200, 165, 91, .18) !important;

    transition:
        transform .16s ease,
        background .16s ease,
        border-color .16s ease,
        box-shadow .16s ease !important;
}

/*
 * Visual separator from normal account navigation.
 */

.app-shell-nav__reserve-cta::before {
    content: "" !important;

    position: absolute !important;

    top: 50% !important;
    left: -19px !important;

    width: 1px !important;
    height: 26px !important;

    transform:
        translateY(-50%) !important;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(200, 165, 91, .48),
            transparent
        ) !important;

    pointer-events: none !important;
}

.app-shell-nav__reserve-cta::after {
    display: none !important;
}

.app-shell-nav__reserve-cta:hover {
    transform:
        translateY(-1px) !important;

    border-color:
        #d8bb78 !important;

    background:
        #d2b16b !important;

    color:
        #0e0e0c !important;

    box-shadow:
        inset 0 1px 0
            rgba(255, 255, 255, .30),
        0 10px 24px
            rgba(200, 165, 91, .26) !important;
}

.app-shell-nav__reserve-cta:focus-visible {
    outline:
        2px solid
        #e7cf99 !important;

    outline-offset:
        3px !important;
}

.app-shell-nav__reserve-cta:active {
    transform:
        translateY(0) !important;
}

@media (max-width: 980px) {
    .app-shell-nav__reserve-cta {
        min-height:
            38px !important;

        margin-left:
            10px !important;

        padding:
            8px 16px !important;
    }

    .app-shell-nav__reserve-cta::before {
        left:
            -11px !important;

        height:
            22px !important;
    }
}

@media (max-width: 560px) {
    .app-shell-nav__reserve-cta {
        min-height:
            36px !important;

        margin-left:
            8px !important;

        padding:
            8px 14px !important;
    }

    .app-shell-nav__reserve-cta::before {
        left:
            -9px !important;
    }
}
