/* =======================
   Custom Select with Icons for Relocation
   ======================= */

.custom-select-wrapper {
  position: relative;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 48px;
}

.custom-select-trigger:hover {
  border-color: var(--primary-600);
}

.custom-select-trigger.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.custom-select-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
}

.custom-select-text {
  flex: 1;
  font-size: 15px;
  color: var(--text);
}

.custom-select-text.placeholder {
  color: var(--muted);
}

.custom-select-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.custom-select-wrapper.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: none;
}

.custom-select-wrapper.open .custom-select-dropdown {
  display: block;
}

.custom-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.custom-select-option:hover {
  background: color-mix(in srgb, var(--primary-600) 10%, transparent);
}

.custom-select-option.selected {
  background: color-mix(in srgb, var(--primary-600) 15%, transparent);
  font-weight: 600;
}

.custom-select-option-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
}

.custom-select-option-text {
  flex: 1;
  font-size: 15px;
  color: var(--text);
}

/* Hide original select */
.custom-select-wrapper select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
