@import url('https://fonts.googleapis.com/css2?family=Moon+Dance&display=swap');

body, html {
  padding: 0;
  font-family: "Poppins", sans-serif;
  font-style: normal;
  background-color: #fff;
}


/* Curved background styling */
.curved-background {
  margin: 0 30px;
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
                url('/static/images/12.jpeg') no-repeat center center;
  background-size: cover;
  border-radius: 25px; /* Curve all sides by 25px */
  padding: 30px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  color: white;
  text-align: center;
}

/* Heading styling */
.search-heading {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
}

/* Search bar styling */
.search-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9); /* Slight transparency */
  border-radius: 25px;
}

/* Search field styling */
.search-field {
  flex: 1;
  width: 200px;
}

.search-field select,
.search-field input {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 15px;
  background-color: #fff;
  color: #555;
  border: 1px solid #007bff;
  outline: none;
}

.search-field select:hover,
.search-field input:hover {
  border-color: #074b72;
}

.search-field label {
  font-size: 14px;
  color: #333;
  display: block;
  margin-bottom: 5px;
}

/* Search button styling */
.search-button {
  font-size: 16px;
  border-radius: 25px;
  border: none;
  background-color: #074b72;
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-button:hover {
  background-color: #0056b3;
}
.search-bar .price-range-wrapper {
    width: 100%;
}

.form-group {
            position: relative;
            width: 100%;
        }
.custom-input-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border: 1px solid #007bff;
  padding: 4px 6px;
  border-radius: 15px;
  background: white;
}
        #location-input {
            width: 100%;
            padding: 5px;
            border: 1px solid #fff;
            border-radius: 5px;
            box-sizing: border-box;
            
        }
        .selected-locations {
            margin-bottom: 5px;
        }
        .selected-location {
            display: inline-block;
            background: #e0f7fa;
            padding: 5px 10px;
            margin-right: 5px;
            border-radius: 15px;
            font-size: 14px;
            color: #074b72;
        }
        .selected-location button {
            cursor: pointer;
            margin-left: 5px;
            border: none;
            background: none;
            color: #ff0000;
            font-size: 14px;
        }
        .autocomplete-suggestions {
          color: #333;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            max-height: 200px;
            overflow-y: auto;
            background: white;
            border: 1px solid #ccc;
            border-radius: 5px;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            display: none;
        }
        .autocomplete-suggestion {
            padding: 5px 10px;
            cursor: pointer;
        }
        .autocomplete-suggestion:hover {
            background: #f0f0f0;
        }



.price-dropdown {
  border: 1px solid #ccc;
  padding: 15px;
  margin-top: 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.price-slider-container {
  position: relative;
  margin-bottom: 10px;
}

input[type="range"] {
  width: 100%;
  appearance: none;
  height: 4px;
  background: #ddd;
  outline: none;
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-top: -10px;
}

.price-values {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  color: #333;
}

.apply-button {
  background-color: #074b72;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.price-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.price-buttons button {
  background-color: #f1f5f9;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.price-inputs {
  display: flex;
  gap: 10px;
}

.price-inputs input {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f9f9f9;
}



h1 {
  text-align: center;
  margin-bottom: 20px;
}






.image-container {
  width: 380px;
  position: relative;
  overflow: hidden;
  padding: 10px;
  border: none;
  background-color: #ffffff;
  text-align: left;
  margin: 10px 20px;
}

.image-container img {
  width: 380px;
  height: 280px;
  object-fit: cover;
}

.sales-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #ffffff;
  color: #000000;
  border: none;
  padding: 3px 10px;
  font-size: 14px;
  border-radius: 15px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}

.content {
  margin-top: 10px;
  text-decoration: none;
}

.apartment-btn {
  background-color: #ffffff;
  color: #000000;
  border: black solid 1px;
  padding: 5px 15px;
  font-size: 16px;
  border-radius: 15px;
  cursor: pointer;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
}


.text {
  font-size: 20px;
}

.description {
  color: #333;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  font-family: "Open sans";
}

.district {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  font-family: "Poppins", sans-serif;
}

.see-more-container {
  width: 100%;
  text-align: center;
  justify-content: center;
  margin: 50px;
}
 
.see {
  
  text-align: center;
  background-color: #074b72;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 18px;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: "Poppins", sans-serif;
}
 
.see:hover {
  background-color: #0f77cc;
}
.hl {
  border: #074b72 solid 0.5px;
  width: 100%;
  margin: 70px 0px;
}




.wrapper {
  width: 100%;
  margin-inline: auto;
  position: relative;
  height: 200px;
  overflow: hidden;
  mask-image: linear-gradient(to right,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 1) 20%,
      rgba(0, 0, 0, 1) 80%,
      rgba(0, 0, 0, 0));
}

@keyframes scrollleft {
  to {
    left: -200px;
  }
}




/*cards*/
.nls1-section {

  background-color: #dceffd;
  padding: 40px 120px;
}



.nls2-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.nls3-header-left {
  text-align: left;
}

.nls6-subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.nls7-icon {
  height: 20px;
  width: auto;
}

.nls8-title {
  font-size: 32px;
  font-weight: 700;
  color: #074b72;
}

.nls10-explore-all {
  background-color: #074b72;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.nls10-explore-all:hover {
  background-color: #0050cc;
}

.nls11-card-container {
  display: flex; /* Use flex for responsiveness */
  flex-wrap: wrap; /* Wrap cards to the next line if needed */
  gap: 20px;
  justify-content: center; /* Center the cards in the section */
  margin-top: 20px;
}

/* Shapes */
.nls4-shape {
  position: absolute;
  z-index: 0;
}

.nls5-shape-left {
  top: 100%;
  left: 1%;
  height: 100px;
}

.nls19-shape-right {
  
  right: 10%;
  height: 120px;
}

/* Property Card */
.nls12-property-card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  padding: 15px;
  transition: transform 0.2s ease;
  width: 350px; /* Set the width to 350px */
  
}

.nls12-property-card:hover {
  transform: translateY(-10px);
}



/* Badge */
.nls13-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
}

.nls14-badge-sale {
  background-color: #074b72;
}

.nls15-property-image {
  width: 100%;
  height: 180px;
  border-radius: 15px;
  object-fit: cover;
  margin-bottom: 5px;
}

.nls16-property-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to two lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis; /* Add ellipsis (...) if text overflows */
   /* Adjust according to font-size and line-height */
}

.nls16-property-title p {
  font-size: 14px;
}
.nls16-property-title span {
  font-size: 15px;
  font-weight: 600;
  color: #074b72;
}


.property-link{
  text-decoration: none;
  color: #333 !important;
}

.nls17-property-location {
  font-size: 14px;
  color: #888;
  margin-bottom: 15px;
}

.nls18-property-details {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.nls18-property-details div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nls18-property-details i {
  font-size: 14px;
  color: #888;
}

.property-footer {
  position: relative;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ddd; /* Optional if you want an additional border */
}

.footer-divider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #ddd; /* Adjust color as needed */
}

.redirect-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #074b72; /* Adjust for desired background color */
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.redirect-icon:hover {
  background-color: #0056b3; /* Darker blue on hover */
  transform: scale(1.1); /* Slightly enlarge on hover */
}





.nls20-property-location {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* Apartments Tag */
.nls21-location-tag-apartment {
  border: 2px solid #074b72; /* Blue border */
  background-color: #fff; /* White background */
  color: #333; /* Black text */
  font-size: 14px;
  
  padding: 5px 15px;
  border-radius: 25px;
}

/* Bambalapitiya Tag */
.nls21-location-tag-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  
  color: #000; /* Blue text */
}

.nls21-location-tag-location i {
  font-size: 14px;
  color: #074b72;
}
 .heart-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease;
}

.heart-icon i {
  font-size: 16px;
}

.shortlisted {
  color: #C837AB;
}

.not-shortlisted {
  color: #074b72;
}


@media screen and (max-width: 1200px) {
  body, html {
    margin: 10px;
  }

  .search-bar {
    margin-left: 0;
    max-width: 100%;
  }

  .text-center {
    margin-left: 0;
  }

  .vector-image {
    left: 0;
  }

  .property-options {
    margin-left: 0;
  }

  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-container {
    width: 100%;
  }

  .image-container img {
    width: 100%;
  }

  .hl {
    margin-left: 5rem;
  }
}

@media screen and (max-width: 768px) {
  body, html {
    margin: 10px;
  }

  .search-bar {
    font-size: 12px !important;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
  }

  .search-field select,
  .search-field input {
    text-align: center;
  }

  .search-field label{
    text-align: center;
  }

  .search-button {
    font-size: 14px;
    padding: 8px;
  }

  
  .property-options{
    margin-left: 20%;
  }

  .property-option{
    margin-left: -0px;
    font-size: 1rem;
  }

  .text-center{
        margin-left: 10%;
    width: 100%;
  }
  .text-center p {
    font-size: 36px;
    margin-left: 10%;
  }

  .text-center span {
    font-size: 48px;
  }

  .property-options {
    flex-wrap: wrap;
  }

  .image-grid {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 10%;
  }

  .intro p {
    font-size: 30px;
  }

  .text {
    font-size: 72px;
  }

  .wrapper {
    margin: 100px 0;
  }

  .hl {
    margin-left: 2rem;
  }
}

@media screen and (max-width: 500px) {
  body, html {
    margin: 10px;
  }
  .curved-background{
    margin: 0px;
  }
  .search-bar {
    border-radius:20px ;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
  }

  .search-field select,
  .search-field input {
    text-align: center;
  }

  .search-field label{
    font-size: 12px;
    text-align: center;
  }

  .search-button {
    font-size: 14px;
    padding: 8px;
  }

  
  .property-options{
    margin-left: 20%;
  }

  .property-option{
    margin-left: -0px;
    font-size: 1rem;
  }

  .text-center{
    margin-left: 10%;
    width: 100%;
  }
  .text-center p {
    font-size: 36px;
    margin-left: 5%;
  }

  .text-center span {
    font-size: 48px;
  }

  .property-options {
    flex-wrap: wrap;
  }

  .image-grid {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 5%;
  }

  .intro p {
    font-size: 30px;
  }

  .text {
    font-size: 72px;
  }

  .wrapper {
    margin: 100px 0;
  }

  .hl {
    margin-left: 2rem;
  }
  .nls1-section {

  background-color: #dceffd;
  padding: 10px 20px;
}
}