/* =========================================================
   LISTY / ARCHIWA / WYSZUKIWARKA – ZWIEDZAJWPOLSCE.PL
   Spójne wizualnie z category-objects.css
   ========================================================= */

/* HERO */
.zwp-listing-hero {
    position: relative;
    isolation: isolate;
    min-height: 600px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    padding: 130px 0 76px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--zwp-listing-accent) 48%, transparent), transparent 30%),
        linear-gradient(135deg, #1f4d41 0%, #245347 52%, #132a25 90%);

}

.zwp-listing-hero__image,
.zwp-listing-hero__overlay,
.zwp-listing-hero__pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.zwp-listing-hero__image {
    z-index: -4;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transform: scale(1.015);
}

.zwp-listing-hero__overlay {
    z-index: -3;
    background:
        linear-gradient(90deg, rgba(13, 37, 31, .94) 0%, rgba(18, 49, 41, .84) 48%, rgba(11, 31, 26, .55) 100%),
        linear-gradient(0deg, rgba(8, 24, 20, .62), transparent 60%);
}

.zwp-listing-hero:not(.zwp-listing-hero--with-image) .zwp-listing-hero__overlay {
    background: linear-gradient(135deg, rgba(13, 43, 35, .45), rgba(7, 27, 22, .7));
}

/* HERO – jaśniejsze tło */
.zwp-listing-hero__overlay {
    z-index: -3;
    background:
        linear-gradient(
            90deg,
            rgba(13, 37, 31, .62) 0%,
            rgba(18, 49, 41, .45) 48%,
            rgba(11, 31, 26, .22) 100%
        ),
        linear-gradient(
            0deg,
            rgba(8, 24, 20, .32),
            transparent 60%
        );
}

/* Delikatniejsza siatka na hero */
.zwp-listing-hero__pattern {
    z-index: -2;
    opacity: .10;
    background-image:
        linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to right, transparent 15%, #000 70%);
}

.zwp-listing-hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.zwp-listing-hero__breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    font-weight: 700;
}

.zwp-listing-hero__breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.zwp-listing-hero__breadcrumbs a:hover { text-decoration: underline; }
.zwp-listing-hero__breadcrumbs i { font-size: 9px; }

.zwp-listing-hero__content {
    display: grid;
    grid-template-columns: auto minmax(0, 790px);
    align-items: start;
    gap: 28px;
}

.zwp-listing-hero__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 26px;
    color: #fff;
    background: color-mix(in srgb, var(--zwp-listing-accent) 82%, rgba(255,255,255,.18));
    box-shadow: 0 20px 48px rgba(0,0,0,.24);
    backdrop-filter: blur(12px);
}

.zwp-listing-hero__icon i { font-size: 38px; }

.zwp-listing-hero__kicker {
    display: block;
    margin-bottom: 10px;
    color: color-mix(in srgb, var(--zwp-listing-accent) 42%, #fff);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.zwp-listing-hero h1 {
    max-width: 920px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -.035em;
}

.zwp-listing-hero__copy > p {
    max-width: 750px;
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.72;
}

.zwp-listing-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
}

.zwp-listing-hero__primary,
.zwp-listing-hero__count {
    min-height: 52px;
    border-radius: 14px;
}

.zwp-listing-hero__primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 21px;
    color: #18342d;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0,0,0,.18);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.zwp-listing-hero__primary:hover {
    color: #18342d;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0,0,0,.24);
}

.zwp-listing-hero__count {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.24);
    color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
}

.zwp-listing-hero__count strong {
    color: #fff;
    font-size: 24px;
}

/* PAGE */
.zwp-listing-page {
    padding: 70px 0 90px;
    background: #f6f8f7;
}

.zwp-listing-page__container { position: relative; }

.zwp-listing-results-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(480px, auto);
    align-items: end;
    gap: 34px;
    margin-bottom: 36px;
}

.zwp-listing-results-header__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #4a7c59;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.zwp-listing-results-header h2 {
    margin: 0 0 10px;
    color: #1e302b;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.14;
}

.zwp-listing-results-header p {
    max-width: 760px;
    margin: 0;
    color: #687771;
    font-size: 15px;
    line-height: 1.65;
}

.zwp-listing-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.zwp-listing-summary__counter {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 14px 17px;
    border: 1px solid #e0e7e3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(27,55,47,.05);
}

.zwp-listing-summary__counter strong {
    color: #2d5a3d;
    font-size: 28px;
    line-height: 1;
}

.zwp-listing-summary__counter span {
    color: #697871;
    font-size: 13px;
    font-weight: 700;
}

/* FILTERS */
.zwp-listing-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 22px;
    padding: 14px;
    border: 1px solid #e2e8e5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(27,55,47,.06);
}

.zwp-listing-filters--search {
    grid-template-columns: minmax(190px, 1.25fr) minmax(160px, .85fr) minmax(160px, .85fr) minmax(160px, .9fr) 108px auto;
}

.zwp-listing-filters--compact {
    grid-template-columns: minmax(180px, 1fr) 120px auto;
}

.zwp-listing-filters__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.zwp-listing-filters__field > label,
.zwp-listing-filters__field > span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #697770;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.zwp-listing-filters__field input,
.zwp-listing-filters__field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dce4e0;
    border-radius: 12px;
    color: #243a33;
    background: #fbfcfb;
    font-size: 14px;
    outline: none;
}

.zwp-listing-filters__field input { padding: 0 12px; }
.zwp-listing-filters__field select { padding: 0 34px 0 12px; }

.zwp-listing-filters__field input:focus,
.zwp-listing-filters__field select:focus {
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74,124,89,.12);
}

.zwp-listing-filters__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zwp-listing-filters__submit,
.zwp-listing-filters__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.zwp-listing-filters__submit {
    border: 0;
    color: #fff;
    background: #2d5a3d;
}

.zwp-listing-filters__submit:hover { background: #20472f; }

.zwp-listing-filters__reset {
    border: 1px solid #dce4e0;
    color: #52645e;
    background: #fff;
}

.zwp-listing-filters__reset:hover {
    border-color: #bdccc5;
    color: #2d5a3d;
}

/* ACTIVE FILTERS */
.zwp-listing-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px;
}

.zwp-listing-active-filters__label {
    margin-right: 3px;
    color: #77857f;
    font-size: 12px;
    font-weight: 800;
}

.zwp-listing-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #dbe5e0;
    border-radius: 999px;
    color: #31594d;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.zwp-listing-filter-chip:hover {
    border-color: #b9cec3;
    color: #21483b;
}

.zwp-listing-results-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 22px;
    color: #75837d;
    font-size: 13px;
}

.zwp-listing-results-info strong { color: #2b463d; }

/* OBJECT CARDS */
.zwp-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.zwp-listing-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e1e7e4;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(30,58,49,.07);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.zwp-listing-card:hover {
    border-color: #cbd9d2;
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(30,58,49,.12);
}

.zwp-listing-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.zwp-listing-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eaf0ed;
}

.zwp-listing-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 50px;
    box-sizing: border-box;
    transition: transform .45s ease;
}

.zwp-listing-card:hover .zwp-listing-card__image { transform: scale(1.045); }

.zwp-listing-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #668074;
    background:
        radial-gradient(circle at 60% 30%, rgba(255,255,255,.7), transparent 38%),
        linear-gradient(135deg, #dfeae4, #eef3f0);
}

.zwp-listing-card__placeholder i { font-size: 54px; opacity: .65; }

.zwp-listing-card__badge,
.zwp-listing-card__location,
.zwp-listing-card__rating {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100% - 28px);
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    backdrop-filter: blur(8px);
}

.zwp-listing-card__badge {
    top: 13px;
    left: 13px;
    color: #fff;
    background: color-mix(in srgb, var(--zwp-card-accent, #4a7c59) 88%, rgba(22,35,31,.12));
    box-shadow: 0 8px 20px rgba(0,0,0,.13);
}

.zwp-listing-card__rating {
    top: 13px;
    right: 13px;
    color: #694c00;
    background: rgba(255,245,196,.95);
}

.zwp-listing-card__rating i { color: #d99b00; }

.zwp-listing-card__location {
    right: 13px;
    bottom: 13px;
    overflow: hidden;
    color: #253a34;
    background: rgba(255,255,255,.92);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zwp-listing-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.zwp-listing-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 10px;
    color: #77857f;
    font-size: 12px;
    font-weight: 700;
}

.zwp-listing-card__body h2,
.zwp-listing-card__body h3 {
    margin: 0 0 11px;
    color: #1e312b;
    font-size: 22px;
    line-height: 1.25;
}

.zwp-listing-card__excerpt {
    display: -webkit-box;
    margin: 0 0 21px;
    overflow: hidden;
    color: #697871;
    font-size: 14px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.zwp-listing-card__footer {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    color: #2d5a3d;
    font-size: 14px;
    font-weight: 800;
}

.zwp-listing-card__footer i { transition: transform .2s ease; }
.zwp-listing-card:hover .zwp-listing-card__footer i { transform: translateX(4px); }

/* ARTICLE CARDS */
.zwp-listing-card--article .zwp-listing-card__badge {
    background: #526f66;
}

/* PAGINATION */
.zwp-listing-pagination { margin-top: 48px; }

.zwp-listing-pagination .page-numbers,
.zwp-listing-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.zwp-listing-pagination .page-numbers li { margin: 0; }

.zwp-listing-pagination a,
.zwp-listing-pagination span.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid #dce5e1;
    border-radius: 12px;
    color: #2d4a40;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.zwp-listing-pagination a:hover,
.zwp-listing-pagination span.current {
    border-color: #2d5a3d;
    color: #fff;
    background: #2d5a3d;
}

/* EMPTY */
.zwp-listing-empty {
    max-width: 680px;
    margin: 30px auto 0;
    padding: 58px 32px;
    border: 1px solid #e1e8e4;
    border-radius: 24px;
    text-align: center;
    background: #fff;
    box-shadow: 0 12px 34px rgba(30,58,49,.07);
}

.zwp-listing-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 20px;
    color: #fff;
    background: #4a7c59;
}

.zwp-listing-empty__icon i { font-size: 28px; }
.zwp-listing-empty h2 { margin-bottom: 10px; color: #21332e; }
.zwp-listing-empty p { color: #687771; }

.zwp-listing-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    margin-top: 10px;
    padding: 0 18px;
    border-radius: 12px;
    color: #fff;
    background: #2d5a3d;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 1180px) {
    .zwp-listing-results-header { grid-template-columns: 1fr; align-items: start; }
    .zwp-listing-summary { justify-content: flex-start; }
    .zwp-listing-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zwp-listing-filters--search { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .zwp-listing-filters__actions { align-self: end; }
    .zwp-listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .zwp-listing-hero { min-height: 520px; padding: 130px 0 58px; }
    .zwp-listing-hero__content { grid-template-columns: 1fr; gap: 20px; }
    .zwp-listing-hero__icon { width: 72px; height: 72px; border-radius: 21px; }
    .zwp-listing-hero__icon i { font-size: 31px; }
    .zwp-listing-filters--search { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .zwp-listing-hero { min-height: 500px; padding: 130px 0 44px; }
    .zwp-listing-hero__breadcrumbs { margin-bottom: 24px; }
    .zwp-listing-hero h1 { font-size: clamp(38px, 13vw, 54px); }
    .zwp-listing-hero__actions { align-items: stretch; }
    .zwp-listing-hero__primary,
    .zwp-listing-hero__count { width: 100%; justify-content: center; }
    .zwp-listing-page { padding: 48px 0 68px; }
    .zwp-listing-filters,
    .zwp-listing-filters--search,
    .zwp-listing-filters--compact { grid-template-columns: 1fr; }
    .zwp-listing-filters__actions { flex-wrap: wrap; }
    .zwp-listing-grid { grid-template-columns: 1fr; gap: 20px; }
    .zwp-listing-card__media { aspect-ratio: 16 / 11; }
    .zwp-listing-card__body { padding: 19px; }
    .zwp-listing-card__location { max-width: calc(100% - 26px); }
}

@media (prefers-reduced-motion: reduce) {
    .zwp-listing-card,
    .zwp-listing-card__image,
    .zwp-listing-card__footer i,
    .zwp-listing-hero__primary { transition: none; }
}
