/* Public site: the Rentals tab in the navbar. It looks like the other menu items; every 3
   seconds a glare (a soft diagonal band of light) sweeps across it, and a small "NEW" tag sits
   at its top right (shown until 1 May 2027, set in the templates).
   Motion stops for visitors who ask for reduced motion. */

.navbar-nav .nav-link.nav-rentals {
    position: relative;
    overflow: visible;
}

/* The glare, clipped to the tab (the NEW tag sits outside it). */
.nav-rentals .nr-gloss {
    position: absolute;
    inset: 0;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.nav-rentals .nr-gloss::after {
    content: "";
    position: absolute;
    top: -30%;
    bottom: -30%;
    left: 0;
    width: 40%;
    transform: translateX(-180%) skewX(-20deg);
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.22) 35%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.22) 65%,
        rgba(255, 255, 255, 0) 100%);
    opacity: 0;
}

/* The NEW tag: small, white with KAGS red text. */
.nav-rentals .nav-new {
    position: absolute;
    top: 0;
    right: -14px;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.4;
    color: #5c070e;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    text-shadow: none;
    pointer-events: none;
}

/* Collapsed (phone) menu: the tag sits beside the word. */
@media (max-width: 991.98px) {
    .nav-rentals .nav-new {
        position: static;
        margin-left: 0.5rem;
        align-self: center;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .nav-rentals .nr-gloss::after {
        animation: nrGlare 3s ease-in-out infinite;
        animation-delay: 1s;
    }
}

@keyframes nrGlare {
    0%, 55%   { transform: translateX(-180%) skewX(-20deg); opacity: 0; }
    59%       { opacity: 1; }
    96%       { opacity: 1; }
    100%      { transform: translateX(330%) skewX(-20deg); opacity: 0; }
}
