Doctor visited Rio, taken in by ecological variety (12)
I believe the answer is:
biodiversity
'variety' is the definition.
(I know that biodiversity is a type of variety)
'doctor visited rio taken in by' is the wordplay.
'doctor' indicates an anagram.
'taken in' is an insertion indicator.
'visited'+'rio'='visitedrio'
'visitedrio' anagrammed gives 'iodiversit'.
'iodiversit' going inside 'by' is 'BIODIVERSITY'.
'ecological' is the link.
I am not very happy about this link. It may belong to another bit of the clue.
Can you help me to learn more?
(Other definitions for biodiversity that I've seen before include "(Habitat's) variety of life" , "Ecological variety and richness" .)