/* Two independent building selections, registered to their original image geometry. */
[data-estate-explorer] { display: block; min-height: 0; padding: 64px 4vw; background: #e8e8e8; }
[data-estate-explorer] > h2 { margin: 0 0 32px; color: var(--anthracite); }
.estate-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4vw; }
.estate-panel { min-width: 0; border-top: 1px solid rgba(46,43,41,.35); padding-top: 24px; }
.estate-panel header h3 { margin: 0 0 8px; font: 500 clamp(24px, 2vw, 36px)/1.2 var(--font-body); }
.estate-panel header p { margin: 0; font-size: 15px; line-height: 1.5; }
[data-estate-explorer] .estate-visual { width: 100%; height: auto; min-height: 0; margin: 0; overflow: visible; }
.explorer-trail { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 0; color: var(--anthracite); font-size: 16px; }
.explorer-trail button { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: inherit; font: inherit; }
.explorer-stage { position: relative; width: 100%; overflow: hidden; }
[data-explorer-view="plan"] .explorer-stage { background: white; }
[data-estate-explorer] .estate-visual .explorer-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; transition: none; }
[data-estate-explorer] .estate-options { padding: 0; color: var(--anthracite); background: transparent; }
.explorer-controls { margin: 8px 0 20px; }
.explorer-map { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.explorer-map [data-region] { pointer-events: auto; cursor: pointer; outline: none; }
.explorer-map polygon { fill: transparent; stroke: transparent; stroke-width: 2; transition: fill 140ms ease, stroke 140ms ease; }
.explorer-map .is-highlighted polygon, .explorer-map [data-region]:focus-visible polygon { fill: rgba(25, 23, 20, .42); stroke: var(--gold); }
[data-estate-explorer] .estate-visual .explorer-caption { position: static; padding: 16px 32px 24px; margin: 0; color: var(--anthracite); font-size: 14px; line-height: 1.5; }
.explorer-caption a { color: var(--anthracite); text-underline-offset: 4px; }
.explorer-step { margin: 0 0 8px; font-size: 12px; letter-spacing: .13em; font-weight: 600; }
.explorer-hint { font-size: 15px; line-height: 1.5; margin: 0 0 16px; }
.explorer-houses { display: flex; gap: 8px; margin-bottom: 24px; }
.explorer-houses[hidden] { display: none; }
.explorer-houses button { flex: 1; padding: 12px 8px; border: 1px solid var(--anthracite); background: transparent; color: var(--anthracite); font: 500 15px var(--font-body); min-height: 44px; }
.explorer-houses button[aria-pressed="true"] { background: var(--anthracite); color: var(--white); }
.explorer-choices { display: grid; gap: 1px; border-top: 1px solid rgba(46,43,41,.35); }
.explorer-choices > * { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 8px; min-height: 48px; border: 0; border-bottom: 1px solid rgba(46,43,41,.35); color: var(--anthracite); background: transparent; text-decoration: none; font: 400 16px var(--font-body); text-align: left; }
.explorer-choices strong { font-weight: 500; white-space: nowrap; }
.explorer-choices span { font-size: 13px; text-align: right; }
.explorer-choices .is-highlighted { background: var(--anthracite); color: var(--white); }
[data-estate-explorer] button, .explorer-choices a { cursor: pointer; }
[data-estate-explorer] button:focus-visible, .explorer-choices a:focus-visible, .explorer-caption a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.explorer-image-error { position: absolute; inset: 20% 10%; padding: 24px; background: var(--anthracite); color: var(--white); font-size: 16px; }
.explorer-sold { width: min(460px, calc(100% - 32px)); padding: 32px; color: var(--anthracite); background: #faf7ef; border: 1px solid var(--gold); }
.explorer-sold::backdrop { background: rgba(0,0,0,.6); }
.explorer-sold h2 { font-size: 32px; margin: 16px 0; }
.explorer-sold p { line-height: 1.5; }
.explorer-sold button { padding: 14px 20px; min-height: 48px; background: var(--anthracite); color: var(--white); border: 0; font: inherit; margin-top: 16px; }

[data-estate-explorer] .estate-visual .explorer-caption { padding: 12px 0; font-size: 13px; }
.explorer-controls h4 { margin: 0 0 8px; font: 500 22px/1.2 var(--font-body); }
.explorer-houses { margin-bottom: 16px; max-width: 420px; }
.explorer-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.explorer-choices > * { flex-wrap: wrap; gap: 4px 12px; }
.explorer-step { font-size: 11px; }
.explorer-caption:empty, .explorer-step:empty, .explorer-hint:empty { display: none; }
@media (min-width: 761px) {
  [data-explorer-view="building"] .explorer-houses[hidden] { display: flex; visibility: hidden; min-height: 44px; }
}
@media (max-width: 760px) {
  [data-estate-explorer] { padding: 40px 20px; }
  .estate-panels { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .explorer-choices { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .explorer-map polygon { transition: none; } }
