/* =========================================================
   HERO SECTION STYLES
   Includes gradient background, title box, and search form
   ========================================================= */




/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hero-section {
    height: 40vh;
    padding: 20px 15px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 15px;
  }
}

/* ---------- Mobile View for Search Fields ---------- */
@media (max-width: 768px) {
  .hero-search-bar {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  .hero-search-bar select,
  .hero-search-bar input,
  .hero-search-bar button {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 6px;
  }

  .hero-search-bar button {
    text-align: center;
  }
}


/* ===============================
   WP SEARCH FORM
   =============================== */



/* ===============================
   Property Type Section (Card Style)
   =============================== */
   
  .pts-grid-wrapper {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 1200px; /* Set max width */
  margin: 0 auto;    /* Center on desktop */
}
 
   
   
.property-type-section {
  padding: 40px 15px;
  background: #f8f8f8;
}

.pts-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.pts-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #000;
  text-align: left; /* Align title to the left */
}


.pts-grid-wrapper {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pts-grid-wrapper::-webkit-scrollbar {
  display: none; /* Hide scrollbar */
}

.pts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.pts-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  height: 240px;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.pts-card:hover {
  transform: translateY(-5px);
}

.pts-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
}

.pts-card-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #fff;
}
.pts-card-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff; /* White text */
}


.pts-listing-count {
  display: inline-block;
  background: #0066ff; /* Blue instead of orange */
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.pts-card:hover .pts-listing-count {
  background: #004bbd; /* Darker blue on hover */
}

.pts-overlay {
  background: rgba(0, 0, 0, 0.25);
}


/* Arrows for carousel */
.pts-arrow {
  font-size: 28px; /* bigger arrow */
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.pts-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.pts-arrow-left {
  left: 10px;
}

.pts-arrow-right {
  right: 10px;
}

/* Mobile */
@media (max-width: 768px) {
  .pts-title {
    font-size: 22px;
  }

  .pts-grid {
    display: flex;
    gap: 12px;
    grid-template-columns: none;
    padding-bottom: 10px;
    min-width: max-content;
  }

  .pts-card {
    flex: 0 0 70%;
    max-width: 280px;
    height: 220px;
  }
}

@media (max-width: 480px) {
  .pts-card {
    flex: 0 0 85%;
    height: 200px;
  }
}

@media (min-width: 992px) {
  .pts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}


@media (min-width: 992px) {
  .pts-grid-wrapper {
    overflow-x: visible; /* Disable scroll */
    max-width: 1200px;
    margin: 0 auto; /* Center the section */
  }

  .pts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
  }

  .pts-card {
    flex: none; /* Prevent flexible widths from carousel */
    width: 100%; /* Take full grid cell width */
  }
}



/* ===============================
   No Image Fallback
   =============================== */
.pts-card.no-image {
  background: linear-gradient(135deg, #999, #bbb);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.no-image-text {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}



/* ===============================
   Info Horizontal Section
   =============================== */
.info-horizontal-section {
  padding: 50px 20px;
  background: #fff;
}

.info-horizontal-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  flex: 1;
  min-width: 280px;
}

.info-icon img {
  width: 60px;  /* icon size */
  height: auto;
  display: block;
}

.info-title {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-bottom: 6px;
}

.info-desc {
  font-size: 14px;
  color: #555;
  margin: 0 0 8px;
}

.info-link {
  font-size: 14px;
  font-weight: 600;
  color: #0066ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-link:hover {
  color: #0041aa;
}

/* Mobile layout */
@media (max-width: 768px) {
  .info-horizontal-container {
    flex-direction: column;
    gap: 20px;
  }
}

.promo-banner {
  background: #eaf3ff;
  border-radius: 10px;
  padding: 4px 0;        /* Slim vertical padding */
  margin: 5px auto;      /* Minimal top/bottom spacing */
  max-width: 500px;      /* Control width (adjust if needed) */
  text-align: center;
}

.promo-banner a {
  color: #0073ff;
  font-size: 16px;       /* Reduce text size */
  font-weight: 600;
  text-decoration: none;
}

.promo-banner a:hover {
  color: #0056cc;
}



/* =========================================================
   HERO BANNER — robust + responsive (mobile-first)
   ========================================================= */
.novo-hero--banner {
  position: relative;
  width: 100%;
  /* Use min-height so content never crops */
  min-height: 360px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 28px 18px;
  color: #fff;

  /* More compatible background declaration:
     - image-set gives JPG fallback if WebP isn’t supported
     - separate longhand props avoid accidental mobile overrides
  */
  background-image: image-set(
    url('/wp-content/themes/wpresidence-child/images/Hero/banner.webp') type('image/webp'),
    url('/wp-content/themes/wpresidence-child/images/Hero/banner.jpg') type('image/jpeg')
  );
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #eef2f7; /* visible while image loads */
}

/* Dark gradient behind text only (left side) */
.novo-hero--banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;   /* top:0; right:auto; bottom:0; left:0 */
  width: 46%;
  pointer-events: none;
  background: linear-gradient(to right, rgba(0,0,0,.55), rgba(0,0,0,0));
  z-index: 1;
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.hero-content h1 {
  margin: 0 0 10px;
  font-weight: 800;
  /* Fluid size for all phones & desktops */
  font-size: clamp(26px, 7vw, 46px);
  line-height: 1.12;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

.hero-content p {
  font-size: clamp(14px, 3.8vw, 18px);
  margin-bottom: 16px;
  opacity: .95;
  text-shadow
