/* monkeytrip: автокарта-путеводитель под статьёй (inc/route-map.php) */

.mt-route {
    margin: 48px 0 24px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}
.entry-content .mt-route__title { margin: 24px 0 8px; }
.entry-content .mt-route__intro { margin: 0 0 16px; color: #555; }

/* Вкладки дней */
.mt-route__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}
.mt-route__tab {
    --day-color: #2e3a47;
    padding: 6px 14px;
    border: 2px solid var(--day-color);
    border-radius: 999px;
    background: #fff;
    color: #2e3a47;
    font: inherit;
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
}
.mt-route__tab.is-active {
    background: var(--day-color);
    color: #fff;
}

/* Карта */
.mt-route__map-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}
.mt-route__map {
    height: 460px;
    background: #e8eef2;
}
@media (max-width: 768px) {
    .mt-route__map { height: 380px; }
}
.mt-route__fs {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #2e3a47;
    font: inherit;
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
    cursor: pointer;
}
.mt-route__map-wrap.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 100000;
    border-radius: 0;
}
.mt-route__map-wrap.is-fullscreen .mt-route__map { height: 100%; }
html.mt-route-noscroll, html.mt-route-noscroll body { overflow: hidden; }

/* Маркеры и подсказки */
.mt-route__pin { background: none; border: 0; }
.mt-route__pin span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font: 700 13px/1 system-ui, sans-serif;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.mt-route__popup b { display: block; margin-bottom: 4px; font-size: 15px; }
.mt-route__popup p { margin: 0 0 6px !important; font-size: 14px; line-height: 1.45; }
.mt-route__popup small { color: #666; }

/* Маршрут текстом: таймлайн в духе ul.travel-route */
.mt-route__day { --day-color: #e55b31; margin-top: 28px; }
.entry-content .mt-route__day-title {
    margin: 0 0 4px;
    padding-left: 12px;
    border-left: 4px solid var(--day-color);
}
.entry-content .mt-route__day-meta { margin: 0 0 12px; color: #666; font-size: 14px; }
.entry-content ol.mt-route__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.entry-content .mt-route__stop {
    position: relative;
    margin: 0;
    padding: 4px 0 14px 42px;
    cursor: pointer;
}
.mt-route__stop::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 28px;
    bottom: 0;
    width: 3px;
    background: var(--day-color);
    opacity: .5;
}
.mt-route__stop:last-child::after { display: none; }
.mt-route__num {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--day-color);
    color: #fff;
    font: 700 13px/1 system-ui, sans-serif;
}
.mt-route__name { font-size: 1.05em; color: #111; }
.mt-route__stop:hover .mt-route__name { text-decoration: underline; }
.mt-route__visit { margin-left: 8px; color: #666; font-size: 14px; white-space: nowrap; }
.entry-content .mt-route__leg { margin: 4px 0 0; color: #666; font-size: 14px; }
.entry-content .mt-route__leg--transit { font-style: italic; }
.entry-content .mt-route__links { margin: 4px 0 0; font-size: 14px; hyphens: none; -webkit-hyphens: none; }
.entry-content .mt-route__links a { white-space: nowrap; }
.entry-content .mt-route__note { margin: 24px 0 0; color: #888; font-size: 13px; }

/* Регион / подборка: точки без маршрута — компактный список в две колонки */
.mt-route__day--points { margin-top: 20px; }
@media (min-width: 769px) {
    .entry-content .mt-route__day--points ol.mt-route__list { columns: 2; column-gap: 32px; }
    .mt-route__day--points .mt-route__stop { break-inside: avoid; }
}
.mt-route__day--points .mt-route__stop::after { display: none; }
