/*
 * Off-season header bar.
 * Colors mirror the 2027s city-page tokens (--brand-primary #bb4a17,
 * --brand-primary-dark0 = #bb4a17 mixed with 7% black).
 */

#sy-header-bar {
    --hb-bg: #bb4a17;
    --hb-bg-dark: #ae4515;
    --hb-fg: #ffdfb8;
    --hb-fg-hover: #f6ce9d;
    --hb-accent: #651e6d;
    --hb-height: 52px;
    --hb-gutter: 8px;
    --hb-menu-width: 100%;

    position: relative;
    z-index: 1000;
    margin: 0;
    padding: 0;
    background-color: var(--hb-bg);
    color: var(--hb-fg);
    font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (min-width: 768px) {
    #sy-header-bar {
        --hb-height: 56px;
        --hb-gutter: clamp(24px, 4.7vw, 68px);
        --hb-menu-width: 375px;
    }
}

.sy-hb__inner {
    display: flex;
    align-items: center;
    height: var(--hb-height);
    padding: 0 var(--hb-gutter);
}

/* ---------- left: logo + burger ---------- */

.sy-hb__left {
    display: flex;
    flex: none;
    align-items: center;
    gap: 28px;
}

/* The mobile bar reads burger first, then the logo. */
.sy-hb__logo {
    display: flex;
    order: 2;
    align-items: center;
}

/* Mobile carries the wide 2027 lockup, desktop the round logo core. */
.sy-hb__logo-svg {
    display: none;
    width: 47px;
    height: 38px;
}

.sy-hb__logo-wide {
    display: block;
    width: 152px;
    height: auto;
}

@media (min-width: 768px) {
    .sy-hb__left {
        gap: 14px;
    }

    .sy-hb__logo {
        order: 0;
    }

    .sy-hb__logo-svg {
        display: block;
    }

    .sy-hb__logo-wide {
        display: none;
    }
}

.sy-hb__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 9px 10px;
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.sy-hb__burger:focus {
    outline: none;
}

.sy-hb__burger:focus-visible {
    outline: 2px solid var(--hb-fg);
    outline-offset: 2px;
}

.sy-hb__burger-bar {
    display: block;
    width: 30px;
    height: 2px;
    border-radius: 1px;
    background-color: #fff;
}

/* ---------- middle: nearby cities carousel ---------- */

.sy-hb__cities {
    display: none;
}

/* Below this the buttons leave three slides too narrow for a city name plus its dates. */
@media (min-width: 1100px) {
    .sy-hb__cities {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
        margin: 0 clamp(16px, 3vw, 48px);
        overflow: hidden;
    }
}

.sy-hb__cities-track {
    display: flex;
    align-items: center;
}

.sy-hb__city {
    flex: 0 0 calc(100% / 3);
    min-width: 0;
    padding: 0 8px;
    overflow: hidden;
    color: #fff;
    /* City names come from geolocation, so their length varies; shrinking the type on
       narrower desktops keeps the longest label off the ellipsis. */
    font-size: clamp(13px, 1.05vw, 15px);
    text-align: center;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sy-hb__city:hover,
.sy-hb__city:focus {
    color: var(--hb-fg-hover);
    text-decoration: none;
}

.sy-hb__city-date {
    margin-left: 0.4em;
}

/* ---------- right: hotline / Find Tickets ---------- */

.sy-hb__right {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

@media (min-width: 768px) {
    .sy-hb__right {
        gap: 10px;
    }
}

.sy-hb__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 47px;
    padding: 0 16px;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Equal-width buttons cost the carousel ~190px, so only widen them once there is room.
   A minimum rather than a fixed basis: hotline numbers and button labels vary by city
   and language, and a fixed basis would let a long one spill out over the carousel. */
@media (min-width: 1360px) {
    .sy-hb__btn {
        min-width: 248px;
    }
}

.sy-hb__btn--outline {
    border: 2px solid var(--hb-fg);
    color: #fff;
}

.sy-hb__btn--outline:hover,
.sy-hb__btn--outline:focus {
    background-color: var(--hb-fg);
    color: var(--hb-bg);
    text-decoration: none;
}

.sy-hb__btn-icon {
    flex: none;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.sy-hb__btn--filled {
    background-color: var(--hb-fg);
    color: var(--hb-accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sy-hb__btn--filled:hover,
.sy-hb__btn--filled:focus {
    background-color: #fff0d6;
    color: var(--hb-accent);
    text-decoration: none;
}

/* On mobile the hotline collapses to its icon, as the city page app's mobile bar does. */
@media (max-width: 767px) {
    .sy-hb__btn--outline {
        height: auto;
        padding: 0 4px;
        border: 0;
        color: #fff0d6;
    }

    .sy-hb__btn--outline .sy-hb__btn-label {
        display: none;
    }

    .sy-hb__btn--outline .sy-hb__btn-icon {
        width: 26px;
        height: 26px;
    }

    /* The wide logo takes the space the ticket CTA needs. */
    .sy-hb__btn--filled {
        display: none;
    }
}

/* ---------- burger dropdown ---------- */

.sy-hb__menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: var(--hb-menu-width);
    background-color: var(--hb-bg);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.sy-hb__menu[hidden] {
    display: none;
}

.sy-hb__menu-list {
    margin: 0;
    padding: 1.5rem 1.5rem 1.4rem;
    border-bottom: 1px solid var(--hb-fg);
    list-style: none;
}

.sy-hb__menu-list li {
    list-style: none;
}

/* From 768px up the bar itself carries the ticket CTA. */
@media (min-width: 768px) {
    .sy-hb__menu-tickets {
        display: none;
    }
}

.sy-hb__menu-list a {
    display: block;
    padding: 0.5rem 0;
    color: var(--hb-fg);
    font-size: 15px;
    letter-spacing: 0.05em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.sy-hb__menu-list a:hover,
.sy-hb__menu-list a:focus {
    color: var(--hb-fg-hover);
    text-decoration: none;
}

/* ---------- language row ---------- */

.sy-hb__lang {
    padding: 0.6rem 0;
    background-color: var(--hb-bg-dark);
}

.sy-hb__lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0.5rem 1.5rem;
    border: 0;
    background: none;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.sy-hb__lang-caret {
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid currentColor;
    transition: transform 0.2s ease;
}

.sy-hb__lang.is-open .sy-hb__lang-caret {
    transform: rotate(90deg);
}

.sy-hb__lang-list {
    max-height: 50vh;
    margin: 0;
    padding: 0.25rem 0 0.5rem;
    overflow-y: auto;
    list-style: none;
}

.sy-hb__lang-list[hidden] {
    display: none;
}

.sy-hb__lang-list li {
    list-style: none;
}

.sy-hb__lang-list a {
    display: block;
    padding: 0.35rem 1.5rem;
    color: var(--hb-fg);
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}

.sy-hb__lang-list a:hover,
.sy-hb__lang-list a:focus {
    color: var(--hb-fg-hover);
    text-decoration: none;
}
