/* ============================================================
   news-page.css — стили для страниц новостей tourmometer.ru
   Дизайн совпадает с country-page.css
   ============================================================ */

/* ── СПИСОК НОВОСТЕЙ (/news/) ─────────────────────────────── */

.tm-news-page {
    padding: 18px 0 42px;
    background: 0 0;
}

/* Герой-шапка списка */
.tm-news-hero {
    position: relative;
    overflow: visible;
    border-radius: 38px;
    padding: 26px 28px 24px;
    margin-bottom: 22px;
    background:
        radial-gradient(circle at 12% 14%, rgba(255,255,255,.98) 0, rgba(255,255,255,0) 28%),
        radial-gradient(circle at 86% 12%, rgba(19,176,165,.12) 0, rgba(19,176,165,0) 28%),
        linear-gradient(135deg, #edf6ff 0, #d9ecff 40%, #eaf7ff 70%, #f8fbff 100%);
    border: 1px solid #cfe2fb;
    box-shadow: 0 24px 60px rgba(15,91,215,.12);
}

.tm-news-hero__title {
    margin: 0 0 10px;
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -.4px;
    color: #0f2f52;
    font-weight: 600;
}

.tm-news-hero__lead {
    font-size: 1rem;
    line-height: 1.7;
    color: #24496f;
    margin: 0;
}

/* Фильтр по стране */
.tm-news-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.tm-news-filter__btn {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    border: 1px solid #d8e6fb;
    box-shadow: 0 8px 18px rgba(31,72,131,.05);
    color: #22579d;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.tm-news-filter__btn:hover,
.tm-news-filter__btn.is-active {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0, rgba(245,250,255,.96) 100%);
    border-color: #c8dcfa;
    box-shadow: 0 14px 24px rgba(31,72,131,.08);
}

.tm-news-filter__btn.is-active {
    background: linear-gradient(135deg, #2f6fb5 0, #215e9f 100%);
    color: #fff;
    border-color: #2a67ab;
}

/* Сетка карточек */
.tm-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

/* Карточка новости */
.tm-news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    padding: 20px;
    background: #fff;
    border: 1px solid #d8e5fb;
    box-shadow: 0 10px 28px rgba(16,55,98,.05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    text-decoration: none;
    color: inherit;
}

.tm-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(31,72,131,.1);
    border-color: #c7daf8;
}

.tm-news-card__country {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e9f1ff 0, #f4f8ff 100%);
    border: 1px solid #d3e1fb;
    color: #2457a5;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 12px;
    width: fit-content;
}

.tm-news-card__country--link{
    text-decoration:none;
    transition:all .18s ease;
    cursor:pointer;
    position:relative;
    z-index:2;
}

.tm-news-card__country--link:hover{
    transform:translateY(-1px);
    border-color:#bcd4f8;
    background:linear-gradient(135deg,#dfeeff 0,#eef5ff 100%);
    color:#174d96;
    box-shadow:0 6px 14px rgba(47,111,181,.12);
}

.tm-news-card__title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0f2f52;
    flex: 1;
}

.tm-news-card__title a {
    color: inherit;
    text-decoration: none;
}

.tm-news-card__title a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
}

.tm-news-card__intro {
    margin: 0 0 14px;
    font-size: .9rem;
    line-height: 1.6;
    color: #5a7699;
}

.tm-news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #edf2fb;
}

.tm-news-card__date {
    font-size: .85rem;
    color: #7a93b5;
    font-weight: 500;
}

.tm-news-card__source {
    font-size: .82rem;
    color: #8fa8c8;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* Пустой список */
.tm-news-empty {
    text-align: center;
    padding: 48px 20px;
    color: #7a93b5;
    font-size: 1rem;
}

/* ── СТРАНИЦА НОВОСТИ (/news/alias) ───────────────────────── */

.tm-newsitem-page {
    padding: 0 0 16px;
}

.tm-newsitem-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

/* Хлебные крошки */
.tm-news-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    font-size: .9rem;
    color: #7a93b5;
}

.tm-news-breadcrumb a {
    color: #2f6fb5;
    text-decoration: none;
    font-weight: 500;
}

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

.tm-news-breadcrumb__sep {
    color: #b0c4db;
}

/* Шапка статьи */
.tm-newsitem-hero {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 26px 28px 24px;
    margin-bottom: 18px;
    background:
        radial-gradient(circle at 12% 14%, rgba(255,255,255,.98) 0, rgba(255,255,255,0) 28%),
        linear-gradient(135deg, #edf6ff 0, #d9ecff 40%, #eaf7ff 70%, #f8fbff 100%);
    border: 1px solid #cfe2fb;
    box-shadow: 0 16px 40px rgba(15,91,215,.08);
}

.tm-newsitem-hero__country {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e9f1ff 0, #f4f8ff 100%);
    border: 1px solid #d3e1fb;
    color: #2457a5;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 14px;
}

/* Кликабельная страна в новости */
.tm-newsitem-hero__country--link{
    text-decoration:none;
    transition:all .18s ease;
    cursor:pointer;
}

.tm-newsitem-hero__country--link:hover{
    transform:translateY(-1px);
    border-color:#bcd4f8;
    background:linear-gradient(135deg,#dfeeff 0,#eef5ff 100%) !important;
    color:#174d96;
    box-shadow:0 6px 14px rgba(47,111,181,.12);
}

.tm-newsitem-hero__title {
    margin: 0 0 14px;
    font-size: 1.9rem;
    line-height: 1.15;
    letter-spacing: -.3px;
    color: #0f2f52;
    font-weight: 700;
}

.tm-newsitem-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    font-size: .9rem;
    color: #7a93b5;
}

.tm-newsitem-hero__meta time {
    font-weight: 600;
    color: #5a7699;
}

.tm-newsitem-hero__meta a {
    color: #2f6fb5;
    text-decoration: none;
    font-weight: 500;
}

.tm-newsitem-hero__meta a:hover {
    text-decoration: underline;
}

.tm-newsitem-hero__sep {
    color: #c8d8ec;
}

.tm-newsitem-hero__intro {
    margin: 0;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.75);
    border-left: 3px solid #2f6fb5;
    font-size: 1rem;
    line-height: 1.7;
    color: #35567f;
}

/* Тело статьи */
.tm-newsitem-body {
    border-radius: 24px;
    padding: 24px;
    background: #fff;
    border: 1px solid #d8e5fb;
    box-shadow: 0 10px 28px rgba(16,55,98,.05);
    color: #35567f;
    line-height: 1.72;
    margin-bottom: 16px;
}

.tm-newsitem-body h2 {
    margin: 0 0 14px;
    color: #1f426d;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.tm-newsitem-body h2:not(:first-child) {
    margin-top: 24px;
}

.tm-newsitem-body p {
    margin: 0 0 16px;
    line-height: 1.78;
    text-align: justify;
}

.tm-newsitem-body p:last-child {
    margin-bottom: 0;
}

.tm-newsitem-body ul,
.tm-newsitem-body ol {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.tm-newsitem-body li {
    position: relative;
    padding-left: 28px;
    line-height: 1.7;
}

.tm-newsitem-body ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #18a57a;
    font-weight: 700;
}

.tm-newsitem-body ol {
    counter-reset: li;
}

.tm-newsitem-body ol li::before {
    counter-increment: li;
    content: counter(li) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: #2f6fb5;
    font-weight: 700;
}

/* Подвал статьи */
.tm-newsitem-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 20px;
    background: #f6faff;
    border: 1px solid #dbe8fb;
}

.tm-newsitem-footer__source {
    font-size: .9rem;
    color: #7a93b5;
}

.tm-newsitem-footer__source a {
    color: #2f6fb5;
    font-weight: 600;
    text-decoration: none;
}

.tm-newsitem-footer__source a:hover {
    text-decoration: underline;
}

.tm-newsitem-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    border: 1px solid #d0dff8;
    color: #2f6fb5;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.tm-newsitem-back:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(31,72,131,.08);
}

/* Правая колонка */
.tm-newsitem-sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 16px;
}

.tm-newsitem-sidebar-card {
    border-radius: 24px;
    padding: 20px;
    background: #fff;
    border: 1px solid #d8e5fb;
    box-shadow: 0 10px 28px rgba(16,55,98,.05);
}

.tm-newsitem-sidebar-card__title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #143a64;
}

.tm-newsitem-sidebar-card__lead {
    margin: 0 0 14px;
    font-size: .9rem;
    line-height: 1.6;
    color: #7a93b5;
}

.tm-newsitem-sidebar-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2f6fb5 0, #215e9f 100%);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 24px rgba(32,87,151,.2);
    transition: transform .18s ease, box-shadow .18s ease;
}

.tm-newsitem-sidebar-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(32,87,151,.25);
    color: #fff;
}

/* Список свежих новостей в сайдбаре */
.tm-newsitem-recent {
    display: grid;
    gap: 10px;
}

.tm-newsitem-recent-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid #e8f0fb;
    background: #f8fbff;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}

.tm-newsitem-recent-item:hover {
    border-color: #c8dcfa;
    background: #f0f6ff;
}

.tm-newsitem-recent-item__country {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #2457a5;
}

.tm-newsitem-recent-item__title {
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1f426d;
}

.tm-newsitem-recent-item__date {
    font-size: .8rem;
    color: #9ab0cc;
}

/* ── АДАПТИВ ──────────────────────────────────────────────── */

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

@media (max-width: 991px) {
    .tm-newsitem-layout {
        grid-template-columns: 1fr;
    }
    .tm-newsitem-sidebar {
        position: static;
    }
    .tm-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tm-news-hero {
        border-radius: 24px;
        padding: 18px;
    }
    .tm-news-hero__title {
        font-size: 1.5rem;
    }
    .tm-news-grid {
        grid-template-columns: 1fr;
    }
    .tm-newsitem-hero {
        border-radius: 24px;
        padding: 18px;
    }
    .tm-newsitem-hero__title {
        font-size: 1.4rem;
    }
    .tm-newsitem-body {
        border-radius: 20px;
        padding: 18px;
    }
    .tm-newsitem-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .tm-newsitem-back {
        justify-content: center;
    }
}

/* ── КНОПКИ ПОДЕЛИТЬСЯ ───────────────────────────────────── */

.tm-newsitem-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-radius: 20px;
    background: #f6faff;
    border: 1px solid #dbe8fb;
    margin-bottom: 16px;
    justify-content: space-between;
}

.tm-newsitem-share__label {
    font-size: .9rem;
    font-weight: 600;
    color: #5a7699;
    white-space: nowrap;
}

.tm-newsitem-share__btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tm-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .15s, opacity .15s;
    white-space: nowrap;
}

.tm-share-btn:hover {
    transform: translateY(-1px);
    opacity: .9;
}

.tm-share-btn--tg {
    background: #229ed9;
    color: #fff;
}

.tm-share-btn--vk {
    background: #0077ff;
    color: #fff;
}

.tm-share-btn--copy {
    background: #f0f4ff;
    color: #2f6fb5;
    border: 1px solid #d3e1fb;
}

.tm-share-btn--ok {
    background: #f7931e;
    color: #fff;
}

/* ── ОТСТУПЫ FAQ ПЛАГИНА НА СТРАНИЦЕ НОВОСТИ ─────────────── */
.tm-site.is-news .tmfaq-block {
    margin-bottom: 48px;
}
/* ── ПАГИНАЦИЯ ────────────────────────────────────────────── */

.tm-news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8f0fb;
}

.tm-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    border: 1px solid #d0dff8;
    color: #2f6fb5;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    cursor: pointer;
}

.tm-page-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(31,72,131,.1);
    background: #f0f6ff;
}

.tm-page-btn--active {
    background: linear-gradient(135deg, #2f6fb5 0, #215e9f 100%);
    color: #fff;
    border-color: #2a67ab;
    box-shadow: 0 6px 16px rgba(32,87,151,.2);
    cursor: default;
}

.tm-page-btn--active:hover {
    transform: none;
}

.tm-page-btn--disabled {
    color: #b0c4db;
    border-color: #e8f0fb;
    background: #f8fbff;
    cursor: default;
}

.tm-page-btn--disabled:hover {
    transform: none;
    box-shadow: none;
    background: #f8fbff;
}

.tm-page-btn--dots {
    border: none;
    background: none;
    color: #b0c4db;
    cursor: default;
    min-width: 24px;
    padding: 0;
}

.tm-page-btn--dots:hover {
    transform: none;
    box-shadow: none;
}

.tm-page-btn--nav {
    padding: 0 18px;
    font-size: .88rem;
}



/* ── НАВИГАЦИЯ ПРЕДЫДУЩАЯ/СЛЕДУЮЩАЯ ──────────────────────── */

.tm-newsitem-nav {
    margin-bottom: 16px;
}

.tm-newsitem-nav__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tm-newsitem-nav__btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #d8e5fb;
    box-shadow: 0 6px 18px rgba(16,55,98,.05);
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tm-newsitem-nav__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(31,72,131,.1);
    border-color: #c7daf8;
}

.tm-newsitem-nav__btn--next {
    justify-content: flex-end;
    text-align: right;
}

.tm-newsitem-nav__arrow {
    font-size: 1.2rem;
    color: #2f6fb5;
    flex-shrink: 0;
}

.tm-newsitem-nav__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.tm-newsitem-nav__label {
    font-size: .78rem;
    font-weight: 600;
    color: #7a93b5;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.tm-newsitem-nav__title {
    font-size: .9rem;
    font-weight: 600;
    color: #1f426d;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 767px) {
    .tm-newsitem-nav__inner {
        grid-template-columns: 1fr;
    }
    .tm-newsitem-nav__btn--next {
        justify-content: flex-start;
        text-align: left;
    }
}
/* ── КНОПКИ ПОДЕЛИТЬСЯ В СТИЛЕ COPY ─────────────────────── */

.tm-share-btn--tg2 {
    color: #229ed9;
    border-color: #b3dff5;
    background: #f0f9ff;
}
.tm-share-btn--tg2:hover {
    background: #e0f3fc;
    opacity: 1;
}

.tm-share-btn--vk2 {
    color: #0077ff;
    border-color: #b3d1ff;
    background: #f0f5ff;
}
.tm-share-btn--vk2:hover {
    background: #e0ebff;
    opacity: 1;
}

/* ── ЛАЙКИ (правый край строки поделиться) ──────────────── */

.tm-newsitem-likes {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.tm-like-btn.is-active {
    background: #2f6fb5 !important;
    color: #fff !important;
    border-color: #2f6fb5 !important;
}

.tm-like-btn--dis.is-active {
    background: #e53935 !important;
    color: #fff !important;
    border-color: #e53935 !important;
}