Hi !
first there is no shadda in marhaba,
but yes in the majority of cases where you will see arabic texts, they won't be written with vowels (press and books ...)
and yes we just intuitively know how to pronounce it, I would advise you to read as much as you can with vowels, so that you get familiar with arabic vocab, and then you will recongnize them by memory. Some words change vowels depending on their function in the sentence, if it's the case you just need to analyse the structure.