.midi-switch-header {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 24px;
}

.chip-card-midi-switch {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}
.chip-card-midi-switch div {
  align-items: center;
  gap: 16px;
}
.chip-card-midi-switch .form-switch input {
  width: 48px;
  height: 24px;
}

@media (min-width: 992px) {
  .chip-card-midi-switch {
    flex-direction: row;
  }
  .chip-card-midi-switch div {
    font-size: 0.75rem;
  }
}
.filter-panel-title {
  margin-bottom: 32px;
}

.filter-button {
  background: url("/assets/icons/ion_filter-sharp.svg") no-repeat;
  background-size: 24px;
  width: 24px;
  height: 24px;
  border: none;
  cursor: pointer;
}

.filters-row {
  display: none;
}

.filter-button-dropdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-button-dropdown::after {
  margin-left: 8px;
}

.discover-modal .modal-dialog {
  margin: 120px 0 0 0;
}
.discover-modal .modal-dialog-scrollable .modal-content {
  max-height: none;
}

.modal-price-range {
  margin-inline: 24px;
}

.discover-modal-body {
  padding-inline: 0;
  padding-top: 0;
}
.discover-modal-body .modal-item {
  margin-inline: 32px;
}

.filter-accordion {
  border: none;
}

.projects-header {
  margin-bottom: 32px;
}

.filter-accordion .accordion-header {
  margin-bottom: 16px;
}
.filter-accordion .accordion-header button {
  font-size: 24px;
  font-weight: 500;
}

.dropdown-menu.common-card {
  width: 100%;
  transform: none !important;
  inset: 64px auto auto 0 !important;
}

.price-description {
  color: #666;
  font-size: 0.9rem;
  margin-top: 8px;
}

.price-bubble {
  background-color: #06a59a;
  color: white;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  min-width: 70px;
  text-align: center;
  position: relative;
  z-index: 20;
}

.price-bubbles-container {
  position: absolute;
  width: 100%;
  top: -40px;
  left: 0;
  right: 0;
  pointer-events: none;
}

.price-range-bubble {
  color: white;
}

.min-bubble {
  position: absolute;
  left: 0;
  transform: translateX(-50%);
  transition: left 0.1s ease;
}

.max-bubble {
  position: absolute;
  right: 0;
  transform: translateX(50%);
  transition: right 0.1s ease;
}

.combined-bubble {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  min-width: 120px;
}

.range-slider-container {
  height: 40px;
}

/* Price filter container */
.price-range-container {
  padding: 10px 15px;
}

/* Custom styling for Bootstrap range inputs */
.price-slider {
  position: absolute;
  width: 100%;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  background: transparent;
  height: 40px;
  z-index: 9;
}
.price-slider ::after {
  outline: none;
}
.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #06a59a;
  border: 2px solid white;
  cursor: pointer;
  pointer-events: auto;
  margin-top: -10px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
}
.price-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #06a59a;
  border: 2px solid white;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  height: 6px;
  border-radius: 3px;
  z-index: 1;
}

.slider-track-unselected {
  background-color: #04e1cb;
}

.slider-track-selected {
  background-color: #06a59a;
  pointer-events: none;
}

.min-slider {
  z-index: 10;
}

.max-slider {
  z-index: 10;
}

.accordion-body {
  padding: 0;
  width: 100%;
}
.accordion-body .project_type {
  display: none;
}
.accordion-body .project_type .filters-projects > .card {
  border: 1px solid #bdbdbd;
  box-shadow: none;
  border-radius: 5px;
  cursor: pointer;
}

.filter-panel-footer {
  display: flex;
  justify-content: space-between;
}
.filter-panel-footer button {
  max-width: -moz-fit-content;
  max-width: fit-content;
}

.card.selected {
  border: 4px solid #06a59a !important;
}

.filters-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.filters-projects > div {
  flex-basis: 13.5rem;
  flex-shrink: 0;
  padding: 0;
  aspect-ratio: 1.2;
}

.scroll-content {
  min-height: 8rem;
  height: 100%;
  overflow: auto;
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-around;
}

.card-title {
  font-size: 1rem;
}

.modal-footer {
  border: none;
  margin-inline: 24px;
  padding: 0 0 32px 0;
  gap: 16px;
}
.modal-footer button {
  margin: 0;
}

@media (min-width: 768px) {
  .modal-item {
    margin-inline: 0;
  }
  .discover-modal-header {
    padding: 32px 0 32px 0;
    border-bottom: 1px solid #bdbdbd;
    margin-bottom: 32px;
  }
  .discover-modal .discover-modal-dialog {
    max-width: 1056px;
    margin-inline: auto;
  }
  .discover-modal .discover-modal-dialog .modal-content {
    padding-inline: 64px;
    padding-bottom: 64px;
  }
  .filters-projects-icon {
    font-size: 2rem;
    color: #024d4c;
  }
  .modal-price-range {
    padding-inline: 32px;
  }
  .projects-mobile {
    display: none;
  }
  .accordion-body .project_type {
    display: block;
  }
  .filters-container .common-card {
    box-shadow: 0px 8px 24px -16px rgb(66, 68, 90);
  }
  .filters-row {
    position: relative;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
  }
  .filter-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #c9c9c9;
    width: 160px;
  }
  .all-filter-dropdown-btn {
    color: #06a59a;
    width: 160px;
    display: flex;
    justify-content: center;
    gap: 16px;
  }
  .btn.all-filter-dropdown-btn:hover,
  .btn.all-filter-dropdown-btn:focus-visible,
  .btn.all-filter-dropdown-btn:active,
  .selected-filter-items {
    color: #06a59a;
    border-color: #06a59a;
  }
  .all-filter-dropdown-icon {
    content: url("/assets/icons/ion_filter-sharp.svg");
  }
  .filter-dropdown-btn:hover,
  .filter-dropdown-btn:focus-visible,
  .filter-dropdown-btn:active,
  .btn.show,
  .btn.show:active,
  .filter-dropdown-btn .fa-xmark,
  .filter-dropdown-btn:hover .fa-caret-down {
    color: #06a59a !important;
    border-color: #06a59a;
  }
  .filter-button {
    display: none;
  }
  .modal-footer {
    padding: 0;
    margin: 0;
    justify-content: space-between;
  }
  .modal-footer button {
    width: -moz-fit-content;
    width: fit-content;
  }
}
.filter-dropdown-btn .fa-xmark {
  display: none;
}

.filter-dropdown-btn.show .fa-caret-down {
  display: none;
}

.filter-dropdown-btn.show .fa-xmark {
  display: block;
}

.filter-dropdown-btn:after {
  display: none;
}
