/* Filter Widget Styles */
/* Override theme styles */
.package-sidebar-area .sidebar-wrapper .single-widgets,
.single-widgets {
    margin-bottom: 8px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    transition: box-shadow 0.3s ease;
    padding: 4% !important; /* Override theme padding */
    border: none !important; /* Override theme border */
}

.single-widgets:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.widget-title {
    padding: 12px 20px; /* Balanced padding for centering */
    background: #fff;
    /* border-bottom: 1px solid #eee; Removed border */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 8px;
    min-height: 48px; /* Ensure consistent height */
    margin-bottom: 0 !important; /* Override theme margin */
}

.widget-title:hover {
    background-color: #f9f9f9;
}

.widget-title h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1; /* Fix vertical alignment */
    display: flex;
    align-items: center;
}

.widget-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.clear-filter-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 12px;
}

/* Show clear button when parent has 'has-selection' class */
.widget-title.has-selection .clear-filter-btn {
    display: flex;
}

.clear-filter-btn:hover {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: #666;
}

.widget-title.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.widget-content {
    padding: 20px;
    transition: all 0.3s ease-in-out;
    max-height: 1000px; /* Arbitrary large height */
    opacity: 1;
    overflow: hidden;
}

.widget-content.collapsed {
    padding: 0 20px;
    max-height: 0;
    opacity: 0;
}

/* Checkbox Container Adjustments */
.checkbox-container ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.checkbox-container li {
    margin-bottom: 10px;
}

.checkbox-container li:last-child {
    margin-bottom: 0;
}

/* Custom Scrollbar for long lists */
.checkbox-container ul {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.checkbox-container ul::-webkit-scrollbar {
    width: 4px;
}

.checkbox-container ul::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.checkbox-container ul::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.checkbox-container ul::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}
