/* Default: Hide both elements initially */
/* .qintess-custom-filter-desktop,
.qintess-custom-filter-mobile {
  display: none;
} */

/* Desktop filter container styling */
.qintess-custom-filter-desktop .filter-options-desktop {
  gap: 15px;
}

/* Mobile filter toggle button styling */
.qintess-custom-filter-mobile .filter-toggle {
  width: 34px;
  height: 34px;
  background: #E92651; /* Initial button color */
  border: none;
  border-radius: 20%;
  padding: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease; /* Smooth color transition on toggle */
}

/* Changes button color when filters are expanded */
.qintess-custom-filter-mobile .filter-toggle.open {
  /* background: #000000; */
}

/* Filter icon styling */
.qintess-custom-filter-mobile .filter-icon-open {
  display: inline; /* Filter icon displayed by default */
}

.qintess-custom-filter-mobile .filter-icon-close {
  display: none; /* "X" icon hidden by default */
}

/* Display "X" icon and hide filter icon when open */
.qintess-custom-filter-mobile .filter-toggle.open .filter-icon-open {
  display: none;
}

.qintess-custom-filter-mobile .filter-toggle.open .filter-icon-close {
  display: inline !important;
}

/* Mobile filter dropdown styling */
.qintess-custom-filter-mobile .filter-options-mobile {
  display: none; /* Hidden by default */
  background: #FFFFFF;
  position: absolute;
  top: calc(100%); /* Positioned below search field */
  width: 100%;
  max-width: 340px;
  padding: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.7); /* Shadow for emphasis */
  border-radius: 5px;
  z-index: 99999;
}

/* Remove labels in mobile dropdown to save space */
.qintess-custom-filter-mobile .filter-options-mobile label {
  display: none;
}

/* Media query: Desktop layout adjustments for smaller screens */
@media screen and (max-width: 910px) {
  .qintess-custom-filter-desktop {
    flex-direction: column;
    align-items: center;
  }
  .qintess-custom-filter-desktop .filter-options-desktop {
    margin-top: -1em;
  }
}

/* Media query: Hide labels in desktop filters on very small screens */
@media screen and (max-width: 768px) {
  .qintess-custom-filter-desktop .filter-options-desktop label {
    display: none;
  }
}

/* Show desktop filter only on screens wider than 520px */
@media screen and (min-width: 521px) {
  .qintess-custom-filter-desktop {
    display: flex; /* Set display for desktop view */
    justify-content: space-between; /* Align items in the desktop filter */
  }

  .qintess-custom-filter-mobile .filter-toggle {
    width: 38px;
    height: 38px;
  }
}

/* Show mobile filter only on screens 520px or smaller */
@media screen and (max-width: 520px) {
  .views-exposed-form {
    margin-bottom: 20px;
  }


}
.qintess-custom-filter-mobile .search-container {
  margin-right: 10px;
}

.qintess-custom-filter-mobile {
  display: flex; /* Set display for mobile view */
  justify-content: space-between;
  align-items: center; /* Center items vertically in the mobile filter */
}
