A light night rather than a good one
The adjective lahko in lahko noč conveys the idea of a light or easy night. This differs from the literal good-night wording found in many nearby languages. It is best learnt as a fixed expression rather than translated word by word. The Slovenian h in lahko is a sound made towards the back of the mouth, somewhat like the ch in Scottish loch, and č in noč resembles English ch in church.
Speaking to one person or a group
Slovenian distinguishes familiar and polite address, so sleep wishes may change their endings. Lepo spi is appropriate for one familiar person, while dobro spite can address someone politely or several people. Slovenian also has a grammatical dual, used specifically for two people or things. You do not have to master this feature to make a night-time farewell, because lahko noč itself stays the same regardless of the number of people you are addressing.
Language choices on the way home
The official language is Slovenian, with Italian and Hungarian also officially used in designated areas where the respective minorities live. The familiar Italian buonanotte or Hungarian jó éjszakát may therefore be relevant in particular communities. Do not assume that those alternatives are used everywhere. In Slovenian conversation, dober večer serves as an arrival greeting, and the night wish marks a departure or bedtime. This is useful at a family-run accommodation as well as among friends.