 .custom-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
  }
  .custom-dropdown-toggle {
    max-width: 700px;
    display: flex;
    align-items: center;
    padding: 10px;
    border: 2px solid #ffffff;
    background-color: #f5f5f5;
    transition: border-color 0.2s ease;
    min-height: 50px;
    cursor: pointer;
    border-radius: 12px;
    gap: 5px;
  }
  .custom-dropdown-toggle:hover {
    filter: brightness(0.95);
  }
  .custom-dropdown-toggle:focus-within {
    border-color: #ffffff;
    box-shadow: none;
    filter: brightness(0.95);
  }
  .custom-dropdown-toggle .selected-text {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .custom-dropdown-toggle img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }
  .custom-dropdown-menu {
	
	   max-width: 700px;
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    max-height: 350px;
    overflow-y: auto;
    /* Ensure menu appears above map zoom controls */
    z-index: 1100;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
  }
  .custom-dropdown-menu::-webkit-scrollbar {
    width: 8px;
  }
  .custom-dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  .custom-dropdown-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
  }
  .custom-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }
  .custom-dropdown-menu li {
    padding: 10px;
    list-style: none;
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  .custom-dropdown-menu .dropdown-search-item {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    padding: 8px 10px;
    cursor: default;
  }
  .custom-dropdown-menu .dropdown-search-item:hover {
    background: #fff;
  }
  .custom-dropdown-menu li:hover {
    background-color: #f1f1f1;
  }
  .custom-dropdown-menu img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }
  .custom-dropdown .arrow-up,
  .custom-dropdown .arrow-down {
    flex-shrink: 0;
    margin-left: 5px;
  }
  .custom-dropdown .arrow-up { display: none; }
  .custom-dropdown .arrow-down { display: inline-block; }
  .custom-dropdown.open .arrow-up { display: inline-block; }
  .custom-dropdown.open .arrow-down { display: none; }
  .custom-dropdown-toggle[data-selected="true"] .arrow-up,
  .custom-dropdown-toggle[data-selected="true"] .arrow-down {
    display: none !important;
  }

  .custom-dropdown.drop-up .custom-dropdown-menu {
    top: auto;
    bottom: calc(100% + 5px);
  }
  .custom-dropdown.drop-up .arrow-down {
    display: none;
  }

  .custom-dropdown.drop-up .custom-dropdown-menu {
    top: auto;
    bottom: calc(100% + 5px);
  }
  .clear-icon {
    cursor: pointer;
    margin-left: 5px;
    display: none;
    flex-shrink: 0;
  }
  .custom-dropdown-toggle[data-selected="true"] .clear-icon {
    display: inline;
  }
  .reset-link {
    display: none !important;
  }
  .dropdown-search {
    width: 100%;
    margin: 0;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  .custom-dropdown-toggle input.selected-text {
  background-color: transparent;
  border: none; /* если хотите убрать рамку */
  color: inherit; /* чтобы текст наследовал цвет от родительского элемента */
  outline: none; /* убрать стандартное выделение */
}

.custom-dropdown-toggle:focus {
  outline: none;
  caret-color: transparent;
}
