.hb-routes {
    color: #1c1c1a;
    margin: 0 auto;
    max-width: 1240px;
    /* padding: 56px 48px 72px; */
}

.hb-routes * {
    box-sizing: border-box;
}

.hb-routes__page-header {
    align-items: baseline;
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
}

.hb-routes__label,
.hb-routes__summary-meta,
.hb-routes .leaflet-control-attribution,
.hb-routes__marker,
.hb-routes__popup-badge,
.hb-routes__popup-kicker,
.hb-routes__stop-number {
    font-family: "Space Mono", monospace;
}

.hb-routes__kicker {
    align-items: center;
    color: #0d72ab;
    display: inline-flex;
    font-family: "Simple Köln-Bonn", sans-serif;
    font-size: 24px;
    font-weight: 700;
    gap: 0.4em;
    letter-spacing: 0.12em;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hb-routes__kicker::before {
    flex: 0 0 auto;
    width: 1em;
    aspect-ratio: 1;
    box-sizing: border-box;
    content: "";
    background: radial-gradient(circle, currentColor 0 32%, transparent 35%);
    border: 0.16em solid currentColor;
    border-radius: 50%;
}

.hb-routes__title {
    color: #1c1c1a;
    font-family: "Simple Köln-Bonn", sans-serif;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0;
}

.hb-routes__rule {
    background: #1596d0;
    flex: 1;
    height: 2px;
    transform: translateY(-4px);
}

.hb-routes__intro {
    color: #33332f;
    font-family: "Inter", sans-serif;
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 32px;
    max-width: 62ch;
}

.hb-routes__layout {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 50%;
}

.hb-routes__map-card {
    background: #17171a;
    border: 1px solid #ececec;
    border-radius: 16px;
    height: 560px;
    overflow: hidden;
    position: sticky;
    top: 96px;
}

.hb-routes__map {
    color: #fafaf8;
    font-family: "Inter", sans-serif;
    height: 100%;
    inset: 0;
    margin: 0;
    min-height: 0;
    padding: 24px;
    position: absolute;
    text-align: center;
    width: 100%;
}

.hb-routes__map:not(.leaflet-container) {
    align-items: center;
    display: flex;
    justify-content: center;
}

.hb-routes__map.leaflet-container {
    padding: 0;
    background-color: transparent;
}

.hb-routes__sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hb-routes__picker-card,
.hb-routes__summary-card {
    border: 1px solid #ececec;
    border-radius: 16px;
}

.hb-routes__picker-card {
    background: #fafaf8;
    padding: 24px;
}

.hb-routes__summary-card {
    background: #ffffff;
    padding: 22px 24px;
}

.hb-routes__summary-card[hidden],
.hb-routes__stops[hidden] {
    display: none;
}

.hb-routes__label {
    color: #525252;
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.hb-routes__select-wrap {
    position: relative;
}

.hb-routes__select-wrap > span {
    color: #525252;
    font-size: 12px;
    line-height: 1;
    pointer-events: none;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.hb-routes__select {
    appearance: none;
    background: #ffffff;
    border: 1px solid #e2e1dc;
    border-radius: 11px;
    color: #1c1c1a;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    min-height: 50px;
    padding: 14px 44px 14px 16px;
    width: 100%;
}

.hb-routes__select:focus-visible {
    outline: 3px solid rgba(13, 114, 171, 0.28);
    outline-offset: 2px;
}

.hb-routes__summary-kicker {
    align-items: center;
    color: #0d72ab;
    display: inline-flex;
    font-family: "Simple Köln-Bonn", sans-serif;
    font-size: 24px;
    font-weight: 700;
    gap: 0.4em;
    letter-spacing: 0.12em;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hb-routes__summary-kicker::before {
    flex: 0 0 auto;
    width: 1em;
    aspect-ratio: 1;
    box-sizing: border-box;
    content: "";
    background: radial-gradient(circle, currentColor 0 32%, transparent 35%);
    border: 0.16em solid currentColor;
    border-radius: 50%;
}

.hb-routes__summary-card [data-hb-routes-title] {
    color: #1c1c1a;
    font-family: "Inter", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-top: 0!important;
}

.hb-routes__summary-meta {
    color: #b56f00;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.4;
    margin: 10px 0 0;
}

.hb-routes__summary-text {
    color: #33332f;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 14px 0 0;
}

.hb-routes__summary-text[hidden] {
    display: none;
}

.hb-routes__map-message {
    color: #6a6a64;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 12px 0 0;
}

.hb-routes__marker {
    align-items: center;
    background: #c3d600;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    color: #3a3a38;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
}

.hb-routes__marker span {
    line-height: 1;
}

.hb-routes__marker--popup-open span {
    visibility: hidden;
}

.hb-routes .leaflet-top .leaflet-control {
    margin-left: 16px;
    margin-top: 16px;
}

.hb-routes .leaflet-bottom .leaflet-control {
    margin-bottom: 0;
    margin-right: 0;
}

.hb-routes .leaflet-control-zoom {
    border: 0;
    border-radius: 11px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.hb-routes .leaflet-control-zoom a {
    background: #ffffff;
    border: 0;
    color: #1c1c1a;
    font-size: 22px;
    height: 40px;
    line-height: 40px;
    text-decoration: none !important;
    width: 40px;
}

.hb-routes .leaflet-control-zoom a:hover,
.hb-routes .leaflet-control-zoom a:focus,
.hb-routes .leaflet-control-zoom a:active,
.hb-routes .leaflet-control-zoom a:visited {
    background: #f2f1ee;
    color: #1c1c1a;
    text-decoration: none !important;
}

.hb-routes .leaflet-control-zoom-in {
    border-bottom: 1px solid #ececec;
}

.hb-routes .leaflet-control-attribution {
    background: rgba(23, 23, 26, 0.72);
    border-top-left-radius: 8px;
    color: #8a8a90;
    font-size: 10px;
    line-height: 1.2;
    padding: 5px 10px;
}

.hb-routes .leaflet-control-attribution a {
    color: inherit;
}

.hb-routes .hb-route-popup .leaflet-popup-content-wrapper {
    background: transparent;
    border-radius: 18px;
    box-shadow: none;
    overflow: visible;
    padding: 0;
}

.hb-routes .hb-route-popup .leaflet-popup-content {
    margin: 0;
    width: auto !important;
}

.hb-routes .hb-route-popup .leaflet-popup-tip,
.hb-routes .hb-route-popup .leaflet-popup-close-button {
    display: none;
}

.hb-routes__popup {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    font-family: "Inter", sans-serif;
    overflow: visible;
    position: relative;
    width: 340px;
    border: 1px solid #fafaf8;
}

.hb-routes__popup::after {
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 14px solid #ffffff;
    bottom: -13px;
    content: "";
    filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.12));
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

.hb-routes__popup-image {
    align-items: center;
    aspect-ratio: 1 / 1;
    background: #1f1f1d;
    border-radius: 18px 18px 0 0;
    display: flex;
    justify-content: center;
    max-height: 340px;
    overflow: visible;
    position: relative;
    width: 100%;
}

.hb-routes__popup-image img {
    display: block;
    height: auto;
    inset: 0;
    margin: auto!important;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    position: absolute;
    width: auto;
}

.hb-routes__popup-close {
    align-items: center;
    appearance: none;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    color: #0d72ab;
    cursor: pointer;
    display: flex;
    font-family: "Inter", sans-serif;
    font-size: 19px;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 34px;
}

.hb-routes__popup-close:hover,
.hb-routes__popup-close:focus-visible {
    background: #ffffff;
    color: #0a5c8a;
}

.hb-routes__popup-close:focus-visible {
    outline: 3px solid rgba(13, 114, 171, 0.28);
    outline-offset: 2px;
}

.hb-routes__popup-badge {
    align-items: center;
    background: #c3d600;
    border: 3px solid #ffffff;
    border-radius: 999px;
    bottom: -17px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: #3a3a38;
    display: flex;
    font-size: 16px;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    left: 16px;
    line-height: 1;
    position: absolute;
    width: 40px;
}

.hb-routes__popup-audio {
    align-items: center;
    appearance: none;
    background: #0d72ab;
    border: 3px solid #fff;
    border-radius: 50%;
    bottom: -25px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    color: #fff;
    cursor: pointer;
    display: flex;
    font-family: "Inter", sans-serif;
    font-size: 18px;
    height: 50px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 0 2px;
    position: absolute;
    right: 16px;
    width: 50px;
    z-index: 1;
}

.hb-routes__popup-audio::before {
    border-radius: inherit;
    content: "";
    inset: -7px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity 160ms ease;
}

.hb-routes__popup-audio svg {
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.hb-routes__popup-audio:hover,
.hb-routes__popup-audio:focus-visible,
.hb-routes__popup-audio--playing {
    background: #0a5c8a;
    color: #fff;
}

.hb-routes__popup-audio--playing::before {
    animation: hb-routes-audio-ring 1.15s linear infinite;
    background: conic-gradient(from 0deg, rgba(10, 92, 138, 0), #08486d, rgba(10, 92, 138, 0) 72%);
    -webkit-mask: radial-gradient(circle, transparent 0 59%, #000 61%);
    mask: radial-gradient(circle, transparent 0 59%, #000 61%);
    opacity: 1;
    z-index: 0;
}

.hb-routes__popup-audio:focus-visible {
    outline: 3px solid rgba(13, 114, 171, 0.28);
    outline-offset: 2px;
}

@keyframes hb-routes-audio-ring {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hb-routes__popup-audio--playing::before {
        animation: none;
    }
}

.hb-routes__popup-body {
    display: flex;
    flex-direction: column;
    padding: 26px 24px 22px;
}

.hb-routes__popup-kicker {
    color: #0d72ab;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.hb-routes__popup-title {
    color: #1c1c1a;
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.16;
    margin: 0 0 6px;
    text-decoration: none;
    text-wrap: balance;
}

.hb-routes__popup-title:hover,
.hb-routes__popup-title:focus-visible {
    color: #0d72ab;
}

.hb-routes__popup-title:focus-visible {
    outline: 3px solid rgba(13, 114, 171, 0.28);
    outline-offset: 2px;
}

.hb-routes__popup-artist {
    color: #6a6a64;
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}

.hb-routes__map:focus-visible,
.hb-routes .leaflet-control-zoom a:focus-visible,
.hb-routes .leaflet-marker-icon:focus-visible {
    outline: 3px solid rgba(13, 114, 171, 0.42);
    outline-offset: 3px;
}

.hb-routes .leaflet-marker-icon:focus-visible {
    border-radius: 50%;
}

.hb-routes__stops-header {
    align-items: center;
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.hb-routes__stops-header h2 {
    color: #1c1c1a;
    font-family: "Inter", sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0;
}

.hb-routes__stops-header span {
    background: #ececec;
    flex: 1;
    height: 1px;
    margin-top: 60px;
}

.hb-routes__stops ol,
.hb-routes__stops [data-hb-routes-stops] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0!important;
}

.hb-routes__stop {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hb-routes__stop-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 14px;
    color: inherit;
    display: flex;
    gap: 18px;
    padding: 16px 20px;
    text-decoration: none;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.hb-routes__stop-card:hover,
.hb-routes__stop-card:focus-visible {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.hb-routes__stop-card:focus-visible {
    outline: 3px solid rgba(13, 114, 171, 0.28);
    outline-offset: 2px;
}

.hb-routes__stop-card--unavailable {
    color: #6a6a64;
    font-family: "Inter", sans-serif;
}

.hb-routes__stop-number {
    align-items: center;
    background: #c3d600;
    border-radius: 999px;
    color: #3a3a38;
    display: flex;
    flex: 0 0 36px;
    font-size: 15px;
    font-weight: 700;
    height: 36px;
    justify-content: center;
    line-height: 1;
    width: 36px;
}

.hb-routes__stop-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hb-routes__stop-title {
    color: #1c1c1a;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.hb-routes__stop-artist {
    color: #6a6a64;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.35;
}

.hb-routes__stop-link {
    color: #0d72ab;
    flex: 0 0 auto;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.hb-routes__stop-card:hover .hb-routes__stop-link,
.hb-routes__stop-card:focus-visible .hb-routes__stop-link {
    color: #0a5c8a;
}

@media (max-width: 900px) {
    .hb-routes__layout {
        grid-template-columns: 1fr;
    }

    .hb-routes__map-card {
        position: relative;
        top: auto;
    }
}

@media (max-width: 640px) {
    .hb-routes {
        padding: 40px 24px 56px;
    }

    .hb-routes__page-header {
        gap: 14px;
    }

    .hb-routes__title {
        font-size: 26px;
    }

    .hb-routes__rule {
        display: none;
    }

    .hb-routes__intro {
        font-size: 16px;
    }

    .hb-routes__map-card {
        height: 420px;
    }

    .hb-routes__stop-card {
        align-items: flex-start;
        gap: 14px;
        padding: 14px 16px;
    }

    .hb-routes__stop-link {
        display: none;
    }
}
