Compartment is somewhat private and warm (4)
I believe the answer is:
snug
'warm' is the definition.
(thesaurus)
I don't understand how the rest of the clue works.
Can you help me to learn more?
(Other definitions for snug that I've seen before include "Well protected or concealed" , "Small bar in pub - warm and comfortable" , "Warm and cosy" , "Cosy and comfortable" , "Compact" .)