/* Bus-booking navigation item styled to match the N1 Tours header. */
.n1-bus-nav-item {
    position: relative;
}

.n1-bus-nav-link {
    display: flex !important;
    align-items: center;
    gap: 7px;
    position: relative;
}

.n1-bus-nav-icon {
    position: relative;
    width: 25px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.n1-bus-nav-icon > i {
    position: relative;
    z-index: 2;
    font-size: 18px;
    line-height: 1;
    transform-origin: 50% 100%;
    animation: n1BusHeaderRide 2.6s ease-in-out infinite;
}

.n1-bus-nav-road {
    position: absolute;
    left: 1px;
    right: 1px;
    bottom: 0;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    opacity: 0.28;
    overflow: hidden;
}

.n1-bus-nav-road::after {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    width: 7px;
    height: 2px;
    background: #ffaa0d;
    box-shadow:
        12px 0 0 #ffaa0d,
        24px 0 0 #ffaa0d;
    animation: n1BusHeaderRoad 1.3s linear infinite;
}

.n1-bus-nav-new {
    position: absolute;
    top: 8px;
    right: 5px;
    padding: 3px 5px;
    color: #111;
    background: #85d200;
    border-radius: 50px;
    box-shadow: 0 5px 12px rgba(133, 210, 0, 0.22);
    font-size: 7px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.06em;
    animation: n1BusHeaderBadge 2.5s ease-in-out infinite;
}

.header-style-1 .n1-bus-nav-new {
    top: 16px;
}

.header-style-2 .n1-bus-nav-new {
    top: 14px;
}

.n1-bus-nav-item.active > .n1-bus-nav-link,
.n1-bus-nav-link:hover {
    color: #ffaa0d !important;
}

.n1-bus-nav-item.active > .n1-bus-nav-link .n1-bus-nav-icon {
    color: #85d200;
}

@keyframes n1BusHeaderRide {
    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(2px) rotate(-2deg);
    }
    55% {
        transform: translateX(4px) translateY(-1px) rotate(1deg);
    }
    80% {
        transform: translateX(2px) rotate(-1deg);
    }
}

@keyframes n1BusHeaderRoad {
    to {
        transform: translateX(12px);
    }
}

@keyframes n1BusHeaderBadge {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

@media (max-width: 1199px) {
    .n1-bus-nav-new {
        position: static;
        margin-left: 2px;
    }

    .header-style-1 .n1-bus-nav-new,
    .header-style-2 .n1-bus-nav-new {
        top: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .n1-bus-nav-icon > i,
    .n1-bus-nav-road::after,
    .n1-bus-nav-new {
        animation: none !important;
    }
}

/* Account navigation follows the existing N1 Tours dropdown language. */
.n1-account-nav > a {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
}

.n1-account-nav .sub-menu a,
.n1-account-nav .sub-menu button {
    display: flex !important;
    align-items: center;
    gap: 9px;
}

.n1-account-nav .sub-menu form {
    margin: 0;
}

.n1-account-nav .sub-menu button {
    width: 100%;
    padding: 12px 25px;
    border: 0;
    color: #555;
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.n1-account-nav .sub-menu button:hover {
    color: #066168;
    background: #f5fbfb;
}

/* --------------------------------------------------------------------------
   Header account control (replaces the unused site search)
   -------------------------------------------------------------------------- */
.n1-header-account-slot,
.n1-header-account {
    position: relative;
}

.n1-header-account {
    margin: 0;
}

.n1-header-account > summary {
    list-style: none;
}

.n1-header-account > summary::-webkit-details-marker {
    display: none;
}

.n1-header-account-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    line-height: 1;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.n1-header-account-trigger > i {
    font-size: 25px;
    line-height: 1;
}

.header-style-1 .n1-header-account-trigger {
    color: #fff;
}

.header-style-2 .n1-header-account-trigger {
    color: #066168;
}

.header-style-1 .n1-header-account-trigger:hover,
.header-style-1 .n1-header-account-trigger:focus-visible,
.header-style-1 .n1-header-account-slot.is-active .n1-header-account-trigger {
    color: #85d200;
    background: rgba(255, 255, 255, 0.1);
}

.header-style-2 .n1-header-account-trigger:hover,
.header-style-2 .n1-header-account-trigger:focus-visible,
.header-style-2 .n1-header-account-slot.is-active .n1-header-account-trigger {
    color: #ffaa0d;
    background: #f1fbfb;
}

.n1-header-account-trigger:hover {
    transform: translateY(-2px);
}

.n1-header-account-trigger:focus-visible {
    outline: 3px solid rgba(133, 210, 0, 0.28);
    outline-offset: 2px;
}

.n1-header-account-menu {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 12px);
    right: 0;
    width: 300px;
    overflow: hidden;
    padding: 10px;
    color: #163e43;
    background: #fff;
    border: 1px solid rgba(6, 97, 104, 0.13);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(6, 97, 104, 0.19);
    animation: n1AccountMenuIn 0.2s ease both;
}

.n1-header-account-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 90px;
    height: 4px;
    border-radius: 0 0 99px 0;
    background: linear-gradient(90deg, #ffaa0d, #85d200);
}

.n1-header-account-user {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px 12px 15px;
    margin-bottom: 7px;
    border-bottom: 1px solid #e2eeee;
}

.n1-header-account-avatar {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    color: #066168;
    background: #eafbd1;
    border-radius: 15px;
    font-size: 21px;
}

.n1-header-account-user div {
    min-width: 0;
}

.n1-header-account-user small,
.n1-header-account-user strong,
.n1-header-account-user div > span {
    display: block;
}

.n1-header-account-user small {
    margin-bottom: 2px;
    color: #71878a;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.n1-header-account-user strong {
    overflow: hidden;
    color: #066168;
    font-family: "Afacad", sans-serif;
    font-size: 19px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.n1-header-account-user div > span {
    overflow: hidden;
    margin-top: 2px;
    color: #71878a;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.n1-header-account-link,
.n1-header-account-logout button {
    display: flex !important;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #28565b !important;
    background: transparent;
    border: 0;
    border-radius: 12px;
    font-family: "Figtree", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.n1-header-account-link i,
.n1-header-account-logout button i {
    width: 22px;
    color: #066168;
    font-size: 17px;
    text-align: center;
}

.n1-header-account-link:hover,
.n1-header-account-logout button:hover {
    color: #066168 !important;
    background: #f0fafa;
}

.n1-header-account-logout {
    margin: 0;
}

@keyframes n1AccountMenuIn {
    from {
        opacity: 0;
        transform: translateY(-7px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 991px) {
    .n1-header-account-trigger {
        min-width: 42px;
        min-height: 42px;
        padding: 7px;
        margin-right: 24px;
    }

    .n1-header-account-trigger > i {
        font-size: 23px;
    }

    .n1-header-account-menu {
        right: -52px;
        top: calc(100% + 16px);
        width: min(300px, calc(100vw - 32px));
    }
}

@media (max-width: 420px) {
    .n1-header-account-trigger {
        margin-right: 17px;
    }

    .n1-header-account-menu {
        position: fixed;
        top: 92px;
        right: 16px;
    }
}
