/* Trasy rowerowe: mapa, karta trasy, profil wysokości, lista tras z filtrami. Kolory tekstu dziedziczone z motywu. */
.tp-route-page {
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    max-width: var(--container-max, 1100px);
    padding: 0 var(--space-4, 1.25rem) var(--space-6, 2rem);
    width: 100%;
}

.tp-route-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    gap: 0.4rem;
    line-height: 1.5;
    padding: 20px 0 32px;
}

.tp-route-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.tp-route-breadcrumbs [aria-current] {
    opacity: 0.7;
}

.tp-route-page .entry-content > p:first-child {
    max-width: 46rem;
}

/* Mapa */
.tp-route-map {
    background: #e9ecef;
    border-radius: 10px;
    height: 380px;
    margin: 1rem 0;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.tp-route-map--overview {
    height: 460px;
}

.tp-route-map[hidden] {
    display: none;
}

.tp-route-map .leaflet-popup-content a {
    font-weight: 700;
}

/* Karta trasy we wpisie */
.tp-route-card {
    border: 1px solid rgba(127, 127, 127, 0.3);
    border-radius: 12px;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
}

.tp-route-card dl {
    display: grid;
    gap: 0.75rem 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: 0;
}

.tp-route-card dl div {
    margin: 0;
}

.tp-route-card dt {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    opacity: 0.7;
    text-transform: uppercase;
}

.tp-route-card dd {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0.1rem 0 0;
}

.tp-route-profile {
    margin: 0.5rem 0 0;
}

.tp-route-profile svg {
    display: block;
    height: 120px;
    width: 100%;
}

.tp-route-profile path {
    fill: rgba(217, 72, 15, 0.18);
    stroke: none;
}

.tp-route-profile polyline {
    fill: none;
    stroke: #d9480f;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.tp-route-profile figcaption {
    display: flex;
    font-size: 0.8rem;
    gap: 0.75rem;
    justify-content: space-between;
    opacity: 0.75;
}

.tp-route-profile figcaption span:first-child,
.tp-route-profile figcaption span:last-child {
    white-space: nowrap;
}

.tp-route-profile figcaption span:nth-child(2) {
    text-align: center;
}

.tp-route-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 1rem 0 0.5rem;
}

.tp-route-actions a {
    font-weight: 600;
}

.tp-route-gpx {
    background: #d9480f;
    border-radius: 999px;
    color: #fff !important;
    padding: 0.4rem 1rem;
    text-decoration: none;
}

.tp-route-source {
    font-size: 0.8rem;
    margin: 0.5rem 0 0;
    opacity: 0.7;
}

.tp-route-card-more {
    margin: 0.75rem 0 0;
}

/* Lista tras */
.tp-route-sections {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tp-route-sections strong {
    font-size: 0.85rem;
    margin-right: 0.25rem;
}

.tp-route-sections a {
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    text-decoration: none;
}

.tp-route-sections a span {
    opacity: 0.6;
}

.tp-route-filters {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin: 1.25rem 0;
}

.tp-route-filters label {
    display: flex;
    flex: 1 1 180px;
    flex-direction: column;
    font-size: 0.85rem;
    font-weight: 600;
    gap: 0.25rem;
}

.tp-route-filters input,
.tp-route-filters select {
    box-sizing: border-box;
    font: inherit;
    font-weight: 400;
    min-height: 2.5rem;
    padding: 0.4rem 0.6rem;
    width: 100%;
}

.tp-route-count {
    flex-basis: 100%;
    font-size: 0.85rem;
    opacity: 0.75;
}

.tp-route-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.tp-route-item[hidden] {
    display: none;
}

.tp-route-item a {
    border: 1px solid rgba(127, 127, 127, 0.3);
    border-radius: 10px;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    height: 100%;
    padding: 0.8rem 1rem;
    text-decoration: none;
}

.tp-route-item a:hover,
.tp-route-item a:focus-visible {
    border-color: currentColor;
}

.tp-route-name {
    font-weight: 700;
}

.tp-route-meta,
.tp-route-group {
    font-size: 0.85rem;
    opacity: 0.75;
}

@media (max-width: 600px) {
    .tp-route-map {
        height: 300px;
    }

    .tp-route-map--overview {
        height: 360px;
    }
}
