.property-detail__hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  aspect-ratio: 4 / 1;
  margin: 0 calc(50% - 50vw);
  overflow: hidden;
  border-bottom: 1px solid #d8d8d5;
  background: #f1f1ef;
}

.property-detail__hero img,
.property-detail__gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* This stylesheet is attached only by node--properties.html.twig.  Hiding the
 * global breadcrumb here avoids duplicate breadcrumbs without relying on :has(),
 * which is inconsistent on older mobile browsers. */
.site-breadcrumb {
  display: none;
}

.property-detail__breadcrumb {
  border-bottom: 1px solid #e2e2df;
  background: #fafafa;
}

.property-detail__breadcrumb-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 15px 24px;
  color: #666;
  font-size: 15px;
  letter-spacing: .04em;
  line-height: 1.4;
}

.property-detail__breadcrumb a {
  color: #666;
  text-decoration: none;
}

.property-detail__breadcrumb a:hover,
.property-detail__breadcrumb a:focus-visible {
  color: #888;
}

.property-detail__breadcrumb span {
  color: #888;
}

.property-detail__breadcrumb span[aria-hidden="true"] {
  margin: 0 .2em;
  color: #ccc;
}

.property-detail__breadcrumb strong {
  color: #00a76d;
  font-weight: 600;
}

.property-detail__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 100px;
}

.property-detail__title {
  margin: 0 0 44px;
  color: #111;
  font-family: "Gill Sans MT", "Gill Sans", "Gill Sans Nova", Calibri, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: pretty;
}

.property-detail__description {
  margin-bottom: 34px;
}

.property-detail__description p {
  margin: 0 0 18px;
  color: #333;
  font-size: 18px;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
  text-wrap: pretty;
}

.property-detail__description p:last-child {
  margin-bottom: 0;
}

.property-detail__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.property-detail__gallery-item {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d8d8d5;
  background: #f1f1ef;
}

.property-detail__cta {
  margin: 34px 0 40px;
}

.property-detail__cta a {
  display: flex;
  width: 100%;
  max-width: 520px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .1em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.property-detail__cta a:hover,
.property-detail__cta a:focus-visible {
  background: #fff;
  color: #111;
}

.property-detail__cta svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

@media (max-width: 47.999rem) {
  .property-detail__inner {
    padding: var(--sjm-mobile-gutter) var(--sjm-mobile-gutter) 100px;
  }

  .property-detail__title {
    font-size: var(--sjm-mobile-detail-h1) !important;
    line-height: 1.1;
  }

  .property-detail__description p {
    font-size: var(--sjm-mobile-body) !important;
    line-height: 1.62;
  }

  .property-detail__cta a {
    min-height: var(--sjm-mobile-action-height) !important;
    font-size: var(--sjm-mobile-label) !important;
    justify-content: flex-start;
    text-align: left;
  }

  .property-detail__cta a > span {
    flex: 1 1 auto;
    text-align: left;
  }

  .property-detail__cta svg {
    margin-left: auto;
  }

  .property-detail__breadcrumb-inner {
    padding-right: var(--sjm-mobile-gutter);
    padding-left: var(--sjm-mobile-gutter);
    font-size: var(--sjm-mobile-label);
  }

  .property-detail__gallery {
    grid-template-columns: 1fr;
  }
}
