.rides-overview-panel {
    margin: 0 0 34px;
    padding: 22px;
    border: 1px solid rgba(181, 139, 57, .45);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(38, 35, 30, .96), rgba(24, 23, 21, .96));
    box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}

.rides-overview-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 16px;
}

.rides-overview-heading h2 {
    margin: 2px 0 0;
}

.rides-overview-heading > p {
    max-width: 580px;
    margin: 0;
    color: #d8d0c2;
    line-height: 1.55;
}

.rides-overview-map {
    width: 100%;
    height: min(62vh, 650px);
    min-height: 480px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: #171717;
}

.rides-overview-loading,
.rides-overview-error {
    min-height: 480px;
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
    color: #e8dfd0;
}

.rides-overview-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.rides-overview-key-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    color: #f5efe5;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.rides-overview-key-item:hover,
.rides-overview-key-item:focus-visible {
    border-color: rgba(181, 139, 57, .75);
    background: rgba(181, 139, 57, .10);
    transform: translateY(-1px);
}

.rides-overview-key-item > span:last-child {
    min-width: 0;
}

.rides-overview-key-item strong,
.rides-overview-key-item small {
    display: block;
}

.rides-overview-key-item strong {
    overflow: hidden;
    color: #fff;
    font-size: .93rem;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.rides-overview-key-item small {
    margin-top: 4px;
    color: #bfb6a7;
    font-size: .76rem;
    line-height: 1.25;
}

.rides-overview-swatch {
    flex: 0 0 auto;
    width: 22px;
    height: 5px;
    margin-top: 6px;
    border-radius: 999px;
    background: var(--ride-color, #b58b39);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}

.rides-overview-note {
    margin: 14px 2px 0;
    color: #bfb6a7;
    font-size: .84rem;
    line-height: 1.5;
}

.rides-overview-map .leaflet-popup-content-wrapper,
.rides-overview-map .leaflet-popup-tip {
    background: #24211d;
    color: #f5efe5;
}

.rides-overview-map .leaflet-popup-content {
    margin: 12px 15px;
}

.ride-overview-popup strong,
.ride-overview-popup span,
.ride-overview-popup a {
    display: block;
}

.ride-overview-popup strong {
    margin-bottom: 4px;
    font-size: .96rem;
}

.ride-overview-popup span {
    color: #c9c0b2;
    font-size: .78rem;
}

.ride-overview-popup a {
    margin-top: 8px;
    color: #f1c76f;
    font-weight: 700;
}

@media (max-width: 900px) {
    .rides-overview-heading {
        display: block;
    }

    .rides-overview-heading > p {
        margin-top: 10px;
    }

    .rides-overview-legend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .rides-overview-panel {
        padding: 14px;
        border-radius: 14px;
    }

    .rides-overview-map {
        height: 54vh;
        min-height: 400px;
        border-radius: 10px;
    }

    .rides-overview-loading,
    .rides-overview-error {
        min-height: 400px;
    }

    .rides-overview-legend {
        grid-template-columns: 1fr;
    }
}
