.settle-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.settle-search select,
.settle-search button {
  padding: 10px 12px;
  font-size: 14px;
}
.settle-list .settle-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.settle-list .settle-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.settle-list .settle-card .content {
  padding: 10px 12px;
}
.settle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
/* Legacy basic search layout (kept for compatibility) */
.settle-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.settle-search select,
.settle-search button {
  padding: 10px 12px;
  font-size: 14px;
}

/* Search wrapper */
.settle-hero-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 18px auto;
  padding: 6px 10px;
}
.settle-hero-head {
  margin: 6px 4px 10px;
}
.settle-hero-title {
  font-size: 18px;
  color: #111827;
  margin: 0;
}

/* New home-page hero search bar */
.settle-hero-search {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.settle-hero-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  align-items: stretch;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.settle-hero-bar .settle-field {
  padding: 14px 18px;
  position: relative;
  border-right: 1px solid #eef2f7;
}
.settle-hero-bar .settle-field:last-of-type {
  border-right: none;
}
.settle-hero-bar label {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  color: #374151; /* slate */
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: .2px;
}
.settle-select {
  position: relative;
}
.settle-select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 12px 34px 12px 14px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 12px;
  font-size: 15px;
  color: #6b7280; /* placeholder */
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.settle-select select:focus {
  border-color: #a1a9b5;
  box-shadow: 0 0 0 4px rgba(161,169,181,.2);
  background: #fff;
}
.settle-select select.has-value {
  color: #111827; /* darker when a real value is selected */
}
.settle-select .caret {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background: linear-gradient(to bottom, #9ca3af, #6b7280);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  pointer-events: none;
}

/* Search (magnifier) button */
.settle-go {
  background: #111827;
  color: #fff;
  border: none;
  width: 56px;
  min-width: 56px;
  height: 56px;
  margin: 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.settle-go:hover {
  background: #0b1220;
}

/* Responsive: stack fields on small screens */
@media (max-width: 640px) {
  .settle-hero-bar {
    grid-template-columns: 1fr;
  }
  .settle-hero-bar .settle-field {
    border-right: none;
    border-bottom: 1px solid #eee;
  }
  .settle-hero-bar .settle-field:last-of-type {
    border-bottom: none;
  }
}

/* Listing cards */
/* Dense grid for 16-per-page */
.settle-grid.settle-grid-16 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Card polish */
.settle-list .settle-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.settle-list .settle-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.settle-list .settle-card .thumb {
  position: relative;
  display: block;
  overflow: hidden;
}
.settle-list .settle-card .thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #f3f4f6;
}
.settle-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fde68a;
  color: #7c2d12;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(124,45,18,0.1);
  pointer-events: none;
}

.settle-list .settle-card .content {
  padding: 14px 16px 16px;
}
.settle-list .settle-card .title {
  font-size: 16px;
  margin: 0 0 6px;
  color: #111827;
}
.settle-list .settle-card .title a { color: inherit; text-decoration: none; }
.settle-list .settle-card .title a:hover { text-decoration: underline; }
.settle-list .settle-card .address {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 13px;
}
.settle-list .settle-card .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.settle-list .settle-card .meta-row .label {
  font-size: 12px;
  color: #374151;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 6px;
}
.settle-list .settle-card .meta-row .price {
  font-weight: 800;
  color: #0f172a;
  font-size: 15px;
}

/* Amenities chips */
.amenities-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.amenities-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 999px;
  font-size: 12px;
  color: #374151;
}
.amenities-chips .chip img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Pagination */
.settle-list .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 24px 0 10px;
  flex-wrap: wrap;
}
.settle-list .pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.settle-list .pagination .page-numbers:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}
.settle-list .pagination .page-numbers.current {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}
.settle-list .pagination .page-numbers.prev,
.settle-list .pagination .page-numbers.next {
  padding: 0 14px;
  min-width: auto;
}
.settle-list .pagination .page-numbers.dots {
  border: none;
  min-width: auto;
  height: auto;
  padding: 0 4px;
  color: #6b7280;
  background: transparent;
}

/* Infinite loader */
.settle-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px 0;
  color: #6b7280;
  font-size: 14px;
}
.settle-loader .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #e5e7eb;
  border-top-color: #111827;
  border-radius: 50%;
  animation: settle-spin 0.8s linear infinite;
}
@keyframes settle-spin {
  to { transform: rotate(360deg); }
}

/* Add comfortable space before footer on properties archive */
body.post-type-archive-settle_property .settle-list {
  padding-bottom: 64px; /* adjust as needed */
}

/* Listing filters panel */
.settle-filters {
  background: #f7f8f3;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 10px 14px;
}
.settle-filters label {
  font-size: 13px;
  color: #374151;
  font-weight: 600;
  margin-right: 6px;
}
.settle-filters select {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px; /* pill */
  background: #fff;
  outline: none;
  font-size: 14px;
  color: #111827;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.settle-filters select:focus {
  border-color: #a1a9b5;
  box-shadow: 0 0 0 3px rgba(161,169,181,.18);
  background: #fff;
}
.settle-filters select + label,
.settle-filters label + select {
  margin-left: 4px;
}

/* Override Divi default section padding (equivalent to commenting out in source) */
@media (min-width: 981px) {
  .et-db #et-boc .et-l .et_pb_section {
    /* padding: 0 !important;  previously: padding: 4% 0; */
  }
}

/* Prevent fixed header from overlapping our content (archive + single) */
body.post-type-archive-settle_property .site-main.container,
body.single-settle_property .site-main.container {
  padding-top: 96px; /* desktop header offset */
}

@media (max-width: 768px) {
  body.post-type-archive-settle_property .site-main.container,
  body.single-settle_property .site-main.container {
    padding-top: 72px; /* smaller header offset on mobile */
  }
}

/* Optional small gap before the grid */
body.post-type-archive-settle_property .settle-list {
  margin-top: 8px;
}

/* Amenities grid on single property */
.settle-amenities {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px 16px;
}
.settle-amenities .amenity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.settle-amenities .amenity img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.08));
}
.settle-amenities .amenity span {
  font-size: 14px;
  color: #111827;
}