/* Package Filters Partial Styles */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 40px;
  align-items: center;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 250px;
}

.filter-item.large {
  width: 438px;
}

.filter-item label {
  font-weight: 600;
  font-size: 14px;
  color: #4d4d4d;
}

.select-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  height: 48px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.select-wrapper span {
  font-weight: 600;
  font-size: 14px;
  color: #030303;
}

.select-wrapper img {
  transition: transform 0.3s;
}

.select-wrapper.active img {
  transform: rotate(180deg);
}

.custom-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 10px;
}

.select-wrapper.active .custom-dropdown {
  display: block;
}

.search-container {
  position: relative;
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  background: #f2f2f2;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  color: #030303;
  outline: none;
}

.search-input::placeholder {
  color: #b3b3b3;
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.search-icon path {
  stroke: #e63822;
}

.dropdown-list {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.dropdown-list::-webkit-scrollbar {
  width: 6px;
}

.dropdown-list::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-list::-webkit-scrollbar-thumb {
  background: #e6e6e6;
  border-radius: 10px;
}

.dropdown-item {
  padding: 10px 0;
  font-size: 14px;
  font-weight: 400;
  color: #030303;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
  display: block;
}

.dropdown-item:hover {
  color: #e63822;
  text-decoration: none;
}

@media (max-width: 768px) {
  .filter-container {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    width: 100%;
    /* max-width: 336px; */
    margin-left: auto;
    margin-right: auto;
    height: 55px;
    padding: 0;
  }

  .filter-item {
    gap: 8px;
    /* width: 131px; */
    height: 55px;
  }

  .filter-item label {
    font-size: 10px;
    margin-bottom: 0;
  }

  .select-wrapper {
    height: 34px;
    padding: 10px 4px;
    background: #f2f2f2;
    border: none;
    border-radius: 8px;
    gap: 10px; /* Adjusted from Figma gap to fit better with flex-between */
  }

  .select-wrapper span {
    font-size: 10px;
    line-height: 130%;
  }

  .select-wrapper img,
  .select-wrapper .custom-vector-icon {
    width: 14px;
    height: 14px;
  }

  .custom-dropdown {
    width: 280px;
    left: 0;
    transform: none;
    position: absolute;
    top: calc(100% + 8px);
    bottom: auto;
    padding: 8px;
    z-index: 1001;
    border-radius: 12px;
  }

  .filter-item:last-child .custom-dropdown {
    left: auto;
    right: 0;
  }

  .search-container {
    margin-bottom: 12px;
  }

  .search-input {
    height: 36px;
    font-size: 10px;
    padding: 8px 36px 8px 12px;
  }

  .search-icon {
    width: 14px;
    height: 14px;
    right: 12px;
  }

  .dropdown-list {
    max-height: 250px;
  }

  .dropdown-item {
    padding: 10px 0;
    font-size: 10px;
    font-weight: 500;
    border-bottom: 1px solid #f2f2f2;
  }

  .dropdown-item:last-child {
    border-bottom: none;
  }
}
