Italy , Austria , Hungary , and Croatia border Slovenia .
It is bordered by Italy to the west , Austria to the north , Hungary to the northeast , Croatia to the south and southeast , and the Adriatic Sea to the southwest .
Slovenia