.city-page-shell {
    min-height: 100vh;
    background: #f3f3f3;
    overflow-x: hidden;
}

.city-header {
    background: #f3f3f3;
    position: relative;
    z-index: 20;
}

.city-page {
    background: #f3f3f3;
    overflow: hidden;
}

.city-page .container,
.city-header .container,
.site-footer .container {
    width: min(calc(100% - 48px), 1180px);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.city-hero {
    background: #42e0a8;
    padding: 30px 0 28px;
}

.city-title {
    margin: 0 0 22px;
    font-size: clamp(46px, 6vw, 86px);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.06em;
    color: #000;
}

.city-filter-panel {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.city-filter-btn {
    border: 1.5px solid #111;
    background: transparent;
    color: #111;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.city-filter-btn:hover,
.city-filter-btn.active {
    background: #111;
    color: #fff;
    transform: translateY(-2px);
}

.city-posts-section {
    position: relative;
    padding: 58px 0 70px;
    background: #f3f3f3;
    overflow: hidden;
}

.city-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.city-post-card {
    background: #fff;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
    transition: 0.35s ease;
    opacity: 1;
    transform: translateY(0);
}

.city-post-card.is-hidden {
    display: none;
}

.city-post-card.filtering-in {
    animation: cityCardReveal 0.45s ease forwards;
}

@keyframes cityCardReveal {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.city-post-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.12);
}

.city-post-card__image {
    display: block;
    width: 100%;
    height: 466px;
    overflow: hidden;
    background: #d9d9d9;
}

.city-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.55s ease;
}

.city-post-card:hover .city-post-card__image img {
    transform: scale(1.06);
}

.city-post-card__content {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.city-post-card__category {
    width: fit-content;
    margin-bottom: 10px;
    padding: 6px 10px;
    background: #42e0a8;
    color: #111;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.city-post-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #111;
}

.city-post-card p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    color: #222;
}

.city-post-card__link {
    margin-top: auto;
    width: fit-content;
    color: #8a2a8e;
    font-size: 14px;
    font-weight: 800;
}

.city-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.city-more-btn {
    min-width: 170px;
    border: none;
    border-radius: 4px;
    padding: 13px 22px;
    background: #8a2a8e;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.city-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(138, 42, 142, 0.22);
}

.city-decor {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.city-decor--left {
    left: -20px;
    bottom: 110px;
    width: 150px;
}

.city-decor--right {
    right: -10px;
    top: 80px;
    width: 135px;
}

.site-footer {
    background: #333;
    padding: 20px 0;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-footer__logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.site-footer__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex: 1;
}

.site-footer__nav a {
    position: relative;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.site-footer__socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-footer__socials a {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
}

@media (max-width: 1000px) {
    .city-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .city-decor {
        opacity: 0.55;
    }
}

@media (max-width: 640px) {

    .city-page .container,
    .city-header .container,
    .site-footer .container {
        width: min(calc(100% - 28px), 1180px);
    }

    .city-hero {
        padding: 24px 0;
    }

    .city-title {
        font-size: 42px;
    }

    .city-filter-panel {
        gap: 8px;
    }

    .city-filter-btn {
        padding: 9px 13px;
        font-size: 13px;
    }

    .city-posts-section {
        padding: 38px 0 48px;
    }

    .city-posts-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .city-post-card__image {
        height: 190px;
    }

    .site-footer__inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-footer__logo,
    .site-footer__nav,
    .site-footer__socials {
        width: 100%;
        justify-content: center;
    }

    .site-footer__logo {
        display: flex;
    }

    .site-footer__nav {
        flex-wrap: wrap;
        gap: 14px 18px;
    }
}

/* =========================================
   CITY PAGINATION
========================================= */

.city-pagination-wrap {
    margin-top: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.city-pagination-wrap .page-numbers {
    margin: 0;
    padding: 0;
    list-style: none;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.city-pagination-wrap .page-numbers li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.city-pagination-wrap .page-numbers a,
.city-pagination-wrap .page-numbers span {
    min-width: 42px;
    height: 42px;
    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1.6px solid #111;
    border-radius: 999px;

    background: transparent;
    color: #111;

    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;

    transition: 0.3s ease;
}

.city-pagination-wrap .page-numbers a:hover {
    background: #42e0a8;
    border-color: #42e0a8;
    color: #111;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(66, 224, 168, 0.28);
}

.city-pagination-wrap .page-numbers .current {
    background: #8a2a8e;
    border-color: #8a2a8e;
    color: #fff;
    box-shadow: 0 12px 24px rgba(138, 42, 142, 0.22);
}

.city-pagination-wrap .page-numbers .dots {
    min-width: auto;
    width: auto;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0 4px;
    color: #111;
}

.city-pagination-wrap .page-numbers .prev,
.city-pagination-wrap .page-numbers .next {
    min-width: 88px;
    padding: 0 18px;
    border-radius: 999px;
    background: #42e0a8;
    border-color: #42e0a8;
    color: #111;
}

.city-pagination-wrap .page-numbers .prev:hover,
.city-pagination-wrap .page-numbers .next:hover {
    background: #8a2a8e;
    border-color: #8a2a8e;
    color: #fff;
}

/* Если WordPress вдруг выведет пагинацию без ul */
.city-more-wrap > .page-numbers {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Mobile */
@media (max-width: 640px) {
    .city-pagination-wrap {
        margin-top: 32px;
    }

    .city-pagination-wrap .page-numbers {
        flex-wrap: wrap;
        gap: 8px;
    }

    .city-pagination-wrap .page-numbers a,
    .city-pagination-wrap .page-numbers span {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
        padding: 0 11px;
    }

    .city-pagination-wrap .page-numbers .prev,
    .city-pagination-wrap .page-numbers .next {
        min-width: 76px;
    }
}