/* Mobile & Tablet filter options collapsible styles */
@media (max-width: 1023.98px) {
    .package-filter-content:not(.is-open) {
        display: none !important;
    }

    .package-filter-content.is-open {
        display: block !important;
        animation: packageFilterFadeIn 0.2s ease-in-out;
    }
}

@media (min-width: 1024px) {
    .package-filter-content {
        display: block !important;
    }
}

@keyframes packageFilterFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Single Dual-Range Slider Styles */
.tourify-dual-slider-wrap {
    position: relative;
    width: 100%;
    padding-top: 32px;
    /* space for the floating tooltip bubbles */
}

.tourify-slider-tooltip {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    z-index: 25;
    pointer-events: none;
    transition: left 0.05s ease-out;
}

.tourify-tooltip-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
    user-select: none;
    letter-spacing: 0.2px;
}

.tourify-tooltip-min .tourify-tooltip-bubble {
    background: linear-gradient(135deg, #2b39b0 0%, #3b82f6 100%);
}

.tourify-tooltip-max .tourify-tooltip-bubble {
    background: linear-gradient(135deg, #06b6d4 0%, #20c997 100%);
}

.tourify-slider-track-box {
    position: relative;
    width: 100%;
    height: 28px;
    display: flex;
    align-items: center;
}

.tourify-slider-base-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 14px;
    border-radius: 9999px;
    background: #f1f5f9;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    pointer-events: none;
}

.tourify-slider-fill-track {
    position: absolute;
    height: 14px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #2b39b0 0%, #3b82f6 35%, #06b6d4 70%, #20c997 100%);
    pointer-events: none;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Range inputs overlaying on top of each other */
.tourify-range-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0;
    background: transparent !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    pointer-events: none;
    cursor: pointer;
    z-index: 10;
    border: none !important;
    outline: none !important;
}

/* Webkit thumb */
.tourify-range-input::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 30;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tourify-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.tourify-range-input::-webkit-slider-thumb:active {
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Firefox thumb */
.tourify-range-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 30;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tourify-range-input::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.tourify-range-input::-moz-range-thumb:active {
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Clear track styling */
.tourify-range-input::-webkit-slider-runnable-track {
    background: transparent !important;
    border: none !important;
}

.tourify-range-input::-moz-range-track {
    background: transparent !important;
    border: none !important;
}