.alert-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    background: var(--orange);
    color: var(--white);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.alert-bar .container {
    display: flex;
    justify-content: center;
}

.alert-bar p {
    margin: 0;
    padding: 7px 42px 7px 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.1;
}

.alert-bar strong {
    font-weight: 700;
}

.alert-bar a {
    font-size: 0.78rem;
    font-weight: 700;
    margin-left: 8px;
}

.alert-close {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.site-header {
    position: relative;
    z-index: 20;
    background: var(--navy);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    width: 100%;
}

.site-branding {
    margin-left: 50px;
}

.site-branding img {
    width: 252px;
    max-width: 100%;
}

.site-header .container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    margin-right: 50px;
    justify-content: flex-end;
}

.header-actions > a,
.header-actions button {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
}

.header-actions > a {
    transition: opacity 0.2s ease;
}

.header-actions > a:hover,
.header-actions > button:hover {
    opacity: 0.82;
}

.header-search,
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--sky);
}

.header-search {
    color: var(--sky);
}

.menu-toggle svg,
.header-search svg {
    width: 100%;
    height: 100%;
    stroke: var(--sky);
}

.primary-menu-wrap {
    position: absolute;
    right: 20px;
    top: 100%;
    width: min(280px, calc(100% - 40px));
    z-index: 30;
}

.primary-menu {
    list-style: none;
    margin: 10px 0 0;
    padding: 12px 0;
    background: rgba(8, 31, 61, 0.98);
    box-shadow: var(--shadow-soft);
    display: none;
}

.primary-menu.is-open {
    display: block;
}

.primary-menu li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.primary-menu a {
    display: block;
    padding: 12px 18px;
    color: var(--white);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.primary-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-tools {
    display: none;
}

.hero-section {
    position: relative;
    min-height: 690px;
    overflow: hidden;
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 34%;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 22, 41, 0.26) 0%, rgba(5, 22, 41, 0.1) 36%, rgba(5, 22, 41, 0) 65%),
        linear-gradient(180deg, rgba(5, 22, 41, 0) 60%, rgba(5, 22, 41, 0.28) 100%);
    pointer-events: none;
}

.status-panel-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    min-height: 690px;
    padding: 0 0 40px;
}

.hero-content {
    width: min(100%, 550px);
    padding: 20px 25px 20px;
    background: rgba(185, 55, 155, 0.94);
    color: var(--white);
}

.hero-content h2 {
    margin: 0 0 12px;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: clamp(3.6rem, 6vw, 5.2rem);
    font-weight: 700;
    line-height: 0.92;
    text-transform: uppercase;
}

.hero-content p {
    margin: 0 0 10px;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
}

.hero-content .btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--white);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-content .btn-white svg,
.trail-link svg {
    width: 15px;
    height: 15px;
}

.status-panel-desktop {
    position: absolute;
    top: 20px;
    right: 0;
    z-index: 3;
    width: 220px;
    background: rgba(255, 255, 255, 0.95);
    padding: 22px 24px 20px;
}

.status-panel-desktop .status-item {
    padding: 18px 0 17px;
    border-bottom: 1px solid #dbdde2;
}

.status-panel-desktop .status-item:first-child {
    padding-top: 0;
}

.status-panel-desktop .status-label {
    margin: 0 0 6px;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--blue);
}

.status-panel-desktop .status-value {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #101010;
}

.status-panel-desktop .status-value.open {
    color: #101010;
}

.status-panel-desktop .status-value.closed {
    color: var(--closed);
}

.status-panel-desktop .status-sub {
    margin: 6px 0 0;
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 0.7rem;
    line-height: 1.15;
    text-transform: uppercase;
    color: #727272;
}

.weather-icon {
    display: inline-flex;
    align-items: center;
    width: 34px;
    height: 24px;
}

.weather-icon svg {
    width: 34px;
    height: 24px;
}

.status-sub-location {
    text-transform: none;
}

.trail-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 14px;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--blue);
}

.status-mobile-toggle {
    display: none;
}

@media (max-width: 1023px) {
    .header-actions {
        gap: 16px;
    }

    .header-actions > a {
        font-size: 0.95rem;
    }

    .hero-section,
    .status-panel-wrap {
        min-height: 620px;
    }

    .hero-content {
        margin-left: 0;
    }

    .status-panel-desktop {
        top: auto;
        right: 20px;
        bottom: 22px;
        left: 20px;
        width: auto;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
        padding: 0;
        overflow: hidden;
    }

    .status-panel-desktop .status-item {
        min-width: 0;
        padding: 14px 14px 12px;
        border-right: 1px solid #dbdde2;
        border-bottom: 0;
    }

    .status-panel-desktop .status-item:first-child {
        padding-top: 14px;
    }

    .status-panel-desktop .status-label {
        font-size: 15px;
    }

    .status-panel-desktop .status-value {
        font-size: 1.6rem;
    }

    .status-panel-desktop .status-sub {
        font-size: 0.72rem;
    }

    .status-panel-desktop .trail-link {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 0;
        padding: 14px 16px;
        border-left: 1px solid #dbdde2;
    }
}

@media (max-width: 767px) {
    .alert-bar {
        min-height: 26px;
    }

    .alert-bar p {
        padding-right: 28px;
        font-size: 0.62rem;
        text-align: center;
        line-height: 1.2;
    }

    .alert-bar a {
        display: inline;
        margin-left: 4px;
        font-size: 0.62rem;
    }

    .alert-close {
        right: 8px;
        font-size: 1.2rem;
    }

    .header-inner {
        min-height: 48px;
        padding: 0 12px;
    }

    .site-branding img {
        width: 110px;
    }

    .header-actions {
        gap: 12px;
    }

    .header-actions > a {
        display: inline-flex;
        font-size: 0.72rem;
    }

    .header-actions > .header-link-webcam {
        display: none;
    }

    .header-link-contact {
        display: inline-flex;
        font-size: 0.72rem;
    }

    .header-search {
        display: none;
    }

    .menu-toggle {
        width: 22px;
        height: 22px;
    }

    .primary-menu-wrap {
        right: 12px;
        width: calc(100% - 24px);
    }

    .primary-menu.is-open + .mobile-menu-tools,
    .primary-menu-wrap.is-open .mobile-menu-tools,
    .mobile-menu-tools.is-open {
        display: grid;
    }

    .mobile-menu-tools {
        background: rgba(8, 31, 61, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        grid-template-columns: 1fr 1fr;
    }

    .mobile-menu-tools a,
    .mobile-menu-search {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        border: 0;
        background: transparent;
        color: var(--white);
        font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
        font-size: 0.9rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .mobile-menu-tools a + .mobile-menu-search {
        border-left: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-menu-search svg {
        width: 16px;
        height: 16px;
    }

    .hero-section {
        min-height: 420px;
        padding-top: 56px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(5, 22, 41, 0.04) 0%, rgba(5, 22, 41, 0.36) 100%);
    }

    .hero-image,
    .hero-overlay {
        top: 56px;
        height: calc(100% - 56px);
    }

    .status-panel-wrap {
        min-height: 320px;
        align-items: flex-end;
        padding-bottom: 0;
    }

    .hero-content {
        width: 100%;
        max-width: none;
        margin-left: 0;
        padding: 14px 14px 12px;
    }

    .hero-content h2 {
        font-size: 2.2rem;
        margin-bottom: 4px;
        line-height: 0.94;
    }

    .hero-content p {
        font-size: 0.64rem;
        margin-bottom: 4px;
        max-width: 100%;
        line-height: 1.3;
    }

    .hero-content .btn-white {
        font-size: 0.82rem;
    }

    .hero-section > .status-panel-desktop {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        bottom: auto;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr auto;
        width: 100%;
        height: auto;
        max-height: 56px;
        padding: 0;
        background: var(--white);
        box-shadow: none;
        transform: none;
        overflow: visible;
    }

    .hero-section > .status-panel-desktop .status-item {
        min-width: 0;
        padding: 6px 8px 5px;
        border-right: 1px solid #d8dde8;
        border-bottom: 0;
    }

    .hero-section > .status-panel-desktop .status-item:first-child {
        padding-top: 6px;
    }

    .hero-section > .status-panel-desktop .status-item--extra,
    .hero-section > .status-panel-desktop .trail-link--extra {
        display: none;
    }

    .hero-section > .status-panel-desktop .status-label {
        margin: 0 0 1px;
        font-size: 15px;
        letter-spacing: 0.04em;
    }

    .hero-section > .status-panel-desktop .status-value {
        font-size: 0.72rem;
        letter-spacing: 0;
    }

    .hero-section > .status-panel-desktop .status-value.open {
        color: #1a8a1a;
    }

    .hero-section > .status-panel-desktop .status-value.closed {
        color: #c0392b;
    }

    .hero-section > .status-panel-desktop .status-sub {
        font-size: 0.5rem;
        margin-top: 1px;
    }

    .status-mobile-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1px;
        padding: 6px 8px;
        border: 0;
        border-left: 0;
        background: var(--white);
        color: var(--blue);
        font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
        font-size: 0.5rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        cursor: pointer;
        white-space: nowrap;
    }

    .status-mobile-toggle svg {
        width: 10px;
        height: 10px;
        transition: transform 0.2s ease;
    }

    .hero-section > .status-panel-desktop.is-expanded {
        max-height: none;
    }

    .hero-section > .status-panel-desktop.is-expanded .status-mobile-toggle svg {
        transform: rotate(180deg);
    }

    .hero-section > .status-panel-desktop.is-expanded .status-item--extra {
        display: block;
        grid-column: span 2;
        border-top: 1px solid #d8dde8;
    }

    .hero-section > .status-panel-desktop.is-expanded .trail-link--extra {
        display: flex;
        grid-column: 1 / -1;
        justify-content: center;
        padding: 6px 12px;
        margin: 0;
        border-top: 1px solid #d8dde8;
        white-space: nowrap;
        font-size: 0.66rem;
    }
}
