:root {
  --preview-navy: #071f38;
  --preview-navy-2: #0b2d4b;
  --preview-gold: #c99543;
  --preview-gold-2: #e8c16b;
  --preview-ink: #15243a;
  --preview-muted: #657286;
  --preview-line: #dce5ef;
  --preview-soft: #f4f7fa;
  --preview-card: #ffffff;
  --preview-shadow: 0 18px 42px rgba(7, 31, 56, .08);
  --preview-heading: "Georgia", "Times New Roman", serif;
  --preview-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body.template-property-page {
  margin: 0;
  background:
    radial-gradient(circle at 78% 0, rgba(201, 149, 67, .16), transparent 34%),
    linear-gradient(180deg, #f7f9fb 0%, #ffffff 52%);
  color: var(--preview-ink);
  font-family: var(--preview-body);
}

body.template-property-page a {
  color: inherit;
  text-decoration: none;
}

.property-preview {
  padding: 38px 0 52px;
}

.property-preview__shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.property-preview__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--preview-muted);
  font-size: 13px;
  font-weight: 800;
}

.property-preview__breadcrumbs a {
  color: var(--preview-navy);
}

.property-preview__layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.property-preview__summary,
.property-preview__contact {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 14px;
}

.property-preview__summary {
  align-content: start;
}

.property-preview__label {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 5px;
  background: var(--preview-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.property-preview__summary h1 {
  margin: 4px 0 0;
  color: var(--preview-navy);
  font-family: var(--preview-heading);
  font-size: 34px;
  line-height: 1.08;
}

.property-preview__address {
  margin: 0;
  color: var(--preview-muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.property-preview__price {
  margin: 2px 0 0;
  color: var(--preview-gold);
  font-size: 29px;
  line-height: 1.05;
  font-weight: 950;
}

.property-preview__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 6px 0 2px;
}

.property-preview__metric {
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--preview-line);
  border-radius: 8px;
  background: var(--preview-card);
  text-align: center;
  box-shadow: 0 10px 24px rgba(7, 31, 56, .04);
}

.property-preview__metric span {
  color: var(--preview-muted);
  font-size: 11px;
  font-weight: 850;
}

.property-preview__metric strong {
  color: var(--preview-navy);
  font-size: 14px;
  line-height: 1.2;
}

.property-preview__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--preview-navy);
  border-radius: 5px;
  background: #fff;
  color: var(--preview-navy);
  font-size: 13px;
  font-weight: 900;
}

.property-preview__actions {
  display: grid;
  gap: 9px;
}

.property-preview__button--gold {
  border-color: transparent;
  background: linear-gradient(135deg, var(--preview-gold-2), var(--preview-gold));
  color: var(--preview-navy);
}

.property-preview__button:hover {
  background: var(--preview-navy);
  color: #fff;
}

.property-preview__main {
  display: grid;
  gap: 26px;
  min-width: 0;
}

.property-preview__gallery {
  display: grid;
  grid-template-columns: 1.55fr .72fr .72fr;
  grid-auto-rows: 160px;
  gap: 8px;
}

.property-preview__gallery-item,
.property-preview__gallery-placeholder {
  position: relative;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 6px;
  background: #dce4ed;
}

.property-preview__gallery-item--main {
  grid-row: span 2;
}

.property-preview__gallery-item:nth-of-type(2),
.property-preview__gallery-item:nth-of-type(3),
.property-preview__gallery-item--tall {
  grid-row: span 2;
}

.property-preview__gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-orientation: from-image;
}

.property-preview__gallery-item figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  border-radius: 999px;
  background: rgba(7, 31, 56, .82);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  padding: 6px 10px;
}

.property-preview__gallery-placeholder {
  grid-column: 1 / -1;
  display: grid;
  min-height: 320px;
  place-items: center;
  color: var(--preview-muted);
  font-weight: 900;
}

.property-preview__content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.property-preview__sections {
  display: grid;
  gap: 20px;
}

.property-preview__card {
  border: 1px solid var(--preview-line);
  border-radius: 8px;
  background: var(--preview-card);
  box-shadow: var(--preview-shadow);
  padding: 26px;
}

.property-preview__card h2 {
  margin: 0 0 18px;
  color: var(--preview-navy);
  font-family: var(--preview-heading);
  font-size: 25px;
  line-height: 1.18;
}

.property-preview__card p,
.property-preview__body p {
  margin: 0 0 16px;
  color: #4f6074;
  font-size: 16px;
  line-height: 1.8;
}

.property-preview__card p:last-child,
.property-preview__body p:last-child {
  margin-bottom: 0;
}

.property-preview__body strong {
  color: var(--preview-navy);
}

.property-preview__body ul,
.property-preview__body ol {
  display: grid;
  gap: 8px;
  margin: 0 0 18px 20px;
  color: #4f6074;
  font-size: 16px;
  line-height: 1.7;
  padding: 0;
}

.property-preview__body h2,
.property-preview__body h3 {
  margin: 24px 0 12px;
  color: var(--preview-navy);
  font-family: var(--preview-heading);
  line-height: 1.2;
}

.property-preview__card--lead {
  border-color: rgba(201, 149, 67, .38);
  background: linear-gradient(180deg, #fffdf8, #fff9ee);
}

.property-preview__card--lead p {
  color: var(--preview-navy);
  font-size: 17px;
  font-weight: 800;
}

.property-preview__info-table {
  display: grid;
}

.property-preview__info-table div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e7edf4;
  padding: 11px 0;
  color: var(--preview-muted);
  font-size: 14px;
  font-weight: 800;
}

.property-preview__info-table div:first-child {
  padding-top: 0;
}

.property-preview__info-table div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.property-preview__info-table strong {
  color: var(--preview-navy);
  text-align: right;
}

.property-preview__details {
  overflow: auto;
  margin: 0;
  max-height: 360px;
  border: 1px solid #e4ebf2;
  border-radius: 7px;
  background: #f8fafc;
  color: #314158;
  font-family: var(--preview-body);
  font-size: 14px;
  line-height: 1.7;
  padding: 16px;
  white-space: pre-wrap;
}

.property-preview__map {
  overflow: hidden;
  height: 360px;
  border: 1px solid var(--preview-line);
  border-radius: 7px;
  background: #e9eef3;
}

.property-preview__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.property-preview__agent {
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg, #061d35, #082743);
  color: #fff;
  box-shadow: 0 20px 42px rgba(6, 29, 53, .18);
}

.property-preview__agent-head {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  align-items: center;
  padding: 24px 24px 12px;
}

.property-preview__agent img {
  width: 74px;
  height: 74px;
  border: 3px solid rgba(232, 193, 107, .66);
  border-radius: 999px;
  object-fit: cover;
}

.property-preview__agent strong {
  display: block;
  font-family: var(--preview-heading);
  font-size: 19px;
  line-height: 1.2;
}

.property-preview__agent span {
  display: block;
  margin-top: 5px;
  color: var(--preview-gold-2);
  font-size: 12px;
  font-weight: 850;
}

.property-preview__agent a {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: var(--preview-gold-2);
  font-size: 15px;
  font-weight: 900;
  padding: 14px 24px;
}

.property-preview__preview-note {
  box-shadow: 0 12px 30px rgba(7, 31, 56, .06);
}

.property-preview__preview-note h2 {
  font-size: 21px;
}

@media (max-width: 1100px) {
  .property-preview__layout,
  .property-preview__content-grid {
    grid-template-columns: 1fr;
  }

  .property-preview__summary,
  .property-preview__contact {
    position: static;
  }

  .property-preview__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .property-preview__label,
  .property-preview__summary h1,
  .property-preview__address,
  .property-preview__price,
  .property-preview__metrics,
  .property-preview__button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .property-preview {
    padding: 24px 0 36px;
  }

  .property-preview__shell {
    width: min(100% - 28px, 1240px);
  }

  .property-preview__layout,
  .property-preview__main,
  .property-preview__content-grid {
    gap: 18px;
  }

  .property-preview__summary h1 {
    font-size: 30px;
  }

  .property-preview__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-preview__gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 218px;
  }

  .property-preview__gallery-item--main,
  .property-preview__gallery-item--tall {
    grid-row: auto;
  }

  .property-preview__card {
    padding: 20px;
  }

  .property-preview__info-table div {
    display: grid;
    gap: 4px;
  }

  .property-preview__info-table strong {
    text-align: left;
  }

  .property-preview__map {
    height: 280px;
  }
}
