.san-juan-page { background: var(--white); }
.sj-hero { padding: 55px 0 0; background: var(--tint); }
.sj-hero-heading { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-bottom: 32px; }
.sj-hero h1 { font-size: clamp(2.6rem, 5vw, 4.7rem); line-height: 1.08; margin-bottom: .65rem; }
.sj-address { margin: 0; color: var(--muted); font-size: 1.1rem; }
.sj-offer { flex-shrink: 0; text-align: right; }
.sj-price { font-family: var(--font-heading); font-size: 2.65rem; line-height: 1.2; margin-bottom: 1rem; }
.sj-hero-photo { position: relative; }
.sj-hero-photo > img { width: 100%; height: auto; max-height: 650px; object-fit: cover; object-position: center 52%; }
.sj-photo-link { position: absolute; right: 1.25rem; bottom: 1.25rem; background: var(--white); padding: .7rem 1.1rem; text-decoration: none; font-size: .9rem; }
.sj-facts { display: grid; grid-template-columns: repeat(4, 1fr); padding: 32px 0; margin-top: 0; margin-bottom: 0; }
.sj-facts > div { padding: 0 1.5rem; border-right: 1px solid var(--line-strong); }
.sj-facts > div:first-child { padding-left: 0; }
.sj-facts > div:last-child { border: 0; }
.sj-facts dt { color: var(--muted); font-size: .875rem; }
.sj-facts dd { margin: .35rem 0 0; font-family: var(--font-heading); font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.2; }
.sj-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.sj-overview h2, .san-juan-page .phase3-cta-copy h2 { font-size: clamp(2.3rem, 4vw, 3.6rem); line-height: 1.12; }
.sj-description { color: var(--muted); }
.sj-description .button { margin-top: .8rem; }
.sj-section-heading { margin-bottom: 2rem; }
.sj-video-section { padding-top: 0; }
.sj-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #201b1f; }
.sj-section-heading h2 { line-height: 1.1; }
.sj-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.7rem 1rem; }
.sj-gallery figure { margin: 0; }
.sj-photo { display: block; width: 100%; border: 0; padding: 0; background: var(--white); cursor: zoom-in; }
.sj-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.sj-gallery figcaption { margin-top: .5rem; font-size: .875rem; color: var(--muted); line-height: 1.45; }
.sj-agent { display: flex; gap: 1rem; align-items: center; margin: 2rem 0 1rem; }
.sj-agent img { object-fit: cover; }
.sj-agent h3 { margin-bottom: .5rem; font-size: 1.8rem; line-height: 1.1; }
.sj-agent p { margin: 0; font-size: .875rem; }
.sj-listing-note { font-size: .875rem; margin-top: 2rem; }
.san-juan-page .form-privacy-note { font-size: .875rem; }
.san-juan-page .section-label { font-size: .875rem; }
.san-juan-page .phase3-cta-copy a { overflow-wrap: anywhere; }
.sj-dialog { width: min(1050px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 1rem; border: 0; background: #201b1f; color: white; }
.sj-dialog::backdrop { background: rgba(15, 12, 14, .88); }
.sj-dialog-toolbar, .sj-dialog-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.sj-photo-counter { margin: 0; font-size: .9rem; }
.sj-dialog button { color: white; background: transparent; border: 1px solid #b3a7ae; padding: .65rem 1rem; min-height: 44px; cursor: pointer; font-size: .9rem; }
.sj-expanded-photo { max-height: calc(100dvh - 180px); width: 100%; object-fit: contain; margin: 1rem 0; }
.san-juan-page :focus-visible { outline: 3px solid #724153; outline-offset: 4px; }
.sj-dialog :focus-visible { outline-color: white; }
@media (max-width: 760px) {
  .sj-hero { padding-top: 32px; }
  .sj-hero-heading { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .sj-offer { text-align: left; }
  .sj-price { font-size: 2.2rem; }
  .sj-hero-photo > img { aspect-ratio: 3 / 2; max-height: none; }
  .sj-facts { grid-template-columns: 1fr 1fr; gap: 1.5rem 0; }
  .sj-facts > div:nth-child(odd) { padding-left: 0; }
  .sj-facts > div:nth-child(even) { border-right: 0; }
  .sj-facts dd { font-size: 1.75rem; }
  .sj-overview-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .sj-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .san-juan-page .section { padding: 60px 0; }
}
@media (max-width: 420px) {
  .sj-gallery { grid-template-columns: 1fr; }
  .sj-photo-link { bottom: .7rem; right: .7rem; padding: .5rem .75rem; }
  .sj-agent { align-items: flex-start; }
  .sj-agent img { width: 72px; height: 92px; }
}
