.filtru-bara {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 20px 32px;
    position: relative;
    margin-bottom: 32px;
    width: 100%;
    border-radius: 16px;
}

.filtru-bara form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.filtru-bara-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 140px;
}

.filtru-avansat-rand {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    flex: 0 0 100%;
    max-width: 100%;
}

.filtru-avansat-rand .filtru-avansat-grup {
    flex: 1;
    min-width: 140px;
}

.filtru-bara-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filtru-pret-val {
    color: var(--Primary);
    font-weight: 600;
}

.filtru-bara-select {
    height: 48px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filtru-bara-select:focus {
    outline: none;
    border-color:  var(--Primary);
}

.filtru-bara-pret {
    flex: 2;
    min-width: 200px;
}

.filtru-pret-slider {
    position: relative;
    height: 6px;
    margin: 8px 8px 0;
}

.filtru-pret-rail {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    top: 0;
}

.filtru-pret-track {
    position: absolute;
    height: 6px;
    background:  var(--Primary);
    border-radius: 3px;
    top: 0;
}

.filtru-pret-handle {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid  var(--Primary);
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transition: box-shadow 0.2s ease;
    z-index: 2;
}

.filtru-pret-handle:hover,
.filtru-pret-handle:active {
    box-shadow: 0 0 0 4px rgba(241,145,61,0.15);
    cursor: grabbing;
}

.filtru-bara-butoane {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-bottom: 1px;
}

.filtru-btn-avansat {
    width: 48px;
    height: 48px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color:  var(--Primary);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filtru-btn-avansat:hover,
.filtru-btn-avansat.activ {
    border-color:  var(--Primary);
    background: var(--Sub-primary-4);
}

.filtru-btn-cauta {
    height: 48px !important;
    padding: 0 24px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    font-size: 15px !important;
}

.filtru-avansat {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 0px solid #e5e7eb;
    padding-top: 0;
    margin-top: 0;
}

.filtru-avansat.deschis {
    max-height: 600px; 
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    margin-top: 16px;
}

.filtru-avansat-inner {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.filtru-avansat-grup {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 140px;
}

.filtru-avansat-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filtru-avansat-range input {
    flex: 1;
}

.filtru-avansat-range span {
    color: #9ca3af;
    flex-shrink: 0;
}

.filtru-avansat-reset {
    flex: 0 0 auto !important;
    min-width: unset !important;
    justify-content: flex-end;
}

.filtru-btn-reset {
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filtru-btn-reset:hover {
    border-color: #ef4444;
    color: #ef4444;
}

@media (max-width: 768px) {
    .filtru-bara {
        padding: 16px;
    }
    .filtru-bara-item,
    .filtru-bara-pret {
        flex: 0 0 calc(50% - 8px);
    }
    .filtru-bara-butoane {
        flex: 0 0 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .filtru-bara-item,
    .filtru-bara-pret {
        flex: 0 0 100%;
    }

    .filtru-bara-label.none {
        display: none;
    }

    .filtru-avansat-rand {
        flex-direction: column;
    }
}
