/* Single listing pages */
.l-page { background: var(--bg); }
.l-wrap { padding-top: 26px; max-width: 1120px; }
.l-crumbs { max-width: none; margin-bottom: 16px; }

.l-gallery { display: grid; grid-template-columns: 1fr; gap: 10px; }
.l-main { display: block; width: 100%; aspect-ratio: 3 / 2; max-height: min(540px, 58vh); border-radius: 24px; overflow: hidden; background: #ddd5c8; cursor: zoom-in; }
.l-main img { width: 100%; height: 100%; object-fit: cover; }
.l-gallery.one .l-main { aspect-ratio: 16 / 9; }
.l-gallery.none svg { display: block; width: 100%; height: auto; border-radius: 24px; }
.l-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.l-thumb { flex: none; width: 104px; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; opacity: .7; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .15s; }
.l-thumb img { width: 100%; height: 100%; object-fit: cover; }
.l-thumb.on, .l-thumb:hover { opacity: 1; }
.l-thumb.on { outline-color: var(--gold); }

.l-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; margin-top: 30px; }
.l-status { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.l-status.live { background: var(--gold); color: #fff; }
.l-status.sold { background: var(--ink); color: #fff; }
.l-price { margin-top: 14px; font: 400 clamp(40px, 5vw, 56px)/1 var(--serif); letter-spacing: -.02em; }
.l-price small { display: block; margin-bottom: 6px; color: var(--ink-3); font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.l-addr { margin-top: 12px; font: 600 22px/1.25 var(--sans); }
.l-addr span { display: block; margin-top: 2px; color: var(--ink-2); font-size: 16px; font-weight: 400; }
.l-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 22px; list-style: none; }
.l-facts li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: 0 2px 8px rgba(40,32,20,.06); }
.l-facts svg { grid-row: span 2; width: 24px; height: 24px; fill: none; stroke: var(--gold-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.l-facts b { font-size: 17px; line-height: 1.2; }
.l-facts span { color: var(--ink-3); font-size: 12.5px; }
.l-role { margin-top: 16px; color: var(--ink-2); font-size: 15px; }
.l-h { margin: 34px 0 6px; font: 400 28px/1.15 var(--serif); }
.l-main-col > p:not(.l-role):not(.l-mls) { max-width: 66ch; margin-top: 14px; color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }
.l-maplink { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; margin-top: 22px; padding: 0 18px; border-radius: 999px; background: var(--surface); box-shadow: 0 2px 8px rgba(40,32,20,.08); font-weight: 600; }
.l-maplink svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.l-maplink:hover { box-shadow: var(--shadow); }
.l-mls { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; line-height: 1.5; max-width: 70ch; }

.l-ask { position: sticky; top: 92px; padding: 24px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.l-ask .talk-photo { width: 56px; height: 56px; }
.l-ask h2 { margin-top: 12px; font: 400 25px/1.15 var(--serif); }
.l-ask > p { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.l-btns { display: grid; gap: 8px; margin-top: 16px; }
.l-btns a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; font-weight: 600; }
.l-text { background: var(--imsg); color: #fff; }
.l-call { background: var(--ink); color: #fff; }
.l-form { margin-top: 14px; }
.l-form summary { min-height: 40px; display: flex; align-items: center; color: var(--gold-ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.l-form form { display: grid; gap: 10px; margin-top: 6px; }
.l-form label { display: grid; gap: 4px; color: var(--ink-2); font-size: 13px; }
.l-form input, .l-form textarea { width: 100%; padding: 10px 12px; border: 1px solid rgba(22,21,20,.2); border-radius: 10px; background: #fff; font: 16px/1.4 var(--sans); color: var(--ink); }
.l-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.l-form button { min-height: 46px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; }
.l-form .status { font-size: 13.5px; color: var(--ink-2); }
.l-form .status.ok { color: #2f6b4f; } .l-form .status.err { color: #a32a1f; }
.l-form .status a { text-decoration: underline; }

.l-box { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12,11,10,.94); color: #fff; }
.l-box[open] { display: grid; place-items: center; }
.l-box img { max-width: calc(100vw - 120px); max-height: calc(100dvh - 100px); object-fit: contain; border-radius: 8px; }
.l-box button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1; }
.l-box button:hover { background: rgba(255,255,255,.24); }
.l-x { top: 16px; right: 16px; } .l-prev { left: 16px; top: 50%; translate: 0 -50%; } .l-next { right: 16px; top: 50%; translate: 0 -50%; }
.l-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 14px; color: rgba(255,255,255,.8); }
.l-main:focus-visible, .l-thumb:focus-visible, .l-maplink:focus-visible, .l-btns a:focus-visible, .l-box button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 900px) {
  .l-grid { grid-template-columns: 1fr; gap: 30px; }
  .l-ask { position: static; }
}
@media (max-width: 640px) {
  .l-wrap { padding-top: 16px; }
  .l-main { border-radius: 18px; aspect-ratio: 4 / 3; }
  .l-thumb { width: 84px; }
  .l-box img { max-width: 100vw; border-radius: 0; }
  .l-prev, .l-next { top: auto; bottom: 12px; translate: none; }
  .l-count { bottom: 26px; }
}

.l-near ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.l-near a { display: block; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: 0 2px 8px rgba(40,32,20,.06); }
.l-near a:hover { box-shadow: var(--shadow); }
.l-near b { display: block; font-size: 15px; }
.l-near span { display: block; margin-top: 2px; color: var(--ink-2); font-size: 13.5px; }
.l-near a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
