Loja ( španělsky Comarca de Loja ) je okres ( comarca ) ve Španělsku , součást provincie Granada jako součást autonomního společenství Andalusie .