
/* 
=================================================
  TABLE OF CONTENTS
=================================================
  1. Search Results & Pagination
  2. Filter Tags 
  3. Sidebar & Accordion
  4. Select2 Overrides
  5. Content Display
  6. Icon Styling
=================================================
*/


/* 
=================================================
  1. SEARCH RESULTS & PAGINATION
=================================================
*/

#results-count {
    text-align: right;
    font-size: 0.75em;
    font-weight: bold;
    margin-bottom: 1rem;
}

#pagination {
    margin-top: 20px;
    text-align: center;
}

.page-btn {
    margin: 5px;
    padding: 8px;
    border: 1px solid #da5737;
    background: #fff;
    color: #da5737;
    cursor: pointer;
    border-radius: 2px;
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
}

.page-btn:hover {
    background: #da5737;
    color: #fff;
}

.page-btn.active {
    background: #da5737;
    color: #fff;
    font-weight: bold;
    cursor: default;
}

.page-btn:first-child,
.page-btn:last-child {
    font-weight: bold;
}



@media print, screen and (min-width: 64em) {
    .hits-item__img {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 250px;
        flex: 0 0 150px;
    }
}

.hits-item__title {
	margin-bottom: 0;
}

.hits-item__content .posts-item__excerpt {
	margin-top: 1rem;
}


.posts-item__excerpt strong {
    color: #da5737;
}

.content-type-badge {
    display: inline-block;
    width: auto; 
    max-width: fit-content;
    font-size: 0.8rem;
	margin: 5px 0 0;
    color: #da5737;
    font-size: 12px;
}

/* Optional: add a little color */
.hits-item__content h3 + .content-type-badge {
    background: #f5f5f5;
    border-left: 3px solid #da5737;
    padding-left: 8px;
}




p.search-result-meta {
	margin-bottom: 0;
	font-size: 12px;
}

/* 
=================================================
  2. SELECTED FILTER TAGS
=================================================
*/


.select2-container--default .select2-selection--multiple .select2-selection__choice {
	background-color: #da5737;
	color: white;
    border-radius: 3rem;
    padding: 4px 12px 4px 20px; /* Increased right padding for remove button */
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 12px;
	
}






/* 
=================================================
  3. SIDEBAR & ACCORDION
=================================================
*/

.sidebar {
    background: #f5f5f5;
    border-top: 3px solid #da5737;
}

.sidebar h3.sidebar-title {
	border-top: 0;
}

h4 {
    font-size: 18px;
    text-transform: none;
    margin-bottom: 10px;
}

.sqe-accordion-item__title h4 {
    display: flex;
    align-items: center;
}


.tag-btn {
    display: inline-block;
    margin: 5px;
    padding: 8px 12px;
    border: 1px solid #0073aa;
    background: #fff;
    color: #0073aa;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.tag-btn:hover {
    background: #0073aa;
    color: #fff;
}

.tag-btn.active {
    background: #0073aa;
    color: #fff;
    font-weight: bold;
}

.clear-btn {
    display: none; /* Hidden until needed */
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #da5737;
    color: #da5737;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
    width: auto;
    text-align: left;
}

.clear-btn:hover {
    background: #cc0000;
    color: #fff;
}

#region-filter label,
#jurisdiction-filter label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
}

#region-filter input[type="checkbox"],
#jurisdiction-filter input[type="checkbox"] {
    margin: 0;
    transform: scale(0.9);
}

.sidebar .sqe-accordion-item__content {
    padding: 0.5rem 0 1rem;
}

/* 
=================================================
  4. SELECT2 OVERRIDES
=================================================
*/


.select2-container--default .select2-selection--multiple, 
.select2-container--default.select2-container--focus .select2-selection--multiple { 
    border: 0; 
    padding: 0; 
    background: transparent;
}

.select2-container--default .select2-selection--multiple ul {
    margin: 0;
    line-height: normal;
}



.select2-container .select2-search--inline .select2-search__field, 
.sidebar .sqe-accordion-item__content input[type=date] {
    margin: 0;
    padding: 5px;
    width: 100% !important;
    min-width: 100% !important;
    border-color: #da5737 !important;
    min-height: 32px;
    border-radius: 2px;
    color: #666;
    font-size: 14px;
    background: white;
}

.sidebar .sqe-accordion-item__content input[type=date] {
    margin-bottom: 1rem;
}

/* Style the Select2 placeholder text */
.select2-container .select2-search--inline .select2-search__field::placeholder {
    color: #666; 
    font-size: 14px;
    opacity: 1;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-right: 0;
    color: white;
    left: 5px;
    top: 5px;
}

/* Hide the main clear "X" but keep it on selected items */
.select2-container--default .select2-selection--multiple .select2-selection__clear {
    display: none !important;
}

.select2-container--default .select2-selection--multiple.select2-selection--clearable {
    padding-right: inherit;
}



/* Make the input area larger when tags are invisible */
.select2-container .select2-search--inline .select2-search__field {
    min-width: 100% !important;
    width: 100% !important;
}

/* Highlight option on hover */
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: #da5737;
}


/* Prevent Select2 from flashing expanded multiple options */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    max-height: 32px; /* Keep height fixed to prevent expansion */
    overflow: hidden;
    white-space: nowrap; /* Prevent wrapping */
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Fix for the empty gap issue */
.select2-container--default .select2-selection--multiple .select2-selection__rendered:empty {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 0;
    margin-bottom: 0;
}

.select2-container .select2-selection--multiple .select2-selection__placeholder {
    opacity: 1 !important; /* Keep placeholder always visible */
    transition: opacity 0.2s ease-in-out; /* Smooth appearance */
}





/* 
=================================================
  6. ICON STYLING
=================================================
*/

/* Base icon styles */
.fa-filter {
    padding: 6px;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    /* display: inline-flex; */
    display: none;
    align-items: center;
    justify-content: center;
        color: #2c395f;
    background-color: white;
}
