/* Style z custom.css używane tylko w szablonach z grupy "home" (ładowane warunkowo). */


/* Responsywność */

/* Pierwsza karta wyróżniona */

.zwp-home-category-card--featured {
    grid-column: span 2;
}

.zwp-home-category-card--featured
.zwp-home-category-card__name {
    font-size: 1.22rem;
}

/* =========================================================
   STRONA GŁÓWNA — GŁÓWNE ŚCIEŻKI UŻYTKOWNIKA
   Plik: template-parts/home-main-actions.php
========================================================= */

.zwp-home-actions {
    position: relative;
    padding: 74px 0 84px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(74, 124, 89, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 92% 88%,
            rgba(201, 162, 39, 0.12),
            transparent 28%
        ),
        linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
}

.zwp-home-actions::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -100px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(45, 90, 61, 0.09);
    border-radius: 50%;
    pointer-events: none;
}

.zwp-home-actions::after {
    content: "";
    position: absolute;
    bottom: -170px;
    left: -120px;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(201, 162, 39, 0.10);
    border-radius: 50%;
    pointer-events: none;
}

.zwp-home-actions__container {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.zwp-home-actions__header {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.zwp-home-actions__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 14px;
    margin-bottom: 14px;
    color: var(--agro-green-dark, #2d5a3d);
    background: rgba(74, 124, 89, 0.10);
    border: 1px solid rgba(74, 124, 89, 0.14);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zwp-home-actions__title {
    margin: 0 0 14px;
    color: var(--gray-900, #0f172a);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.zwp-home-actions__intro {
    max-width: 650px;
    margin: 0 auto;
    color: var(--gray-600, #475569);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.75;
}

.zwp-home-actions__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.zwp-home-action-card:focus-visible {
    outline: 3px solid var(--agro-gold, #c9a227);
    outline-offset: 4px;
}

.zwp-home-action-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 36px;
}

.zwp-home-action-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    color: var(--agro-green-dark, #2d5a3d);
    background: linear-gradient(
        135deg,
        rgba(74, 124, 89, 0.14) 0%,
        rgba(135, 169, 107, 0.08) 100%
    );
    border: 1px solid rgba(74, 124, 89, 0.14);
    border-radius: 18px;
    font-size: 1.45rem;
}

.zwp-home-action-card__eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--agro-green, #4a7c59);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.zwp-home-action-card__title {
    display: block;
    margin-bottom: 12px;
    color: inherit;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.zwp-home-action-card__description {
    display: block;
    margin-bottom: 26px;
    color: var(--gray-600, #475569);
    font-size: 0.97rem;
    line-height: 1.7;
}

.zwp-home-action-card__button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    color: var(--agro-green-dark, #2d5a3d);
    font-size: 0.92rem;
    font-weight: 800;
}

/* Karta wyróżniona — planer */

.zwp-home-action-card--featured {
    color: #ffffff;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(232, 213, 163, 0.20),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            var(--agro-green-dark, #2d5a3d) 0%,
            #1e4930 100%
        );
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 44px rgba(45, 90, 61, 0.22);
}

.zwp-home-action-card--featured::before {
    background: rgba(255, 255, 255, 0.06);
}

.zwp-home-action-card--featured:hover {
    color: #ffffff;
    border-color: rgba(232, 213, 163, 0.38);
    box-shadow: 0 28px 56px rgba(45, 90, 61, 0.30);
}

.zwp-home-action-card--featured .zwp-home-action-card__icon {
    color: var(--agro-earth, #5c4033);
    background: linear-gradient(
        135deg,
        var(--agro-wheat, #e8d5a3) 0%,
        var(--agro-gold, #c9a227) 100%
    );
    border-color: rgba(255, 255, 255, 0.15);
}

.zwp-home-action-card--featured .zwp-home-action-card__arrow {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.15);
}

.zwp-home-action-card--featured:hover .zwp-home-action-card__arrow {
    color: var(--agro-earth, #5c4033);
    background: var(--agro-wheat, #e8d5a3);
}

.zwp-home-action-card--featured .zwp-home-action-card__eyebrow {
    color: var(--agro-wheat, #e8d5a3);
}

.zwp-home-action-card--featured .zwp-home-action-card__description {
    color: rgba(255, 255, 255, 0.82);
}

.zwp-home-action-card--featured .zwp-home-action-card__button {
    color: var(--agro-wheat, #e8d5a3);
}

/* Responsywność */

@media (max-width: 980px) {
    .zwp-home-actions__grid {
        grid-template-columns: 1fr;
        max-width: 760px;
        margin: 0 auto;
    }

    .zwp-home-action-card {
        min-height: 0;
    }

    .zwp-home-action-card__top {
        margin-bottom: 28px;
    }
}

@media (max-width: 640px) {
    .zwp-home-actions {
        padding: 56px 0 62px;
    }

    .zwp-home-actions__container {
        width: min(100% - 28px, 1240px);
    }

    .zwp-home-actions__header {
        margin-bottom: 28px;
    }

    .zwp-home-actions__grid {
        gap: 16px;
    }

    .zwp-home-action-card {
        padding: 22px;
        border-radius: 20px;
    }

    .zwp-home-action-card__top {
        margin-bottom: 24px;
    }

    .zwp-home-action-card__icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 16px;
        font-size: 1.25rem;
    }

    .zwp-home-action-card__arrow {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .zwp-home-action-card__description {
        margin-bottom: 22px;
    }
}

/* =========================================================
   WYSZUKIWARKA NA STRONIE GŁÓWNEJ
   Plik: template-parts/search-section.php
========================================================= */

.zwp-home-search {
    position: relative;
    z-index: 2;
    padding: 68px 0 72px;
    overflow: visible;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 12% 0%,
            rgba(232, 213, 163, 0.16),
            transparent 30%
        ),
        radial-gradient(
            circle at 92% 100%,
            rgba(135, 169, 107, 0.24),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            var(--agro-green-dark, #2d5a3d) 0%,
            #376849 48%,
            var(--agro-green, #4a7c59) 100%
        );
}

.zwp-home-search::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );
    background-size: 36px 36px;
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.75),
        transparent 88%
    );
}

.zwp-home-search__container {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.zwp-home-search__header {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.zwp-home-search__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    padding: 7px 14px;
    margin-bottom: 14px;
    color: var(--agro-wheat, #e8d5a3);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.zwp-home-search__title {
    margin: 0 0 13px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.zwp-home-search__description {
    max-width: 650px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.80);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.75;
}

.zwp-home-search__form {
    padding: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 26px;
    box-shadow:
        0 26px 65px rgba(20, 42, 29, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.zwp-home-search__fields {
    display: grid;
    grid-template-columns:
        minmax(190px, 1fr)
        minmax(210px, 1.15fr)
        minmax(220px, 1.15fr)
        minmax(170px, 0.78fr);
    gap: 14px;
    align-items: end;
}

.zwp-home-search__field {
    position: relative;
    min-width: 0;
}

.zwp-home-search__field label {
    display: block;
    margin: 0 0 8px 3px;
    color: var(--gray-700, #334155);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.zwp-home-search__control:focus-within {
    background: #ffffff;
    border-color: var(--agro-green, #4a7c59);
    box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.13);
}

.zwp-home-search__control > i:first-child {
    position: absolute;
    left: 17px;
    z-index: 1;
    color: var(--agro-green, #4a7c59);
    font-size: 1rem;
    pointer-events: none;
}

.zwp-home-search__control select,
.zwp-home-search__control input {
    width: 100%;
    min-width: 0;
    height: 58px;
    margin: 0;
    padding: 0 44px 0 46px;
    color: var(--gray-900, #0f172a);
    background: transparent;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 650;
    line-height: 1.2;
}

.zwp-home-search__control input {
    padding-right: 17px;
}

.zwp-home-search__control input::placeholder {
    color: var(--gray-400, #94a3b8);
    opacity: 1;
}

.zwp-home-search__control select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.zwp-home-search__select-arrow {
    position: absolute;
    right: 17px;
    color: var(--gray-400, #94a3b8);
    font-size: 0.72rem;
    pointer-events: none;
}

.zwp-home-search__submit-wrap {
    min-width: 0;
}

.zwp-home-search__submit:focus-visible {
    outline: 3px solid var(--agro-green-dark, #2d5a3d);
    outline-offset: 3px;
}

/* Podpowiedzi miast */

.zwp-home-search__suggestions {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    max-height: 290px;
    padding: 7px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 15px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.zwp-home-search__suggestions[hidden] {
    display: none;
}

.zwp-home-search__footer a:hover {
    color: var(--agro-green-dark, #2d5a3d);
}

/* Responsywność */

@media (max-width: 1080px) {
    .zwp-home-search__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zwp-home-search__submit-wrap {
        align-self: end;
    }
}

@media (max-width: 780px) {
    .zwp-home-search {
        padding: 56px 0 60px;
    }

    .zwp-home-search__container {
        width: min(100% - 28px, 1240px);
    }

    .zwp-home-search__header {
        margin-bottom: 26px;
    }

    .zwp-home-search__form {
        padding: 18px;
        border-radius: 22px;
    }

    .zwp-home-search__fields,
    .zwp-home-search__shortcuts {
        grid-template-columns: 1fr;
    }

    .zwp-home-search__shortcuts {
        gap: 18px;
    }

    .zwp-home-search__submit {
        min-height: 56px;
    }
}

@media (max-width: 480px) {
    .zwp-home-search {
        padding: 48px 0 52px;
    }

    .zwp-home-search__container {
        width: min(100% - 20px, 1240px);
    }

    .zwp-home-search__form {
        padding: 14px;
        border-radius: 19px;
    }

    .zwp-home-search__fields {
        gap: 12px;
    }

    .zwp-home-search__control,
    .zwp-home-search__control select,
    .zwp-home-search__control input {
        min-height: 54px;
        height: 54px;
    }

    .zwp-home-search__submit {
        min-height: 54px;
    }

    .zwp-home-search__chip {
        font-size: 0.78rem;
    }
}

/* =========================================================
   POMYSŁ NA WEEKEND
   Plik: template-parts/section-daily-trip.php
========================================================= */

.zwp-weekend-section {
    position: relative;
    padding: 82px 0 88px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(74, 124, 89, 0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(201, 162, 39, 0.10),
            transparent 30%
        ),
        linear-gradient(180deg, #f9fbf9 0%, #f4f7f5 100%);
}

.zwp-weekend-section__container {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.zwp-weekend-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.zwp-weekend-section__headings {
    max-width: 760px;
}

.zwp-weekend-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 7px 14px;
    margin-bottom: 14px;
    color: var(--agro-green-dark, #2d5a3d);
    background: rgba(74, 124, 89, 0.09);
    border: 1px solid rgba(74, 124, 89, 0.14);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zwp-weekend-section__title {
    margin: 0 0 12px;
    color: var(--gray-900, #0f172a);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.zwp-weekend-section__intro {
    max-width: 650px;
    margin: 0;
    color: var(--gray-600, #475569);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.75;
}

.zwp-weekend-section__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(360px, 0.88fr);
    gap: 24px;
    align-items: stretch;
}

/* Główna karta */

.zwp-weekend-featured {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 26px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
}

.zwp-weekend-featured__link {
    display: grid;
    grid-template-rows: minmax(340px, 1.1fr) auto;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.zwp-weekend-featured__media {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    background: #dfe7e1;
}

.zwp-weekend-featured__image,
.zwp-weekend-featured__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
}

.zwp-weekend-featured__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(45, 90, 61, 0.38);
    background:
        linear-gradient(
            135deg,
            rgba(74, 124, 89, 0.16),
            rgba(232, 213, 163, 0.18)
        );
    font-size: 4rem;
}

.zwp-weekend-featured__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(10, 20, 14, 0.06) 0%,
            rgba(10, 20, 14, 0.10) 50%,
            rgba(10, 20, 14, 0.46) 100%
        );
    pointer-events: none;
}

.zwp-weekend-featured__badges {
    position: absolute;
    right: 22px;
    bottom: 20px;
    left: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zwp-weekend-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 31px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
}

.zwp-weekend-chip--accent {
    color: var(--agro-earth, #5c4033);
    background: linear-gradient(
        135deg,
        var(--agro-wheat, #e8d5a3),
        var(--agro-gold, #c9a227)
    );
    border-color: transparent;
}

.zwp-weekend-featured__body {
    display: flex;
    flex-direction: column;
    padding: 28px 30px 30px;
}

.zwp-weekend-featured__title {
    margin: 0 0 12px;
    color: var(--gray-900, #0f172a);
    font-size: clamp(1.65rem, 2.6vw, 2.35rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    transition: color 0.2s ease;
}

.zwp-weekend-featured__link:hover .zwp-weekend-featured__title {
    color: var(--agro-green-dark, #2d5a3d);
}

.zwp-weekend-featured__excerpt {
    max-width: 820px;
    margin: 0 0 20px;
    color: var(--gray-600, #475569);
    font-size: 0.98rem;
    line-height: 1.75;
}

/* Panel po prawej */

.zwp-weekend-related {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 26px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.zwp-weekend-related__header {
    margin-bottom: 17px;
}

.zwp-weekend-related__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--agro-green, #4a7c59);
    font-size: 0.74rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zwp-weekend-related__title {
    margin: 0 0 7px;
    color: var(--gray-900, #0f172a);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.zwp-weekend-related__description {
    margin: 0;
    color: var(--gray-500, #64748b);
    font-size: 0.88rem;
    line-height: 1.65;
}

.zwp-weekend-related__list {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
    flex: 1;
}

.zwp-weekend-card__link {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.zwp-weekend-card__media {
    min-height: 142px;
    overflow: hidden;
    background: #edf2ee;
}

.zwp-weekend-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 15px 16px;
}

.zwp-weekend-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.zwp-weekend-card__badges span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--agro-green-dark, #2d5a3d);
    font-size: 0.67rem;
    font-weight: 800;
    line-height: 1.25;
}

.zwp-weekend-card__badges span + span::before {
    content: "•";
    margin-right: 2px;
    color: var(--gray-300, #cbd5e1);
}

.zwp-weekend-card__title {
    margin: 0 0 7px;
    color: var(--gray-900, #0f172a);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.32;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.zwp-weekend-card__excerpt {
    margin: 0 0 9px;
    color: var(--gray-500, #64748b);
    font-size: 0.78rem;
    line-height: 1.5;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Fokus */

.zwp-weekend-featured__link:focus-visible,
.zwp-weekend-card__link:focus-visible,
.zwp-weekend-section__all-link:focus-visible {
    outline: 3px solid var(--agro-gold, #c9a227);
    outline-offset: 4px;
}

/* Responsywność */

@media (max-width: 1080px) {
    .zwp-weekend-section__grid {
        grid-template-columns: 1fr;
    }

    .zwp-weekend-related__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .zwp-weekend-card__link {
        grid-template-columns: 1fr;
        grid-template-rows: 170px auto;
    }

    .zwp-weekend-card__media,
    .zwp-weekend-card__image,
    .zwp-weekend-card__placeholder {
        min-height: 170px;
    }
}

@media (max-width: 780px) {
    .zwp-weekend-section {
        padding: 62px 0 68px;
    }

    .zwp-weekend-section__container {
        width: min(100% - 28px, 1240px);
    }

    .zwp-weekend-section__header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 26px;
    }

    .zwp-weekend-featured__link {
        grid-template-rows: 300px auto;
    }

    .zwp-weekend-featured__media,
    .zwp-weekend-featured__image,
    .zwp-weekend-featured__placeholder {
        min-height: 300px;
    }

    .zwp-weekend-featured__body {
        padding: 23px;
    }

    .zwp-weekend-related__list {
        grid-template-columns: 1fr;
    }

    .zwp-weekend-card__link {
        grid-template-columns: 120px minmax(0, 1fr);
        grid-template-rows: none;
    }

    .zwp-weekend-card__media,
    .zwp-weekend-card__image,
    .zwp-weekend-card__placeholder {
        min-height: 142px;
    }
}

@media (max-width: 520px) {
    .zwp-weekend-section {
        padding: 52px 0 58px;
    }

    .zwp-weekend-section__container {
        width: min(100% - 20px, 1240px);
    }

    .zwp-weekend-featured,
    .zwp-weekend-related {
        border-radius: 21px;
    }

    .zwp-weekend-featured__link {
        grid-template-rows: 240px auto;
    }

    .zwp-weekend-featured__media,
    .zwp-weekend-featured__image,
    .zwp-weekend-featured__placeholder {
        min-height: 240px;
    }

    .zwp-weekend-featured__badges {
        right: 14px;
        bottom: 14px;
        left: 14px;
    }

    .zwp-weekend-featured__body {
        padding: 20px;
    }

    .zwp-weekend-featured__button {
        width: 100%;
    }

    .zwp-weekend-related {
        padding: 14px;
    }

    .zwp-weekend-card__link {
        grid-template-columns: 1fr;
        grid-template-rows: 180px auto;
    }

    .zwp-weekend-card__media,
    .zwp-weekend-card__image,
    .zwp-weekend-card__placeholder {
        min-height: 180px;
    }
}

/* =========================================================
   OBIEKTY W POBLIŻU — STRONA GŁÓWNA
   Plik: template-parts/nearby-objects-section.php
========================================================= */

.zwp-home-nearby {
    position: relative;
    padding: 82px 0 88px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 8% 14%,
            rgba(201, 162, 39, 0.10),
            transparent 27%
        ),
        radial-gradient(
            circle at 92% 88%,
            rgba(74, 124, 89, 0.10),
            transparent 30%
        ),
        #ffffff;
}

.zwp-home-nearby__container {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.zwp-home-nearby__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 34px;
}

.zwp-home-nearby__headings {
    max-width: 760px;
}

.zwp-home-nearby__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 7px 14px;
    margin-bottom: 14px;
    color: var(--agro-green-dark, #2d5a3d);
    background: rgba(74, 124, 89, 0.09);
    border: 1px solid rgba(74, 124, 89, 0.14);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zwp-home-nearby__title {
    margin: 0 0 12px;
    color: var(--gray-900, #0f172a);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.zwp-home-nearby__description {
    max-width: 650px;
    margin: 0;
    color: var(--gray-600, #475569);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.75;
}

.zwp-home-nearby__privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 310px;
    padding: 14px 16px;
    color: var(--gray-600, #475569);
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 15px;
    font-size: 0.78rem;
    line-height: 1.55;
}

.zwp-home-nearby__privacy i {
    margin-top: 3px;
    color: var(--agro-green, #4a7c59);
}

/* Panel początkowy */

.zwp-home-nearby__start {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 28px 30px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.96),
            rgba(248, 250, 248, 0.96)
        );
    border: 1px solid rgba(74, 124, 89, 0.16);
    border-radius: 24px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.zwp-home-nearby__start[hidden] {
    display: none;
}

.zwp-home-nearby__start-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    color: var(--agro-earth, #5c4033);
    background: linear-gradient(
        135deg,
        var(--agro-wheat, #e8d5a3),
        var(--agro-gold, #c9a227)
    );
    border-radius: 21px;
    box-shadow: 0 10px 24px rgba(201, 162, 39, 0.22);
    font-size: 1.7rem;
}

.zwp-home-nearby__start-content h3 {
    margin: 0 0 6px;
    color: var(--gray-900, #0f172a);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
}

.zwp-home-nearby__start-content p {
    max-width: 670px;
    margin: 0;
    color: var(--gray-600, #475569);
    font-size: 0.91rem;
    line-height: 1.7;
}

/* Status i loader */

.zwp-home-nearby__status {
    margin: 20px 0 0;
    padding: 14px 17px;
    color: var(--gray-700, #334155);
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 13px;
    font-size: 0.88rem;
    line-height: 1.6;
    text-align: center;
}

.zwp-home-nearby__status[hidden] {
    display: none;
}

.zwp-home-nearby__loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 120px;
    margin-top: 18px;
    padding: 24px;
    color: var(--gray-600, #475569);
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 18px;
}

.zwp-home-nearby__loader[hidden] {
    display: none;
}

.zwp-home-nearby__loader strong,
.zwp-home-nearby__loader span {
    display: block;
}

.zwp-home-nearby__loader strong {
    margin-bottom: 3px;
    color: var(--gray-900, #0f172a);
    font-size: 0.95rem;
}

.zwp-home-nearby__loader span:not(.zwp-home-nearby__spinner) {
    font-size: 0.8rem;
}

.zwp-home-nearby__spinner {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 4px solid rgba(74, 124, 89, 0.15);
    border-top-color: var(--agro-green, #4a7c59);
    border-radius: 50%;
    animation: zwpNearbySpin 0.8s linear infinite;
}

/* Wyniki i toolbar */

.zwp-home-nearby__results[hidden] {
    display: none;
}

.zwp-home-nearby__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 24px;
    padding: 16px 18px;
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 18px;
}

.zwp-home-nearby__result-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zwp-home-nearby__result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: #ffffff;
    background: var(--agro-green, #4a7c59);
    border-radius: 13px;
}

.zwp-home-nearby__result-summary strong,
.zwp-home-nearby__result-summary span {
    display: block;
}

.zwp-home-nearby__result-summary strong {
    margin-bottom: 2px;
    color: var(--gray-900, #0f172a);
    font-size: 0.93rem;
}

.zwp-home-nearby__result-summary span:last-child {
    color: var(--gray-500, #64748b);
    font-size: 0.78rem;
}

.zwp-home-nearby__view-switch {
    display: flex;
    gap: 5px;
    padding: 5px;
    background: #ffffff;
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 999px;
}

/* Siatka kart */

.zwp-home-nearby__list[hidden] {
    display: none;
}

/* Mapa */

.zwp-home-nearby__map {
    width: 100%;
    height: 560px;
    overflow: hidden;
    background: var(--gray-100, #f1f5f9);
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 22px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.09);
}

.zwp-home-nearby__map[hidden] {
    display: none;
}

/* Fokus */

.zwp-home-nearby__locate:focus-visible,
.zwp-home-nearby__view-button:focus-visible,
.zwp-home-nearby-card__button:focus-visible,
.zwp-home-nearby-card__title a:focus-visible {
    outline: 3px solid var(--agro-gold, #c9a227);
    outline-offset: 3px;
}

/* Responsywność */

@media (max-width: 1040px) {
    .zwp-home-nearby__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .zwp-home-nearby__privacy {
        max-width: 520px;
    }

    .zwp-home-nearby__start {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .zwp-home-nearby__locate {
        grid-column: 1 / -1;
        width: 100%;
    }

    .zwp-home-nearby__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .zwp-home-nearby {
        padding: 62px 0 68px;
    }

    .zwp-home-nearby__container {
        width: min(100% - 28px, 1240px);
    }

    .zwp-home-nearby__header {
        margin-bottom: 26px;
    }

    .zwp-home-nearby__start {
        grid-template-columns: 1fr;
        padding: 23px;
        text-align: center;
    }

    .zwp-home-nearby__start-icon {
        margin: 0 auto;
    }

    .zwp-home-nearby__toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .zwp-home-nearby__view-switch {
        width: 100%;
    }

    .zwp-home-nearby__view-button {
        flex: 1;
        justify-content: center;
    }

    .zwp-home-nearby__grid {
        grid-template-columns: 1fr;
    }

    .zwp-home-nearby__map {
        height: 480px;
    }
}

@media (max-width: 460px) {
    .zwp-home-nearby {
        padding: 52px 0 58px;
    }

    .zwp-home-nearby__container {
        width: min(100% - 20px, 1240px);
    }

    .zwp-home-nearby__start {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .zwp-home-nearby-card {
        border-radius: 19px;
    }

    .zwp-home-nearby-card__media {
        height: 210px;
    }

    .zwp-home-nearby-card__actions {
        grid-template-columns: 1fr;
    }

    .zwp-home-nearby__map {
        height: 420px;
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zwp-home-nearby__locate,
    .zwp-home-nearby-card,
    .zwp-home-nearby-card__image,
    .zwp-home-nearby-card__button {
        transition: none;
    }

    .zwp-home-nearby__locate:hover,
    .zwp-home-nearby-card:hover,
    .zwp-home-nearby-card__button:hover {
        transform: none;
    }

    .zwp-home-nearby__spinner {
        animation-duration: 1.5s;
    }
}

/* =========================================================
   KATEGORIE NA STRONIE GŁÓWNEJ
   Plik: template-parts/categories-section.php
========================================================= */

.zwp-home-categories {
    position: relative;
    padding: 82px 0 88px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 8% 8%,
            rgba(74, 124, 89, 0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 92% 92%,
            rgba(201, 162, 39, 0.10),
            transparent 30%
        ),
        linear-gradient(180deg, #f8faf8 0%, #f3f6f4 100%);
}

.zwp-home-categories__container {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.zwp-home-categories__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.zwp-home-categories__headings {
    max-width: 760px;
}

.zwp-home-categories__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 7px 14px;
    margin-bottom: 14px;
    color: var(--agro-green-dark, #2d5a3d);
    background: rgba(74, 124, 89, 0.09);
    border: 1px solid rgba(74, 124, 89, 0.14);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zwp-home-categories__title {
    margin: 0 0 12px;
    color: var(--gray-900, #0f172a);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.zwp-home-categories__description {
    max-width: 650px;
    margin: 0;
    color: var(--gray-600, #475569);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.75;
}

.zwp-home-categories__all-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 12px 17px;
    color: var(--agro-green-dark, #2d5a3d);
    background: #ffffff;
    border: 1px solid rgba(74, 124, 89, 0.16);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 800;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.zwp-home-categories__all-link:hover {
    color: #ffffff;
    background: var(--agro-green, #4a7c59);
    border-color: var(--agro-green, #4a7c59);
    box-shadow: 0 12px 28px rgba(45, 90, 61, 0.18);
    transform: translateY(-2px);
}

.zwp-home-categories__all-link i {
    transition: transform 0.2s ease;
}

.zwp-home-categories__all-link:hover i {
    transform: translateX(4px);
}

/* Grid */

.zwp-home-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.zwp-home-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 330px;
    overflow: hidden;
    color: inherit;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    text-decoration: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.zwp-home-category-card:hover {
    border-color: rgba(74, 124, 89, 0.30);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
    transform: translateY(-6px);
}

.zwp-home-category-card__media {
    position: relative;
    display: block;
    flex: 1;
    min-height: 245px;
    overflow: hidden;
    background: #dfe8e2;
}

.zwp-home-category-card__image,
.zwp-home-category-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 245px;
}

.zwp-home-category-card:hover .zwp-home-category-card__image {
    transform: scale(1.06);
}

.zwp-home-category-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(45, 90, 61, 0.40);
    background:
        radial-gradient(
            circle at 25% 20%,
            rgba(232, 213, 163, 0.46),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            rgba(74, 124, 89, 0.20),
            rgba(135, 169, 107, 0.12)
        );
    font-size: 3.3rem;
}

.zwp-home-category-card__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.02) 0%,
            rgba(15, 23, 42, 0.08) 56%,
            rgba(15, 23, 42, 0.42) 100%
        );
    pointer-events: none;
}

.zwp-home-category-card__arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--agro-green-dark, #2d5a3d);
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.50);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateX(6px);
    opacity: 0;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.zwp-home-category-card:hover .zwp-home-category-card__arrow {
    color: #ffffff;
    background: var(--agro-green, #4a7c59);
    opacity: 1;
    transform: translateX(0);
}

.zwp-home-category-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 86px;
    padding: 18px 19px;
}

.zwp-home-category-card__name {
    min-width: 0;
    color: var(--gray-900, #0f172a);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
}

.zwp-home-category-card__count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    color: var(--gray-500, #64748b);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.zwp-home-category-card__count i {
    color: var(--agro-green, #4a7c59);
}

/* Pierwsza karta wyróżniona */

/* Fokus */

.zwp-home-category-card:focus-visible,
.zwp-home-categories__all-link:focus-visible {
    outline: 3px solid var(--agro-gold, #c9a227);
    outline-offset: 4px;
}

/* Responsywność */

@media (max-width: 1060px) {
    .zwp-home-categories__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .zwp-home-category-card--featured {
        grid-column: span 1;
    }
}

@media (max-width: 780px) {
    .zwp-home-categories {
        padding: 62px 0 68px;
    }

    .zwp-home-categories__container {
        width: min(100% - 28px, 1240px);
    }

    .zwp-home-categories__header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 26px;
    }

    .zwp-home-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .zwp-home-category-card {
        min-height: 290px;
        border-radius: 19px;
    }

    .zwp-home-category-card__media,
    .zwp-home-category-card__image,
    .zwp-home-category-card__placeholder {
        min-height: 205px;
    }

    .zwp-home-category-card__body {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
    }
}

@media (max-width: 520px) {
    .zwp-home-categories {
        padding: 52px 0 58px;
    }

    .zwp-home-categories__container {
        width: min(100% - 20px, 1240px);
    }

    .zwp-home-categories__grid {
        grid-template-columns: 1fr;
    }

    .zwp-home-category-card {
        min-height: 0;
    }

    .zwp-home-category-card__media,
    .zwp-home-category-card__image,
    .zwp-home-category-card__placeholder {
        min-height: 225px;
    }

    .zwp-home-category-card__body {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }

    .zwp-home-category-card__arrow {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zwp-home-categories__all-link,
    .zwp-home-categories__all-link i,
    .zwp-home-category-card,
    .zwp-home-category-card__image,
    .zwp-home-category-card__arrow {
        transition: none;
    }

    .zwp-home-categories__all-link:hover,
    .zwp-home-category-card:hover {
        transform: none;
    }
}
/* =========================================================
   KATEGORIE — WSZYSTKIE KARTY W JEDNAKOWYM ROZMIARZE
   Wklej na końcu categories-section.css lub main.css.
========================================================= */

.zwp-home-category-card--featured {
    grid-column: span 1;
}

.zwp-home-category-card--featured
.zwp-home-category-card__media {
    min-height: 245px;
}

.zwp-home-category-card--featured
.zwp-home-category-card__name {
    font-size: 1.05rem;
}

@media (max-width: 780px) {
    .zwp-home-category-card--featured
    .zwp-home-category-card__media {
        min-height: 205px;
    }
}

@media (max-width: 520px) {
    .zwp-home-category-card--featured
    .zwp-home-category-card__media {
        min-height: 225px;
    }
}

/* =========================================================
   NAJNOWSZE OBIEKTY — STRONA GŁÓWNA
   Plik: template-parts/latest-objects-section.php
========================================================= */

.zwp-home-latest {
    position: relative;
    padding: 82px 0 88px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(74, 124, 89, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 0% 100%,
            rgba(201, 162, 39, 0.09),
            transparent 28%
        ),
        #ffffff;
}

.zwp-home-latest__container {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

/* ---------------------------------------------------------
   Nagłówek sekcji
--------------------------------------------------------- */

.zwp-home-latest__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.zwp-home-latest__headings {
    max-width: 760px;
}

.zwp-home-latest__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 7px 14px;
    margin-bottom: 14px;
    color: var(--agro-green-dark, #2d5a3d);
    background: rgba(74, 124, 89, 0.09);
    border: 1px solid rgba(74, 124, 89, 0.14);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zwp-home-latest__title {
    margin: 0 0 12px;
    color: var(--gray-900, #0f172a);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.zwp-home-latest__description {
    max-width: 650px;
    margin: 0;
    color: var(--gray-600, #475569);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.75;
}

.zwp-home-latest__all-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 12px 17px;
    color: var(--agro-green-dark, #2d5a3d);
    background: #ffffff;
    border: 1px solid rgba(74, 124, 89, 0.16);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 800;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.zwp-home-latest__all-link:hover {
    color: #ffffff;
    background: var(--agro-green, #4a7c59);
    border-color: var(--agro-green, #4a7c59);
    box-shadow: 0 12px 28px rgba(45, 90, 61, 0.18);
    transform: translateY(-2px);
}

.zwp-home-latest__all-link i {
    transition: transform 0.2s ease;
}

.zwp-home-latest__all-link:hover i {
    transform: translateX(4px);
}

/* ---------------------------------------------------------
   Siatka
--------------------------------------------------------- */

.zwp-home-latest__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.zwp-home-latest-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.zwp-home-latest-card:hover {
    border-color: rgba(74, 124, 89, 0.30);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
    transform: translateY(-6px);
}

.zwp-home-latest-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* ---------------------------------------------------------
   Zdjęcie
--------------------------------------------------------- */

.zwp-home-latest-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9f0eb;
}

.zwp-home-latest-card__image,
.zwp-home-latest-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.zwp-home-latest-card__image {
    object-fit: cover;
    transition: transform 0.45s ease;
}

.zwp-home-latest-card:hover .zwp-home-latest-card__image {
    transform: scale(1.06);
}

.zwp-home-latest-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(45, 90, 61, 0.38);
    background:
        radial-gradient(
            circle at 25% 20%,
            rgba(232, 213, 163, 0.48),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            rgba(74, 124, 89, 0.18),
            rgba(135, 169, 107, 0.12)
        );
    font-size: 3rem;
}

.zwp-home-latest-card__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.02) 0%,
            rgba(15, 23, 42, 0.08) 62%,
            rgba(15, 23, 42, 0.34) 100%
        );
    pointer-events: none;
}

.zwp-home-latest-card__new-badge {
    left: 14px;
    color: var(--agro-earth, #5c4033);
    background: linear-gradient(
        135deg,
        var(--agro-wheat, #e8d5a3),
        var(--agro-gold, #c9a227)
    );
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.15);
}

/* ---------------------------------------------------------
   Treść karty
--------------------------------------------------------- */

.zwp-home-latest-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 156px;
    padding: 20px;
}

.zwp-home-latest-card__category {
    display: block;
    margin-bottom: 8px;
    color: var(--agro-green, #4a7c59);
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.zwp-home-latest-card__title {
    display: -webkit-box;
    min-height: 2.8em;
    margin-bottom: 18px;
    overflow: hidden;
    color: var(--gray-900, #0f172a);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.zwp-home-latest-card:hover .zwp-home-latest-card__title {
    color: var(--agro-green-dark, #2d5a3d);
}

.zwp-home-latest-card__details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--gray-100, #f1f5f9);
}

.zwp-home-latest-card__location {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
    color: var(--gray-500, #64748b);
    font-size: 0.79rem;
    font-weight: 700;
    line-height: 1.35;
}

.zwp-home-latest-card__location i {
    flex: 0 0 auto;
    color: var(--agro-green, #4a7c59);
}

.zwp-home-latest-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    color: var(--agro-green-dark, #2d5a3d);
    background: rgba(74, 124, 89, 0.09);
    border-radius: 50%;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.zwp-home-latest-card:hover .zwp-home-latest-card__arrow {
    color: #ffffff;
    background: var(--agro-green, #4a7c59);
    transform: translateX(3px);
}

/* ---------------------------------------------------------
   Dolny link mobilny
--------------------------------------------------------- */

.zwp-home-latest__mobile-footer {
    display: none;
    justify-content: center;
    margin-top: 26px;
}

.zwp-home-latest__mobile-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 18px;
    color: #ffffff;
    background: var(--agro-green-dark, #2d5a3d);
    border-radius: 13px;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 850;
}

/* ---------------------------------------------------------
   Fokus
--------------------------------------------------------- */

.zwp-home-latest-card__link:focus-visible,
.zwp-home-latest__all-link:focus-visible,
.zwp-home-latest__mobile-footer a:focus-visible {
    outline: 3px solid var(--agro-gold, #c9a227);
    outline-offset: 4px;
}

/* ---------------------------------------------------------
   Responsywność
--------------------------------------------------------- */

@media (max-width: 1040px) {
    .zwp-home-latest__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .zwp-home-latest {
        padding: 62px 0 68px;
    }

    .zwp-home-latest__container {
        width: min(100% - 28px, 1240px);
    }

    .zwp-home-latest__header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 26px;
    }

    .zwp-home-latest__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .zwp-home-latest__all-link {
        display: none;
    }

    .zwp-home-latest__mobile-footer {
        display: flex;
    }
}

@media (max-width: 520px) {
    .zwp-home-latest {
        padding: 52px 0 58px;
    }

    .zwp-home-latest__container {
        width: min(100% - 20px, 1240px);
    }

    .zwp-home-latest__grid {
        grid-template-columns: 1fr;
    }

    .zwp-home-latest-card {
        border-radius: 19px;
    }

    .zwp-home-latest-card__media {
        aspect-ratio: 16 / 10;
    }

    .zwp-home-latest-card__body {
        min-height: 0;
    }
}

/* ---------------------------------------------------------
   Dostępność — ograniczone animacje
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .zwp-home-latest__all-link,
    .zwp-home-latest__all-link i,
    .zwp-home-latest-card,
    .zwp-home-latest-card__image,
    .zwp-home-latest-card__title,
    .zwp-home-latest-card__arrow {
        transition: none;
    }

    .zwp-home-latest__all-link:hover,
    .zwp-home-latest-card:hover {
        transform: none;
    }
}

.zwp-home-blog__headings {
    max-width: 760px;
}

.zwp-home-blog__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 7px 14px;
    margin-bottom: 14px;
    color: var(--agro-green-dark, #2d5a3d);
    background: rgba(74, 124, 89, 0.09);
    border: 1px solid rgba(74, 124, 89, 0.14);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zwp-home-blog__title {
    margin: 0 0 12px;
    color: var(--gray-900, #0f172a);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.zwp-home-blog__description {
    max-width: 650px;
    margin: 0;
    color: var(--gray-600, #475569);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.75;
}