/* ============================================================
   Правки поверх style.css (подключается последним).
   ============================================================ */

/* ─── Картинки новостей: превью в карточке списка ─── */

.news__img {
    margin-bottom: 16px;
    overflow: hidden;
    background: #f2f3f5;
}

.news__img img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .4s ease;
}

.news__item:hover .news__img img {
    transform: scale(1.03);
}

/* ─── Картинки внутри попапа новости ─── */

.news-popup__img {
    margin: 20px 0;
}

.news-popup__img img {
    display: block;
    width: 100%;
    height: auto;
}

/* Пустые блоки прячем до того, как JS подставит картинку */
.news-popup__img_preview:not(.is-visible) img[src=""],
.news-popup__img_detail:not(.is-visible) img[src=""] {
    display: none;
}

/* ─── Блок «Расположение» ───
   Строка про Тульскую/Серпуховскую/Добрынинскую упиралась в карту справа. */

.location__description {
    padding-right: 40px;
    box-sizing: border-box;
}

@media only screen and (max-width: 767px) {
    .location__description {
        padding-right: 20px;
    }
}

/* ─── Списки внутри попапов ───
   В template.css:7 стоит глобальный сброс `ul {list-style: none}`,
   из-за него маркеры и нумерация в контенте из админки пропадали. */

.news-popup__text ul,
.text-popup ul,
.mfp-content .popup__text ul {
    list-style: disc outside;
    margin: 12px 0;
    padding-left: 22px;
}

.news-popup__text ol,
.text-popup ol,
.mfp-content .popup__text ol {
    list-style: decimal outside;
    margin: 12px 0;
    padding-left: 22px;
}

.news-popup__text li,
.text-popup li,
.mfp-content .popup__text li {
    display: list-item;
    margin-bottom: 8px;
    line-height: 1.45;
}

.news-popup__text ul ul,
.news-popup__text ol ol,
.text-popup ul ul,
.text-popup ol ol {
    margin: 6px 0;
}

.news-popup__text ul ul {
    list-style-type: circle;
}

@media only screen and (max-width: 767px) {
    .news__img img {
        height: 180px;
    }

    .news-popup__img {
        margin: 14px 0;
    }
}
