.listing-detail > .full-page-heading {
  background: #e8f2e9;
  border-color: #c9dccd;
  padding: 20px 26px;
}
.listing-status-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.listing-category {
  font-size: 19px;
  font-weight: 650;
  color: #244b40;
}
.listing-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #466452;
  background: #ffffff9c;
  border: 1px solid #c8dece;
  border-radius: 30px;
  padding: 7px 13px;
}
.listing-detail .detail-title {
  margin: 24px 0 10px;
  font-size: clamp(24px, 2.8vw, 34px);
}
.listing-detail .detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin: 22px 0;
  padding: 20px 0;
  align-items: start;
}
.detail-fact {
  display: flex;
  gap: 10px;
  min-width: 0;
  align-items: flex-start;
}
.detail-fact-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #edf4ed;
  color: #54745d;
  flex-shrink: 0;
}
.detail-fact-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
.detail-fact strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
  color: var(--green);
  overflow-wrap: anywhere;
}
.detail-fact small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.listing-contact-notice {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  border: 1px solid #e5ddc9;
  border-radius: 16px;
  padding: 20px;
  background: #fcf9ef;
  color: #76633a;
  margin: 24px 0 12px;
  font-size: 13px;
  line-height: 1.8;
}
.listing-contact-notice > svg {
  flex-shrink: 0;
  margin-top: 3px;
}
.listing-contact-actions {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  margin: 0 0 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.listing-contact-actions .button {
  flex: 1 1 180px;
  justify-content: center;
  min-height: 48px;
}
.member-reviews.member-profile-card {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 5px 20px #244b4005;
}
.member-profile-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.member-profile-heading h2 {
  font-size: 19px;
  margin: 0;
}
.member-profile-caption {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.member-profile-person {
  display: flex;
  gap: 16px;
  align-items: center;
}
.member-profile-person > img {
  border-radius: 50%;
  object-fit: cover;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: var(--sage);
  border: 3px solid #f1f5ee;
}
.member-profile-person h3 {
  font-size: 21px;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.member-profile-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.member-email-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--sage);
  color: var(--muted);
  font-size: 11px;
}
.member-email-badge.verified {
  color: #1a7959;
  background: #e4f4ea;
}
.member-profile-badges .identity-badge {
  margin: 0;
  font-size: 11px;
}
.member-verification-note {
  margin: 16px 0 22px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.member-review-heading {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-bottom: 10px;
}
.member-review-heading h3 {
  font-size: 16px;
  margin: 0;
}
.member-review-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sage);
  padding: 18px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
}
.member-review-empty > span {
  font-size: 26px;
  line-height: 1;
}
.member-reviews .member-review-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.member-review-item:last-child {
  border: 0;
  padding-bottom: 0;
}
.member-review-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reviewer-initial {
  width: 36px;
  height: 36px;
  background: var(--sage);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.member-review-author {
  flex: 1;
  min-width: 0;
}
.member-review-author strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.member-review-author > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.member-review-score {
  white-space: nowrap;
  font-size: 12px;
}
.member-review-score > span {
  color: #b78734;
}
.member-review-item .description {
  font-size: 13px;
  margin-top: 12px;
  line-height: 1.85;
}
.member-review-loading {
  font-size: 13px;
  color: var(--muted);
}
html[data-theme='dark'] .listing-detail > .full-page-heading {
  background: #263e2e;
  border-color: var(--border);
}
html[data-theme='dark'] .listing-category {
  color: var(--green);
}
html[data-theme='dark'] .listing-state {
  background: #1c2c23;
  color: #c4d5c9;
  border-color: var(--border);
}
html[data-theme='dark'] .detail-fact-icon {
  background: var(--sage);
  color: var(--green);
}
html[data-theme='dark'] .listing-contact-notice {
  background: #3b3523;
  color: #ecddb9;
  border-color: #60563d;
}
html[data-theme='dark'] .member-email-badge.verified {
  background: #244633;
  color: #bce6cd;
}
@media (max-width: 650px) {
  .listing-detail > .full-page-heading {
    padding: 16px;
  }
  .listing-category {
    font-size: 17px;
  }
  .listing-state {
    font-size: 11px;
  }
  .listing-detail .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
  .detail-fact {
    gap: 7px;
  }
  .detail-fact-icon {
    width: 28px;
    height: 28px;
  }
  .detail-fact-label {
    font-size: 10px;
  }
  .detail-fact strong {
    font-size: 12px;
  }
  .listing-contact-notice {
    padding: 16px;
    font-size: 12px;
  }
  .listing-contact-actions {
    padding: 12px;
    gap: 8px;
  }
  .listing-contact-actions .button {
    flex-basis: 100%;
    font-size: 13px;
  }
  .member-reviews.member-profile-card {
    padding: 18px;
  }
  .member-profile-person > img {
    width: 54px;
    height: 54px;
  }
  .member-profile-person h3 {
    font-size: 19px;
  }
  .member-review-author > span {
    font-size: 10px;
  }
}

/* Portrait hero and a vertical thumbnail rail, only on listing pages. */
.listing-detail .image-gallery{display:grid;grid-template-columns:minmax(0,1fr) 94px;grid-template-rows:minmax(0,auto) auto;gap:12px;max-width:600px;margin:0 auto 24px;align-items:start}.listing-detail .gallery-main{grid-column:1;grid-row:1;aspect-ratio:4/5;background:var(--sage);border:1px solid var(--border)}.listing-detail .gallery-main img{width:100%;height:100%;object-fit:contain}.listing-detail .image-gallery>p{grid-column:1;grid-row:2;margin:0;text-align:center}.listing-detail .gallery-thumbs{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;gap:10px;max-height:640px;overflow-y:auto;overflow-x:hidden;margin:0;padding:2px}.listing-detail .gallery-thumbs button{flex:0 0 auto;width:86px;padding:3px;border-radius:10px}.listing-detail .gallery-thumbs img{width:76px;height:82px;object-fit:cover;border-radius:6px}.listing-detail .image-gallery:not(:has(.gallery-thumbs)){grid-template-columns:1fr;max-width:500px}.listing-detail .detail-image{display:block;width:100%;max-width:500px;aspect-ratio:4/5;object-fit:contain;background:var(--sage);margin:0 auto}.listing-detail .gallery-thumbs button:focus-visible{outline:3px solid var(--rust);outline-offset:1px}@media(max-width:650px){.listing-detail .image-gallery{grid-template-columns:minmax(0,1fr) 66px;gap:8px}.listing-detail .gallery-thumbs{max-height:360px;gap:6px}.listing-detail .gallery-thumbs button{width:60px;padding:2px}.listing-detail .gallery-thumbs img{width:52px;height:58px}.listing-detail .image-gallery>p{font-size:10px}}
