/* Shared header and fixed-header spacing for every public page. */
.frontend-layout {
    --nav-v2-height: clamp(84px, 6.75vw, 140px);
    padding-top: var(--nav-v2-height);
}

.frontend-layout .navbar-v2 {
    height: var(--nav-v2-height);
    min-height: 0;
    padding: 0;
    background: #0c111b;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.frontend-layout .nav-v2-inner {
    width: 88%;
    max-width: 1920px;
    height: 100%;
    padding: 0;
    flex-wrap: nowrap;
}

.frontend-layout .navbar-v2 .navbar-brand {
    flex-shrink: 0;
    margin: 0 clamp(24px, 5.5vw, 116px) 0 0;
    padding: 0;
}

.frontend-layout .navbar-v2 .logo-jkt {
    display: block;
    width: clamp(145px, 9.5vw, 190px);
    height: auto;
}

.frontend-layout .navbar-v2 .navbar-collapse {
    min-width: 0;
    align-self: stretch;
    align-items: stretch;
    padding: 0;
}

.frontend-layout .nav-v2-links {
    flex: 1;
    align-items: stretch;
    justify-content: space-between;
    gap: clamp(12px, 1.25vw, 28px);
}

.frontend-layout .nav-v2-links .nav-item { display: flex; }

.frontend-layout .nav-v2-links .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 4px;
    color: #f7f7fa !important;
    font-size: clamp(14px, 1.04vw, 22px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
}

.frontend-layout .nav-v2-links a.nav-link:hover,
.frontend-layout .nav-v2-mega-trigger:hover {
    color: #c8d1ff !important;
}

.frontend-layout .nav-v2-links .nav-link.is-current,
.frontend-layout .nav-v2-links .nav-link[aria-expanded="true"] {
    background: radial-gradient(ellipse at 50% 60%, rgba(255, 218, 66, .1), transparent 72%);
}

.frontend-layout .nav-v2-links .nav-link.is-current::after,
.frontend-layout .nav-v2-links .nav-link[aria-expanded="true"]::after {
    content: '';
    position: absolute;
    right: auto;
    bottom: 0;
    left: 50%;
    top: auto;
    display: block;
    width: calc(100% - 8px);
    max-width: 96px;
    height: 8px;
    margin: 0;
    transform: translateX(-50%);
    background: #1746ff;
}

.frontend-layout .nav-v2-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: clamp(18px, 1.4vw, 30px);
    margin-left: clamp(24px, 3.5vw, 75px);
}

.frontend-layout .nav-v2-account {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7d88b8;
    opacity: 1;
}

.frontend-layout .navbar-v2 .nav-v2-languages {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: #646977;
    font-size: clamp(13px, .8vw, 16px);
    font-weight: 600;
    white-space: nowrap;
}

.frontend-layout .nav-v2-languages .active { color: #f7f7fa; }
.frontend-layout .nav-v2-unavailable { cursor: default; }
.frontend-layout .navbar-toggler { margin-left: auto; }
.frontend-layout .navbar-v2 a:focus-visible,
.frontend-layout .nav-v2-mega-trigger:focus-visible,
.frontend-layout .navbar-toggler:focus-visible {
    outline: 2px solid #9cacf9;
    outline-offset: 5px;
    border-radius: 4px;
}

.frontend-layout .hero-v2,
.frontend-layout .all-events-hero,
.frontend-layout .partnership-hero { margin-top: 0; }
.frontend-layout #section-coj,
.frontend-layout #virtual-tour-section { scroll-margin-top: var(--nav-v2-height); }

/* What's On disclosure: absolute on desktop so opening it never moves a pin. */
.frontend-layout .nav-v2-mega-trigger {
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
}

.frontend-layout .navbar-v2.is-mega-open .nav-link.is-current:not([aria-expanded="true"]) { background: none; }
.frontend-layout .navbar-v2.is-mega-open .nav-link.is-current:not([aria-expanded="true"])::after { display: none; }

.whats-on-menu[hidden],
.whats-on-menu [hidden] { display: none !important; }
.whats-on-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1;
    max-height: calc(100vh - var(--nav-v2-height));
    max-height: calc(100dvh - var(--nav-v2-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    color: #111;
    box-shadow: 0 20px 30px rgba(12, 17, 27, .12);
    animation: whats-on-menu-enter .18s ease-out;
}

.whats-on-menu-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, .85fr);
    gap: 36px;
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
    padding: 32px 0;
}

.whats-on-menu-column { min-width: 0; }
.whats-on-menu-column + .whats-on-menu-column {
    border-left: 1px solid #e4e4e4;
    padding-left: 28px;
}

.whats-on-menu-label {
    margin: 0 0 16px;
    padding-inline: 10px;
    color: #979797;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.4;
    text-transform: uppercase;
}

.whats-on-menu-features,
.whats-on-menu-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.whats-on-menu-feature {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 88px;
    padding: 14px 18px;
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #111;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.whats-on-menu-feature.is-selected,
.whats-on-menu-feature:hover { background: #f5f5f5; color: #111; }
.whats-on-menu-icon {
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    font-size: 26px;
}

.whats-on-menu-feature.is-selected .whats-on-menu-icon { background: #2e5be8; }
.whats-on-menu-icon svg { width: 30px; height: 30px; }
.whats-on-menu-feature-copy { display: grid; min-width: 0; gap: 5px; }
.whats-on-menu-feature-copy strong { font-size: 16px; font-weight: 700; line-height: 1.3; }
.whats-on-menu-feature-copy small { max-width: 230px; color: #777; font-size: 12px; font-weight: 400; line-height: 1.45; }
.whats-on-menu-chevron {
    margin-left: auto;
    color: #aaa;
    font-size: 14px;
}
.whats-on-menu-feature.is-selected .whats-on-menu-chevron { color: #2e5be8; }

.whats-on-menu-link {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

button.whats-on-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.whats-on-menu-link.is-selected,
.whats-on-menu-link:hover { background: #f5f5f5; color: #111; }
.whats-on-menu-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px 10px 0;
    color: #999;
    font-size: 11px;
    text-decoration: none;
}
.whats-on-menu-all:hover { color: #1746ff; }
.whats-on-menu-coming-soon {
    margin: 0 10px;
    color: #777;
    font-size: 13px;
    line-height: 1.55;
}

.whats-on-calendar {
    padding: 10px;
    border-radius: 10px;
    background: #f6f6f7;
}

.whats-on-calendar-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #111;
}

.whats-on-calendar-month {
    display: flex;
    align-items: baseline;
    gap: 7px;
}
.whats-on-calendar-month strong { color: #111; font-size: 16px; }
.whats-on-calendar-month > span { color: #858585; font-size: 12px; }
.whats-on-calendar-clear {
    padding: 4px 8px;
    border: 0;
    border-radius: 5px;
    background: #e3e8ff;
    color: #2e5be8;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}
.whats-on-calendar-clear:hover:not(:disabled) { background: #d5ddff; }
.whats-on-calendar-clear:disabled {
    color: #aaa;
    background: #ececed;
    cursor: default;
}
.whats-on-calendar-weekdays,
.whats-on-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
}

.whats-on-calendar-weekdays {
    margin-bottom: 5px;
    color: #9a9a9a;
    font-size: 9px;
    text-align: center;
    text-transform: uppercase;
}

.whats-on-calendar-day,
.whats-on-calendar-days .is-empty {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 50%;
    color: #242424;
    font-size: 11px;
    line-height: 1;
}

.whats-on-calendar-day {
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.whats-on-calendar-day:hover { background: #e8e8eb; }
.whats-on-calendar-day.is-today {
    box-shadow: inset 0 0 0 1px #2e5be8;
    color: #2e5be8;
    font-weight: 700;
}

.whats-on-calendar-day.is-selected,
.whats-on-calendar-day.is-selected:hover {
    background: #2e5be8;
    color: #fff;
    font-weight: 700;
}

.whats-on-calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 3px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #8a2be2;
}

.whats-on-calendar-day.is-selected.has-event::after { background: #fff; }
.whats-on-calendar-events {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.whats-on-calendar-events a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #111;
    text-decoration: none;
}

.whats-on-calendar-events a:hover { background: #f5f5f5; }
.whats-on-calendar-events time {
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 8px;
    background: #edf1ff;
    color: #2e5be8;
    line-height: 1;
}

.whats-on-calendar-events time strong { font-size: 16px; }
.whats-on-calendar-events time span {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.whats-on-calendar-event-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.whats-on-calendar-event-copy > strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.whats-on-calendar-event-copy small {
    overflow: hidden;
    color: #858585;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.whats-on-menu-feature:focus-visible,
.whats-on-menu-link:focus-visible,
.whats-on-menu-all:focus-visible,
.whats-on-calendar-clear:focus-visible,
.whats-on-calendar-day:focus-visible,
.whats-on-calendar-events a:focus-visible {
    outline: 2px solid #2e5be8;
    outline-offset: 2px;
}

@keyframes whats-on-menu-enter {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .whats-on-menu { animation: none; }
}

@media (max-width: 1199.98px) {
    .frontend-layout .nav-v2-inner { width: 90%; }
    .frontend-layout .navbar-v2 .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        max-height: calc(100vh - var(--nav-v2-height));
        max-height: calc(100dvh - var(--nav-v2-height));
        overflow-y: auto;
        background: #0c111b;
        border-top: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 0 18px 28px rgba(0, 0, 0, .25);
    }
    .frontend-layout .nav-v2-links {
        flex-direction: column;
        gap: 4px;
        padding: 18px 5% 8px;
    }
    .frontend-layout .nav-v2-links .nav-item { display: block; }
    .frontend-layout .nav-v2-links .nav-link {
        min-height: 48px;
        padding: 12px 16px;
        font-size: 18px;
    }
    .frontend-layout .nav-v2-links .nav-link.is-current::after,
    .frontend-layout .nav-v2-links .nav-link[aria-expanded="true"]::after {
        top: 50%;
        bottom: auto;
        left: 0;
        width: 4px;
        height: 26px;
        transform: translateY(-50%);
    }
    .frontend-layout .nav-v2-actions {
        gap: 20px;
        margin: 4px 5% 0;
        padding: 18px 16px 24px;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }
    .frontend-layout .nav-v2-mega-trigger { width: 100%; }
    .whats-on-menu {
        position: static;
        max-height: none;
        margin: 8px 0;
        overflow: visible;
        border-radius: 12px;
        box-shadow: none;
    }
    .whats-on-menu-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        padding: 22px 16px;
    }
    .whats-on-menu-column + .whats-on-menu-column {
        border-top: 1px solid #e4e4e4;
        border-left: 0;
        padding: 20px 0 0;
    }
    .whats-on-menu-feature { gap: 14px; padding: 12px; }
    .whats-on-menu-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
}
