/* public/assets/css/realty-search.css */

.search-layout {
    display: flex;
    flex-wrap: wrap; /* Для адаптивности */
    gap: 20px;
    margin-top: 20px;
}

.search-filters {
    flex: 0 0 280px; /* Фиксированная ширина для фильтров */
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    align-self: flex-start; /* Чтобы фильтры не растягивались по высоте списка */
}

.search-filters h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Стили для элементов фильтров (form-group, label, input, select) */
.search-filters .form-group {
    margin-bottom: 15px;
}
.search-filters label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}
.search-filters input[type="text"],
.search-filters input[type="number"],
.search-filters select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.9rem;
}
/* Для группы полей "от" и "до" */
.price-range-group {
    display: flex;
    gap: 10px;
}
.price-range-group input[type="number"] {
    width: calc(50% - 5px); /* Два поля в ряд с учетом gap */
}


.search-results-list {
    flex: 1; /* Занимает оставшееся пространство */
    min-width: 300px; /* Минимальная ширина для контента */
}

.sort-options {
    margin-bottom: 15px;
    text-align: right; /* Или left, как удобнее */
}
.sort-options label {
    margin-right: 5px;
    font-size: 0.9rem;
}
.sort-options select {
    padding: 6px 10px;
    font-size: 0.9rem;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.pagination-placeholder {
    margin-top: 30px;
    text-align: center;
}
/* Стили для пагинации Bootstrap уже должны быть в основном style.css или подключены отдельно */

/* Адаптивность для фильтров */
@media (max-width: 768px) {
    .search-layout {
        flex-direction: column; /* Фильтры и результаты друг под другом */
    }
    .search-filters {
        flex-basis: auto; /* Сбрасываем фиксированную ширину */
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Styles for the header containing title and view switcher */
.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 15px; /* Add horizontal padding */
}

.search-results-header h1 {
    margin-bottom: 0;
}

/* Copied from my-properties.css for consistency */
.view-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-switcher .btn-view {
    display: inline-block;
    width: 38px;
    height: 38px;
    line-height: 36px;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 6px;
    color: #495057;
    background-color: #f8f9fa;
    transition: all 0.2s ease-in-out;
}

.view-switcher .btn-view:hover {
    background-color: #e9ecef;
    border-color: #b1b9c1;
}

.view-switcher .btn-view.active {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* Custom Primary Button Style (for Show All) */
.show-all-btn-container .btn-primary {
    background-color: #0d6efd; /* Акцентный синий */
    border-color: #0d6efd;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px; /* Скругленные углы */
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
    text-decoration: none; /* Убираем подчеркивание */
}

.show-all-btn-container .btn-primary:hover {
    background-color: #0a58ca; /* Чуть темнее синий при наведении */
    border-color: #0a58ca;
    box-shadow: 0 6px 12px rgba(13, 110, 253, 0.3);
    transform: translateY(-1px);
}

.show-all-btn-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px; /* Добавляем отступ, чтобы не перекрывался футер */
}