/* Tour trail: stops connected by a dotted path */
.trail {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
}

.trail-stop {
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 18px;
}

.trail-stop.is-last {
    padding-bottom: 0;
}

.trail-stop::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 30px;
    bottom: 0;
    border-left: 2px dashed #8fcfc2;
}

.trail-stop.is-last::before {
    display: none;
}

.trail-node {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0d8b7e;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px #e3f4ef;
    position: relative;
    z-index: 1;
}

.trail-stop.is-last .trail-node {
    background: #1d4fa0;
    box-shadow: 0 0 0 4px #e3ecfb;
}

.trail-body {
    display: grid;
    gap: 3px;
    padding-top: 4px;
    min-width: 0;
}

.trail-body strong {
    font-size: 0.95rem;
    color: #13253a;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.trail-body small {
    color: #5b7088;
    font-size: 0.82rem;
    line-height: 1.4;
}

.trail-tag {
    font-style: normal;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e3f4ef;
    color: #0b5d46;
}

.trail-tag.is-end {
    background: #e3ecfb;
    color: #1d4fa0;
}

.trail-fee {
    justify-self: start;
    padding: 2px 10px;
    border-radius: 999px;
    background: #fff0cf;
    color: #7a5208;
    font-size: 0.76rem;
    font-weight: 700;
}

.trail-note {
    font-style: italic;
}

.cm-trail-hint {
    margin: -4px 0 4px;
    color: #62788e;
    font-size: 0.8rem;
}

.trail-compact .trail-stop {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 16px;
}

.trail-compact .trail-stop::before {
    left: 10px;
    top: 22px;
}

.trail-compact .trail-node {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    box-shadow: 0 0 0 3px #e3f4ef;
}

.trail-compact .trail-stop.is-last .trail-node {
    box-shadow: 0 0 0 3px #e3ecfb;
}

.trail-compact .trail-body {
    padding-top: 1px;
}

.trail-compact .trail-body strong {
    font-size: 0.86rem;
    font-weight: 600;
}

.trail-more {
    color: #62788e !important;
    font-weight: 600 !important;
}
