<?php
ob_start() ;?>

<!--Nearby Style Two-->
<section class="nearby-style-two">
    <div class="auto-container">
        <div class="row clearfix">
            
            <!--Content Column-->
            <div class="content-column col-md-6 col-sm-6 col-xs-12 pull-right">
                <div class="sec-title">
                    <div class="subtitle-text"><?php echo balanceTags($upper_title);?></div>
                    <h2><strong><?php echo balanceTags($title1);?></strong> <?php echo balanceTags($title2);?></h2>
                </div>
                <div class="text"><?php echo balanceTags($text);?></div>
                
                <div class="location-search">
                    <form method="get" action="<?php echo esc_url(home_url('/')); ?>">
                        <div class="form-group">
                            <input type="search" name="search" value="" placeholder="<?php esc_html_e('Shopping Mall, Schools NY', 'tycheproperty')?>">
                            <button type="submit" class="theme-btn btn-style-one"><?php esc_html_e('Search Now', 'tycheproperty')?></button>
                        </div>
                    </form>
                </div>
                
                <!--Locations-->
                <div class="locations">
                    <div class="row clearfix">
                        <!--Location Block-->
                        <div class="col-md-4 col-xs-12 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="col-md-4 col-xs-12 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="col-md-4 col-xs-12 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>
                        
                    </div>
                </div>
                
            </div>
            
            <!--Map Column-->
            <div class="map-column col-md-6 col-sm-6 col-xs-12 pull-left">
                <!--Nearby Locations-->
                <div class="map-outer">
                    <figure class="map-image"><img src="<?php echo esc_url(wp_get_attachment_url($map_image));?>" alt=""></figure>
                </div>
                
            </div>
            
        </div>
    </div>
</section>

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