/* Follow the existing house-plan cards; keep the drawing fully visible. */
.plans--v5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 520px)); }
.planscard__zoom { display: block; width: 100%; padding: 0; border: 1px solid #a28356; color: inherit; background: #f3e8d2; cursor: zoom-in; }
.planscard__zoom img { width: 100%; height: auto; object-fit: contain; }
.plan-dialog { width: min(1400px, 96vw); max-width: 96vw; max-height: 94svh; padding: 0; overflow: hidden; border: 1px solid var(--line-2); background: var(--dusk-3); color: var(--cream); }
.plan-dialog::backdrop { background: rgba(6, 13, 22, .88); }
.plan-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.plan-dialog__bar button { min-height: 44px; padding: 8px 18px; border: 1px solid var(--bronze); background: transparent; color: var(--cream); font: inherit; cursor: pointer; }
.plan-dialog__bar button:hover { background: var(--bronze); color: var(--dusk-3); }
.plan-dialog__view { max-height: calc(94svh - 70px); overflow: auto; background: #f3e8d2; }
.plan-dialog__view img { display: block; width: 100%; min-width: 800px; height: auto; }
@media (max-width: 560px) { .plan-dialog__bar { padding: 8px 12px; } }
