/*
 * DROPDOWNS
 * Stiluri pentru dropdown-uri și autocomplete
 */

/* Custom dropdown cu wrap text */
.custom-dropdown {
  position: relative;
  width: 100%;
  font-size: 15px;
}

.custom-selected {
  background: #fff;
  border: 2px solid #e1b922;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  min-height: 40px;
  white-space: normal;
  word-break: break-word;
  box-sizing: border-box;
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid #e1b922;
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.custom-options.fixed-dropdown {
  position: fixed !important;
  z-index: 9999 !important;
  left: 0;
  right: auto;
}

.custom-option {
  padding: 12px;
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
  border-bottom: 1px solid #eee;
}

.custom-option:last-child {
  border-bottom: none;
}

.custom-option:hover {
  background: #f7e7a3;
}

/* Route dropdown container (autocomplete) */
.route-dropdown-container {
  position: relative;
}

.route-dropdown-container input {
  width: 100%;
  padding-right: 30px;
}

.route-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;
  background: white;
  border: 2px solid #e1b922;
  border-top: none;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  display: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
}

.route-suggestions.active {
  display: block;
}

.route-suggestion-item {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

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

.route-suggestion-item:hover {
  background-color: #fff9e6;
}

.route-suggestion-item.selected {
  background-color: #ffeeba;
}

/* Scrollbar pentru dropdown-uri */
.route-suggestions::-webkit-scrollbar,
.custom-options::-webkit-scrollbar {
  width: 8px;
}

.route-suggestions::-webkit-scrollbar-track,
.custom-options::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0 8px 8px 0;
}

.route-suggestions::-webkit-scrollbar-thumb,
.custom-options::-webkit-scrollbar-thumb {
  background: #e1b922;
  border-radius: 4px;
}

.route-suggestions::-webkit-scrollbar-thumb:hover,
.custom-options::-webkit-scrollbar-thumb:hover {
  background: #d12627;
}
