/* Layout browsing is independent of the published-availability filter. */
#lot-plan-catalog{box-sizing:border-box;flex:none;margin:0;padding:0 14px;background:var(--paper,#f7f4ec);color:var(--ink,#203c34);border-bottom:1px solid var(--line,#203c3433)}
#lot-plan-catalog>summary{display:list-item;min-height:40px;box-sizing:border-box;padding:10px 0;cursor:pointer;list-style-position:inside;font-family:inherit;font-size:13px;font-weight:600;line-height:1.5}
#lot-plan-catalog .catalog-plan-content{padding:0 0 11px}
#catalog-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin:0;padding:0;list-style:none}
#catalog-plan-grid>li{min-width:0;margin:0;padding:0;list-style:none}
#catalog-plan-grid>li[hidden],#catalog-plan-empty[hidden]{display:none}
#lot-plan-catalog .catalog-plan-card{box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;gap:5px;width:100%;height:100%;margin:0;padding:7px;border:1px solid var(--line,#203c3433);border-radius:2px;background:#fffdf8;color:inherit;font:inherit;text-align:left;cursor:pointer}
#lot-plan-catalog .catalog-plan-card:hover{border-color:var(--ink,#203c34);background:white}
#lot-plan-catalog .catalog-plan-card:focus-visible,#lot-plan-catalog>summary:focus-visible,#catalog-plan-dialog-close:focus-visible{outline:2px solid var(--ink,#203c34);outline-offset:3px}
#lot-plan-catalog .catalog-plan-card img{display:block;width:100%;height:130px;object-fit:contain;background:#fff;margin:0 0 2px}
#lot-plan-catalog .catalog-plan-card strong{font-size:14px;line-height:1.3;font-weight:700}
#lot-plan-catalog .catalog-plan-count{font-size:11px;line-height:1.35;color:var(--muted,#5d6961)}
#lot-plan-catalog .catalog-plan-note,#lot-plan-catalog .catalog-plan-empty{font-size:11px;line-height:1.5;color:var(--muted,#5d6961);margin:9px 0 0;padding:0}
#lot-plan-catalog .catalog-plan-empty{font-size:13px;color:var(--ink,#203c34);margin:3px 0}
#lot-map-shell.map-expanded>#lot-plan-catalog .catalog-plan-content,#lot-map-shell:fullscreen>#lot-plan-catalog .catalog-plan-content{max-height:28svh;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}
body.catalog-plan-modal-open{overflow:hidden}
#catalog-plan-dialog{box-sizing:border-box;width:min(1280px,96vw);max-width:96vw;max-height:94svh;margin:auto;padding:0;border:1px solid var(--line,#203c3433);background:#fff;color:var(--ink,#203c34);overflow:auto;overscroll-behavior:contain}
#catalog-plan-dialog[open]{display:flex;flex-direction:column;height:min(94svh,1200px)}
#catalog-plan-dialog::backdrop{background:#10241fe8}
#catalog-plan-dialog .catalog-plan-dialog-head{box-sizing:border-box;display:flex;flex:none;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:0;z-index:3;min-height:61px;padding:8px 12px;border-bottom:1px solid var(--line,#203c3433);background:#fff}
#catalog-plan-dialog-title{position:static;width:auto;height:auto;min-width:0;padding:0;margin:0;overflow:visible;clip-path:none;white-space:normal;font:24px/1.1 Georgia,"Times New Roman",serif;letter-spacing:-.02em}
#catalog-plan-dialog .catalog-plan-heading{min-width:0}
#catalog-plan-dialog-area{margin:2px 0 0;padding:0;color:var(--muted,#5d6961);font:12px/1.25 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
#catalog-plan-dialog-area[hidden]{display:none}
#catalog-plan-dialog-close{box-sizing:border-box;min-height:44px;margin:0;padding:9px 16px;border:1px solid var(--line,#203c3433);border-radius:0;background:white;color:inherit;font:inherit;font-size:14px;cursor:pointer}
#catalog-plan-browse{box-sizing:border-box;display:flex;flex:none;align-items:center;justify-content:center;gap:16px;position:sticky;top:61px;z-index:2;min-height:54px;padding:4px 12px;border-bottom:1px solid var(--line,#203c3433);background:#fff}
#catalog-plan-browse[hidden]{display:none}
#catalog-plan-previous,#catalog-plan-next{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:0;padding:7px 12px;border:1px solid var(--line,#203c3433);border-radius:2px;background:#fff;color:inherit;font:22px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}
#catalog-plan-previous:hover,#catalog-plan-next:hover{background:var(--paper,#f7f4ec);border-color:var(--ink,#203c34)}
#catalog-plan-previous:focus-visible,#catalog-plan-next:focus-visible{outline:2px solid var(--ink,#203c34);outline-offset:2px}
#catalog-plan-previous:disabled,#catalog-plan-next:disabled{opacity:.4;cursor:default}
#catalog-plan-position{min-width:80px;color:var(--muted,#5d6961);font:12px/1.3 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums;text-align:center}
#catalog-plan-surface{box-sizing:border-box;position:relative;flex:1 1 0%;min-width:0;min-height:0;overflow:hidden;background:#fff;touch-action:pan-y pinch-zoom}
#catalog-plan-dialog-image{box-sizing:border-box;display:block;width:100%;max-width:100%;height:100%;min-height:0;max-height:none;margin:0;padding:12px;object-fit:contain;background:white;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;touch-action:pan-y pinch-zoom}
/* Hide the plot chooser; documented unit/variant associations remain intact. */
#catalog-plan-variants{display:none}
#catalog-plan-roof-types{display:flex;flex:none;flex-wrap:wrap;justify-content:center;gap:7px;padding:5px 12px;background:white}
#catalog-plan-roof-types[hidden]{display:none}
#catalog-plan-roof-types button{min-height:44px;padding:8px 13px;border:1px solid var(--line,#203c3433);background:white;color:inherit;font:inherit;font-size:13px;cursor:pointer}
#catalog-plan-roof-types button[aria-pressed=true]{background:var(--ink,#203c34);color:white;border-color:var(--ink,#203c34)}
#catalog-plan-roof-types button:focus-visible{outline:2px solid var(--ink,#203c34);outline-offset:3px}
#catalog-plan-floors{display:flex;flex:none;flex-wrap:wrap;justify-content:center;gap:7px;padding:5px 12px;background:white}
#catalog-plan-variants[hidden],#catalog-plan-floors[hidden]{display:none}
#catalog-plan-variants button,#catalog-plan-floors button{min-height:40px;padding:8px 13px;border:1px solid var(--line,#203c3433);background:white;color:inherit;font:inherit;font-size:13px;cursor:pointer}
#catalog-plan-variants button[aria-pressed=true],#catalog-plan-floors button[aria-pressed=true]{background:var(--ink,#203c34);color:white;border-color:var(--ink,#203c34)}
#catalog-plan-variants button:focus-visible,#catalog-plan-floors button:focus-visible{outline:2px solid var(--ink,#203c34);outline-offset:3px}
#catalog-plan-dialog[data-has-floors=true] #catalog-plan-dialog-image{height:100%}
@media(max-width:550px){#lot-plan-catalog{padding:0 9px}#lot-plan-catalog>summary{min-height:37px;padding:9px 0;font-size:12px}#catalog-plan-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}#lot-plan-catalog .catalog-plan-card{padding:5px;gap:4px}#lot-plan-catalog .catalog-plan-card img{height:100px}#lot-plan-catalog .catalog-plan-card strong{font-size:13px}#lot-plan-catalog .catalog-plan-count{font-size:10px}#catalog-plan-dialog-image{padding:7px}}
@media(max-width:350px){#catalog-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-height:550px) and (orientation:landscape){#lot-plan-catalog>summary{min-height:31px;padding:5px 0;font-size:12px}#catalog-plan-grid{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}#lot-plan-catalog .catalog-plan-card img{height:95px}}
