How does saving work exactly in this game?

Now i know the game is supposed to save by either drinking one of those special drinks, reach a checkpoint in a quest, or sleeping in a bed.

however i have noticed that it does not always save when i sleep. So what are the rules for saving from sleeping? Does it only work while in a city, and even then only work sometimes? So far i have been able to sleep in a hobo bed in a city and it has saved just fine, most of the time. However i can never seem to get it o save when out side a city, so can i only use this method while in town? Also i have slept in that same hobo bed a few times and sometimes it just decides it wont save, even though i slept in it all night. Is this a glitch or am i missing something like a cooldown time between saves?

This would not be the first time i thought something seemed like a glitch but it was instead a mechanic that was either never fully explained or not explained at all in the game. So before i mark this down as just another glitch i would like to make sure that it truely is one.

for me it always saved when I slept in a bed (60h playtime)
(has to be one that is marked with the bed sign on map/compass)
you can also sleep outside of towns in some taverns you can rent a bed either forever (permanent)
or for 1 night. I’d recommend if you have enough money to get a permanent room.
I’m playing on PC

Du musst in deinem Bett schlafen oder in einem Lager denke ich. Dein Bett wird auf der Karte angezeigt(Talmberg,Rattay)

By beds outside i meant like those campl beds. Havent seen a saved game pop up yet from sleeping in one, but i also dont use them very often. Also this bed that didnt save the game is one i have slept in multiple times before and it has saved. It technically isnt owned because it is a hobo refugee bed, but it has worked fairly consistently in the oast, but didnt work the last time. It did recently save because i started a quest, so i was wondering if thst was why (my thought of there might be a cooldown), though it not saving did erase a nice little dice game i had won.

the beds in those camps wont save the game only the ones that are marked with a bed sign
like I said you have to pay for the bed (in taverns) or get it through questing
the only bed that saves in the beginning should be the right side bed in miller pesheks house

Odd because those refugee beds have definitely been working for me. Along with a random free bed in one of the towns. Hence my confusion about the save system. Really wish it was just, you sleep in a bed, the game saves, it would make it much more simple. And there would still be a reason to buy those rooms permanently because they give you access to those awesome storage boxs.

On that note have you been able to purchase a permanent room in rattay? The innkeeper doesnt even have the rent option when i go up to you. Is this room perhaps locked until i get dar enough into the game?

yes you will get a room in rattay when you progress further

Ok thats good. I found it kind of odd that an innkeeper didnt have rooms in an inn to rent.