<div class="package-detail-view">
    <header>
        <h1>{$entry->title}</h1>
        {if !empty($entry->alias)}<small>Ref: {$entry->alias}</small>{/if}
    </header>

    <div class="content-wrapper">
        {* Image handling - assuming 'main_image' is your field alias *}
        {if isset($entry->fielddefs.main_image) && $entry->fielddefs.main_image.value}
            <div class="main-image">
                <img src="{uploads_url}/{$entry->fielddefs.main_image.value}" alt="{$entry->title}">
            </div>
        {/if}

        <div class="description">
            <h3>Package Overview</h3>
            {* Assuming 'description' is your textarea/wysiwyg field *}
            {$entry->fielddefs.description.value}
        </div>

        <aside class="sidebar">
            <div class="booking-info">
                {if isset($entry->fielddefs.price)}
                    <div class="price-tag">
                        Rate: <strong>{$entry->fielddefs.price.value}</strong>
                    </div>
                {/if}
                
                <a href="{cms_selflink href='contact'}" class="btn-book">Inquire Now</a>
            </div>
        </aside>
    </div>
</div>