/* ==========================================================================
   Карта и навигация для статьи раздела «Места»
   Общая стилистика приведена к блоку карты маршрута.
   ========================================================================== */

.article-place-location {
    margin: 42px 0;
    padding: 30px;
    border: 1px solid rgba(20, 61, 50, 0.16);
    border-radius: 26px;
    background: #f7f3eb;
    color: #292824;
}

.article-place-location *,
.article-place-location *::before,
.article-place-location *::after {
    box-sizing: border-box;
}

.article-place-location ul,
.article-place-location ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ==========================================================================
   Шапка
   ========================================================================== */

.article-place-location__header {
    margin-bottom: 28px;
}

.article-place-location__eyebrow,
.article-place-location__section-kicker {
    display: block;
    margin-bottom: 10px;
    color: #b36536;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.article-place-location__title {
    display: inline;
    margin: 0;
    color: #143d32;
    font-size: clamp(30px, 3.1vw, 40px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.article-place-location__lead {
    max-width: 790px;
    margin: 24px 0 0;
    color: #5f655f;
    font-size: 17px;
    line-height: 1.55;
}

/* ==========================================================================
   Карта
   ========================================================================== */

.article-place-location__map-wrap {
    position: relative;
    margin: 0;
}

.article-place-location__map {
    position: relative;
    height: 460px;
    overflow: hidden;
    border: 1px solid rgba(20, 61, 50, 0.16);
    border-radius: 22px;
    background: #e8e1d3;
}

.article-place-location__map-placeholder,
.article-place-location__map-error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #637167;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.article-place-location__map.article-place-location__map_ready .article-place-location__map-placeholder {
    display: none;
}

.article-place-location__map > ymaps3.ymaps3--map-container {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.article-place-location__map > ymaps3.ymaps3--map-container > ymaps3.ymaps3--map {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/*
   Яндекс сам рисует кнопку «Открыть Яндекс Карты».
   Вторая кнопка в нашей разметке не нужна.
*/
.article-place-location__map-link {
    display: none !important;
}

/* ==========================================================================
   Главная точка
   ========================================================================== */

.article-place-location__main-point {
    margin-top: 20px;
    padding: 22px;
    border: 1px solid rgba(179, 101, 54, 0.7);
    border-radius: 20px;
    background: #fffdf8;
}

.article-place-location__main-point-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 16px;
}

.article-place-location__main-point-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #a56841;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.065em;
    line-height: 1.3;
    text-transform: uppercase;
}

.article-place-location__main-point-label .raw-icon {
    font-size: 14px;
}

.article-place-location__main-point-title {
    margin: 0;
    color: #143d32;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.article-place-location__main-point-text {
    max-width: 780px;
    margin: 10px 0 0;
    color: #5f655f;
    font-size: 15px;
    line-height: 1.55;
}

.article-place-location__main-point-actions,
.article-place-location__point-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-top: 13px;
}

.article-place-location__coordinates-value,
.article-place-location__point-coordinates,
.article-place-location__main-point-link,
.article-place-location__point-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #17633f;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
    text-decoration: none;
}

.article-place-location__coordinates-value,
.article-place-location__point-coordinates {
    color: #607167;
}

.article-place-location__coordinates-value:hover,
.article-place-location__point-coordinates:hover,
.article-place-location__main-point-link:hover,
.article-place-location__point-link:hover {
    color: #143d32;
}

.article-place-location__coordinates-value:focus-visible,
.article-place-location__point-coordinates:focus-visible,
.article-place-location__main-point-link:focus-visible,
.article-place-location__point-link:focus-visible {
    outline: 2px solid #b36536;
    outline-offset: 3px;
}

/* ==========================================================================
   Точки + данные перед поездкой
   ========================================================================== */

.article-place-location__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    gap: 20px;
    margin-top: 22px;
}

.article-place-location__points,
.article-place-location__practical {
    min-width: 0;
}

.article-place-location__points {
    padding: 0;
    border: 0;
    background: transparent;
}

.article-place-location__practical {
    padding: 22px;
    border: 1px solid rgba(20, 61, 50, 0.16);
    border-radius: 20px;
    background: #fffdf8;
}

.article-place-location__section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 14px;
}

.article-place-location__section-kicker {
    margin-bottom: 6px;
    font-size: 11px;
}

.article-place-location__section-title {
    margin: 0;
    color: #143d32;
    font-size: 27px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.article-place-location__points-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 32px;
    padding: 7px 11px;
    border: 1px solid rgba(20, 61, 50, 0.16);
    border-radius: 999px;
    background: #fffdf8;
    color: #657068;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

/* ==========================================================================
   Карточки точек
   ========================================================================== */

.article-place-location__points-list {
    display: grid;
    gap: 12px;
}

.article-place-location__point {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    margin: 0 !important;
    padding: 20px !important;
    border: 1px solid rgba(20, 61, 50, 0.16);
    border-radius: 20px;
    background: #fffdf8;
    list-style: none !important;
}

.article-place-location__point_main {
    border-color: rgba(179, 101, 54, 0.72);
}

.article-place-location__point::before,
.article-place-location__point::after {
    display: none !important;
    content: none !important;
}

.article-place-location__point-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 1px 0 0;
    padding: 0;
    border: 1px solid rgba(20, 61, 50, 0.2);
    border-radius: 50%;
    background: transparent;
    color: #17633f;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.article-place-location__point-marker:hover,
.article-place-location__point.is-active .article-place-location__point-marker,
.article-place-location__point_main .article-place-location__point-marker {
    border-color: #143d32;
    background: #143d32;
    color: #ffffff;
    transform: scale(1.06);
}

.article-place-location__point-marker:focus-visible {
    outline: 2px solid #b36536;
    outline-offset: 3px;
}

.article-place-location__point-content {
    min-width: 0;
}

.article-place-location__point-type {
    display: block;
    margin-bottom: 4px;
    color: #a56841;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
}

.article-place-location__point-title {
    margin: 0;
    color: #143d32;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.article-place-location__point-description {
    margin: 6px 0 0;
    color: #626a63;
    font-size: 15px;
    line-height: 1.52;
}

.article-place-location__point-note,
.article-place-location__point-warning {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 9px 0 0;
    color: #59675d;
    font-size: 14px;
    line-height: 1.48;
}

.article-place-location__point-warning {
    color: #8d4b29;
}

.article-place-location__point-note .raw-icon,
.article-place-location__point-warning .raw-icon {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 14px;
}

/* ==========================================================================
   Практическая информация
   ========================================================================== */

.article-place-location__practical-list {
    border-top: 1px solid rgba(20, 61, 50, 0.15);
}

.article-place-location__practical-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(20, 61, 50, 0.13);
}

.article-place-location__practical-icon {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 3px;
    color: #a56841;
    font-size: 15px;
    line-height: 1;
}

.article-place-location__practical-content {
    min-width: 0;
}

.article-place-location__practical-label {
    display: block;
    margin-bottom: 5px;
    color: #647168;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-transform: uppercase;
}

.article-place-location__practical-text {
    margin: 0;
    color: #4f5c54;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
}

/* ==========================================================================
   Дата проверки
   ========================================================================== */

.article-place-location__verified {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 0;
    color: #768077;
    font-size: 13px;
    line-height: 1.45;
}

.article-place-location__verified .raw-icon {
    flex: 0 0 auto;
    color: #17633f;
    font-size: 15px;
}

/* ==========================================================================
   Служебные иконки
   ========================================================================== */

.article-place-location .raw-icon {
    display: inline-block;
    flex: 0 0 auto;
    line-height: 1;
}

/* ==========================================================================
   Маркеры Яндекс.Карт
   ========================================================================== */

.article-place-location__ymap-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 42px;
    height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translate(-50%, -100%);
}

.article-place-location__ymap-marker-core {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #17633f;
    box-shadow: 0 4px 13px rgba(16, 52, 39, 0.28);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.article-place-location__ymap-marker-tail {
    display: block;
    width: 0;
    height: 0;
    margin-top: -3px;
    border-top: 12px solid #17633f;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    filter: drop-shadow(0 3px 3px rgba(16, 52, 39, 0.16));
    transition: border-top-color 0.2s ease;
}

.article-place-location__ymap-marker:hover .article-place-location__ymap-marker-core,
.article-place-location__ymap-marker.is-active .article-place-location__ymap-marker-core {
    background: #143d32;
    box-shadow: 0 6px 18px rgba(16, 52, 39, 0.36);
    transform: scale(1.13);
}

.article-place-location__ymap-marker:hover .article-place-location__ymap-marker-tail,
.article-place-location__ymap-marker.is-active .article-place-location__ymap-marker-tail {
    border-top-color: #143d32;
}

.article-place-location__ymap-marker_main .article-place-location__ymap-marker-core {
    width: 44px;
    height: 44px;
    background: #b36536;
    font-size: 17px;
}

.article-place-location__ymap-marker_main .article-place-location__ymap-marker-tail {
    border-top-color: #b36536;
}

.article-place-location__ymap-marker_main:hover .article-place-location__ymap-marker-core,
.article-place-location__ymap-marker_main.is-active .article-place-location__ymap-marker-core {
    background: #8d4b29;
}

.article-place-location__ymap-marker_main:hover .article-place-location__ymap-marker-tail,
.article-place-location__ymap-marker_main.is-active .article-place-location__ymap-marker-tail {
    border-top-color: #8d4b29;
}

.article-place-location__ymap-marker:focus-visible {
    outline: 2px solid #b36536;
    outline-offset: 4px;
}

.article-place-location__map-error small {
    display: block;
    margin-top: 7px;
    color: #7d817b;
    font-size: 12px;
}

.js-copy-coordinates.is-copied {
    color: #17633f;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 980px) {
    .article-place-location__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 767px) {
    .article-place-location {
        margin: 32px 0;
        padding: 20px;
        border-radius: 20px;
    }

    .article-place-location__header {
        margin-bottom: 20px;
    }

    .article-place-location__title {
        font-size: 30px;
    }

    .article-place-location__lead {
        margin-top: 18px;
        font-size: 15px;
    }

    .article-place-location__map {
        height: 330px;
        border-radius: 17px;
    }

    .article-place-location__main-point {
        margin-top: 14px;
        padding: 17px;
        border-radius: 17px;
    }

    .article-place-location__main-point-title {
        font-size: 20px;
    }

    .article-place-location__grid {
        gap: 18px;
        margin-top: 18px;
    }

    .article-place-location__section-title {
        font-size: 24px;
    }

    .article-place-location__point {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 11px;
        padding: 17px !important;
        border-radius: 17px;
    }

    .article-place-location__point-marker {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .article-place-location__point-title {
        font-size: 16px;
    }

    .article-place-location__point-description,
    .article-place-location__point-note,
    .article-place-location__point-warning {
        font-size: 13px;
    }

    .article-place-location__practical {
        padding: 18px;
        border-radius: 17px;
    }

    .article-place-location__verified {
        margin-top: 18px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .article-place-location__point-marker,
    .article-place-location__ymap-marker-core,
    .article-place-location__ymap-marker-tail {
        transition: none;
    }
}
