/* Стили для улучшенного поиска на главной странице */
.home-filter-wrapper {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

/* Стили для табов по образцу architek.spb.ru */
.tab-content .tab-pane {
    display: none !important;
}

.tab-content .tab-pane.active {
    display: block !important;
}

.tab-content .tab-pane.active.in {
    display: block !important;
}

/* Дополнительная защита от скрытия */
.tab-content .tab-pane[style*="block"] {
    display: block !important;
}

/* Принудительное отображение активных панелей */
.tab-content .tab-pane.active.in {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Стили для riode-filter */
.riode-filter {
    position: relative;
    margin-bottom: 15px;
}

.riode-filter .select-ul-toggle {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.riode-filter .select-ul-toggle:hover {
    border-color: #007bff;
    background: #fff;
}

.riode-filter ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.riode-filter ul li {
    border-bottom: 1px solid #f0f0f0;
}

.riode-filter ul li:last-child {
    border-bottom: none;
}

.riode-filter ul li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.riode-filter ul li a:hover {
    background: #f8f9fa;
    color: #007bff;
}

.riode-filter.opened ul {
    display: block;
}

.riode-filter.opened .select-ul-toggle {
    border-color: #007bff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Стили для поиска */
.search-wrapper.hs-simple {
    position: relative;
}

.search-wrapper .input-wrapper {
    display: flex;
    gap: 10px;
}

.search-wrapper .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-wrapper .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    outline: none;
}

.btn-search {
    background: #007bff;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.filter-tabs .nav-tabs {
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 0;
}

.filter-tabs .nav-link {
    color: #666;
    border: none;
    padding: 15px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-tabs .nav-link:hover {
    color: #007bff;
    background: #f8f9fa;
}

.filter-tabs .nav-link.active {
    color: #007bff;
    background: #fff;
    border-bottom: 2px solid #007bff;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.riode-filter select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.riode-filter select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    outline: none;
}

.additional-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.additional-filters h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.form-check {
    margin-bottom: 10px;
}

.form-check-input {
    margin-right: 8px;
}

.form-check-label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.search-wrapper {
    position: relative;
}

.search-wrapper input {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-wrapper input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    outline: none;
}

.btn-primary {
    background: #007bff;
    border: none;
    padding: 15px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .home-filter-wrapper {
        padding: 20px;
        margin-top: 20px;
    }
    
    .filter-tabs .nav-link {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .additional-filters .row > div {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .home-filter-wrapper {
        padding: 15px;
    }
    
    .filter-tabs .nav-tabs {
        flex-direction: column;
    }
    
    .filter-tabs .nav-link {
        text-align: center;
        border-radius: 0;
    }
}


