.hero-inner {
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  gap: 56px;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 16 / 10;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(12, 122, 104, .12);
  border-radius: 26px;
  background: #e6f1ed;
  box-shadow: 0 20px 55px rgba(32, 67, 60, .12);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.listing-heading {
  margin-bottom: 18px;
}

.listing-filters {
  margin-bottom: 18px;
  box-shadow: 0 14px 38px rgba(26, 47, 45, .06);
}

.results-summary {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.results-summary strong {
  color: var(--ink);
  font-size: 18px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.profile-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(30, 46, 45, .07);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.profile-card:hover {
  transform: translateY(-2px);
  border-color: #bfd6d0;
  box-shadow: 0 17px 42px rgba(25, 63, 56, .12);
}

.profile-card-photo {
  position: relative;
  overflow: hidden;
  display: grid;
  aspect-ratio: 4 / 5;
  place-items: center;
  background: linear-gradient(145deg, #dceee9 0%, #f4eee9 100%);
}

.profile-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.profile-card:hover .profile-card-photo img {
  transform: scale(1.015);
}

.profile-default-avatar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.88) 0 18%, transparent 18.5%),
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.5), transparent 35%),
    linear-gradient(145deg, #dceee9, #f5ede7);
}

.profile-default-avatar b {
  position: relative;
  color: var(--brand);
  font-size: 44px;
  line-height: 1;
}

.profile-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
}

.profile-card-body h3 {
  width: 100%;
  overflow: hidden;
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card-body h3 a {
  color: var(--ink);
}

.profile-card-body h3 a:hover {
  color: var(--brand-dark);
  text-decoration: none;
}

.profile-location {
  width: 100%;
  overflow: hidden;
  margin: 3px 0 10px;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin: 11px 0 15px;
  color: #4b5964;
  font-size: 13px;
  line-height: 1.5;
}

.profile-card-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #edf0f1;
  font-size: 13px;
  font-weight: 800;
}

.profile-card-cta:hover {
  text-decoration: none;
}

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr); gap: 36px; }
  .profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 720px) {
  .hero-visual {
    width: min(100%, 560px);
    max-width: none;
    margin: 30px auto 0;
    border-radius: 20px;
  }
}

@media (max-width: 520px) {
  .profile-card { border-radius: 14px; }
  .profile-card-body { padding: 12px; }
  .profile-card-body h3 { font-size: 17px; }
  .profile-location { font-size: 12px; }
  .profile-preview { margin-block: 9px 12px; font-size: 12px; }
  .profile-card-cta { font-size: 12px; }
}

@media (max-width: 359px) {
  .profile-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-card, .profile-card-photo img { transition: none; }
}

.page-numbers { display:flex; justify-content:center; gap:5px; }
.page-numbers a, .page-numbers b { min-width:34px; height:34px; display:grid; place-items:center; border:1px solid var(--line); border-radius:9px; background:#fff; }
.page-numbers b { border-color:var(--brand); background:var(--brand); color:#fff; }
