<?php
// Check if the form was submitted
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    // Set a cookie with the current timestamp and expiration (e.g., 24 hours)
    setcookie('lastSubmitted', time(), time() + (24 * 60 * 60), "/");
    // Redirect to the same page to prevent form resubmission
    header("Location: https://www.crowncrestrealty.com/thank-you");
    exit();
}

// Check if the cookie exists and calculate the remaining time
$formHidden = false;
if (isset($_COOKIE['lastSubmitted'])) {
    $lastSubmitted = $_COOKIE['lastSubmitted'];
    $hidePeriod = 24 * 60 * 60; // 24 hours
    $remainingTime = ($lastSubmitted + $hidePeriod) - time();
    if ($remainingTime > 0) {
        $formHidden = true;
    }
}
?>


<?php include('include/head.php'); ?>

  <style>
        /* Modal styles */
        #modal {
            display: none;
            position: fixed;
            z-index: 999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgb(0,0,0);
            background-color: rgba(0,0,0,0.4);
            padding-top: 60px;
        }
        #modalContent {
            background-color: #fefefe;
            /*margin: 5% auto;*/
            /*padding: 20px;*/
            /*border: 1px solid #888;*/
            /*width: 80%;*/
        }
        #closeModal {
            float: right;
            cursor: pointer;
        }
    </style>
    <script>
        document.addEventListener("DOMContentLoaded", function() {
            const modal = document.getElementById('modal');
            const formHidden = <?php echo json_encode($formHidden); ?>;
            
            if (!formHidden) {
                modal.style.display = 'block';
            }
            
            document.getElementById('closeModal').addEventListener('click', function() {
                modal.style.display = 'none';
            });

            window.onclick = function(event) {
                if (event.target == modal) {
                    modal.style.display = 'none';
                }
            };
        });
    </script>
    
  <body class="tt-magic-cursor">

<div class="modal" id="modal">
    <div class="modal-dialog">
      <div class="modal-content">
      
        <!-- Modal Header -->
        <div class="modal-header">
          <h4 class="modal-title">Invest With Us</h4>
          <span id="closeModal" style="font-size: 40px;">&times;</span>
        </div>
        
        <!-- Modal body -->
        <div class="modal-body">
            <div id="modalContent">
          <form method="POST" id="enquiry-form" action="include/form.php">

										<div class="row">
											<div class="form-group col-md-12 mb-3">
												<input type="text" name="invest-name" class="form-control" id="name" placeholder="Name" required>
												<div class="help-block with-errors"></div>
											</div>
		
											<div class="form-group col-md-12 mb-3">
												<input type="email" name="invest-email" class="form-control" id="email" placeholder="Email" required>
												<div class="help-block with-errors"></div>
											</div>
		
											<div class="form-group col-md-12 mb-3">
												<input type="text" name="invest-phone" class="form-control phone" id="phone" placeholder="Phone" required>
												<div class="help-block with-errors"></div>
											</div>
											
										<!--	<div class="form-group col-md-12 mb-3">-->
										<!--	<select class="form-control" name="invest-property" style="color: #000;" required>-->
											   
										<!--	  <option value="">Property Type</option>-->
										<!--	    <option value="1 RK Studio">1 RK Studio</option>-->
											    
										<!--	    <option value="1 BHK, 2BHK, 3BHK">1 BHK, 2BHK, 3BHK</option>-->
											    
										<!--	     <option value="Ayodhya-Resident Plots">Ayodhya-Resident Plots</option>-->
											     
										<!--	     <option value="Commercial Plots">Commercial Plots </option>-->
											     
										<!--	      <option value="Hotel Plots">Hotel Plots </option>-->
										<!--	      <option value="Farm Lands"> Farm Lands </option>-->
										<!--	</select>-->
										<!--</div>-->
		
										<!--	 <div class="form-group col-md-12 mb-3">-->
										<!--		<select class="form-control" name="invest-budget" style="color: #000;" required>-->
										<!--	    <option value="">Budget</option>-->
										<!--	    <option value="50 lac - 1cr">50 lac - 1cr</option>-->
										<!--	     <option value="1cr - 2cr">1cr - 2cr</option>-->
										<!--	     <option value="2cr - 3cr">2cr - 3cr</option>-->
										<!--	     <option value="Above 3cr">Above 3cr</option>-->
										<!--	</select>-->
										<!--		<div class="help-block with-errors"></div>-->
										<!--	</div> -->
							                  <div class="g-recaptcha form-group col-md-12 mb-3" data-sitekey="6Lcxg74qAAAAAKYSb_bcCrScIsNeoVCOUomCKG50"></div>

		
											<!-- <div class="form-group col-md-12 mb-3">
												<textarea name="msg" class="form-control" id="msg" rows="4" placeholder="Write a Message" required></textarea>
												<div class="help-block with-errors"></div>
											</div> -->
		
										   <div class=" text-center">
											 <button type="submit" name="send-message" class="btn-default btn-dark">Send Message</button>
                      </div>
											  <!--<div id="msgSubmit" class="h3 text-left hidden"></div>-->
										</div>
										</div>
										
									</form>
									</div>
        </div>
        
        
      </div>
    </div>
  </div>
  
<!--<div id="modal">-->
<!--        <div id="modalContent">-->
<!--            <span id="closeModal">&times;</span>-->
<!--            <form method="post" action="">-->
<!--                <label for="name">Name:</label>-->
<!--                <input type="text" id="name" name="name" required>-->
<!--                <br>-->
<!--                <label for="email">Email:</label>-->
<!--                <input type="email" id="email" name="email" required>-->
<!--                <br>-->
<!--                <input type="submit" value="Submit">-->
<!--            </form>-->
<!--        </div>-->
<!--    </div>-->

    <!-- Magic Cursor Start -->
    <div id="magic-cursor">
      <div id="ball"></div>
    </div>
    <!-- Magic Cursor End -->


	<?php include('include/header.php'); ?>
  
    <!-- Hero Section Start -->
    <div class="hhh hero-slider d-none">
      <div class="hero-section">
        <!-- Hero Carousel Start -->
        <div class="hero-carousel">
          <div class="swiper">
            <div class="swiper-wrapper">
              <?php
              $banner = mysqli_query($conn, "SELECT * FROM `banner` where bannertype='home'");
              while($ban = mysqli_fetch_array($banner))
              {
                  $img = $ban['image'];
                  $heading = $ban['heading'];
                  $para = $ban['paragraph'];
              ?>
              <!-- Hero Slide Start -->
              <div class="swiper-slide">
                <div class="hero-slide">
                  <div class="hero-slide-image">
                    <img src="<?php path(); ?>/assets/images/banner/<?php echo $img; ?>" alt="" />
                  </div>

                  <div class="hero-content">
                    <div class="section-title">
                      <h1><?php echo $heading; ?></h1>
                      <p style="color: #fff;"><?php echo $para; ?></p>
                    </div>
                    <!--<div class="hero-content-body">-->
                    <!--  <p>-->
                    <!--    Duis ultricies, tortor a accumsan fermentum, purus diam-->
                    <!--    mollis velit, eu bibendum ipsum erat quis leo.-->
                    <!--    Vestibulum finibus, leo dapibus feugiat rutrum, augue-->
                    <!--    lacus rhoncus velit, vel scelerisque odio est.-->
                    <!--  </p>-->
                    <!--</div>-->

                    <div class="hero-content-footer">
                      <a href="<?php path(); ?>/Uttarakhand" class="btn-default btn-border">View Property</a>
                      <a href="<?php path(); ?>/contact.php" class="btn-default btn-border">Contact Now</a>
                    </div>
                  </div>
                </div>
              </div>
              <!-- Hero Slide End -->
              <?php
              }
              ?>
            </div>

            <div class="hero-button-prev"></div>
            <div class="hero-button-next"></div>
          </div>
        </div>
        <!-- Hero Carousel End -->
      </div>
    </div>
     
    <!-- Hero Section End -->
   <div class="video_container">
 <video autoplay muted loop playsinline class="video_window" id="bgVideo">
    <source src="assets/images/banner/video.mp4" type="video/mp4">
   
  </video>
</div>
    
    
<!--    <div id="demo" class="carousel slide d-none d-sm-none d-md-block d-lg-block" data-ride="carousel">-->

  
<!--  <ul class="carousel-indicators">-->
<!--    <li data-target="#demo" data-slide-to="0" class="active"></li>-->
<!--    <li data-target="#demo" data-slide-to="1"></li>-->
<!--    <li data-target="#demo" data-slide-to="2"></li>-->
<!--  </ul>-->
  
  
<!--  <div class="carousel-inner">-->
<!--    <div class="carousel-item active">-->
<!--      <img src="<?php path(); ?>/images/banner-1.webp" alt="Los Angeles" class="w-100">-->
<!--    </div>-->
<!--    <div class="carousel-item">-->
<!--      <img src="<?php path(); ?>/images/banner-2.webp" alt="Chicago" class="w-100">-->
<!--    </div>-->
<!--    <div class="carousel-item">-->
<!--      <img src="<?php path(); ?>/images/banner-3.webp" alt="New York" class="w-100">-->
<!--    </div>-->
<!--  </div>-->
  
  
<!--  <a class="carousel-control-prev" href="#demo" data-slide="prev">-->
<!--    <span class="carousel-control-prev-icon"></span>-->
<!--  </a>-->
<!--  <a class="carousel-control-next" href="#demo" data-slide="next">-->
<!--    <span class="carousel-control-next-icon"></span>-->
<!--  </a>-->
<!--</div>-->

<!--<div id="demo" class="carousel slide d-block d-sm-block d-md-none d-lg-none" data-ride="carousel">-->

 
<!--  <ul class="carousel-indicators">-->
<!--    <li data-target="#demo" data-slide-to="0" class="active"></li>-->
<!--    <li data-target="#demo" data-slide-to="1"></li>-->
<!--    <li data-target="#demo" data-slide-to="2"></li>-->
<!--  </ul>-->
  
 
<!--  <div class="carousel-inner">-->
<!--    <div class="carousel-item active">-->
<!--      <img src="<?php path(); ?>/images/mobile-view-1.webp" alt="Los Angeles" width="1100" height="500">-->
<!--    </div>-->
<!--    <div class="carousel-item">-->
<!--      <img src="<?php path(); ?>/images/mobile-view-2.webp" alt="Chicago" width="1100" height="500">-->
<!--    </div>-->
<!--    <div class="carousel-item">-->
<!--      <img src="<?php path(); ?>/images/mobile-view-3.webp" alt="New York" width="1100" height="500">-->
<!--    </div>-->
<!--  </div>-->
  

<!--  <a class="carousel-control-prev" href="#demo" data-slide="prev">-->
<!--    <span class="carousel-control-prev-icon"></span>-->
<!--  </a>-->
<!--  <a class="carousel-control-next" href="#demo" data-slide="next">-->
<!--    <span class="carousel-control-next-icon"></span>-->
<!--  </a>-->
<!--</div>-->

 <!-- About Section Start -->
    <div class="about-us" style="margin-bottom: 45px;">
      <div class="container">
        <div class="row align-items-center">
            
            <div class="col-lg-6">
            <!-- About Content Start -->
            <div class="about-content">
              <!-- Section Title Start -->
              <div class="section-title">
                <h3 class="wow fadeInUp text-dark"></h3>
                <h2 class="text-anime">
                  About Crown Crest
                </h2>
              </div>
              <!-- Section Title End -->

              <!-- About Content Body Start -->
              <div class="about-content-body">
                <p class="wow fadeInUp text-dark" data-wow-delay="0.5s">
            Our journey began with two directors, both seasoned professionals, who shared a deep passion for combining luxury with tranquillity. This passion drove them to redefine holiday living, offering customers unique retreats that blend comfort, elegance, and the beauty of nature. The company is headquartered at Gurugram, Haryana. </p>

                <ul>
                  <li class="wow fadeInUp" data-wow-delay="0.75s">
                    <div class="icon-box icn" >
                      <img src="images/icon-about-1.svg" alt="" />
                    </div>
                    <span class="text-dark">Prime Location with exceptional views</span>
                  </li>

                  <li class="wow fadeInUp" data-wow-delay="1s">
                    <div class="icon-box icn">
                      <img src="images/icon-about-2.svg" alt="" />
                    </div>
                    <span class="text-dark">Low Investment with High Yielding Returns</span>
                  </li>

                  <li class="wow fadeInUp" data-wow-delay="1.25s">
                    <div class="icon-box icn">
                      <img src="images/icon-about-3.svg" alt="" />
                    </div>
                    <span class="text-dark">Personalised Construction, Designs & Interiors</span>
                  </li>

                  <li class="wow fadeInUp" data-wow-delay="1.5s">
                    <div class="icon-box icn">
                      <img src="images/icon-about-4.svg" alt="" />
                    </div>
                    <span class="text-dark">Secured & Gated Society</span>
                  </li>
                </ul>

                <a
                  href="story.php"
                  class="btn-default wow fadeInUp"
                  data-wow-delay="1.75s"
                  >Read More</a
                >
              </div>
              <!-- About Content Body End -->
            </div>
            <!-- About Content End -->
          </div>
            
          <div class="col-lg-6">
            <!-- About Left Image Start -->
            <div class="about-images">
              <div class="about-video">
                <figure class="reveal image-anime">
                  <img src="images/about-in-3.webp" alt="" />
                </figure>

                <!--<div class="video-play-button">-->
                <!--  <a-->
                <!--    href="https://www.youtube.com/embed/gY6X5sEbu4c?si=9cMW4pIz93DUjMDh"-->
                <!--    class="popup-video"-->
                <!--  >-->
                       <!--class="popup-video"-->
                <!--    <img src="images/icon-play.svg" alt="" />-->
                <!--  </a>-->
                <!--</div>-->
              </div>

              <div class="about-image">
                <figure class="reveal image-anime">
                  <img src="images/about-in-2.webp" alt="" />
                </figure>
              </div>
            </div>
            <!-- About Left Image End -->
          </div>
          
        </div>
      </div>
    </div>
    <!-- About Section End -->

    <section id="portfolio" class="portfoio mt-5">
      <div class="container" data-aos="fade-up">
        <div class="row">
          <div class="col-md-12">
            <div class="section-title">
              <h2 class="text-anime">Projects</h2>
			  <div class="container">
				<!-- Nav pills -->
				<ul class="nav nav-pills justify-content-center pt-4" role="tablist">
				  <li class="nav-item dd ddd">
					<a class="nav-link active" data-bs-toggle="pill" href="#home">Ongoing</a>
				  </li>
				  
				  <li class="nav-item dd ddd">
					<a class="nav-link" data-bs-toggle="pill" href="#menu1">Upcoming</a>
				  </li>
				  
				 <!-- <li class="nav-item dd ddd">-->
					<!--<a class="nav-link" data-bs-toggle="pill" href="#menu2">Completed</a>-->
				 <!-- </li>-->
				  
				 <!-- <li class="nav-item dd ddd">-->
					<!--<a class="nav-link" data-bs-toggle="pill" href="#menu3">Resale</a>-->
				 <!-- </li>-->
				  
				</ul>
			  
				<!-- Tab panes -->
				<div class="tab-content col-lg-12">
				  <div id="home" class="container tab-pane active"><br>
					<!-- Property Slider Start -->
					<div class="property-slider">
						<div class="swiper">
							<div class="swiper-wrapper">
							    <?php
            $pro = mysqli_query($conn, "SELECT * FROM `project` where category='29'");
            while($rok = mysqli_fetch_array($pro))
            {
                $project_name = $rok['project_name'];
                $location = $rok['location'];
                $Address = $rok['Address'];
                $city = $rok['city'];
                $state = $rok['state'];
                $country = $rok['country'];
                $price = $rok['price'];
                $rea = $rok['rera_no'];
                $slug_top = $rok['slug'];
                $p_id = $rok['id'];
                
                
                $str = $state; 
  
               $str = str_replace(' ', '-', $str);

                
                $img = mysqli_query($conn, "SELECT * FROM `project_img` where pid='$p_id'");
                while($rol = mysqli_fetch_array($img))
                {
                    $photo = $rol['photo'];
                }
            ?>
								<div class="swiper-slide">
									<div class="property-item mb-5">
                      <!-- Property Item Header Start -->
                      <div class="property-header">
                        <figure class="image-anime">
                          <img src="<?php path(); ?>/assets/images/project/<?php echo $photo; ?>" alt="">
                        </figure>
  
                        <!--<span class="property-label">Sell</span>-->
                      </div>
                      <!-- Property Item Header End -->
  
                      <div class="property-body">
                        <h3 class="mb-0"><?php echo $project_name; ?></h3>
                        <div class="property-meta">
                          <div class="property-amenity-item">
                            <!-- <div class="icon-box">
                              <img src="images/locat (2).svg" alt="">
                            </div> -->
                            <span class="text-dark" style="font-size: 14px; text-align: left; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;"> <?php echo $Address; ?> <?php echo $city; ?> <?php echo $state; ?> <?php echo $country; ?> </span>
                          </div>
                        </div>
                        <!--<div class="property-meta">-->
                        <!--  <div class="property-amenity-item">-->
                        <!--    <span class="text-dark mb-2"><b>Rera No: </b><?php //echo $rea; ?> </span>-->
                        <!--  </div>-->
                        <!--</div>-->
                      </div>
                      <!-- Property Item Footer Start -->
                      <div class="property-footer">
                        <p class="property-price">₹ <?php echo $price; ?></p>
                        <a href="<?php path(); ?>/<?php echo $str; ?>/<?php echo $slug_top; ?>" class="btn-default">View Property</a>
                      </div>
                    </div>
								</div>
								<?php
            }
								?>
							</div>
							
							<div class="swiper-pagination"></div>
						</div>
					</div>
					<!-- Property Slider End -->
				  </div>
				  <div id="menu1" class="container tab-pane fade"><br>
					<!-- Property Slider Start -->
					<div class="property-slider">
						<div class="swiper">
							<div class="swiper-wrapper">
								 <?php
            $pro = mysqli_query($conn, "SELECT * FROM `project` where category='30'");
            while($rok = mysqli_fetch_array($pro))
            {
                $project_name = $rok['project_name'];
                $location = $rok['location'];
                $Address = $rok['Address'];
                $city = $rok['city'];
                $state = $rok['state'];
                $country = $rok['country'];
                $price = $rok['price'];
                $rea = $rok['rera_no'];
                $slug_top = $rok['slug'];
                $p_id = $rok['id'];
                
                $img = mysqli_query($conn, "SELECT * FROM `project_img` where pid='$p_id'");
                while($rol = mysqli_fetch_array($img))
                {
                    $photo = $rol['photo'];
                }
            ?>
								<div class="swiper-slide">
									<div class="property-item mb-4">
                      <!-- Property Item Header Start -->
                      <div class="property-header">
                        <figure class="image-anime">
                          <img src="<?php path(); ?>/assets/images/project/<?php echo $photo; ?>" alt="">
                        </figure>
  
                        <!--<span class="property-label">Sell</span>-->
                      </div>
                      <!-- Property Item Header End -->
  
                      <div class="property-body">
                        <h3 class="mb-0"><?php echo $project_name; ?></h3>
                        <div class="property-meta">
                          <div class="property-amenity-item">
                            <!-- <div class="icon-box">
                              <img src="images/locat (2).svg" alt="">
                            </div> -->
                            <span class="text-dark" style="font-size: 14px;"><?php echo $Address; ?>, <?php echo $city; ?>, <?php echo $state; ?>, <?php echo $country; ?> </span>
                          </div>
                        </div>
                        <div class="property-meta">
                          <div class="property-amenity-item">
                            <span class="text-dark mb-2"><b>Rera No: </b><?php echo $rea; ?> </span>
                          </div>
                        </div>
                      </div>
                      <!-- Property Item Footer Start -->
                      <div class="property-footer">
                        <p class="property-price">₹ <?php echo $price; ?></p>
                        <a href="<?php path(); ?>/<?php echo $slug; ?>/<?php echo $slug_top; ?>" class="btn-default">View Property</a>
                      </div>
                    </div>
								</div>
								<?php
            }
								?>
							</div>
							
							<div class="swiper-pagination"></div>
						</div>
					</div>
					<!-- Property Slider End -->
				  </div>
				  <div id="menu2" class="container tab-pane fade"><br>
					<!-- Property Slider Start -->
					<div class="property-slider">
						<div class="swiper">
							<div class="swiper-wrapper">
								 <?php
            $pro = mysqli_query($conn, "SELECT * FROM `project` where category='31'");
            while($rok = mysqli_fetch_array($pro))
            {
                $project_name = $rok['project_name'];
                $location = $rok['location'];
                $Address = $rok['Address'];
                $city = $rok['city'];
                $state = $rok['state'];
                $country = $rok['country'];
                $price = $rok['price'];
                $rea = $rok['rera_no'];
                $slug_top = $rok['slug'];
                $p_id = $rok['id'];
                
                $img = mysqli_query($conn, "SELECT * FROM `project_img` where pid='$p_id'");
                while($rol = mysqli_fetch_array($img))
                {
                    $photo = $rol['photo'];
                }
            ?>
								<div class="swiper-slide">
									<div class="property-item mb-4">
                      <!-- Property Item Header Start -->
                      <div class="property-header">
                        <figure class="image-anime">
                          <img src="<?php path(); ?>/assets/images/project/<?php echo $photo; ?>" alt="">
                        </figure>
  
                        <!--<span class="property-label">Sell</span>-->
                      </div>
                      <!-- Property Item Header End -->
  
                      <div class="property-body">
                        <h3 class="mb-0"><?php echo $project_name; ?></h3>
                        <div class="property-meta">
                          <div class="property-amenity-item">
                            <!-- <div class="icon-box">
                              <img src="images/locat (2).svg" alt="">
                            </div> -->
                            <span class="text-dark" style="font-size: 14px;"> <?php echo $Address; ?>, <?php echo $city; ?>, <?php echo $state; ?>, <?php echo $country; ?> </span>
                          </div>
                        </div>
                        <div class="property-meta">
                          <div class="property-amenity-item">
                            <span class="text-dark mb-2"><b>Rera No: </b><?php echo $rea; ?> </span>
                          </div>
                        </div>
                      </div>
                      <!-- Property Item Footer Start -->
                      <div class="property-footer">
                        <p class="property-price">₹ <?php echo $price; ?></p>
                        <a href="<?php path(); ?>/<?php echo $slug; ?>/<?php echo $slug_top; ?>" class="btn-default">View Property</a>
                      </div>
                    </div>
								</div>
								<?php
            }
								?>
							</div>
							
							<div class="swiper-pagination"></div>
						</div>
					</div>
					<!-- Property Slider End -->
				  </div>
				  <div id="menu3" class="container tab-pane fade"><br>
					<!-- Property Slider Start -->
					<div class="property-slider">
						<div class="swiper">
							<div class="swiper-wrapper">
								 <?php
            $pro = mysqli_query($conn, "SELECT * FROM `project` where category='31'");
            while($rok = mysqli_fetch_array($pro))
            {
                $project_name = $rok['project_name'];
                $location = $rok['location'];
                $Address = $rok['Address'];
                $city = $rok['city'];
                $state = $rok['state'];
                $country = $rok['country'];
                $price = $rok['price'];
                $rea = $rok['rera_no'];
                $slug_top = $rok['slug'];
                $p_id = $rok['id'];
                
                $img = mysqli_query($conn, "SELECT * FROM `project_img` where pid='$p_id'");
                while($rol = mysqli_fetch_array($img))
                {
                    $photo = $rol['photo'];
                }
            ?>
								<div class="swiper-slide">
									<div class="property-item mb-4">
                      <!-- Property Item Header Start -->
                      <div class="property-header">
                        <figure class="image-anime">
                          <img src="<?php path(); ?>/assets/images/project/<?php echo $photo; ?>" alt="">
                        </figure>
  
                        <!--<span class="property-label">Sell</span>-->
                      </div>
                      <!-- Property Item Header End -->
  
                      <div class="property-body">
                        <h3 class="mb-0"><?php echo $project_name; ?></h3>
                        <div class="property-meta">
                          <div class="property-amenity-item">
                            <!-- <div class="icon-box">
                              <img src="images/locat (2).svg" alt="">
                            </div> -->
                            <span class="text-dark" style="font-size: 14px;"><?php echo $Address; ?>, <?php echo $city; ?>, <?php echo $state; ?>, <?php echo $country; ?> </span>
                          </div>
                        </div>
                        <div class="property-meta">
                          <div class="property-amenity-item">
                            <span class="text-dark mb-2"><b>Rera No: </b><?php echo $rea; ?> </span>
                          </div>
                        </div>
                      </div>
                      <!-- Property Item Footer Start -->
                      <div class="property-footer">
                        <p class="property-price">₹ <?php echo $price; ?></p>
                        <a href="<?php path(); ?>/<?php echo $slug; ?>/<?php echo $slug_top; ?>" class="btn-default">View Property</a>
                      </div>
                    </div>
								</div>
								<?php
            }
								?>
							</div>
							
							<div class="swiper-pagination"></div>
						</div>
					</div>
					<!-- Property Slider End -->
				  </div>
				</div>
			  </div>
            </div>
          </div>
        </div>
      </div>
    </section>
<!--  -->

    <!-- How It Work Section Start -->
    <div class="how-it-works">
      <div class="container">
        <div class="row">
          <div class="col-md-12">
            <!-- Section Title Start -->
            <div class="section-title">
              <h2 class="text-anime text-black mb-5">Find the Right Property</h2>
            </div>
            <!-- Section Title End -->
          </div>
        </div>

        <div class="row">
          <div class="col-lg-3 col-md-6 mb-4">
            <!-- How it Work Item Start -->
            <div class="how-it-work-item wow fadeInUp work" data-wow-delay="0.25s">
              <div class="icon-box">
                <img src="images/icon-how-1.svg" alt="" />
              </div>

              <!--<h3>Find Property</h3>-->
              <p class="text-dark">
               Explore Projects and  <br>  Contact Us 
              </p>
            </div>
            <!-- How it Work Item End -->
          </div>

          <div class="col-lg-3 col-md-6 mb-4">
            <!-- How it Work Item Start -->
            <div class="how-it-work-item wow fadeInUp" data-wow-delay="0.5s">
              <div class="icon-box">
                <img src="images/icon-how-2.svg" alt="" />
              </div>

              <!--<h3>Meet Retailer</h3>-->
              <p class="text-dark">
               Finalise Property & Registration
              </p>
            </div>
            <!-- How it Work Item End -->
          </div>

          <div class="col-lg-3 col-md-6 mb-4">
            <!-- How it Work Item Start -->
            <div class="how-it-work-item wow fadeInUp" data-wow-delay="0.75s">
              <div class="icon-box">
                <img src="images/icon-how-3.svg" alt="" />
              </div>

              <!--<h3>Documents</h3>-->
              <p class="text-dark">
                Construction Completion & Handover 
              </p>
            </div>
            <!-- How it Work Item End -->
          </div>

          <div class="col-lg-3 col-md-6 mb-4">
            <!-- How it Work Item Start -->
            <div class="how-it-work-item wow fadeInUp" data-wow-delay="1s">
              <div class="icon-box">
                <img src="images/icon-how-4.svg" alt="" />
              </div>

              <!--<h3>Take the keys</h3>-->
              <p class="text-dark">
                Enjoy Your New Home & Generate Income
              </p>
            </div>
            <!-- How it Work Item End -->
          </div>
          
          
        </div>
      </div>
    </div>
    <!-- How It Work Section End -->

    <!-- Why Choose us Section Start -->
    <div class="why-choose-us ss">
      <div class="container">
        <div class="row align-items-center">
          <div class="col-lg-5 order-lg-2">
            <!-- Why Choose us Images Start -->
            <img src="images/why-choose-us1.jpeg" alt="" style="border-radius: 23px; border: 9px solid; box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;" />
           
            <!-- Why Choose us Images End -->
          </div>

          <div class="col-lg-7 order-lg-1">
            <!-- Why Choose us Content Start -->
            <div class="why-choose-us-content">
              <!-- Section Title Start -->
              <div class="section-title mb-0">
                <!--<h3 class="wow fadeInUp text-dark">Why Choose Us</h3>-->
                <h2 class="text-anime">
                 Experience Luxury Living with Crown Crest in Mukteshwar
                </h2>
              </div>
              <!-- Section Title End -->

              <div
                class="why-choose-us-body wow fadeInUp"
                data-wow-delay="0.25s"
              >
                <p class="text-dark">
                  Mukteshwar at an elevation of 7500 feet features our exclusive villas offering 180 Himalaya views, modern amenities & comfort. Elevate your lifestyle and make your dream of owning a luxurious villa in Mukteshwar a reality with Crown Crest.
                </p>

                <ul class="text-dark">
                  <li>Own Homes & Plots at Serene location</li>
                  <li>Enjoy 20+ Amenities  </li>
                  <li>Earn Assured Rental Returns</li>
                  <li>Simple Buying Process</li>
                  <li>Easy Payment Terms</li>
                </ul>
               <!-- Section Title Start -->
              <div class="section-title">
                <!--<h3 class="wow fadeInUp text-dark">Why Choose Us</h3>-->
                <h2 class="text-anime">
                 Why Choose to Buy a Villa in Mukteshwar?
                </h2>
                <p class="text-dark" style="font-size: 14px;">
                  Mukteshwar, a serene hill station in Uttarakhand, is the perfect destination for luxurious Holiday Home Villas. The environment, coupled with breathtaking views of the Himalayas, makes owning a luxury villa in Mukteshwar an unparalleled experience. Whether you're looking for a holiday home, weekend villa, retirement home or a permanent residence, Crown Crest has the best villa in Mukteshwar.
                </p>
              </div>
              <!-- Section Title End -->

              </div>
            </div>
        
            <!-- Why Choose us Content End -->
          </div>
          </div> 
          <div class="row align-items-center d-none">
           <div class="col-lg-12 order-lg-1">
            <!-- Why Choose us Content Start -->
            <div class="why-choose-us-content">
             
              <div
                class="why-choose-us-body wow fadeInUp"
                data-wow-delay="0.25s"
              >
                
                
                <div class="section-title">
                <!--<h3 class="wow fadeInUp text-dark">Why Choose Us</h3>-->
                <h3 class="text-anime">
                Duplex Villas in Mukteshwar: A Blend of Style and Comfort
                </h3>
              </div>
              <!-- Section Title End -->

              <div
                class="why-choose-us-body wow fadeInUp"
                data-wow-delay="0.25s"
              >
                <p class="text-dark">
                  Crown Crest offers duplex villas in Mukteshwar that are designed to provide luxury & comfort. These duplex villas are ideal for families seeking space and privacy. Investing in a Mukteshwar duplex villa enhances your lifestyle and boosts your property portfolio's value.

                </p>
                
                <div class="section-title">
                <!--<h3 class="wow fadeInUp text-dark">Why Choose Us</h3>-->
                <h3 class="text-anime">
                Luxury Villas in Mukteshwar for Sale
                </h3>
              </div>
              <!-- Section Title End -->

              <div
                class="why-choose-us-body wow fadeInUp"
                data-wow-delay="0.25s"
              >
                <p class="text-dark">
                  If you're looking for luxury villas in Mukteshwar for sale, Crown Crest offers fully furnished duplex villas with freehold ownership of land. Each villa blends modern luxury with natural beauty, offering top-notch facilities for a comfortable life in Mukteshwar.
</p>

              </div>
              
              <div class="section-title">
                <!--<h3 class="wow fadeInUp text-dark">Why Choose Us</h3>-->
                <h3 class="text-anime">
               Discover the Best Villa in Mukteshwar with Crown Crest Realty
                </h3>
              </div>
              <!-- Section Title End -->

              <div
                class="why-choose-us-body wow fadeInUp"
                data-wow-delay="0.25s"
              >
                <p class="text-dark">
                  Crown Crest is dedicated to offering the best villa in Mukteshwar. Our commitment to quality, attention to detail, and customer satisfaction sets us apart in the real estate market. </p>

              </div>
              <div class="section-title">
                <!--<h3 class="wow fadeInUp text-dark">Why Choose Us</h3>-->
                <h3 class="text-anime">
                Secure Your Dream Villa in Mukteshwar Today
                </h3>
              </div>
              <!-- Section Title End -->

              <div
                class="why-choose-us-body wow fadeInUp"
                data-wow-delay="0.25s"
              >
                <p class="text-dark">
                 Let us help you find your own piece of paradise in Mukteshwar. With Crown Crest, buying a villa in Mukteshwar is a seamless experience. From luxury villas in Mukteshwar to elegant apartments, we have something for everyone.  
</p>

              </div>
            </div>
            <!-- Why Choose us Content End -->
          </div>
        </div>
      </div>
    </div>
       </div>
    </div>
    <!-- Why Choose us Section End -->

    <!-- Infobar Section Start -->
    <div class="infobar-cta">
      <div class="container">
        <div class="row">
          <div class="col-md-12">
            <!-- Infobar Box Start -->
            <div class="infobar-box">
              <div class="row align-items-center">
                <div class="col-lg-7">
                  <!-- Infobar Content Start -->
                  <div class="cta-content">
                    <h2 class="text-anime text-start text-black">Need Help? Message Our Expert.</h2>
                    <!-- <p class="wow fadeInUp text-dark">
                      Duis pulvinar metus elit, ut aliquam est sollicitudin
                      finibus. Integer lobortis est interdum. Suspendisse nunc
                      est, varius quis fringilla ac, commodo a ante.
                    </p> -->
                  </div>
                  <!-- Infobar Content End -->
                </div>

                <div class="col-lg-5">
                  <!-- CTA Button Start -->
                  <div class="cta-button">
                    <a href="https://api.whatsapp.com/send/?phone=918750500042&text=Hi&type=phone_number&app_absent=0" class="btn-default btn-border btn-dark text-light" target="_blank"
                      ><i class="fa-solid fa-phone-volume "></i> +91 87505 00042</a
                    >
                    <a href="<?php path(); ?>/contact.php" class="btn-default btn-dark text-light">Contact Now</a>
                  </div>
                  <!-- CTA Button End -->
                </div>
              </div>
            </div>
            <!-- Infobar Box End -->
          </div>
        </div>
      </div>
    </div>
    <!-- Infobar Section End -->

    <!-- Latest Posts Section Start -->
    <div class="latest-posts">
      <div class="container">
        <div class="row">
          <div class="col-md-12">
            <!-- Section Title Start -->
            <div class="section-title">
              <h2 class="text-anime mb-5">Read Our Latest Blog</h2>
            </div>
            <!-- Section Title End -->
          </div>
        </div>

        <div class="row">
         <?php
         $blog = mysqli_query($conn, "SELECT * FROM `blogs` ORDER BY id DESC limit 3");
         while($nlo = mysqli_fetch_array($blog))
         {
             $name = $nlo['name'];
             $banner = $nlo['banner'];
             $short_description = $nlo['short_description'];
             $slug = $nlo['slug'];
         ?>
          <div class="col-lg-4">
            <!-- Post Item Start -->
            <div class="post-item wow fadeInUp scrol" data-wow-delay="0.25s">
              <!-- Post Featured Image Start -->
              <div class="post-featured-image">
                <figure>
                  <a href="<?php path(); ?>/blogs/<?php echo $slug; ?>"><img src="<?php path(); ?>/assets/images/blog/<?php echo $banner; ?>" style="width: 100%; height: 250px;" alt="" /></a>
                </figure>

                <div class="post-read-more">
                  <a href="<?php path(); ?>/blogs/<?php echo $slug; ?>" class="btn-default">Read More</a>
                </div>
              </div>
              <!-- Post Featured Image End -->

              <!-- Post Body Start -->
              <div class="post-body p-3">
                <div class="post-category">
                  
                </div>

                <h3 class="" style="line-height: 20px;">
                  <a href="<?php path(); ?>/blogs/<?php echo $slug; ?>"><?php echo $name; ?></a>
                </h3>
				<!--<div class="post-body textscrool">-->
				<!--<p class="text-dark mb-0" style="color: #000;"><?php //echo $short_description; ?></p>-->
				<!--</div>-->
				
              </div>
              <!-- Post Body End -->
            </div>
            <!-- Post Item End -->
          </div>
          <?php
         }
         ?>
        </div>
      </div>
    </div>
    <!-- Latest Posts Section End -->

<div class="testimonials">
		<div class="container">
			<div class="row">
				<div class="col-md-12">
					<!-- Section Title Start -->
					<div class="section-title">
						<h2 class="text-anime mb-5" style="color:#deac17;">What our Client Says</h2>
					</div>
					<!-- Section Title End -->
				</div>
			</div>

			<div class="row">
				<div class="col-md-12">
					<!-- Testimonial Carousel Start -->
					<div class="testimonial-slider">
						<div class="swiper">
							<div class="swiper-wrapper">
							    <?php
							    $test = mysqli_query($conn, "SELECT * FROM `testimonial`");
							    while($tesa = mysqli_fetch_array($test))
							    {
							        $review = $tesa['content'];
							        $name = $tesa['name'];
							    ?>
								<!-- Testimonial Slide Start -->
								<div class="swiper-slide" style="height: 100%;">
									<div class="testimonial-slide" style="height: 100%;">
										<!--<div class="testimonial-rating">-->
										<!--	<img src="images/final-star.png" alt="" style="width:150px;">-->
										<!--</div>-->

										<div class="testimonial-content">
											<p class="text-white"><?php echo $review; ?></p>
										</div>

										<div class="testimonial-author-info">
											<h3>- <?php echo $name; ?></h3>
											<!--<figure class="image-anime">-->
												<!--<img src="images/author-1.jpg" alt="">-->
											<!--</figure>-->
										</div>
									</div>
								</div>
								<!-- Testimonial Slide End -->
								<?php
							    }
							    ?>

							</div>

							<!--<div class="swiper-pagination"></div>-->
						</div>
					</div>
					<!-- Testimonial Carousel End -->
				</div>
			</div>
		</div>
	</div>

    <!-- Footer Section Start -->

	<?php include('include/footer.php'); ?>
	
	<a  class="call" href="tel: +91-8750500042" target="_blank" aria-label="phone">
    <i class="fa-solid fa-phone phone"></i>
  </a>
  <a  class="whats-app" href="https://api.whatsapp.com/send/?phone=918750500042&text=Hi&type=phone_number&app_absent=0" target="_blank" aria-label="whatsapp">
    <i class="fa my-float">&#xf232;</i>
  </a>

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

<style>
.my-float{
    margin-top: 8px;
}
.whats-app {
    position: fixed;
    width: 50px;
    height: 47px;
    bottom: 70px;
    right: 15px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 100;
}

.call {
    position: fixed;
    width: 50px;
    height: 47px;
    bottom: 130px;
    right: 15px;
    background-color: #4682b4;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 22px;
    z-index: 100;
}

.phone{
    margin-top: 12px;
}

</style>
   
   <script>
//   $(window).on('load',function(){
//     var delayMs = 1500; // delay in milliseconds
    
//     setTimeout(function(){
//         $('#inquiryFormContainer').modal('show');
//     }, delayMs);
// });
</script>

  </body>
</html>
