/*
 Theme Name:   picostrap5 Child Base
 Theme URI:    https://picostrap.com
 Description:  Child theme for Picostrap5. Experience the power of SASS, merged with the WordPress Customizer. Implementing Bootstrap 5.3.6. Please refer to the <a target="_blank" href="https://picostrap.com/documentation/">documentation</a> to get started. 
 Author:       The LiveCanvas Team
 Author URI:   https://livecanvas.com
 Version:      4.0.0
 Template: picostrap5 
 Text Domain:  picostrap5
 License: GPL-2.0
 License URI: http://www.opensource.org/licenses/gpl-license.php
*/


.price-dropdown {
    min-width: 220px;
}

.price-toggle {
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
}

.price-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    display: none;
    z-index: 1000;
}

.price-dropdown.open .price-dropdown-panel {
    display: block;
}

/* noUiSlider styling tweaks */
#price-slider {
    margin-top: 10px;
}

.noUi-connect {
    background: #a88c2d;
}

.noUi-handle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    top: -6px;
}


/* Overlay & loader styling */
.training-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.25s ease;
}

#training-filters-container.disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.7;
}

/*.training-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: 10;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}*/

.training-overlay.d-none {
    opacity: 0;
    pointer-events: none;
}

/* Disable interaction & visual feedback */
.training-filters.loading,
.training-filters.loading * {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.training-filters.loading .btn,
.training-filters.loading select,
.training-filters.loading input {
    opacity: 0.7;
}

/* Optional: little animation on cards during load */
.training-results-wrapper.loading .card {
    transition: all 0.4s ease;
    filter: brightness(0.92) saturate(0.9);
}

@media (max-width: 991px) {
    /* Mobile main dropdown */
    .mobile-filter-dropdown .dropdown-panel {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        border-radius: 0.5rem;
        margin-top: 8px;
        max-height: 80vh;
        overflow-y: auto;
    }
    .mobile-filter-dropdown.open .dropdown-panel {
        display: block;
    }

    /* Price dropdown inside mobile filter */
    .price-toggle {
        width: 100%;
        text-align: left;
        padding: 0.5rem 1rem;
        border: 1px solid #ced4da;
        border-radius: 0.375rem;
        background: white;
    }
    .price-dropdown-panel {
        display: none;
        width: 100%;
        background: var(--bs-white);
        border-radius: 0.375rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .price-dropdown.open .price-dropdown-panel {
        display: block;
    }
}