/*  FILTERS STYLING */

/* ============ Контейнер фильтров ============ */
.filter_container {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 18px 16px;
    margin-top: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

/* ============ Заголовок ============ */
.filter_title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #f34d00;
    color: #222;
    letter-spacing: 0.3px;
}

/* ============ Список фильтров ============ */
.filter_list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.filter_item {
    margin-bottom: 14px;
}

/* ============ Подписи ============ */
.filter_label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
}

/* ============ Инпуты и селекты ============ */
.filter_input,
.filter_select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background-color: #fff;
    box-sizing: border-box;
    transition: border 0.2s, box-shadow 0.2s;
}
.filter_input:focus,
.filter_select:focus {
    border-color: #5686da;
    box-shadow: 0 0 0 2px rgba(86,134,218,0.2);
    outline: none;
}
.filter_select {
    margin-bottom: 12px;
}

/* ============ Цена (от-до) ============ */
.filter_price {
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter_to {
    font-size: 13px;
    color: #666;
}

/* ============ Чекбоксы ============ */
.filter_checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    margin: 8px 0;
    padding: 6px 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter_checkbox:hover {
    background: #f1f1f1;
}
.filter_checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #f34d00; /* оранжевая галочка */
    cursor: pointer;
}

/* ============ Ограничение пунктов (по умолчанию показываем до 4) ============ */
.filter_options {
    max-height: 160px; /* примерно 4 чекбокса */
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.filter_options.expanded {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}
.filter_options.expanded::-webkit-scrollbar {
    width: 6px;
}
.filter_options.expanded::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* ============ Кнопка "Rādīt vairāk" ============ */
.filter_more {
    text-align: center;
    margin-top: 6px;
}
.filter_toggle {
    border: none;
    background: #f34d00;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.filter_toggle:hover {
    background: #d73f00;
    transform: translateY(-1px);
}

/* ============ Кнопка "Piemērot" ============ */
.filter_submit {
    text-align: center;
    margin-top: 18px;
}
.filter_button {
    width: 100%;
    background: #f34d00;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.filter_button:hover {
    background: #d73f00;
    transform: translateY(-1px);
}


.filter_search {
    width: 100%;
    padding: 6px 10px;
    margin: 6px 0 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
}
.filter_search:focus {
    border-color: #5686da;
    outline: none;
    box-shadow: 0 0 0 2px rgba(86,134,218,0.2);
}
