.property-detail-page .property-photo-enquiry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 29%);
  gap: clamp(12px, 2vw, 24px);
  align-items: start;
  margin-bottom: 18px;
}

.property-detail-page .property-photo-enquiry > .detail-gallery {
  min-width: 0;
  margin: 0;
}

.property-detail-page .detail-gallery-expand {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #eaf0fa;
}

.property-detail-page .property-photo-enquiry .detail-main-image {
  height: auto;
  aspect-ratio: 3 / 2;
  max-height: 560px;
}

.property-detail-page .detail-gallery-expand > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #122a4b;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
}

.property-detail-page .detail-gallery-expand:focus-visible {
  outline: 3px solid #2856a1;
  outline-offset: -3px;
}

.property-detail-page .property-photo-enquiry > .property-enquiry {
  position: static;
  margin: 0;
  padding: clamp(14px, 1.9vw, 22px);
  overflow-wrap: anywhere;
}

.property-detail-page .property-enquiry-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

body main .property-detail-page .property-enquiry-price-row > form.customer-heart {
  position: static;
  flex: none;
  margin: 0;
}

.property-detail-page .property-enquiry .detail-price {
  min-width: 0;
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  white-space: normal;
}

.property-detail-page .property-enquiry .purpose-price { display: block; }
.property-detail-page .property-enquiry .purpose-price + .purpose-price { margin-top: 6px; }
.property-detail-page .property-enquiry .old-price { font-size: .75em; }

.property-detail-page .property-enquiry-contact {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #d9e2f0;
}

.property-detail-page .property-enquiry-contact h2 { margin: 0 0 6px; }
.property-detail-page .property-enquiry-contact p { margin: 0 0 10px; }
.property-detail-page .property-enquiry-phone { font-weight: 700; }

.property-detail-page .property-enquiry .contact-buttons .btn {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  display: grid;
  place-items: center;
  text-align: center;
  white-space: normal;
}

.property-detail-page .property-enquiry .contact-buttons > .btn:last-child {
  flex-basis: 100%;
}

.property-detail-page .description { max-width: 85ch; }

@media (max-width: 760px) {
  .property-detail-page .property-photo-enquiry { grid-template-columns: minmax(0, 1fr); }
}

/* Related cards can be narrower than the viewport, especially in the editor. */
body main .property-detail-page .compact-results > :is(.compact-property, .compact-project) {
  position: relative;
  grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
  align-items: start;
  container-type: inline-size;
}

body main .property-detail-page .compact-results > :is(.compact-property, .compact-project) > .customer-heart {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  margin: 0;
  padding: 0;
}

body main .property-detail-page .compact-results :is(.property-photo, .project-thumb) {
  display: block;
  width: 100%;
  height: auto;
}

body main .property-detail-page .compact-results :is(.property-photo img, .project-thumb img, .picture-placeholder) {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.property-detail-page .compact-results :is(.compact-property, .compact-project) > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

@container (max-width: 250px) {
  .property-detail-page .compact-results :is(.compact-property, .compact-project) > :is(.property-photo, .project-thumb, div) {
    grid-column: 1 / -1;
  }

  body main .property-detail-page .compact-results :is(.compact-property, .compact-project) h3 {
    padding-inline-end: 0;
  }
}
