/* Clean & Minimal Locality Listings Page Styles */

/* Compact Hero Header Section */
.locality-hero {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.locality-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 95, 122, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 95, 122, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  pointer-events: none;
}

.locality-hero__shell {
  position: relative;
  z-index: 1;
}

/* Breadcrumb Navigation */
.locality-hero .breadcrumb {
  margin-bottom: 0;
}

.locality-hero .breadcrumb-item,
.locality-hero .breadcrumb-item a {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.locality-hero .breadcrumb-item a:hover {
  color: #ff6b35;
}

/* Headline */
.locality-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
  font-weight: 800 !important;
}

.locality-hero__title-accent {
  background: linear-gradient(135deg, #1e5f7a 0%, #0d6efd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.locality-hero__lead {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 400;
}

/* Listings Layout Customizations */
#locality-page #localityPropertyContainer > .property-item {
  flex: 0 0 50%;
  max-width: 50%;
  min-width: 0;
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
  .locality-hero {
    padding: 1.5rem 0;
  }
  
  #locality-page #localityPropertyContainer > .property-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 767.98px) {
  #locality-page #localityPropertyContainer > .property-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .locality-hero {
    padding: 1.25rem 0;
  }
}

@media (min-width: 992px) {
  .properties-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

/* Property cards: stretch detail link over the card so clicks open the listing.
   Landing pages get this from landingpage.css; locality page does not. */
#locality-page .property-card.position-relative,
#locality-page .property-card.shadow-sm {
  position: relative;
  cursor: pointer;
}

#locality-page .property-card .property-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
  border-radius: inherit;
  text-decoration: none;
}

#locality-page .property-card .property-card-link:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

#locality-page .property-card .property-card-body,
#locality-page .property-card .property-card-view {
  pointer-events: none;
  position: relative;
  z-index: 2;
}

#locality-page .property-card .property-image .pd-wishlist-btn,
#locality-page .property-card .property-image [data-no-card-nav],
#locality-page .property-card .carousel-indicators,
#locality-page .property-card .carousel [data-bs-slide],
#locality-page .property-card .carousel [data-bs-target],
#locality-page .property-card-actions,
#locality-page .property-card-actions * {
  pointer-events: auto;
}

#locality-page .property-card .property-image .pd-wishlist-btn,
#locality-page .property-card-actions {
  position: relative;
  z-index: 3;
}
