.c-tour-results-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin: 1rem 0 1.5rem;
}

.c-tour-results-toolbar .search-sorting-desktop {
    flex: 0 0 auto;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: auto;
}

.c-tour-results-toolbar .search-sorting-desktop select {
    float: none !important;
}

.c-tour-range-filters {
    display: block;
    flex: 1 1 680px;
    max-width: 720px;
}

.c-tour-range-filters .p-range-help {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.45;
    color: #314f65;
}

.c-tour-range-filters .p-days-apply {
    min-height: 40px;
    padding: 7px 14px;
    border: 1px solid #7894a7;
    border-radius: 5px;
    background: #fff;
    color: #314f65;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.c-tour-range-filters .p-range-help[hidden],
.c-tour-range-filters .p-days-apply[hidden],
.c-tour-range-filters .p-price-sliders[hidden],
.c-tour-range-filters .p-days-sliders[hidden] {
    display: none !important;
}

.c-tour-range-filters.is-ready {
    display: block;
}

.c-tour-range-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.c-tour-range-filters .c-ehks-price-filter[hidden],
.c-tour-range-filters .c-tour-days-filter[hidden],
.c-tour-range-filters .p-price-panel[hidden],
.c-tour-range-filters .p-days-panel[hidden],
.c-tour-range-filters .p-price-reset[hidden],
.c-tour-range-filters .p-days-reset[hidden],
.c-tour-range-filters .p-price-count[hidden],
.c-tour-range-filters .p-days-count[hidden] {
    display: none !important;
}

/* The price control deliberately mirrors the excursions network. */
.c-tour-range-filters .p-price-toggle {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid #0067b8;
    border-radius: 5px;
    background: #0879c9;
    box-shadow: 0 1px 2px rgba(0, 66, 120, .16);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.c-tour-range-filters .p-price-toggle:hover,
.c-tour-range-filters .p-price-toggle:focus {
    border-color: #005a9f;
    background: #006bb7;
    color: #fff;
}

.c-tour-range-filters .p-price-toggle:focus-visible {
    outline: 3px solid rgba(8, 121, 201, .25);
    outline-offset: 2px;
}

.c-tour-range-filters .p-price-toggle-icon,
.c-tour-range-filters .p-days-toggle-icon {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .15s ease;
}

.c-tour-range-filters .p-price-toggle[aria-expanded="true"] .p-price-toggle-icon,
.c-tour-range-filters .p-days-toggle[aria-expanded="true"] .p-days-toggle-icon {
    transform: translateY(2px) rotate(225deg);
}

/* Duration is intentionally a quieter, smaller secondary action. */
.c-tour-range-filters .p-days-toggle {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 11px;
    border: 1px solid #a9b7c1;
    border-radius: 5px;
    background: #fff;
    color: #314f65;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.c-tour-range-filters .p-days-toggle:hover,
.c-tour-range-filters .p-days-toggle:focus {
    border-color: #788f9f;
    background: #f3f6f8;
    color: #233d50;
}

.c-tour-range-filters .p-days-toggle:focus-visible {
    outline: 3px solid rgba(86, 111, 128, .2);
    outline-offset: 2px;
}

.c-tour-range-filters .p-price-panel,
.c-tour-range-filters .p-days-panel {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.c-tour-range-filters .p-price-panel {
    border: 1px solid #c7dff2;
    background: #f5faff;
}

.c-tour-range-filters.is-price-active .p-price-panel {
    border-color: #91bfe2;
    background: #edf7ff;
}

.c-tour-range-filters .p-days-panel {
    max-width: 520px;
    border: 1px solid #d1d9df;
    background: #f7f8f9;
}

.c-tour-range-filters.is-days-active .p-days-panel {
    border-color: #aebdc7;
    background: #f1f4f6;
}

.c-tour-range-filters .p-price-row,
.c-tour-range-filters .p-days-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 10px;
}

.c-tour-range-filters .p-price-title,
.c-tour-range-filters .p-days-title {
    font-size: 14px;
    font-weight: 800;
}

.c-tour-range-filters .p-price-title {
    color: #005596;
}

.c-tour-range-filters .p-days-title {
    color: #314f65;
}

.c-tour-range-filters .p-price-value,
.c-tour-range-filters .p-days-value {
    color: #314f65;
    font-size: 14px;
    font-weight: 700;
}

.c-tour-range-filters .p-price-reset,
.c-tour-range-filters .p-days-reset {
    margin-left: auto;
    padding: 0;
    border: 0;
    border-bottom: 1px dashed currentColor;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.c-tour-range-filters .p-price-reset {
    color: #0879c9;
}

.c-tour-range-filters .p-days-reset {
    color: #496879;
}

.c-tour-range-filters .p-price-sliders,
.c-tour-range-filters .p-days-sliders {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.c-tour-range-filters .p-price-slider,
.c-tour-range-filters .p-days-slider {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #566f80;
    font-size: 13px;
    font-weight: 700;
}

.c-tour-range-filters input[type="range"] {
    width: 100%;
    height: 24px;
    margin: 0;
    cursor: pointer;
}

.c-tour-range-filters .p-price-sliders input[type="range"] {
    --tour-range-color: #0879c9;
    accent-color: #0879c9;
}

.c-tour-range-filters .p-days-sliders input[type="range"] {
    --tour-range-color: #657f90;
    accent-color: #657f90;
}

.c-tour-range-filters .p-price-footer,
.c-tour-range-filters .p-days-footer {
    display: flex;
    min-height: 22px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.c-tour-range-filters .p-price-count,
.c-tour-range-filters .p-days-count {
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.c-tour-range-filters .p-price-count {
    color: #005596;
}

.c-tour-range-filters .p-days-count {
    color: #314f65;
}

.c-tour-range-filters .p-price-status,
.c-tour-range-filters .p-days-status {
    margin-left: auto;
    color: #566f80;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}

.c-tour-range-filters .p-price-status:empty,
.c-tour-range-filters .p-days-status:empty {
    display: none;
}

.c-tour-range-filters.is-loading .p-price-panel,
.c-tour-range-filters.is-loading .p-days-panel {
    box-shadow: inset 0 0 0 1px rgba(8, 121, 201, .08);
}

.p-tour-range-empty {
    margin: 2rem auto;
    padding: 1.5rem;
    border: 1px solid #0879c9;
    background: #fff;
    text-align: center;
}

.l-dostsearch .excursions-list {
    position: relative;
}

.l-dostsearch .p-tour-range-loading {
    position: absolute;
    z-index: 8;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    min-height: 260px;
    align-items: flex-start;
    justify-content: center;
    padding: 70px 20px 20px;
    background: rgba(241, 248, 253, .72);
    pointer-events: auto;
}

.l-dostsearch .p-tour-range-loading[hidden] {
    display: none !important;
}

.l-dostsearch .p-tour-range-loading__inner {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    gap: 13px;
    padding: 12px 18px;
    border: 1px solid #b6d5eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(20, 75, 113, .18);
    color: #005596;
    font-size: 16px;
    font-weight: 700;
}

.l-dostsearch .p-tour-range-loading__spinner {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 4px solid #d5e8f5;
    border-top-color: #0879c9;
    border-radius: 50%;
    animation: tour-range-spin .7s linear infinite;
}

.l-dostsearch .excursions-list.is-tour-range-loading .excursions {
    opacity: .58;
    pointer-events: none;
}

.l-dostsearch .excursion-card[hidden] {
    display: none !important;
}

@keyframes tour-range-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 992px) {
    .c-tour-range-filters .p-price-toggle {
        min-height: 32px;
        gap: 7px;
        padding: 5px 10px;
        font-size: 14px;
    }

    .c-tour-range-filters .p-price-toggle-icon {
        width: 7px;
        height: 7px;
    }

    .c-tour-range-filters .p-days-toggle {
        min-height: 30px;
        padding: 4px 9px;
        font-size: 13px;
    }

    .c-tour-range-filters .p-days-toggle-icon {
        width: 7px;
        height: 7px;
    }
}

@media (max-width: 991.98px) {
    .c-tour-results-toolbar {
        display: block;
        margin: 0;
    }

    .c-tour-range-filters {
        max-width: none;
    }

    .c-tour-range-filters {
        margin: 1rem 0 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .c-tour-range-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .c-tour-range-filters .c-ehks-price-filter {
        width: 100%;
    }

    .c-tour-range-filters .p-price-toggle {
        width: 100%;
        min-height: 46px;
        font-size: 17px;
    }

    .c-tour-range-filters .p-days-toggle {
        width: auto;
        min-height: 40px;
        padding: 7px 12px;
        font-size: 15px;
    }

    .c-tour-range-filters .p-price-panel,
    .c-tour-range-filters .p-days-panel {
        max-width: none;
        padding: 12px;
    }

    .c-tour-range-filters .p-price-title,
    .c-tour-range-filters .p-price-value,
    .c-tour-range-filters .p-days-title,
    .c-tour-range-filters .p-days-value {
        font-size: 15px;
    }

    .c-tour-range-filters .p-price-reset,
    .c-tour-range-filters .p-days-reset {
        min-width: 70px;
        min-height: 36px;
        margin: -6px -4px -6px auto;
        padding: 6px 4px;
        border-bottom: 0;
        border-radius: 5px;
        font-size: 14px;
        text-decoration: underline;
        text-decoration-style: dashed;
        text-underline-offset: 3px;
    }

    .c-tour-range-filters .p-price-sliders,
    .c-tour-range-filters .p-days-sliders {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        margin-top: 10px;
    }

    .c-tour-range-filters .p-price-slider,
    .c-tour-range-filters .p-days-slider {
        grid-template-columns: 30px minmax(0, 1fr);
        min-height: 48px;
        gap: 8px;
        font-size: 15px;
    }

    .c-tour-range-filters input[type="range"] {
        --tour-range-progress: 0%;
        appearance: none;
        -webkit-appearance: none;
        width: 100%;
        height: 46px;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: ew-resize;
        touch-action: none;
    }

    .c-tour-range-filters input[type="range"]::-webkit-slider-runnable-track {
        width: 100%;
        height: 8px;
        border: 1px solid #cedce6;
        border-radius: 999px;
        background: linear-gradient(
            to right,
            var(--tour-range-color) 0,
            var(--tour-range-color) var(--tour-range-progress),
            #e1e8ed var(--tour-range-progress),
            #e1e8ed 100%
        );
        box-shadow: inset 0 1px 2px rgba(25, 61, 84, .08);
    }

    .c-tour-range-filters input[type="range"]::-webkit-slider-thumb {
        appearance: none;
        -webkit-appearance: none;
        width: 30px;
        height: 30px;
        margin-top: -12px;
        border: 2px solid var(--tour-range-color);
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 2px 7px rgba(25, 61, 84, .24);
    }

    .c-tour-range-filters input[type="range"]:focus-visible {
        outline: 3px solid rgba(8, 121, 201, .22);
        outline-offset: 1px;
        border-radius: 6px;
    }

    .c-tour-range-filters input[type="range"]::-moz-range-track {
        width: 100%;
        height: 8px;
        border: 1px solid #cedce6;
        border-radius: 999px;
        background: #e1e8ed;
        box-shadow: inset 0 1px 2px rgba(25, 61, 84, .08);
    }

    .c-tour-range-filters input[type="range"]::-moz-range-progress {
        height: 8px;
        border-radius: 999px;
        background: var(--tour-range-color);
    }

    .c-tour-range-filters input[type="range"]::-moz-range-thumb {
        width: 30px;
        height: 30px;
        border: 2px solid var(--tour-range-color);
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 2px 7px rgba(25, 61, 84, .24);
    }

    .c-tour-range-filters .p-price-footer,
    .c-tour-range-filters .p-days-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .c-tour-range-filters .p-price-count,
    .c-tour-range-filters .p-days-count {
        font-size: 15px;
    }

    .c-tour-range-filters .p-price-status,
    .c-tour-range-filters .p-days-status {
        margin-left: 0;
        font-size: 14px;
        text-align: left;
    }

    .l-dostsearch .p-tour-range-loading {
        min-height: 220px;
        padding-top: 55px;
    }

    .l-dostsearch .p-tour-range-loading__inner {
        width: 100%;
        max-width: 310px;
        justify-content: center;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .l-dostsearch .p-tour-range-loading__spinner {
        animation-duration: 1.5s;
    }
}
