When it comes to writing any genre, my best recommendation would be to read some books in that genre. An easy mystery series to blow through would be Nancy Drew / Hardy Boys, and some super cool ones that give you much less generic ideas would be Sherlock Holmes.