
body { background: #fff; }

.hero {
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  min-height: 420px;
  color: #fff;
  position: relative;
  padding: 0 0 72px;
  overflow: visible;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  background:
    linear-gradient(rgba(8, 10, 35, 0.28), rgba(8, 10, 35, 0.58)),
    url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

.topbar { margin-bottom: 58px; position: relative; z-index: 1; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.hero-title {
  font-size: 4rem;
  line-height: 1;
  margin: 0;
  font-weight: 400;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.search-panel {
  width: min(calc((100vw - 64px) * 0.78), 980px);
  margin-left: calc(50% - 50vw + 32px);
  margin-right: calc(50% - 50vw + 32px);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 18px 10px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
}

.search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  align-content: center;
  width: 100%;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 2rem;
  margin: 0;
  line-height: 1;
}

.section-copy {
  margin: 10px 0 0;
  max-width: 720px;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--muted);
}

.results-count {
  font-size: 1rem;
  color: var(--navy);
  font-weight: 700;
  background: rgba(255,255,255,0.72);
  padding: 10px 16px;
  border-radius: 999px;
}

@media (max-width: 1024px) {
  .search-panel {
    width: min(calc((100vw - 32px) * 0.8), 792px);
    margin-left: calc(50% - 50vw + 16px);
    margin-right: calc(50% - 50vw + 16px);
    padding: 18px 18px 0;
    border-radius: 28px;
  }
}

@media (max-width: 720px) {
  .hero { min-height: auto; }
  .topbar { margin-bottom: 46px; }
  .hero-title {
    font-size: 3rem;
    line-height: 1.05;
  }
  .search-panel {
    width: min(calc(100vw - 32px), 1320px);
    margin-left: calc(50% - 50vw + 16px);
    margin-right: calc(50% - 50vw + 16px);
    padding: 18px 18px 0;
    border-radius: 28px;
  }
  .secondary-cta {
    width: 100%;
    max-width: 188px;
  }
}


.grid {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .filter-strip-section {
    padding: 18px 16px 6px;
  }
}


/* --- v3 listing corrections --- */
.filter-strip-section {
  display: block;
}

.grid + .link-row {
  margin-top: 32px;
}

.search-panel,
.search-grid,
.field,
.field-split,
.field-select,
.custom-dropdown {
  overflow: visible;
}

/* --- v6 listing CTA center --- */
.link-row-wrap { display:flex; justify-content:center; }


/* --- v7 fix: center load more button --- */
.load-more-wrap,
.load-more-container {
  display: flex;
  justify-content: center;
  padding-top:2rem;
  width: 100%;
}

.load-more-wrap .btn,
.load-more-container .btn,
.load-more-wrap .link-row,
.load-more-container .link-row {
  margin: 0 auto;
}

/* --- v8 listing grid spacing --- */
.grid {
  gap: 28px;
  margin-bottom: 32px;
}

/* v10: promo-copy fallback */
.promo-copy { font-size: 1.2rem !important; }

/* v11 override */
.promo-copy { font-size: 1.2rem !important; }

/* v12 override */
.promo-copy { font-size: 1.2rem !important; }

/* Listing page: selected filter pill uses brand primary */
.filter-strip .filter-pill.is-active {
  background: #ffae03 !important;
  border-color: #ffae03 !important;
  color: var(--navy, #1b1454) !important;
}

.filter-strip .filter-pill.is-active:hover {
  background: #ffae03 !important;
  border-color: #ffae03 !important;
  color: var(--navy, #1b1454) !important;
}

/* --- Featured properties: horizontal carousel --- */
.property-carousel-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}

.property-carousel-wrap .grid {
  margin-bottom: 0;
}

.property-carousel-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.property-carousel-nav {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: #ffae03;
  color: var(--navy, #1b1454);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(255, 174, 3, 0.25);
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
  user-select: none;
}

.property-carousel-nav .property-carousel-icon {
  width: 18px;
  height: 18px;
}

.property-carousel-nav:hover {
  transform: translateY(-2px);
  filter: brightness(0.98);
}

.property-carousel-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  filter: none;
}

.property-carousel-nav:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

.property-carousel-nav:focus-visible {
  outline: 3px solid rgba(255, 174, 3, 0.35);
  outline-offset: 2px;
}

.meta-icon {
  font-size: 1rem;
  line-height: 1;
  vertical-align: middle;
  margin-right: 4px;
}

@media (max-width: 720px) {
  .property-carousel-wrap {
    gap: 10px;
  }

  .property-carousel-nav {
    width: 34px;
    height: 34px;
  }

  .property-carousel-nav .property-carousel-icon {
    width: 16px;
    height: 16px;
  }
}
