/* Estate panel — blueprint + key figures + house-type switcher. Colours and fonts come from theme.css. */
.estate-panel {
  --ep-bg: var(--bg); --ep-ink: var(--ink); --ep-muted: var(--muted); --ep-btn: var(--panel);
  display: grid; grid-template-columns: 42% 58%; min-height: 46vh;
  background: var(--ep-bg); color: var(--ep-ink); transition: background .6s, color .6s;
}

.ep-plan { background: var(--deep); display: grid; place-items: center; padding: clamp(24px, 4vw, 56px); }
.ep-plan-svg { width: 100%; max-width: 560px; height: auto; display: block; }
.ep-plan-svg .w  { fill: none; stroke: #fff; stroke-width: 2.2; }
.ep-plan-svg .t  { fill: none; stroke: #fff; stroke-width: .9; }
.ep-plan-svg .h  { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: .6; }
.ep-plan-svg .d  { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: .6; stroke-dasharray: 3 3; }
.ep-plan-svg .tx { fill: rgba(255, 255, 255, .75); font: 500 8px var(--font-body); letter-spacing: .08em; }

.ep-info { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 3.4vw, 48px) clamp(24px, 3.4vw, 48px); gap: 40px; }
.ep-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ep-label svg { color: var(--accent-text); }
.ep-label { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 400 clamp(15px, 1.35vw, 19px) var(--font-body); color: var(--ep-muted); }
.ep-value {
  margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1; color: var(--accent-text);
  font-size: clamp(34px, 4.2vw, 62px); letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap;
}
.ep-value sup { font-size: .5em; vertical-align: .9em; line-height: 0; }

.ep-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.ep-arrows { display: flex; gap: 8px; }
.ep-arrows button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--ep-btn); color: var(--ep-ink); cursor: pointer; transition: transform .25s, background .3s;
}
.ep-arrows button:hover { transform: scale(1.08); background: var(--primary); color: var(--primary-contrast); }
.ep-type { display: flex; align-items: center; gap: 24px; }
.ep-type-name { margin: 0; font: 400 clamp(16px, 1.4vw, 20px)/1.25 var(--font-body); color: var(--ep-muted); }
.ep-thumbs { display: flex; }
.ep-thumb { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ep-bg); }
.ep-thumb--day { object-position: 38% 60%; position: relative; z-index: 2; }
.ep-thumb--dusk { margin-left: -16px; object-position: 75% 50%; filter: brightness(.5) saturate(.8); }

@media (max-width: 900px) {
  .estate-panel { grid-template-columns: 1fr; }
  .ep-stats { grid-template-columns: 1fr 1fr; }
  .ep-stats .ep-stat:last-child { grid-column: span 2; }
}
@media (max-width: 480px) {
  .ep-foot { flex-direction: column-reverse; align-items: flex-start; }
  .ep-thumb { width: 64px; height: 64px; }
}
