/* ============================= */
/* Archiwum wycieczek */
/* ============================= */

.tour-archive,
.tour-archive *,
.tour-archive *::before,
.tour-archive *::after {
    box-sizing: border-box;
}

.tour-archive {
    background: #ffffff;
    color: #333333;
    padding: 64px 0 90px;
}

.tour-archive__inner {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================= */
/* Hero kategorii */
/* ============================= */

.tour-archive__hero {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 54px;
}

.tour-archive__hero h1 {
    margin: 0 0 16px;
    color: #182014;
    font-weight: 900;
    line-height: 1.1;
}

.tour-archive__hero-description {
    color: #333333;
    line-height: 1.7;
}

.tour-archive__hero-description p:last-child {
    margin-bottom: 0;
}

/* ============================= */
/* Filtry */
/* ============================= */

.tour-archive__filters {
    margin-bottom: 32px;
    padding: 0;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e8e8e1;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Górny pasek zwijania */

.tour-archive__filters-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 32px;
    border: 0;
    background: #ffffff !important;
    color: #182014 !important;
    text-align: left;
    cursor: pointer;
}

.tour-archive__filters-toggle:hover,
.tour-archive__filters-toggle:focus {
    background: #ffffff !important;
    color: #182014 !important;
    outline: none;
}

.tour-archive__filters-toggle strong {
    display: block;
    color: #182014 !important;
    font-size: 25px;
    line-height: 1.1;
    font-weight: 900;
}

.tour-archive__filters-toggle small {
    display: block;
    margin-top: 7px;
    color: #6f756b !important;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

.tour-archive__filters-toggle-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

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

    border-radius: 999px;
    background: #f1f8ef !important;
    color: #189A02 !important;

    font-size: 26px;
    line-height: 1;
    font-weight: 900;

    transition: transform 0.2s ease, background 0.2s ease;
}

.tour-archive__filters-toggle:hover .tour-archive__filters-toggle-icon,
.tour-archive__filters-toggle:focus .tour-archive__filters-toggle-icon {
    background: #f1f8ef !important;
    color: #189A02 !important;
}

.tour-archive__filters.is-open .tour-archive__filters-toggle-icon {
    transform: rotate(180deg);
    background: #f1f8ef !important;
    color: #189A02 !important;
}

/* Ciało filtrów */

.tour-archive__filters-body {
    display: none;
    padding: 0 32px 32px;
    background: #ffffff;
}

.tour-archive__filters.is-open .tour-archive__filters-body {
    display: block;
}

.tour-archive__filters-row {
    display: grid;
    gap: 20px;
}

.tour-archive__filters-row--ranges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
}

.tour-archive__filters-row--choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    margin-bottom: 20px;
}

.tour-archive__filters-row--actions {
    display: flex;
    justify-content: flex-start;
}

.tour-archive__filter-card {
    min-width: 0;
    padding: 22px 24px;
    border-radius: 20px;
    background: #f8f8f4;
    border: 1px solid #ecece5;
}

.tour-archive__filter-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
    color: #182014;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
}

.tour-archive__filter-label strong {
    color: #189A02;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
    white-space: nowrap;
}

/* ============================= */
/* Suwak zakresowy: liczba dni */
/* ============================= */

.tour-archive-range {
    padding: 10px 2px 4px;
}

.tour-archive-range__slider {
    position: relative;
    width: 100%;
    height: 32px;
}

.tour-archive-range__track,
.tour-archive-range__progress {
    position: absolute;
    top: 50%;
    height: 7px;
    border-radius: 999px;
    transform: translateY(-50%);
}

.tour-archive-range__track {
    left: 0;
    right: 0;
    background: #dde2d8;
}

.tour-archive-range__progress {
    left: 0;
    width: 100%;
    background: #189A02;
}

/* Dwa inputy range muszą być nałożone na siebie */

.tour-archive-range__thumb {
    position: absolute;
    top: 50%;
    left: 0;

    width: 100%;
    height: 32px;
    margin: 0;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    transform: translateY(-50%);
    pointer-events: none;

    -webkit-appearance: none;
    appearance: none;
}

/* ukrycie natywnego toru Chrome/Safari */

.tour-archive-range__thumb::-webkit-slider-runnable-track {
    height: 7px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* ukrycie natywnego toru Firefox */

.tour-archive-range__thumb::-moz-range-track {
    height: 7px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.tour-archive-range__thumb::-webkit-slider-thumb {
    width: 21px;
    height: 21px;
    margin-top: -7px;

    border: 3px solid #189A02;
    border-radius: 50%;
    background: #ffffff;

    cursor: pointer;
    pointer-events: auto;

    -webkit-appearance: none;
    appearance: none;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.tour-archive-range__thumb::-moz-range-thumb {
    width: 21px;
    height: 21px;

    border: 3px solid #189A02;
    border-radius: 50%;
    background: #ffffff;

    cursor: pointer;
    pointer-events: auto;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

/* ============================= */
/* Suwak pojedynczy: cena do */
/* ============================= */

.tour-archive-single-range {
    padding: 10px 2px 4px;
}

.tour-archive-single-range__slider {
    position: relative;
    width: 100%;
    height: 32px;
}

.tour-archive-single-range__track,
.tour-archive-single-range__progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 7px;
    border-radius: 999px;
    transform: translateY(-50%);
}

.tour-archive-single-range__track {
    right: 0;
    background: #dde2d8;
}

.tour-archive-single-range__progress {
    width: 0;
    background: #189A02;
}

.tour-archive-single-range__input {
    position: absolute;
    top: 50%;
    left: 0;

    width: 100%;
    height: 32px;
    margin: 0;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    transform: translateY(-50%);

    -webkit-appearance: none;
    appearance: none;
}

.tour-archive-single-range__input::-webkit-slider-runnable-track {
    height: 7px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.tour-archive-single-range__input::-moz-range-track {
    height: 7px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.tour-archive-single-range__input::-webkit-slider-thumb {
    width: 21px;
    height: 21px;
    margin-top: -7px;

    border: 3px solid #189A02;
    border-radius: 50%;
    background: #ffffff;

    cursor: pointer;

    -webkit-appearance: none;
    appearance: none;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.tour-archive-single-range__input::-moz-range-thumb {
    width: 21px;
    height: 21px;

    border: 3px solid #189A02;
    border-radius: 50%;
    background: #ffffff;

    cursor: pointer;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

/* ============================= */
/* Pigułki wyboru */
/* ============================= */

.tour-archive-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tour-archive-choice__item {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.tour-archive-choice__item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tour-archive-choice__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dddddd;
    color: #333333;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 800;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tour-archive-choice__item input:checked + span {
    background: #189A02;
    border-color: #189A02;
    color: #ffffff;
}

.tour-archive-choice__item:hover span {
    border-color: #189A02;
}

/* ============================= */
/* Przyciski filtrów */
/* ============================= */

.tour-archive__filter-actions {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
}

.tour-archive__filter-actions button,
.tour-archive__filter-actions a {
    min-width: 150px;
}

.tour-archive__filter-actions button {
    min-height: 48px;
    padding: 11px 22px;
    border: 0;
    border-radius: 14px;
    background: #E4011F;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tour-archive__filter-actions button:hover {
    background: #c9001b;
    transform: translateY(-1px);
}

.tour-archive__filter-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 22px;
    border-radius: 14px;
    background: #f5f5f1;
    color: #333333;
    border: 1px solid #dddddd;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
}

.tour-archive__filter-actions a:hover {
    border-color: #189A02;
    color: #189A02;
}
/* ============================= */
/* Licznik */
/* ============================= */

.tour-archive__count {
    margin-bottom: 18px;
    color: #6f756b;
    font-size: 14px;
}

/* ============================= */
/* Grid produktów */
/* ============================= */

.tour-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.tour-archive-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e6e6df;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tour-archive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.10);
}

.tour-archive-card__image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eeeeee;
    text-decoration: none !important;
}

.tour-archive-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.tour-archive-card:hover .tour-archive-card__image img {
    transform: scale(1.05);
}

.tour-archive-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #eeeeee;
}

/* ============================= */
/* Cena na kafelku */
/* ============================= */

.tour-archive-card__price {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    padding: 9px 13px;
    border-radius: 999px;
    background: #E4011F;
    color: #ffffff !important;

    font-size: 14px;
    line-height: 1.1;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.tour-archive-card__price span,
.tour-archive-card__price .woocommerce-Price-amount,
.tour-archive-card__price .woocommerce-Price-currencySymbol,
.tour-archive-card__price bdi {
    color: #ffffff !important;
}

/* ============================= */
/* Treść kafelka */
/* ============================= */

.tour-archive-card__content {
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.tour-archive-card__title {
    margin: 0 0 12px;
    font-size: 23px;
    line-height: 1.15;
    font-weight: 900;
}

.tour-archive-card__title a {
    color: #182014;
    text-decoration: none !important;
}

.tour-archive-card__title a:hover {
    color: #189A02;
}

.tour-archive-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 16px;
}

.tour-archive-card__tags span,
.tour-archive-card__tags a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f8ef;
    color: #189A02;

    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none !important;
}

.tour-archive-card__tags a:hover {
    background: #189A02;
    color: #ffffff;
}

.tour-archive-card__excerpt {
    margin-bottom: 18px;
    color: #333333;
    line-height: 1.65;
    font-size: 15px;
}

.tour-archive-card__link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: auto;

    color: #E4011F;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 900;
    text-decoration: none !important;
}

.tour-archive-card__link::after {
    content: "›";
    margin-left: 6px;
    font-size: 18px;
    line-height: 1;
}

.tour-archive-card__link:hover {
    color: #c9001b;
}

/* ============================= */
/* Paginacja */
/* ============================= */

.tour-archive__pagination {
    margin-top: 42px;
}

.tour-archive__pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tour-archive__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ffffff;
    color: #182014;
    border: 1px solid #e6e6df;
    text-decoration: none;
    font-weight: 800;
}

.tour-archive__pagination .page-numbers.current,
.tour-archive__pagination .page-numbers:hover {
    background: #189A02;
    border-color: #189A02;
    color: #ffffff;
}

/* ============================= */
/* Brak wyników */
/* ============================= */

.tour-archive__empty {
    padding: 28px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e6e6df;
    text-align: center;
    font-weight: 800;
}

/* ============================= */
/* Responsive */
/* ============================= */

@media (max-width: 1300px) {
    .tour-archive__filters-row--ranges,
    .tour-archive__filters-row--choices {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .tour-archive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .tour-archive {
        padding: 48px 0 70px;
    }

    .tour-archive__inner {
        width: calc(100% - 24px);
    }

    .tour-archive__hero {
        margin-bottom: 38px;
    }

    .tour-archive__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .tour-archive-card__content {
        padding: 20px;
    }

    .tour-archive-card__title {
        font-size: 22px;
    }
}

@media (max-width: 520px) {
    .tour-archive__filters-toggle {
        padding: 20px 18px;
    }

    .tour-archive__filters-toggle strong {
        font-size: 21px;
    }

    .tour-archive__filters-toggle small {
        font-size: 13px;
    }

    .tour-archive__filters-toggle-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 24px;
    }

    .tour-archive__filters-body {
        padding: 0 18px 18px;
    }

    .tour-archive__filter-card {
        padding: 15px;
        border-radius: 16px;
    }

    .tour-archive__filter-label {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .tour-archive__filter-actions {
        flex-direction: column;
    }

    .tour-archive__filter-actions button,
    .tour-archive__filter-actions a {
        width: 100%;
        min-width: 0;
    }

    .tour-archive-card {
        border-radius: 18px;
    }

    .tour-archive-card__image {
        aspect-ratio: 4 / 3;
    }

    .tour-archive-card__price {
        top: 10px;
        right: 10px;
        padding: 8px 11px;
        font-size: 13px;
    }

    .tour-archive-card__content {
        padding: 18px;
    }
}

/* ============================= */
/* Suwak zakresowy */
/* ============================= */

.tour-archive-range {
    padding-top: 8px;
}

.tour-archive-range__slider {
    position: relative;
    height: 30px;
}

.tour-archive-range__track,
.tour-archive-range__progress {
    position: absolute;
    top: 50%;
    height: 6px;
    border-radius: 999px;
    transform: translateY(-50%);
}

.tour-archive-range__track {
    left: 0;
    right: 0;
    background: #e2e5dd;
}

.tour-archive-range__progress {
    left: 0;
    width: 100%;
    background: #189A02;
}

.tour-archive-range__thumb {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 30px;
    margin: 0;
    background: none;
    pointer-events: none;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
}

.tour-archive-range__thumb::-webkit-slider-thumb {
    width: 19px;
    height: 19px;
    border: 3px solid #189A02;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

.tour-archive-range__thumb::-moz-range-thumb {
    width: 19px;
    height: 19px;
    border: 3px solid #189A02;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

.tour-archive-range__thumb::-webkit-slider-runnable-track {
    background: transparent;
}

.tour-archive-range__thumb::-moz-range-track {
    background: transparent;
}

/* Poprawka filtra - stały border radius bez dziwnego hovera */

.tour-archive__filters {
    border-radius: 24px !important;
    overflow: hidden !important;
}

.tour-archive__filters:hover {
    border-radius: 24px !important;
}

.tour-archive__filters-toggle,
.tour-archive__filters-toggle:hover,
.tour-archive__filters-toggle:focus,
.tour-archive__filters-toggle:active {
    border-radius: 24px !important;
    box-shadow: none !important;
    outline: none !important;
    border: 0 !important;
    background: #ffffff !important;
    transform: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

/* Filtr - subtelne podświetlenie samej ramki na hover */

.tour-archive__filters {
    border: 1px solid #e8e8e1 !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.05) !important;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.tour-archive__filters:hover:not(.is-open) {
    border-color: #189A02 !important;
    box-shadow:
        0 0 0 1px rgba(24, 154, 2, 0.55) inset,
        0 14px 34px rgba(0, 0, 0, 0.05) !important;
}

.tour-archive__filters:hover:not(.is-open) .tour-archive__filters-toggle {
    background: #ffffff !important;
}

.tour-archive__filters:hover:not(.is-open) .tour-archive__filters-toggle-icon {
    background: #e4f6df !important;
    color: #147d03 !important;
}

/* Po kliknięciu / otwarciu efekt znika */

.tour-archive__filters.is-open,
.tour-archive__filters.is-open:hover {
    border-color: #e8e8e1 !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.05) !important;
}

.tour-archive__filters.is-open .tour-archive__filters-toggle-icon,
.tour-archive__filters.is-open .tour-archive__filters-toggle:hover .tour-archive__filters-toggle-icon {
    background: #f1f8ef !important;
    color: #189A02 !important;
}



/* Naklejka na zdjęciu kafelka wycieczki */

.tour-archive-card__image {
    position: relative;
}

.tour-archive-card__badge-image {
    position: absolute !important;
    right: 12px !important;
    bottom: 12px !important;
    z-index: 5 !important;

    width: 96px !important;
    max-width: 32% !important;
    height: auto !important;

    pointer-events: none !important;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.18));
}

@media (max-width: 520px) {
    .tour-archive-card__badge-image {
        width: 78px !important;
        right: 10px !important;
        bottom: 10px !important;
    }
}

.tour-archive-choice__item--extra {
    display: none;
}

.tour-archive-choice.is-expanded .tour-archive-choice__item--extra {
    display: block;
}

.tour-archive-choice__more,
.tour-archive-choice__more:hover,
.tour-archive-choice__more:focus,
.tour-archive-choice__more:active {
    min-height: 42px !important;
    padding: 9px 16px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1px dashed #189A02 !important;
    color: #189A02 !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
}

.tour-archive-choice__more:hover,
.tour-archive-choice__more:focus {
    background: #f1f8ef !important;
    border-color: #189A02 !important;
    color: #189A02 !important;
}