<style>  .long-menuno .header {
    height: 80px;
}
.button_icon-style3{     width: 18px;
    height: 18px;
    display: inline-block;
    position: relative;
    top: 2px;
    margin-left: -7px;}
.header {
    padding: 20px 0; 
    background: #102448;
}
@media only screen and (min-width: 992px) {
#header .header .logo img {
    max-height: 53px;
    top: 0px;
    margin-top: 0px;
    position: absolute;
    top: -7px;
}

}
#header {
    position: relative;
}
  .grid .col-lg-4 {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}.blog.list-project .posts-list.grid .post-img {
    min-height: unset;
    height: 270px;
}
    .blog.list-project .posts-list .post-img {
    position: relative;
    background-size: cover;
    background-position: center;
}.blog.list-project .posts-list .post-img a {
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}.blog.list-project .posts-list .post-img { 
    background-repeat: no-repeat;
}
.posts-list.grid{ display:block;}
.posts-list.grid { 
    margin-left: -10px;
    margin-right: -10px;
}.posts-list.grid .col-sm-4 {
    position: absolute;
    margin: 0 !important;
    right: 15px;
}
.posts-list.grid .d-logo-s {
    position: absolute;
    width: 50px;
    height: 50px;
    padding: 0px;
    border-radius: 50%;
    overflow: hidden;
    right: 6px;
    left: unset;
    bottom: 13px;
}.posts-list.grid .dev_logo img { object-fit: cover!important; }.posts-list.grid .col-sm-8{ width:100%; }
.price-text { 
    white-space: nowrap;
}
.spl-margin-list{ margin-top:7px;}
.posts-list.list .main-li {
    width: 100%;
    margin-bottom: 15px;
}.action-grid {
    max-width: 113px !important;
    justify-content: space-between;
}
.offplanlisting .only-small-screen { display:none !important;}
@media only screen and (max-width: 768px) {
  html  .offplanlisting   .list-banner-home  .no-list-normal {
    display: none !inportant;
}
  html  .offplanlisting   ul.srch-ul::before {
    content:unset; 
}html  .offplanlisting .only-small-screen {
    display: initial !important;
}

html  .offplanlisting  .only-small-screen.open-filre {
    display: none !important;
}body.open-filter  .offplanlisting .only-small-screen.open-filre {
    display: block!important;
}
    html ul.srch-ul {
    z-index: 1020;
    background-color: #fff!important;
    border: 0px solid #d4dbdb;
    position: unset;
    position: -webkit-sticky;
    top: 0;
    width: 100%;
    z-index: 1020;
    border-radius: 0px;
    padding-left: 30px !important;
    padding-right: 30px !important;
    display: flex;
    flex-direction: column;
}html .mob-opener.mob-opener-offplan {
    display: flex !important;
    margin-left: -10px;
    margin-right: -15px;
    margin-top: 7px;
}
#filter-sticky.offplanlisting {
    padding-top: 7px; 
}
  .blog.list-project.pd-top-0 { padding-top:0px !important;}
  #filter-sticky.offplanlisting .list-banner-home .typeahead__query::before {
    ;
    left: 8px;
    top: 11px; 
}html body.open-filter  .list-banner-home { 
    z-index: 111111111;
}html body.open-filter .offplanlisting .mob-opener {
    display: none !important;
}body.open-filter  #btm-srch {
    display: flex !important;
    max-width: 100% !important;
    border: 0px;
    align-items: center;
    justify-content: center;
    line-height: 1;
}body.open-filter #btm-srch .btn {
    margin-top: 0px;
    width: 100%;
    margin-left: 14px;
    border-radius: 8px;
    height: 56px;
    margin-left: 10px;
    margin-bottom: 0px;
}body.open-filter .list-banner-home .no-list-normal select{ min-width:100%;background-color:#fff !important;}
html body.open-filter #close-btn { 
    display: flex !important;
}
}
</style>
<script>
     function resetthistfield(k){ 
         jQuery('#keyword1').val("");jQuery("#btn_submit").click(); 
      }
</script>
<div hidden>
    <svg id="loc" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs" width="18" height="18" x="0" y="0" viewBox="0 0 100 100" style="enable-background:new 0 0 512 512" xml:space="preserve" class=""><g><g data-name="Layer 50"><path d="M50 3a34.531 34.531 0 0 0-34.492 34.492c0 18.449 31.601 57.14 32.947 58.778a2 2 0 0 0 3.09 0c1.346-1.639 32.947-40.33 32.947-58.778A34.531 34.531 0 0 0 50 3zm0 88.803c-6.404-8.083-30.492-39.474-30.492-54.31a30.492 30.492 0 1 1 60.984 0c0 14.836-24.088 46.227-30.492 54.31z" fill="currentColor" data-original="currentColor"></path><path d="M50 22.265a14.077 14.077 0 1 0 14.077 14.077A14.093 14.093 0 0 0 50 22.265zm0 24.153a10.077 10.077 0 1 1 10.077-10.076A10.088 10.088 0 0 1 50 46.418z" fill="currentColor" data-original="currentColor"></path></g></g></svg>
</div>
 
   <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js"></script>
   
   <div class="mtop-cls1 offplanlisting" id="filter-sticky">
     
  <?php $this->renderPartial('//listings/_listing_filter');?>
    </div>
 
    <!-- ======= Blog Section ======= -->
    <section id="blog" class="blog list-project pt-0 pd-top-0">
      <div class="container" data-aos="fade-up">

        <div class="row g-5">
            
            <div class="d-flex w-100">
                    <div class="flex1">
                    <h2 class="title site-h2"><?php echo $pageTitle;?></h2>
                    <?php
                    if(!empty($ads)){ ?>
                    <p class="mt-0"><?php echo $adsCount;?> Projects Found</p>
                    <?php  } ?> 
                    </div>
                     <?php
                    if(!empty($ads)){ ?>
                    <div class="flex1 action-grid d-flex">
                        <a href="javascript:void(0)" data-val='grid' <?php echo $view=='list' ? 'onclick="setthisvalview(this)"':'';?>  class="<?php echo $view=='grid' ? 'active':'';?>">
                        <i class="bi bi-grid active"></i> Grid
                        </a>
                       
                        <a href="javascript:void(0)"  data-val='list' <?php echo $view=='grid' ? 'onclick="setthisvalview(this)"':'';?> class="<?php echo $view=='list' ? 'active':'';?>">
                        <i class="bi bi-list"></i> List
                        </a>
                          
                    </div>
                    <?php } ?> 
          </div>
            <?php
            if(!empty($ads)){ ?>
        <ul id="clearfrm">
            
             <?php
                    if(!empty($formData['keyword'])){ ?> 
                    <li data-name="keyword"><?php echo $formData['keyword'];?> <i class="bi bi-x-square-fill" onclick="resetthistfield(this)"></i></li> 
                    <?php } ?>
        </ul> 
          
          <?php } ?> 
      
        
          <div class="col-lg-12 mt-0">
               
            <?php
            if(!empty($ads)){ ?>
            <div class="row gy-4 posts-list <?php echo $view;?>">
            <?php
            foreach($ads as $k=>$v){  $image =  $v->OffplanImage; ?>
              <div class="col-lg-4 main-li">
                <article class="d-flex flex-column">

                  <div class="post-img lozad" data-background-image="<?php echo  $image ;?>" >
                      <ul class="attrribute-ul">
                          <?php echo $v->AtttributePropertyDetails;?>
                      </ul>
                       <a href="<?php echo $v->DetailUrl;?>"></a>
                 
                  </div>
                  <div class="contentcls">
                     <div class="row">
                         <div class="col-sm-8"> 
                                 <h2 class="title"><a href="<?php echo $v->DetailUrl;?>"><?php echo $v->adTitle;?></a>   </h2>
                                 <div class="row mt-1 mb-1 spl-margin-list">
                                         <div class="col-sm-12">
                                              <svg   class="button_icon-style3"> <use xlink:href="#loc"></use> </svg> <?php echo $v->CommunityTitle;?></li> 
                                         </div>
                                 
                                 </div>
                        </div>
                        <div class="col-sm-4" style="margin:20px 0 0 0">  
                        <span class="dev_logo d-logo-s" title="<?php echo $v->developer_name;?>"><img src="<?php echo $v->bgImage;?>" alt="<?php echo $v->developer_name;?>"></span> 
                        </div>
                    </div>
                  
                  
                      <div class="row">
                        <div class="col-sm-12"> 
                       <div class="price-text  at-latest"><?php if($v->p_o_r !='1'){ ?> <span class="startingfrom">Starting From</span> <?php }  echo $v->PriceTitleDetail;?>  </div>
                      </div>
                      <div class="col-sm-4" style="    display: none;    align-items: center;    justify-content: center;"> <div class="read-more w-100 align-center" style="    justify-content: flex-end;    display: flex;"><a href="<?php echo $v->DetailUrl;?>">View Details</a> </div></div>  </div>
                  
                 </div>

                </article>
              </div><!-- End post list item -->
               
            <?php } ?> 
            </div><!-- End blog posts list -->
<div class="blog-pagination" style="margin-top: 50px;">
									<?php $this->widget('CLinkPager', array(
									'pages'         => $pages,
									'htmlOptions'   => array('class' => 'justify-content-center'),
									'header'        => false,
									'cssFile'       => false                
									)); ?>
									</div>
									<?php
									if(!empty($pages->pageCount>1)){
									    ?>
									     <div class="d-block text-center mt-4"><?php echo Yii::t('app',$this->tag->getTag('viewing_page_{c}_of_{t}','Viewing Page {c} of {t}'),array('{c}'=>$pages->currentPage+1,'{t}'=>'<strong>'.$pages->pageCount.'</strong>'));?>
									     </div>
                
									    <?php
									}
           } 
            else{
                $this->renderPartial('_empty_result'); 
            }
            
            
            ?>

          </div>

          
        </div>

      </div>
    </section><!-- End Blog Section -->
  <script> 
        const observer = lozad('.lozad', {
    rootMargin: '10px 0px', // syntax similar to that of CSS Margin
    threshold: 0.1, // ratio of element convergence
    enableAutoReload: true // it will reload the new image when validating attributes changes
});

observer.observe(); 
              
          </script>