/* Buyer view of an exposé (Sample Exposé.dc.html). --brand comes from agency branding. */
.sx { min-height: 100vh; background: var(--card); }
.sx-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.expose { --brand: var(--accent); }
.expose h1, .expose h2 { font-family: var(--font-serif); font-weight: 500; }

/* Sample banner + header */
.sx-banner { background: var(--dark); color: #FFFFFF; }
.sx-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 13.5px;
}
.sx-banner__inner > span { display: flex; flex-wrap: wrap; gap: 4px 10px; color: #C9D3DA; }
.sx-banner a { color: #C9D3DA; }
.sx-banner a:hover { color: #FFFFFF; }
.sx-banner .sx-banner__cta { padding: 6px 14px; border-radius: var(--r-8); background: #FFFFFF; color: var(--ink); font-weight: 600; }

.sx-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.sx-header__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sx-agency { font: 500 19px/1 var(--font-serif); letter-spacing: -.01em; }
.sx-logo { max-width: 180px; max-height: 36px; object-fit: contain; }

.lang-pills { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: var(--r-pill); }
.lang-pills a { padding: 6px 11px; border-radius: var(--r-pill); color: var(--ink); font: 600 11px var(--font-mono); }
.lang-pills a:hover { background: var(--page); color: var(--ink); }
.lang-pills a[aria-current="true"] { background: var(--ink); color: #FFFFFF; }

/* Photos */
.sx-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 220px 220px;
  gap: 8px;
  margin-top: 24px;
  border-radius: var(--r-18);
  overflow: hidden;
}
.sx-mosaic > :first-child { grid-column: span 2; grid-row: span 2; }
/* Positioned, not height: 100% in the grid: Safari sizes those by the whole grid */
.sx-photo { position: relative; overflow: hidden; }
.sx-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sx-mosaic--single { grid-template-columns: 1fr; grid-template-rows: 440px; }
.sx-mosaic--single > :first-child { grid-column: auto; grid-row: auto; }

/* Content + aside */
.sx-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; padding-top: 36px; padding-bottom: 96px; }
.sx-main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }

.sx-intro { display: flex; flex-direction: column; gap: 12px; }
.sx-loc { font: 500 11.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.sx-intro h1 { font-size: clamp(34px, 4.4vw, 48px); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.sx-highlight { font-size: 17px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }

.key-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-top: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-14);
  overflow: hidden;
}
.key-tiles > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-right: 1px solid var(--border-soft); }
.key-tiles > div:last-child { border-right: 0; }
.key-tiles strong { font: 500 24px var(--font-serif); }
.key-tiles span { font-size: 12.5px; color: var(--text-3); }

.sx-section { display: flex; flex-direction: column; gap: 14px; }
.sx-section h2 { font-size: 28px; }
.prose { font-size: 16.5px; line-height: 1.65; color: var(--prose); text-wrap: pretty; }

/* Cell lines: neighbouring outlines meet in the 1px gap; the outer ones are clipped. Empty cells
   at the end of the last row stay white. */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-14);
  overflow: hidden;
}
.facts > div { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; outline: 1px solid var(--border-soft); }
.facts dt { font-size: 12.5px; color: var(--text-3); }
.facts dd { margin: 0; font-size: 15px; font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { display: flex; gap: 6px; padding: 8px 13px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 13.5px; }
.chips span { color: var(--text-3); }
.chips strong { font-weight: 600; }

/* Legal status */
.floor-plan { display: block; width: 100%; height: auto; background: #FFFFFF; }
.legal { margin: 0; padding: 0; list-style: none; }
.legal li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border-soft); font-size: 15px; }
.legal li > span:nth-child(2) { flex: 1; color: var(--text-3); }
.legal strong { font-weight: 500; text-align: right; }
.legal__check {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  color: #FFFFFF;
  font-size: 11px;
}
.legal__check--pending { visibility: hidden; }
.sx-disclaimer { font-size: 12px; line-height: 1.5; color: var(--muted); }

/* Agent contact */
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--border-soft); border-radius: var(--r-14); }
.contact-card > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text-3); }
.contact-card strong { font-size: 16px; font-weight: 600; color: var(--ink); }
.contact-card a { color: var(--brand); overflow-wrap: anywhere; }
.contact-card__office { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--border-soft); }

/* Listing status on the hero photo */
.bx-badge {
  position: absolute;
  z-index: 2;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  color: #FFFFFF;
  font: 600 11px var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.bx-badge--reserved { background: var(--warning); }
.bx-badge--sold { background: var(--error); }

/* Price and agent */
.sx-aside {
  position: sticky;
  top: 88px;
  flex: 0 1 380px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 20px 50px rgba(28, 31, 35, .08);
}
.sx-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sx-price strong { font: 500 36px var(--font-serif); color: var(--brand); letter-spacing: -.01em; }
.sx-price span { font-size: 13px; color: var(--text-3); }
.sx-agent { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.sx-agent > div { display: flex; flex-direction: column; gap: 1px; }
.sx-agent strong { font-size: 15px; font-weight: 600; }
.sx-agent span, .sx-agent a { font-size: 12.5px; color: var(--text-3); }
.sx-pdf { width: 100%; }
.avatar--lg { width: 48px; height: 48px; font-size: 15px; }
.expose .avatar { background: color-mix(in srgb, var(--brand) 12%, #FFFFFF); color: var(--brand); }

@media (max-width: 700px) {
  .sx-wrap { padding-left: 16px; padding-right: 16px; }
  .sx-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 110px 110px; border-radius: var(--r-14); }
  .sx-mosaic > :first-child { grid-row: auto; }
  .sx-mosaic--single { grid-template-columns: 1fr; grid-template-rows: 260px; }
  .sx-body { gap: 32px; padding-top: 28px; padding-bottom: 64px; }
  .sx-main { flex-basis: 100%; gap: 40px; }
  .sx-aside { position: static; flex-basis: 100%; min-width: 0; }
}
