Gender interaction norms are among the most variable customs on earth, ranging from fully casual mixing to societies where unrelated men and women keep careful distance. Rather than memorising rules per country, a few defaults keep you respectful everywhere.
On physical contact: never initiate a handshake across genders in conservative Muslim, Orthodox Jewish, or some other religious contexts; wait to see if a hand is offered, and if not, a smile with a slight nod is perfectly polite. In liberal Western settings, an offered handshake across genders is normal and refusing it would itself be odd. Beyond handshakes, avoid casual touch across genders anywhere conservative, including pats on the arm or shoulder.
On conversation: friendly professional interaction is fine nearly everywhere, but prolonged one-on-one attention, personal compliments on appearance, or persistence after lukewarm responses can be misread in conservative societies and may reflect on the local person more than on you. In some cultures, extended eye contact across genders carries romantic implication, so moderate it. Seating may be gender-separated at religious events, some transport, and traditional gatherings; follow signage and local example. When in doubt, mirror how locals of your own gender behave, and err formal until you understand the setting.