/* Style z custom.css używane tylko w szablonach z grupy "city" (ładowane warunkowo). */

/* =========================================================
   POJEDYNCZE MIASTO
   Plik PHP: single-miasto.php
========================================================= */

.zwp-city-page {
    width: 100%;
    overflow: hidden;
    color: var(--gray-900, #0f172a);
    background: #ffffff;
    user-select: text;
}

.zwp-city-page *,
.zwp-city-page *::before,
.zwp-city-page *::after {
    box-sizing: border-box;
}

.zwp-city-page li {
    margin-left: 0;
}

.zwp-city-container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */

.zwp-city-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(570px, 72vh, 760px);
    overflow: hidden;
    color: #ffffff;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(232, 213, 163, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 82%,
            rgba(135, 169, 107, 0.24),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #173c28 0%,
            var(--agro-green-dark, #2d5a3d) 48%,
            #376849 100%
        );
}

.zwp-city-hero__background,
.zwp-city-hero__overlay {
    position: absolute;
    inset: 0;
}

.zwp-city-hero--empty .zwp-city-hero__background {
    background-image:
        radial-gradient(
            circle at 22% 25%,
            rgba(232, 213, 163, 0.17),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 75%,
            rgba(135, 169, 107, 0.22),
            transparent 35%
        );
}

.zwp-city-hero__overlay {
    z-index: -2;
    background:
        linear-gradient(
            180deg,
            rgba(5, 15, 10, 0.25) 0%,
            rgba(5, 15, 10, 0.22) 33%,
            rgba(5, 15, 10, 0.86) 100%
        ),
        linear-gradient(
            90deg,
            rgba(5, 15, 10, 0.58) 0%,
            rgba(5, 15, 10, 0.10) 72%
        );
}

.zwp-city-hero__container {
    position: relative;
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 118px 0 48px;
}

.zwp-city-breadcrumbs {
    position: absolute;
    top: 38px;
    left: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 650;
}

.zwp-city-breadcrumbs a {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
}

.zwp-city-breadcrumbs a:hover {
    color: var(--agro-wheat, #e8d5a3);
}

.zwp-city-breadcrumbs i {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.62rem;
}

.zwp-city-hero__content {
    max-width: 900px;
    padding-bottom: 42px;
}

.zwp-city-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 33px;
    padding: 8px 14px;
    margin-bottom: 17px;
    color: var(--agro-wheat, #e8d5a3);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.zwp-city-hero__title {
    max-width: 920px;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(2.5rem, 5.4vw, 5rem);
    font-weight: 850;
    line-height: 1.04;
    letter-spacing: -0.048em;
    text-wrap: balance;
    text-shadow: 0 5px 26px rgba(0, 0, 0, 0.30);
}

.zwp-city-hero__excerpt {
    max-width: 760px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.02rem, 1.7vw, 1.2rem);
    line-height: 1.72;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24);
}

.zwp-city-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.zwp-city-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 760px;
    overflow: hidden;
    background: rgba(5, 15, 10, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 20px;
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
}

.zwp-city-stat {
    position: relative;
    padding: 17px 20px;
}

.zwp-city-stat + .zwp-city-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.zwp-city-stat strong,
.zwp-city-stat span {
    display: block;
}

.zwp-city-stat strong {
    margin-bottom: 3px;
    color: var(--agro-wheat, #e8d5a3);
    font-size: 1.35rem;
    font-weight: 850;
    line-height: 1.15;
}

.zwp-city-stat span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   Wspólne nagłówki sekcji
--------------------------------------------------------- */

.zwp-city-section-heading__eyebrow,
.zwp-city-section-header__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--agro-green, #4a7c59);
    font-size: 0.75rem;
    font-weight: 850;
    line-height: 1.3;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.zwp-city-section-heading h2,
.zwp-city-section-header h2 {
    margin: 0;
    color: var(--gray-900, #0f172a);
    font-size: clamp(1.9rem, 3.7vw, 2.8rem);
    font-weight: 850;
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.zwp-city-section-heading {
    margin-bottom: 28px;
}

.zwp-city-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.zwp-city-section-header > div {
    max-width: 760px;
}

.zwp-city-section-header p {
    max-width: 650px;
    margin: 11px 0 0;
    color: var(--gray-600, #475569);
    font-size: 0.96rem;
    line-height: 1.7;
}

.zwp-city-section-header > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 11px 16px;
    color: var(--agro-green-dark, #2d5a3d);
    background: #ffffff;
    border: 1px solid rgba(74, 124, 89, 0.16);
    border-radius: 999px;
    box-shadow: 0 7px 20px rgba(15, 23, 42, 0.05);
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
}

/* ---------------------------------------------------------
   Treść i spis treści
--------------------------------------------------------- */

.zwp-city-guide {
    padding: 82px 0 88px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(74, 124, 89, 0.06),
            transparent 27%
        ),
        #ffffff;
}

.zwp-city-guide__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 55px;
    align-items: start;
}

.zwp-city-content {
    color: var(--gray-700, #334155);
    font-size: 1.02rem;
    line-height: 1.82;
}

.zwp-city-content > :first-child {
    margin-top: 0;
}

.zwp-city-content h2,
.zwp-city-content h3,
.zwp-city-content h4 {
    color: var(--gray-900, #0f172a);
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -0.022em;
    scroll-margin-top: 150px;
}

.zwp-city-content h2 {
    margin: 52px 0 20px;
    padding-top: 8px;
    font-size: clamp(1.55rem, 2.8vw, 2.15rem);
}

.zwp-city-content h3 {
    margin: 34px 0 14px;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.zwp-city-content h4 {
    margin: 27px 0 12px;
    font-size: 1.08rem;
}

.zwp-city-content p {
    margin: 0 0 20px;
}

.zwp-city-content ul,
.zwp-city-content ol {
    padding-left: 1.3em;
    margin: 0 0 24px;
}

.zwp-city-content li {
    margin: 0 0 9px 1.1em;
}

.zwp-city-content a {
    color: var(--agro-green-dark, #2d5a3d);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.zwp-city-content hr {
    height: 1px;
    margin: 42px 0;
    background: var(--gray-200, #e2e8f0);
    border: 0;
}

.zwp-city-content blockquote {
    margin: 30px 0;
    padding: 23px 25px;
    color: var(--gray-700, #334155);
    background: rgba(74, 124, 89, 0.07);
    border-left: 4px solid var(--agro-green, #4a7c59);
    border-radius: 0 14px 14px 0;
}

.zwp-city-guide__sidebar {
    position: sticky;
    top: 145px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.zwp-city-toc,
.zwp-city-side-card {
    padding: 23px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 19px;
    box-shadow: 0 12px 29px rgba(15, 23, 42, 0.06);
}

.zwp-city-toc h2,
.zwp-city-side-card h2 {
    margin: 0;
    color: var(--gray-900, #0f172a);
    font-size: 0.96rem;
    font-weight: 850;
    line-height: 1.4;
}

.zwp-city-toc h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-100, #f1f5f9);
}

.zwp-city-toc h2 i {
    color: var(--agro-green, #4a7c59);
}

.zwp-city-side-card {
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(232, 213, 163, 0.19),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            var(--agro-green-dark, #2d5a3d),
            #1e4930
        );
    border-color: rgba(255, 255, 255, 0.09);
}

.zwp-city-side-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 17px;
    color: var(--agro-earth, #5c4033);
    background: var(--agro-wheat, #e8d5a3);
    border-radius: 14px;
}

.zwp-city-side-card h2 {
    margin-bottom: 9px;
    color: #ffffff;
    font-size: 1.15rem;
}

.zwp-city-side-card p {
    margin: 0 0 17px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.78rem;
    line-height: 1.6;
}

.zwp-city-side-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--agro-wheat, #e8d5a3);
    font-size: 0.78rem;
    font-weight: 850;
    text-decoration: none;
}

.zwp-city-categories {
    padding-top: 34px;
    margin-top: 50px;
    border-top: 1px solid var(--gray-200, #e2e8f0);
}

.zwp-city-categories h2 {
    margin: 0 0 18px;
    color: var(--gray-900, #0f172a);
    font-size: 1.25rem;
    font-weight: 850;
    line-height: 1.4;
}

.zwp-city-categories__list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.zwp-city-categories__list a {
    display: inline-flex;
    align-items: center;
    min-height: 37px;
    padding: 8px 13px;
    color: var(--agro-green-dark, #2d5a3d);
    background: rgba(74, 124, 89, 0.07);
    border: 1px solid rgba(74, 124, 89, 0.12);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

/* ---------------------------------------------------------
   Mapa
--------------------------------------------------------- */

.zwp-city-map-section {
    padding: 78px 0 84px;
    background: #f5f8f5;
}

.zwp-city-map {
    position: relative;
    width: 100%;
    height: clamp(430px, 55vw, 590px);
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            rgba(74, 124, 89, 0.12),
            rgba(135, 169, 107, 0.06)
        );
    border: 1px solid rgba(74, 124, 89, 0.16);
    border-radius: 24px;
    box-shadow: 0 16px 39px rgba(15, 23, 42, 0.08);
}

/* ---------------------------------------------------------
   Obiekty
--------------------------------------------------------- */

.zwp-city-attractions {
    padding: 82px 0 88px;
    background: #ffffff;
}

.zwp-city-attractions__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.zwp-city-object-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.zwp-city-object-card__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.01),
            rgba(15, 23, 42, 0.22)
        );
    pointer-events: none;
}

.zwp-city-object-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 245px;
    padding: 20px;
}

.zwp-city-object-card__category {
    display: block;
    margin-bottom: 8px;
    color: var(--agro-green, #4a7c59);
    font-size: 0.7rem;
    font-weight: 850;
    line-height: 1.3;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.zwp-city-object-card__title {
    display: -webkit-box;
    min-height: 2.75em;
    margin-bottom: 11px;
    overflow: hidden;
    color: var(--gray-900, #0f172a);
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.zwp-city-object-card__excerpt {
    display: -webkit-box;
    margin-bottom: 18px;
    overflow: hidden;
    color: var(--gray-600, #475569);
    font-size: 0.82rem;
    line-height: 1.63;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.zwp-city-object-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 13px;
    color: var(--gray-500, #64748b);
    border-top: 1px solid var(--gray-100, #f1f5f9);
    font-size: 0.75rem;
    font-weight: 750;
}

.zwp-city-object-card__footer span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.zwp-city-object-card__footer i {
    color: var(--agro-green, #4a7c59);
}

/* ---------------------------------------------------------
   Końcowe CTA
--------------------------------------------------------- */

.zwp-city-final-cta {
    padding: 74px 0 82px;
    background: #ffffff;
}

.zwp-city-final-cta__box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 43px 48px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(232, 213, 163, 0.20),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            var(--agro-green-dark, #2d5a3d),
            #1e4930
        );
    border-radius: 25px;
    box-shadow: 0 20px 47px rgba(45, 90, 61, 0.20);
}

.zwp-city-final-cta__box > div {
    max-width: 760px;
}

.zwp-city-final-cta__box span {
    display: block;
    margin-bottom: 8px;
    color: var(--agro-wheat, #e8d5a3);
    font-size: 0.73rem;
    font-weight: 850;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.zwp-city-final-cta__box h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: clamp(1.7rem, 3.5vw, 2.55rem);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.zwp-city-final-cta__box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    line-height: 1.65;
}

.zwp-city-final-cta__box > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    min-height: 51px;
    padding: 13px 20px;
    color: var(--agro-earth, #5c4033);
    background: linear-gradient(
        135deg,
        var(--agro-wheat, #e8d5a3),
        var(--agro-gold, #c9a227)
    );
    border-radius: 14px;
    box-shadow: 0 12px 27px rgba(5, 15, 10, 0.22);
    font-size: 0.84rem;
    font-weight: 850;
    text-decoration: none;
}

/* ---------------------------------------------------------
   Fokus
--------------------------------------------------------- */

.zwp-city-page a:focus-visible,
.zwp-city-page button:focus-visible {
    outline: 3px solid var(--agro-gold, #c9a227);
    outline-offset: 4px;
}

/* ---------------------------------------------------------
   Responsywność
--------------------------------------------------------- */

@media (max-width: 1040px) {
    .zwp-city-guide__layout {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 35px;
    }

    .zwp-city-attractions__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zwp-city-more__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .zwp-city-hero {
        min-height: 620px;
    }

    .zwp-city-hero__container {
        padding-bottom: 34px;
    }

    .zwp-city-guide__layout {
        grid-template-columns: 1fr;
    }

    .zwp-city-guide__sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        order: -1;
    }

    .zwp-city-section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .zwp-city-final-cta__box {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .zwp-city-container,
    .zwp-city-hero__container {
        width: min(100% - 24px, 1240px);
    }

    .zwp-city-hero {
        min-height: 590px;
    }

    .zwp-city-hero__background {
        background-position: 60% top;
    }

    .zwp-city-hero__container {
        padding-top: 104px;
        padding-bottom: 24px;
    }

    .zwp-city-breadcrumbs {
        top: 28px;
        gap: 7px;
    }

    .zwp-city-hero__content {
        padding-bottom: 28px;
    }

    .zwp-city-hero__title {
        font-size: clamp(2.15rem, 11vw, 3.25rem);
        line-height: 1.08;
    }

    .zwp-city-hero__excerpt {
        font-size: 0.96rem;
        line-height: 1.62;
    }

    .zwp-city-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .zwp-city-button {
        width: 100%;
    }

    .zwp-city-hero__stats {
        grid-template-columns: 1fr;
    }

    .zwp-city-stat {
        padding: 12px 16px;
    }

    .zwp-city-stat + .zwp-city-stat {
        border-top: 1px solid rgba(255, 255, 255, 0.11);
        border-left: 0;
    }

    .zwp-city-hero__credit {
        display: none;
    }

    .zwp-city-guide,
    .zwp-city-attractions {
        padding: 58px 0 63px;
    }

    .zwp-city-map-section,
    .zwp-city-more {
        padding: 56px 0 62px;
    }

    .zwp-city-guide__sidebar {
        grid-template-columns: 1fr;
    }

    .zwp-city-content {
        font-size: 0.96rem;
    }

    .zwp-city-content h2 {
        margin-top: 42px;
    }

    .zwp-city-map {
        height: 430px;
        border-radius: 19px;
    }

    .zwp-city-attractions__grid,
    .zwp-city-more__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .zwp-city-object-card__body {
        min-height: 0;
    }

    .zwp-city-more-card a {
        aspect-ratio: 16 / 10;
    }

    .zwp-city-final-cta {
        padding: 54px 0 61px;
    }

    .zwp-city-final-cta__box {
        padding: 31px 22px;
        border-radius: 20px;
    }

    .zwp-city-final-cta__box > a {
        width: 100%;
    }
}