.listing-rejection-dialog {
  max-width: 560px;
}

.listing-rejection-dialog textarea {
  min-height: 120px;
  resize: vertical;
}

.listing-rejection-reason {
  color: #a33e2c !important;
  font-size: .82rem !important;
  white-space: pre-wrap;
}

.listing-rejection-reason strong {
  color: #8d2f22;
}

.listing-contact-name {
  display: block;
  margin: .2rem 0 .55rem;
  color: var(--muted);
  font-size: .76rem;
}

.listing-contact {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.listing-contact-dialog {
  max-width: 560px;
  text-align: center;
}

.listing-contact-dialog h2 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.listing-contact-dialog p {
  margin: .4rem 0 1.2rem;
  color: var(--green-dark);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
}

.listing-contact-dialog .button {
  width: 100%;
  margin-top: .8rem;
}

.owner-listing-delete {
  min-height: 38px;
  padding: 0 .75rem;
  font-size: .75rem;
}

.owner-listing-form label.has-error {
  color: #a33e2c;
}

.owner-listing-form .listing-field-error {
  border-color: #c84b35 !important;
  box-shadow: 0 0 0 3px rgba(200, 75, 53, .16);
}

.owner-listing-form .admin-form-message[data-state="error"] {
  color: #a33e2c;
  font-weight: 800;
}
.content-page > .listings-section {
  min-height: auto;
  padding-top: clamp(2.75rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

/* Keep public advertisements compact even when the grid contains one item. */
.content-page .listing-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  justify-content: center;
  align-items: stretch;
}

.content-page .listing-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
}

.content-page .listing-contact {
  margin-top: auto;
}

@media (max-width: 620px) {
  .content-page .listings-section .section-head h2 {
    font-size: clamp(2rem, 11vw, 2.75rem);
    overflow-wrap: anywhere;
  }

  .content-page .listing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-page .listing-card {
    width: 100%;
    min-height: 0;
  }

  .content-page .listing-card-head {
    flex-wrap: wrap;
  }

  .content-page .listing-contact {
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem .75rem;
    text-align: center;
  }
}
