/* =========================================================
   TOUR STICKY NAVIGATION
   ========================================================= */

.tour-sticky-nav {
    position: sticky;
    top: 0;
    z-index: 50;

    width: 100%;

    margin-top: 8px;

    background: var(--color-white);

    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}


/* =========================================================
   INNER
   ========================================================= */

.tour-sticky-nav-inner {
    display: flex;
    align-items: center;

    width: 100%;

    min-height: 52px;

    overflow-x: auto;
    scrollbar-width: none;
}

.tour-sticky-nav-inner::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   LINK
   ========================================================= */

.tour-sticky-link {
    position: relative;

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

    min-height: 52px;

    padding: 0 18px;

    flex: 0 0 auto;

    color: var(--color-text-muted);

    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;

    line-height: 1;

    text-decoration: none;

    transition:
        color var(--transition-fast);
}


/* =========================================================
   HOVER
   ========================================================= */

.tour-sticky-link:hover {
    color: var(--color-primary);
}


/* =========================================================
   ACTIVE
   ========================================================= */

.tour-sticky-link.active {
    color: var(--color-primary);
}


/* =========================================================
   ACTIVE INDICATOR
   ========================================================= */

.tour-sticky-link.active::after {
    content: "";

    position: absolute;

    left: 18px;
    right: 18px;
    bottom: 0;

    height: 3px;

    background: var(--color-primary);

    border-radius:
        3px 3px 0 0;
}


/* =========================================================
   FOCUS
   ========================================================= */

.tour-sticky-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -3px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .tour-sticky-nav {
        margin-top: 4px;
    }

    .tour-sticky-link {
        min-height: 50px;
        padding: 0 16px;
        font-size: 15px;
    }

    .tour-sticky-link.active::after {
        left: 16px;
        right: 16px;
    }

}


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

@media (max-width: 700px) {

    .tour-sticky-nav {
        position: sticky;
        top: 0;

        margin-top: 0;

        box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .tour-sticky-nav-inner {
        min-height: 48px;
    }

    .tour-sticky-link {
        min-height: 48px;

        padding: 0 15px;

        font-size: 14px;
    }

    .tour-sticky-link.active::after {
        left: 15px;
        right: 15px;

        height: 2px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .tour-sticky-link {
        padding: 0 13px;
         font-size: 14px;
    }

    .tour-sticky-link.active::after {
        left: 13px;
        right: 13px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

    .tour-sticky-link {
        transition: none;
    }

}