.filter .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  color: #fff;
  margin-bottom: 40px;
}

.dropdown {
  width: 208px;
  height: 40px;
  border-radius: 6px;
  background: #ffffff33;
  border: 1px solid #ffffff;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.dropdown .dp_header {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0px 16px;
}
.dropdown .dp_header p {
  width: 140px;
  text-wrap: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown .dp_header span {
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-left: none;
  border-top: none;
  transform: rotate(45deg);
}

.dropdown_inner {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: calc(100% - 48px);
  padding: 24px;
  border-radius: 12px;
  background: linear-gradient(88.14deg, #202939 60.15%, #59729f 318.37%);
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
}

.dropdown_inner.dropOpen {
  opacity: 1;
  visibility: visible;
}

.dp_items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.box {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.box::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  right: 0;
  border: 0.5px solid #d0d5dd;
}

.box.checked::after {
  border-color: #239f21;
  background: #239f21;
}

.box p {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.02em;
  z-index: -1;
}

.filter_desktop_text {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: -0.02em;
}

.filter_mb_text,
.filter_mobile,
.pros {
  display: none;
}

@media (max-width: 1000px) {
  .filter_desktop_text,
  .filter .dropdown {
    display: none;
  }

  .filter_mb_text {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid #fff;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.02em;
  }

  .filter .container {
    justify-content: flex-end;
    margin-bottom: 16px;
  }

  /* Mobile filter */
  .filter_mobile {
    flex-direction: column;
    width: 280px;
    height: 100vh;
    overflow: auto;
    padding: 20px;
    padding-top: 4px;
    padding-bottom: 4px;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 3;
    background: linear-gradient(88.14deg, #202939 99.86%, #59729f 318.37%);
  }

  .dropdown {
    width: 100%;
    height: auto;
    padding: 0px;
    padding-block: 16px;
    border-radius: 0px;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: static;
    z-index: 2;
  }

  .dropdown_inner {
    position: static;
    top: none;
    left: none;
    width: 100%;
    padding: 0px;
    border-radius: 0px;
    background: transparent;
    opacity: 1;
    visibility: visible;
  }

  .dropdown .dp_header {
    justify-content: flex-end;
    flex-direction: row-reverse;
    gap: 10px;
    padding-bottom: 16px;
  }

  .dropdown .dp_header span {
    margin-bottom: 5px;
  }

  .filter_mobile .dropdown_inner.dropOpen {
    opacity: 0;
    visibility: hidden;
    height: 0px;
  }

  .filter_mobile .dropdown:has(.dropOpen) .dp_header span {
    transform: rotate(-45deg);
    margin-bottom: 0px;
    margin-right: 5px;
  }
  .filter_mobile .dropdown:has(.dropOpen) {
    padding-bottom: 4px;
  }

  .mb_filter_line {
    width: 100%;
    height: 1px;
    background: #323c4e;
  }

  .dp_items.stars .box > p {
    display: none;
  }

  .box {
    width: calc(100% - 22px);
    padding-left: 22px;
  }

  .box::after {
    left: 0;
  }

  .box p {
    font-weight: 400;
  }
}
