<!-- explore-module
	================================================== -->
<section class="explore">
	<div class="explore__side-content">

		<div class="explore__filter explore__filter-side">
	
			<h2 class="heading2 explore__filter-title">
				<?php
				if ( is_post_type_archive() ) {
				    ?>
				    <span><?php esc_html_e('Results For','triptip'); ?>:</span> <?php post_type_archive_title(); ?>
				    <?php
				}else{
				?>
					<span><?php esc_html_e('Results For', 'triptip'); ?>:</span> <?php esc_html_e('Trending Listings', 'triptip'); ?>
				<?php } ?>
			</h2>

			<?php echo do_shortcode('[advancesearch_listing style="column"]'); ?>
			
		</div>
		<div class="explore__box explore__box-side" id="ex-wrap">

			<div class="explore__wrap iso-call">
				<?php
                    $i=1; if(have_posts()) :
                        while(have_posts()) : the_post(); 
                ?>
					<div class="item location-<?php esc_html($i)?>">

						<!-- place-post module -->
						<div class="place-post">
							<div class="place-post__gal-box">
								<?php the_post_thumbnail('', ['class' => 'place-post__image']); ?>
								<?php triptip_post__ratings_get_average(get_the_ID()); ?>
								<?php if( function_exists('get_simple_likes_button') ) echo get_simple_likes_button(get_the_ID());?>
							</div>
							<div class="place-post__content">
								<?php if( function_exists('qkl_working_status') ){ qkl_working_status(); } ?>
								<h2 class="heading2 place-post__title">
									<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
								</h2>
								<p class="place-post__description">
									<?php 
										if( function_exists('qkl_listing_category') ){ qkl_listing_category(get_the_ID()); }
									?>
									
									<?php if( function_exists('triptip_price_range') ){  triptip_price_range(); }  ?>
									
									<span class="place-post__description-review">
										<i class="fa fa-comment-o" aria-hidden="true"></i>
										<?php comments_number( esc_html__('0 Reviews','triptip'), esc_html__('1 Review','triptip'), esc_html__('% Reviews','triptip') ); ?>
									</span>
								</p>
								<?php if(get_post_meta(get_the_ID(), '_triptip_address',true)!=''){ ?>
									<p class="place-post__address">
										<i class="fa fa-map-marker" aria-hidden="true"></i>
										<?php echo esc_html(get_post_meta(get_the_ID(), '_triptip_address',true)) ?>
									</p>
								<?php } ?>
							</div>
						</div>
						<!-- end place-post module -->
						
					</div>

				<?php $i++; endwhile; ?>
				<?php else : ?>
				    <div class="blog-post not-found">
				      <div class="alert alert-danger" role="alert">
				        <strong><?php esc_html_e('Nothing Found Here!','triptip'); ?></strong> <?php esc_html_e('Search with other keyword:', 'triptip') ?>
				      </div>
				    </div>
				<?php endif; ?>
			</div>

			<?php if($wp_query->found_posts>0){ ?>
				<div class="center-button">
					<a class="btn-default btn-default-red load-more" 
						data-cat="<?php echo esc_attr('all'); ?>" 
						data-loc="<?php echo esc_attr('all'); ?>" 
						data-load="<?php echo get_option( 'posts_per_page' ); ?>" 
						data-found="<?php echo esc_attr($wp_query->found_posts); ?>"
						data-layout="full"
						href="#">
						<i class="fa fa-refresh"></i>
						<?php esc_html_e('Load More Listing', 'triptip'); ?>
					</a>
				</div>
			<?php } ?>


		</div>
	</div>

	<div class="explore__map-side">
		<!-- map block
		================================================== -->
		<div id="map" data-map-zoom="9"></div>
		<!-- End map block -->
	</div>	

</section>
<!-- End explore-module -->
