/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/* ======================================
   FILTER ACCORDION STYLE
====================================== */

.filter-group {
    background: #fff;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border-bottom: 2px solid #8B0000;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.filter-group-header:hover {
    background: #f8f8f8;
}

.filter-group-header h4 {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    color: #8B0000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.filter-toggle-arrow {
    font-size: 20px;
    color: #8B0000;
    font-weight: bold;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.filter-group.collapsed .filter-toggle-arrow {
    transform: rotate(-90deg);
}

.filter-group-content {
    padding: 15px;
    background: #fafafa;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.filter-checkbox:hover {
    background: #fff;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.filter-checkbox span {
    font-size: 14px;
    color: #333;
}

.filter-checkbox input:checked + span {
    font-weight: 600;
    color: #667eea;
}

/* Reset filter button */
.reset-filter {
    display: block;
    text-align: center;
    padding: 12px;
    background: #e74c3c;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.2s ease;
}

.reset-filter:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

/* Loading inline */
.posts-loading-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    margin-bottom: 15px;
}

.posts-loading-inline .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.posts-loading-inline .loading-text {
    font-size: 14px;
    color: #856404;
    font-weight: 500;
}

/* Responsive */
@media only screen and (max-width: 768px) {
    .filter-group-header {
        padding: 12px;
    }
    
    .filter-group-header h4 {
        font-size: 14px;
    }
    
    .filter-group-content {
        padding: 10px;
    }
}