.gbr-map-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem;
}

.gbr-map-intro {
    max-width: 800px;
}

.gbr-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

@media (min-width: 960px) {
    .gbr-map-layout {
        grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    }
}

.gbr-map-wrap {
    position: relative;
}

.gbr-map {
    width: 100%;
    height: 70vh;
    min-height: 420px;
    border-radius: 6px;
    border: 1px solid #ccc;
    z-index: 0;
}

.gbr-map-legend {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 500;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.85rem;
    display: flex;
    gap: 12px;
}

.gbr-legend-swatch {
    display: inline-block;
    width: 18px;
    height: 4px;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 5px;
}

.gbr-legend-hiking {
    background: #2f7d32;
}

.gbr-legend-mtb {
    background: #14549c;
}

.gbr-route-panel {
    position: relative;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 1rem 1.25rem;
}

.gbr-route-panel-close {
    position: absolute;
    top: 4px;
    right: 8px;
    border: none;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.gbr-route-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.gbr-route-meta {
    margin: 0 0 0.75rem;
}

.gbr-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #fff;
}

.gbr-badge-type-1 {
    background: #2f7d32;
}

.gbr-badge-type-2 {
    background: #14549c;
}

.gbr-route-ortschaft {
    color: #555;
}

.gbr-route-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    margin: 0 0 0.75rem;
}

.gbr-route-facts div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.gbr-route-facts dt {
    color: #666;
}

.gbr-route-facts dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

.gbr-route-description {
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    font-size: 0.95rem;
}

.gbr-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 0 0 1rem;
}

.gbr-filter-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gbr-filter-label {
    font-size: 0.78rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gbr-filter select {
    padding: 6px 10px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 0.95rem;
    background: #fff;
    min-width: 140px;
}

.gbr-filter-reset {
    padding: 7px 12px;
    border: none;
    border-radius: 4px;
    background: #d8770a;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.gbr-filter-reset:hover {
    background: #b86408;
}

.gbr-filter-count {
    margin: 0 0 0 auto;
    color: #555;
    font-size: 0.9rem;
    align-self: center;
}

.gbr-route-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.gbr-route-list {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.gbr-route-list-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.gbr-route-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gbr-route-list-button {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "badge title" "badge meta";
    column-gap: 8px;
    row-gap: 2px;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fafafa;
    cursor: pointer;
    font: inherit;
}

.gbr-route-list-button:hover {
    background: #fff3e6;
    border-color: #d8770a;
}

.gbr-route-list-title {
    font-weight: 600;
}

.gbr-route-list-item .gbr-route-list-title {
    grid-area: title;
    font-weight: 600;
}

.gbr-route-list-item .gbr-badge {
    grid-area: badge;
    align-self: start;
}

.gbr-route-list-meta {
    grid-area: meta;
    color: #666;
    font-size: 0.85rem;
}

.gbr-route-list-empty {
    color: #666;
    font-style: italic;
    margin: 0.25rem 0;
}

.gbr-route-download {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 9px 14px;
    border-radius: 4px;
    background: #2f7d32;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.gbr-route-download:hover {
    background: #256628;
}
