<?php
ob_start() ;?>

<!--Nearby Map Section-->
<section class="nearby-map-section bg-lightgrey">
    <div class="auto-container">
        
        <!--Section Title-->
        <div class="sec-title text-center">
            <div class="subtitle-text"><?php echo balanceTags($upper_title);?></div>
            <h2><strong><?php echo balanceTags($title1);?></strong> <?php echo balanceTags($title2);?></h2>
        </div>
        
        <!--Locations-->
        <div class="locations">
            <!--Location Block-->
            <div class="location-block">
                <h4><?php esc_html_e('Shopping', 'tycheproperty');?></h4>
                <ul>
                    <li><?php echo balanceTags($shoping_address1);?></li>
                    <li><?php echo balanceTags($shoping_distance);?></li>
                </ul>
            </div>
            
            <!--Location Block-->
            <div class="location-block">
                <h4><?php esc_html_e('Groceries', 'tycheproperty');?></h4>
                <ul>
                    <li><?php echo balanceTags($groceries_address1);?></li>
                    <li><?php echo balanceTags($groceries_distance);?></li>
                </ul>
            </div>
            
            <!--Location Block-->
            <div class="location-block">
                <h4><?php esc_html_e('School', 'tycheproperty');?></h4>
                <ul>
                    <li><?php echo balanceTags($school_address1);?></li>
                    <li><?php echo balanceTags($school_distance);?></li>
                </ul>
            </div>
            
            <!--Location Block-->
            <div class="location-block">
                <h4><?php esc_html_e('Restaurant', 'tycheproperty');?></h4>
                <ul>
                    <li><?php echo balanceTags($restaurant_address1);?></li>
                    <li><?php echo balanceTags($restaurant_distance);?></li>
                </ul>
            </div>
            
            <!--Location Block-->
            <div class="location-block">
                <h4><?php esc_html_e('Bar', 'tycheproperty');?></h4>
                <ul>
                    <li><?php echo balanceTags($bar_address1);?></li>
                    <li><?php echo balanceTags($bar_distance);?></li>
                </ul>
            </div>
        </div>
        
        <!--Map Box-->
        <div class="map-box wow fadeInUp" data-wow-duration="1500ms" data-wow-delay="0ms">
            <figure class="map-image"><img src="<?php echo esc_url(wp_get_attachment_url($map_image));?>" alt=""></figure>
        </div>
        
    </div>
</section>

<?php
	$output = ob_get_contents(); 
   ob_end_clean(); 
   return $output ; ?>
   