.filter-item {
    flex: 1;
    min-width: 150px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.apply-filter-btn,
.reset-filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-filter-btn {
    background: #0073aa;
    color: #fff;
}

.apply-filter-btn:hover {
    background: #005a87;
}

.apply-filter-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.reset-filter-btn {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.reset-filter-btn:hover {
    background: #f0f0f0;
}

.filter-loading-overlay {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: rgba(27, 44, 61, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.filter-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spinner 1s linear infinite;
}

@keyframes spinner {
    to {transform: rotate(360deg);}
}

.elementor-loop-container {
    position: relative;
}

.viaggio-filters {
    padding-bottom: 80px;
}

.viaggio-filters .elementor-product-filters {
    border-radius: 10px;
    padding: 50px 0 24px;
    color: #fff;
}

.viaggio-filters .filter-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    align-items: center;
}

.viaggio-filters select, .viaggio-filters input#date-range {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    border: none;
    padding: 10px 14px;
    height: 49px;
    transition: border-color 0.3s ease;
    font-family: "Poppins", Sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    color: #1E2B3C;
}

.viaggio-filters select:focus {
    outline: none;
    border-color: #0073aa;
}

.viaggio-filters label {
    display: none;
}

.viaggio-filters .apply-filter-btn {
    background: transparent;
    color: #D2A540;
    border-radius: 8px !important;
    padding: 8px 18px;
    font-weight: 400;
    transition: all 0.3s ease;
    font-family: "Poppins", Sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    border: 2px solid #D2A540 !important;
    height: 49px;
}

.viaggio-filters .apply-filter-btn:hover {
    background-color: #D2A540;
    color: #FFFFFF !important;
}

.viaggio-filters .reset-filter-btn {
    background: transparent !important;
    color: #fff !important;
    border: none;
    text-decoration: underline !important;
    padding: 8px 18px;
    height: 49px;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
}

.price-filter-item {
    min-width: 200px !important;
    flex: 1.5 !important;
}

.price-slider-wrapper {
    position: relative;
    padding: 15px 22px 10px 15px;
}

.price-slider-wrapper .noUi-target {
    background: #FFFFFF;
    border: none;
    box-shadow: none;
    height: 12px;
    border-radius: 8px;
}

.price-slider-wrapper .noUi-connect {
    background: #D2A540;
}

.price-slider-wrapper .noUi-handle {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #D2A540;
    border: 5px solid #FFFFFF;
    box-shadow: 0 0 0 5px #D9D9D9;
    cursor: grab;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 5px;
}

.price-slider-wrapper .noUi-handle:active {
    cursor: grabbing;
}

.price-slider-wrapper .noUi-handle::before,
.price-slider-wrapper .noUi-handle::after {
    display: none;
}

.price-slider-wrapper .noUi-tooltip {
    background: #FFFFFF;
    color: #1E2B3C;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 400;
    padding: 4px 8px;
    bottom: 35px;
    white-space: nowrap;
}

.price-slider-wrapper .noUi-tooltip::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #FFFFFF;
}

.price-slider-wrapper:hover .noUi-tooltip {
    display: block !important;
}

.price-slider-wrapper .noUi-handle.noUi-active .noUi-tooltip {
    display: block !important;
}

.viaggio-filters label.single-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    border: none;
    padding: 10px 14px;
    height: 49px;
    transition: border-color 0.3s ease;
    font-family: "Poppins", Sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    color: #1E2B3C;
    justify-content: space-between;
}

.single-radio input[type="radio"] {
    accent-color: #1E2B3C;
    width: 23px;
    height: 23px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #D2A540;
    color: #FFFFFF;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: "Poppins", Sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    height: 49px;
}

.filter-chip .remove-filter {
    background-color: transparent !important;
    border: none !important;
    cursor: pointer;
    border-radius: 0 !important;
    padding: 0 !important;
    display: flex;
}

.viaggio-filters .filters-title h2 {
    font-family: "Exo", Sans-serif;
    font-size: 32px;
    font-weight: 400;
    font-style: normal;
    color: #FFFFFF;
}

.daterangepicker {
    font-size: 12px;
}

.daterangepicker .calendar-table table {
    font-size: 12px;
}

.daterangepicker td,
.daterangepicker th {
    width: 32px;
    height: 32px;
    line-height: 32px;
    padding: 0 !important;
}

.daterangepicker .drp-calendar {
    max-width: 260px;
}

.daterangepicker .calendar-table {
    padding: 4px;
}

.daterangepicker td.in-range {
    background: rgba(210, 165, 64, 0.6);
}

.daterangepicker td.active, .daterangepicker td.active:hover {
    background-color: #D2A540;
}

.e-loop-nothing-found-message .e-loop-nothing-found-message__text {
    font-family: "Exo", Sans-serif;
    font-size: 24px;
    font-weight: 400;
    font-style: normal;
    color: #FFFFFF;
}

@media (max-width: 1199px) and (min-width: 768px) {
    .viaggio-filters .filter-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .viaggio-filters .filter-item {
        width: 100%;
        min-width: 0;
    }

    /* Make buttons span full width */
    .viaggio-filters .filter-buttons {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .viaggio-filters .apply-filter-btn,
    .viaggio-filters .reset-filter-btn {
        width: 100%;
    }
}


@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    
    .filter-item {
        width: 100%;
    }
    
    .filter-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .apply-filter-btn,
    .reset-filter-btn {
        width: 100%;
    }

    .viaggio-filters .filter-row {
        flex-wrap: wrap;
    }
    
    .price-filter-item {
        width: 100%;
        min-width: 100% !important;
    }

    .viaggio-filters .filters-title h2 {
        font-size: 28px;
    }

    .daterangepicker.show-calendar .drp-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .price-slider-wrapper {
        padding: 15px 22px 10px 15px;
    }
    
    .price-slider-wrapper .noUi-handle {
        width: 20px;
        height: 20px;
    }
    
    .price-slider-wrapper .noUi-tooltip {
        font-size: 11px;
        padding: 3px 6px;
    }
}
