/*
    jQuery UI css reset
    




*/
.ui-corner-all {
  background: unset !important; /* or specific resets like background: none; border: none; */
  border: unset !important; /* or specific resets like background: none; border: none; */
  padding: unset !important;
}

.ui-tabs .ui-tabs-nav {
    border-bottom: 2px solid gray !important;
}

/*.ui-tabs .ui-tabs-nav li:not(.ui-tabs-active) {
    border-bottom: 2px solid #bbb !important;*/ /* or your preferred color */
/*}*/

/* Remove the underline from the active tab */
.ui-tabs .ui-tabs-nav li.ui-tabs-active {
    border-bottom: none !important;
}

.ui-tabs .ui-tabs-nav li.ui-tabs-active {
    margin-bottom: -2px !important;
    padding-bottom: 4px !important;
}

.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover
{
    border: 1px solid #6a6a69 !important;
    background: #9ccee1 !important;
    font-weight: normal;
    color: #ffffff;

}
.ui-tabs-panel {
    padding: 0 !important;
}

#search_tagSelector {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 8px
}

.search-container {
    display: flex;
    gap: 32px;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 4px;
    /*box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);*/
}

.tag-section {
    flex: 0.65;
    display: flex;
    flex-direction: column;
}


.filter-section {
    flex: 0.35;
    display: flex;
    flex-direction: column;
    gap: 10px;
}



.search-heading {
    font-weight: 600;
    margin-bottom: 16px;
    color: #041e42;
    position: relative;
    padding-bottom: 8px;
}

.search-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #041e42;
}

.tags-container {
    display: flex;
    /*flex-wrap: wrap;*/
    align-items: flex-start;
    align-content: flex-start;
    gap: 8px;
    flex: 1;
}
/*.tags-container {
	display: flex;
	flex-direction: column;
	gap: 15px;
}*/

.tag-group {
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    width: 100%;
}

.tag-group.two-columns {
    column-count: 2;
    display: block;
}
.tag-group.two-columns > div {
  display: block;          /* allow them to stack properly */
  break-inside: avoid;     /* prevent labels from breaking */
  margin-bottom: 6px;      /* spacing between tags */
  width: 100%;
}

.tag-group .tag-label {
  display: block;        /* makes the label fill the column width */
  width: 100%;           /* explicitly stretch to the column width */
  box-sizing: border-box;/* so padding/border don't overflow */
}

.tag-group.two-columns .tag-group-heading {
    grid-column: 1 / -1;
}

.tag-group.two-columns .tag-group-heading {
  column-span: all;
  margin-bottom: 8px;
  display: block;
}

.tag-group-heading {
	font-size: 1.1rem;
	font-weight: bold;
	margin-bottom: 4px;
	color: #333;
}

.tag-checkbox {
    display: none;
}

.tag-label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 6px 8px;
    border-radius: 8px;
    background: #f5f7fa;
    color: #333;
    cursor: pointer;
    border: 1px solid #e0e6ed;
    transition: all 0.25s ease;
    user-select: none;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .modal .tag-label {
        padding: 3px 4px;
        font-size: 0.7rem;
        /*background: blue;*/
    }
}

.tag-checkbox:checked + .tag-label {
    background: #041e42;
    color: #fff;
    border: 1px solid #041e42;
    box-shadow: 0 2px 8px rgba(4, 30, 66, 0.2);
    transform: translateY(-1px);
}

.tag-label:hover {
    background: #e8ecf2;
    transform: translateY(-1px);
}

.custom-select {
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    padding: 12px 16px;
    background-color: #f5f7fa;
    color: #333;
    font-weight: 500;
    transition: all 0.25s ease;
    height: auto;
}

.custom-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(4, 30, 66, 0.15);
    border-color: #041e42;
}

.dimensions-container {
    background: #f5f7fa;
    border-radius: 10px;
    padding: 16px;
    /*margin-top: 8px;*/
}

.dimensions-toggle {
    margin-bottom: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
}

.form-check-input:checked {
    background-color: #041e42;
    border-color: #041e42;
}

.form-check-label {
    margin-left: 4px;
    font-weight: 500;
    font-size: 0.9rem;
}

.slider-container {
    margin-bottom: 16px;
}

.slider-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0px;
    display: flex;
    justify-content: space-between;
    color: #333;
}

.slider-value {
    background: #041e42;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 30px;
    text-align: center;
}

.custom-range {
    height: 6px;
}

.custom-range::-webkit-slider-thumb {
    background: #041e42;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.custom-range:disabled::-webkit-slider-thumb {
    background: #b0b0b0;
}

.custom-range::-moz-range-thumb {
    background: #041e42;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-range::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.custom-range:disabled::-moz-range-thumb {
    background: #b0b0b0;
}

.search-container-footer {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
    /*border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);*/
}

@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
    }
    
    .tag-section, .filter-section {
        flex: 1;
        width: 100%;
    }
}