A comprehensive review of geometrical thermodynamics: From fluctuations to black holes