/* Loop Grid Filter Styles */

.lgf-filter-container {
    background: white !important;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 32px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    box-shadow: 0px 0px 6px 2px #0000002e;
}

/* Header */
.lgf-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.lgf-filter-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px !important;
    font-weight: 500;
    color: #1a1a1a;
}

.lgf-filter-icon {
    width: 24px;
    height: 24px;
    color: #333;
}

.lgf-reset-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1C9DA0 !important;
    border: none !important;
    color: white !important;
    cursor: pointer;
    font-size: 14px !important;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lgf-reset-button:hover {
    background: #167477 !important; /* Darker shade of your teal color */
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(28, 157, 160, 0.3);
}

.lgf-reset-icon {
    width: 20px;
    height: 20px;
    color: white;
}

/* Search Input */
.lgf-search-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.lgf-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lgf-search-input:focus {
    outline: none;
    border-color: #1C9DA0;
    box-shadow: 0 0 0 3px rgba(28, 157, 160, 0.1);
}

.lgf-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    color: #999;
}

/* Filter Sections */
.lgf-filter-section {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.lgf-filter-section:last-child {
    margin-bottom: 0;
}

.lgf-filter-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 16px;
}

.lgf-filter-section-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: #1C9DA0;
    text-decoration-thickness: 2px;
}

.lgf-toggle-icon {
    width: 24px;
    height: 24px;
    color: #666;
    transition: transform 0.3s ease;
}

.lgf-filter-section.collapsed .lgf-toggle-icon {
    transform: rotate(-180deg);
}

.lgf-filter-section.collapsed .lgf-filter-options {
    display: none;
}

/* Filter Options */
.lgf-filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lgf-filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
    position: relative;
}

.lgf-filter-option:hover {
    background: rgba(28, 157, 160, 0.05);
}

/* Custom Checkbox */
.lgf-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lgf-checkbox-visual {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.lgf-checkbox:checked + .lgf-checkbox-visual {
    background: #1C9DA0;
    border-color: #1C9DA0;
}

.lgf-checkbox:checked + .lgf-checkbox-visual::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.lgf-label {
    color: #555;
    font-size: 16px;
    line-height: 1.4;
}

/* Loading State */
.elementor-loop-container.lgf-loading {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
    min-height: 200px;
}

.elementor-loop-container.lgf-loading::after {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 12px 24px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    z-index: 10;
}

/* Active Filter Count Badge - Hidden as per your request */
.lgf-filter-count {
    background: #1C9DA0;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 8px;
    display: none !important; /* Hidden as per your custom CSS */
}

.lgf-filter-count.active {
    display: none !important; /* Hidden as per your custom CSS */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lgf-filter-container {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .lgf-filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .lgf-reset-button {
        width: 100%;
        justify-content: center;
    }
    
    .lgf-filter-section {
        padding: 16px;
    }
    
    .lgf-filter-title {
        font-size: 14px !important;
    }
    
    .lgf-filter-section-title {
        font-size: 16px;
    }
}

/* Additional hover effects for better UX */
.lgf-filter-option:hover .lgf-checkbox-visual {
    border-color: #1C9DA0;
}

.lgf-checkbox:focus + .lgf-checkbox-visual {
    box-shadow: 0 0 0 3px rgba(28, 157, 160, 0.2);
}