/* Turismo — rutas y lugares */

.tr-hub__hero,
.tr-route__head {
    max-width: 900px;
}

.tr-hub__title,
.tr-route__title {
    margin: 8px 0 14px;
    font-family: var(--ed-serif);
    font-size: clamp(2.1rem, 4.6vw, 4.2rem);
    line-height: .98;
    letter-spacing: -.035em;
    color: var(--ed-ink);
}

.tr-hub__dek,
.tr-route__dek {
    max-width: 760px;
    margin: 0;
    color: var(--ed-ink-soft);
    font-size: 1.02rem;
    line-height: 1.55;
}

.tr-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tr-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ed-rule);
    background: var(--ed-surface);
    overflow: hidden;
}

.tr-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--ed-forest-soft);
    overflow: hidden;
}

.tr-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.tr-card:hover .tr-card__media img {
    transform: scale(1.035);
}

.tr-card__num {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 7px;
    background: var(--ed-forest);
    color: #fff;
    font-family: var(--ed-serif);
    font-size: .9rem;
    font-weight: 700;
}

.tr-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 14px;
    flex: 1;
}

.tr-card__meta {
    margin: 0;
    color: var(--ed-forest);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tr-card__title {
    margin: 0;
    font-family: var(--ed-serif);
    font-size: 1.3rem;
    line-height: 1.08;
}

.tr-card__title a {
    color: var(--ed-ink);
    text-decoration: none;
}

.tr-card__title a:hover {
    color: var(--ed-forest);
}

.tr-card__dek {
    margin: 0;
    color: var(--ed-ink-soft);
    font-size: .8rem;
    line-height: 1.5;
}

.tr-card__foot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: auto 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--ed-rule);
    color: var(--ed-muted);
    font-size: .64rem;
    letter-spacing: .04em;
}

.tr-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 22px;
    color: var(--ed-muted);
    font-size: .72rem;
}

.tr-breadcrumb a {
    color: var(--ed-forest);
    text-decoration: none;
}

.tr-breadcrumb a:hover {
    text-decoration: underline;
}

.tr-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 22px 0 0;
    border: 1px solid var(--ed-rule);
    background: var(--ed-rule);
}

.tr-meta span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    background: var(--ed-surface);
    color: var(--ed-ink-soft);
    font-size: .78rem;
}

.tr-meta b {
    color: var(--ed-forest);
    font-size: .58rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tr-cover {
    margin: 26px 0 0;
    border: 1px solid var(--ed-rule);
    background: var(--ed-forest-soft);
}

.tr-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.tr-map-section {
    margin: 34px 0;
    border-top: 2px solid var(--ed-forest);
    padding-top: 18px;
}

.tr-map-section__head h2 {
    margin: 0 0 4px;
    font-family: var(--ed-serif);
    font-size: 1.5rem;
}

.tr-map-section__head p {
    margin: 0 0 12px;
    color: var(--ed-muted);
    font-size: .78rem;
}

.tr-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr);
    gap: 14px;
}

.tr-map {
    min-height: 460px;
    border: 1px solid var(--ed-rule);
    background: var(--ed-forest-soft);
    z-index: 0;
}

.tr-stops {
    max-height: 460px;
    overflow: auto;
    margin: 0;
    padding: 0;
    border: 1px solid var(--ed-rule);
    list-style: none;
    background: var(--ed-surface);
}

.tr-stops li + li {
    border-top: 1px solid var(--ed-rule);
}

.tr-stop {
    display: flex;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.tr-stop:hover,
.tr-stop.is-active {
    background: var(--ed-forest-soft);
}

.tr-stop__num {
    color: var(--ed-forest);
    font-family: var(--ed-serif);
    font-size: .8rem;
    font-weight: 700;
    padding-top: 2px;
}

.tr-stop__body {
    display: grid;
    gap: 3px;
}

.tr-stop__name {
    font-size: .84rem;
    font-weight: 750;
    color: var(--ed-ink);
}

.tr-stop__note {
    color: var(--ed-muted);
    font-size: .7rem;
    line-height: 1.4;
}

.tr-body {
    max-width: 780px;
}

.tr-tips,
.tr-sources,
.tr-faq {
    max-width: 780px;
    margin: 28px 0;
    padding-top: 18px;
    border-top: 1px solid var(--ed-rule);
}

.tr-tips h2,
.tr-sources h2,
.tr-faq h2 {
    margin: 0 0 10px;
    font-family: var(--ed-serif);
    font-size: 1.4rem;
}

.tr-tips ul,
.tr-sources ul {
    margin: 0;
    padding-left: 18px;
    color: var(--ed-ink-soft);
    font-size: .86rem;
    line-height: 1.6;
}

.tr-sources a {
    color: var(--ed-forest);
}

.tr-sources span {
    color: var(--ed-muted);
    font-size: .72rem;
}

.tr-faq details {
    border-bottom: 1px solid var(--ed-rule);
    padding: 10px 0;
}

.tr-faq summary {
    cursor: pointer;
    font-weight: 700;
    font-size: .9rem;
}

.tr-faq details p {
    margin: 8px 0 0;
    color: var(--ed-ink-soft);
    font-size: .84rem;
    line-height: 1.55;
}

.tr-back {
    margin: 30px 0 10px;
    font-size: .8rem;
}

.tr-back a {
    color: var(--ed-forest);
    font-weight: 700;
    text-decoration: none;
}

.tr-map--failed {
    display: grid;
    place-items: center;
    padding: 20px;
    color: var(--ed-muted);
    font-size: .8rem;
    text-align: center;
}

.leaflet-popup-content {
    margin: 10px 12px;
    font-family: var(--ed-sans);
}

.tr-popup strong {
    display: block;
    font-family: var(--ed-serif);
    font-size: 1rem;
    line-height: 1.15;
}

.tr-popup span {
    display: block;
    margin-top: 2px;
    color: #374151;
    font-size: .72rem;
}

@media (max-width: 980px) {
    .tr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tr-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .tr-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tr-map-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .tr-map {
        min-height: 360px;
    }

    .tr-stops {
        max-height: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tr-card__media img {
        transition: none;
    }
}
