@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");

:root {
  --primary-color: #e0ebed;
  --text-dark: #231e22;
  --text-dark-hover: #4a4347;
  --text-light: #767268;
  --extra-light: #f3f4f6;
  --white: #ffffff;
  --max-width: 1200px;
  --header-font: 3rem;
  --lheader-font: 1.25rem;

  /* SHADOWS */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 12px 36px rgba(0, 0, 0, 0.25);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-all-sides: 0 0 10px rgba(0, 0, 0, 0.2);

  /* BORDERS */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px; /* for full-rounded buttons/chips */
  --radius-circle: 50%;  /* for circular avatars/images */
}

/* NOTIFY CSS */
.noty_body {
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #222;
}

.noty_type__success {
  background-color: #4caf50;
  border-left: 4px solid #2e7d32;
}

.noty_type__error {
  background-color: #f44336;
  border-left: 4px solid #c62828;
}

/* ROOTS SETTINGS FOR SMALL SCREENS  */
/* Medium Devices (tablets, less than 768px) */
@media (max-width: 767.98px) {
  html{
    font-size: 12px;

  }
.nav__header {
  font-size: 26px;
}
 
}

/* Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  
  
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  position: relative;
  isolation: isolate;
  padding-bottom: 1.7rem;
  font-size: 3rem;
  font-weight: 500;
  line-height: 3.5rem;
  color: var(--text-dark);
  text-align: center;
  overflow: hidden;
}

.section__header::before {
  position: absolute;
  content: "";
  height: 5px;
  width: 5rem;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #25453a;
  border-radius: 1rem;
}

.section__header::after {
  position: absolute;
  content: "";
  height: 5px;
  width: 6px;
  bottom: 1rem;
  left: calc(50% + 3rem);
  transform: translateX(-50%);
  background-color: #25453a;
  border-radius: 1rem;
}

.btn {
  padding: 1rem 2rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: var(--white);
  background-color: var(--text-dark);
  transition: 0.3s;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--text-light) !important;
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", serif;
}

nav {
  position: fixed;
isolation: isolate;
  width: 100%;
  z-index: 9;
}

.nav__header {
  padding: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary-color);
}

.nav__logo a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

.nav__links {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  background-color: var(--primary-color);
  transition: transform 0.5s;
  z-index: -1;
}

.nav__links.open {
  transform: translateY(100%);
}

.nav__links a {
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
}

header {
  /* padding-block: 5rem 4rem; */
  padding-block: 4rem;
  display: grid;
  position: relative;
  isolation: isolate;
}

.header__image {
  height: 100%;
  background-image: url("assets/header4.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 15rem;
}

.header__content {
  padding-inline: 1rem;
  padding-block: 2rem 0rem;
}

.header__content h1 {
  font-size: 5.125rem;
  font-weight: 500;
  line-height: 5.5rem;
  color: var(--text-dark);
  text-align: center;
}

header form {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* flex-direction: column; */
  gap: 2rem 1rem;
  background-color: var(--white);
  box-shadow: 0px 5px 50px var(--primary-color);
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 1000px;
  width: 100%;
}

.filter-group {
  display: flex;
  flex-direction: column;
  width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
  padding-right: 15px;
}

.filter-group label {
  /* font-weight: 500; */
  margin-bottom: 6px;
  /* font-size: 0.9rem;
  color: #333; */
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.filter-group select,
.filter-btn {
  padding: 8px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  height: 40px; /* Or the same value used by your select elements */
  box-sizing: border-box;
}

.filter-btn {
  background-color: var(--text-dark);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
  width: 160px;
}
.filter-btn {
  padding: 8px 16px;
  font-size: 0.95rem;
  border: none;
  border-radius: 5px;
  background-color: var(--text-dark);
  color: white;
  font-weight: 600;
  cursor: pointer;
  height: 42px; /* Match select height */
  align-self: flex-end; /* Optional: align button at bottom */
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.filter-btn:hover {
  background-color: var(--text-dark-hover);
}

.custom-select-wrapper {
  position: relative;
}

.custom-select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding-right: 30px; /* space for the arrow */
}

.arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  pointer-events: none;
  transition: transform 0.3s ease;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #333;
}

.custom-select-wrapper.open .arrow {
  transform: translateY(-50%) rotate(180deg); /* Arrow rotates upwards */
}

.price-modal-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  padding: 1rem;
  box-sizing: border-box;
  flex-wrap: nowrap; /* important */
}

.price-select-group {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.price-label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--text-dark, #333);
}

.price-select {
  width: 100%;
  padding: 8px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  color: #333;
}

.swal-btn-confirm{
  background-color: var(--text-dark);
}

.swal-btn-confirm:hover{
  background-color: var(--text-light);
}

.swal-title{
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}



header input {
  padding-bottom: 0.5rem;
  width: 100%;
  font-size: 1rem;
  color: var(--text-dark);
  outline: none;
  border: none;
  border-bottom: 1px solid var(--text-light);
}

header .btn {
  padding: 0.75rem;
  font-size: 1.5rem;
}

.service {
  overflow: hidden;
}

.service__grid {
  margin-top: 4rem;
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 2rem 1rem;
}

.service__grid::before {
  position: absolute;
  content: "";
  height: calc(50% + 5rem);
  width: 100vw;
  bottom: -5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  z-index: -1;
}

.service__card {
  position: relative;
  isolation: isolate;
  padding: 2rem 1rem;
  background-color: var(--white);
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.service__card::before {
  position: absolute;
  content: "";
  width: 100%;
  max-width: 10rem;
  aspect-ratio: 1;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--primary-color);
  border-radius: 100%;
  z-index: -1;
}

.service__card img {
  max-width: 70px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.service__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

.service__card p {
  font-weight: 500;
  color: var(--text-light);
  text-align: center;
  line-height: 1.75rem;
}

.experience {
  padding-block: 5rem;
  display: grid;
  position: relative;
  isolation: isolate;
}

.experience__image {
  height: 100%;
  background-image: url("assets/header5.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 15rem;
}

.experience__content {
  padding-inline: 1rem;
  padding-block: 2rem 20rem;
}

.experience__content p {
  margin-block: 2rem;
  font-weight: 500;
  line-height: 1.75rem;
  color: var(--text-dark);
  text-align: center;
}

.experience__btn {
  text-align: center;
}

.experience__stats {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, -1rem);
  width: 100%;
  max-width: 900px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: column;
  gap: 2rem 1rem;
  text-align: center;
  background-color: var(--white);
  box-shadow: 0px 5px 50px var(--primary-color);
}

.experience__stats h4 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.experience__stats p {
  font-weight: 500;
  color: var(--text-light);
}


/* ================ */
/* PROPERTY GRID */
/* ================ */

/* Listing Grid */
/* Listing Grid */
.listing-section {
  padding: 3rem 1rem;
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.property-card {
  background: #fff;
  box-shadow: var(--shadow-md);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
}

.property-card:hover {
  transform: scale(1.02);
}
.property-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.property-card-header {
  position: relative; /* <-- THIS IS IMPORTANT */
}
.property-badge {
   position: absolute;
  top: 10px;
  left: 10px;
  background-color: #f0f0f0;
  color: var(--text-dark);
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  z-index: 2; /* increase z-index to stay on top */
  opacity: 1 !important;     /* force visibility */
  visibility: visible !important; /* force visibility */
  transition: none !important; /* disable fade-in/out */
}



.property-info {
  padding: 1rem;
}
.property-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.property-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
}


.property-location-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #666;
  margin: 0;
}

.property-card hr {
  border: none;
  border-top: 1px solid #ddd; /* Light grey */
  margin: 10px 0;             /* Optional spacing */
}

.property-list-type {
  background-color: #f0f0f0;
  color: #444;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}


.property-features {
  display: flex;
  justify-content: space-evenly;
  gap: 1rem;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.5rem;
}
.property-features span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}


/* .image-count i {
  font-size: 1.1rem;
  font-weight: 600;
  color: #444;
} */


.property-card .price {
  margin-bottom: 12px;
  font-weight: bold;
  font-size: 1rem;
}

.property-card .btn {
  display: inline-block;
  padding: 10px 16px;
  background-color: var(--text-dark);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}



.property-title {
  font-size: 1.2rem;
  font-weight: bold;
}
.property-location {
  color: var(--primary);
  margin: 0.5rem 0;
}
.property-price {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}


/* PAGINATION */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.page-btn {
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  box-shadow: var(--shadow-sm);
}

.page-btn:hover {
  background-color: var(--text-light);
  color: white;
  transform: translateY(-1px);
}

.page-btn.active {
  background-color: var(--text-dark);
  color: #fff;
  font-weight: bold;
}

.page-btn.disabled {
  background-color: #eee;
  color: #aaa;
  cursor: not-allowed;
}

.page-dots {
  font-size: 1rem;
  color: #666;
  padding: 0 0.5rem;
}


@media (max-width: 768px) {

  .main-content {
  padding-top: 1.8rem;
}

  .listing-grid {
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .property-card {
    width: 95%;
    max-width: 400px;
  }
}




.subscribe {
  padding-inline: 1rem;
  padding-block: 5rem 2rem;
  margin-bottom: 5rem;
  background-color: var(--primary-color);
}

.subscribe form {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  transform: translateY(calc(50% + 2rem));
  display: flex;
  align-items: center;
  background-color: var(--white);
  box-shadow: 0px 10px 50px var(--primary-color);
}

.subscribe input {
  width: 100%;
  padding-inline: 1rem;
  font-display: 1rem;
  color: var(--text-dark);
  background-color: transparent;
  outline: none;
  border: none;
}

.subscribe .btn {
  padding: 1.5rem 2rem;
}

.footer__container {
  display: grid;
  gap: 4rem 2rem;
}

.footer__logo a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.footer__col p {
  margin-block: 1rem 2rem;
  max-width: 350px;
  font-weight: 500;
  line-height: 1.75rem;
  color: var(--text-dark);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__socials a {
  padding: 5px 7px;
  font-size: 1rem;
  color: var(--text-dark);
  background-color: var(--primary-color);
  border-radius: 100%;
}

.footer__col h4 {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.footer__links {
  display: grid;
  gap: 1rem;
}

.footer__links a {
  font-weight: 500;
  color: var(--text-dark);
}

.footer__links a:hover {
  color: var(--text-light);
}

.footer__property__detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer__property__detail img {
  max-width: 50px;
}

.footer__property__detail h5 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.footer__property__detail p {
  margin: 0;
  line-height: 1.25rem;
}

.footer__bar {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  color: var(--text-dark);
  background-color: var(--primary-color);
  text-align: center;
}


/* ADS STYLING  */

.bigsmall__screenads{
  margin-left: auto; 
  margin-right: auto; 
  display: block; 
  width: 300px;
}

.ads-inline-container {
    display: none;

    justify-content: center;

    align-items: flex-start;

    margin: 0 auto; 

    max-width: 650px; 
}

.ads-inline-container > div {
    margin: 0 10px; 
}


@media (width > 540px) {

  .small__screenads{
    display: none;
  }

 

  .header__image {
    min-height: 20rem;
  }

  .header__content {
    padding-block: 2rem 0rem;
  }

  header form {
    flex-direction: row;
  }

  .service__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience__image {
    min-height: 20rem;
  }

  .experience__content {
    padding-block: 2rem 8rem;
  }

  .experience__stats {
    flex-direction: row;
    text-align: left;
  }

  .property__details {
    padding: 1.5rem;
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 768px) {
  .bigsmall__screenads{
    display: none;
  }
  .ads-inline-container {
    display: flex;
  }

  nav {
    position: static;
    padding: 2rem 1rem;
    max-width: var(--max-width);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .nav__header {
    flex: 1;
    padding: 0;
    background-color: transparent;
  }

  .nav__logo a {
    font-size: 2.55rem;
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    position: static;
    width: fit-content;
    padding: 0;
    flex-direction: row;
    background-color: transparent;
    transform: none !important;
  }

  .nav__links a:hover {
    color: var(--text-light);
  }

  header {
    padding-top: 0;
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, calc(var(--max-width) / 2))
      minmax(0, calc(var(--max-width) / 2))
      minmax(0, 1fr);
    align-items: center;
  }

  .header__image {
    grid-area: 1/3/2/5;
    min-height: 30rem;
    border-top-left-radius: 100%;
  }

  .header__content {
    grid-column: 2/3;
    /* padding-block: 6rem 12rem; */
  }

  .header__content h1 {
    text-align: left;
  }

  .service__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .experience {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, calc(var(--max-width) / 2))
      minmax(0, calc(var(--max-width) / 2))
      minmax(0, 1fr);
    align-items: center;
  }

  .experience__image {
    grid-column: 1/3;
    min-height: 30rem;
    border-top-right-radius: 100%;
  }

  .experience__content {
    grid-column: 3/4;
    padding-block: 5rem 8rem;
  }

  .experience__content :is(.section__header, p, .experience__btn) {
    text-align: right;
  }

  .footer__container {
    grid-template-columns: repeat(5, 1fr);
  }

  .footer__col:nth-child(1) {
    grid-column: 1/3;
  }
}

@media (width > 1024px) {
  .service__grid {
    gap: 2rem;
  }

  .service__card {
    padding: 2rem;
  }
}
