/* Comparison workspace only: the result column never sizes itself from AI content. */
body.aznm[data-neomain-page="compare"] .header-actions{display:grid;grid-template-columns:max-content max-content;justify-content:start;align-items:center;gap:10px 18px;margin-bottom:22px}
body.aznm[data-neomain-page="compare"] #compare-button{justify-self:start;flex:none;margin:0;min-height:42px}
body.aznm[data-neomain-page="compare"] .compare-hint{grid-column:1/-1;justify-content:flex-start;text-align:start;max-width:none;width:auto;font-size:15px;line-height:1.4;min-height:24px}
body.aznm[data-neomain-page="compare"] .split-view{--result-width:min(64%,860px);--list-width:min(196px,30%);--workspace-inset:max(0px,calc((100% - var(--result-width) - var(--list-width) - 16px)/2));position:relative;display:block;max-width:none;margin:0;min-height:0;overflow-anchor:none}
/* Preserve the result panel's exact width and center the smaller list beside it.
 * Both columns are reserved before AI/charts arrive, with a constant 16px gutter. */
body.aznm[data-neomain-page="compare"] .split-view.split{min-height:calc(100dvh - 260px);max-width:none;gap:0;margin:0}
body.aznm[data-neomain-page="compare"] .left-panel{width:100%;max-width:none;max-height:none;margin-inline:0;animation:none;opacity:1;transform:none;transition:width 300ms cubic-bezier(.2,.75,.25,1);padding:0;overflow:visible}
body.aznm[data-neomain-page="compare"] .split .left-panel{width:var(--list-width);height:calc(100dvh - 250px);min-height:340px;max-height:900px;margin-inline-start:var(--workspace-inset);padding:2px 0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;flex:none}
body.aznm[data-neomain-page="compare"] .split .properties-container{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:10px}
body.aznm[data-neomain-page="compare"] .split .right-panel{display:flex;position:absolute;inset-block-start:0;inset-inline-end:var(--workspace-inset);width:var(--result-width);max-width:none;min-width:0;height:calc(100dvh - 250px);min-height:340px;max-height:900px;overflow:hidden;padding:18px;flex:none;opacity:1;animation:aznm-result-enter 300ms cubic-bezier(.2,.75,.25,1) both;transition:opacity 300ms,transform 300ms}
body.aznm[data-neomain-page="compare"] .split-view.is-closing .right-panel{animation:none;transform:translateX(36px);opacity:0;pointer-events:none}
body.aznm[data-neomain-page="compare"] .split-view.is-closing .left-panel{animation:none;opacity:1;transform:none;pointer-events:auto}
body.aznm[data-neomain-page="compare"] .split-view.is-restoring .left-panel{animation:none}
body.aznm[data-neomain-page="compare"] :is(#comparison-content,#comparison-content-popup){min-height:0;min-width:0;flex:1;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
body.aznm[data-neomain-page="compare"] .panel-header{flex:none;gap:12px;margin-bottom:14px}
body.aznm[data-neomain-page="compare"] .panel-title{font-size:18px;min-width:0;overflow-wrap:anywhere}
body.aznm[data-neomain-page="compare"] .comp-board{overflow:visible;max-width:100%;min-width:0}
body.aznm[data-neomain-page="compare"] .comp-headers{min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
body.aznm[data-neomain-page="compare"] .comp-header-img{height:100px}
body.aznm[data-neomain-page="compare"] .comp-header-info{padding:9px 10px}
body.aznm[data-neomain-page="compare"] .comp-header-price{font-size:19px;overflow-wrap:anywhere}
body.aznm[data-neomain-page="compare"] .comp-header-addr{font-size:14px;white-space:normal;overflow-wrap:anywhere}
body.aznm[data-neomain-page="compare"] .ai-insight-box{margin:14px 0;padding:16px;min-width:0}
body.aznm[data-neomain-page="compare"] .ai-text{font-size:16px;line-height:1.7;white-space:normal;overflow-wrap:anywhere}
body.aznm[data-neomain-page="compare"] .ai-text.is-streaming{white-space:pre-wrap}
body.aznm[data-neomain-page="compare"] .ai-text.is-streaming::after{content:'▍';color:var(--az-accent);animation:aznm-compare-cursor 1s steps(2,end) infinite}
body.aznm[data-neomain-page="compare"] .compare-chart-section[hidden],body.aznm[data-neomain-page="compare"] .compare-retry[hidden]{display:none!important}
body.aznm[data-neomain-page="compare"] .compare-chart-section.is-ready{animation:aznm-charts-enter 240ms ease both}
body.aznm[data-neomain-page="compare"] .comp-specs{min-width:0;overflow:visible}
body.aznm[data-neomain-page="compare"] .comp-row-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.aznm[data-neomain-page="compare"] .comp-cell-val,body.aznm[data-neomain-page="compare"] .comp-cell-plain{font-size:14px;min-width:0}
body.aznm[data-neomain-page="compare"] .comp-row-label{font-size:14px;color:var(--az-muted)}
body.aznm[data-neomain-page="compare"] .compare-retry{margin-top:12px;min-height:40px;padding:8px 16px;border:1px solid var(--nm-edge);border-radius:var(--az-r-control);background:var(--az-action);color:#fff;font:inherit;cursor:pointer}
body.aznm[data-neomain-page="compare"] .split .property-box .act-remove{display:none}
/* Square media tiles, with an intrinsic minimum height so translated controls
 * and long property names can grow safely rather than being clipped. */
body.aznm[data-neomain-page="compare"] .split .property-box{width:100%;min-width:0;min-height:196px;flex-direction:column}
body.aznm[data-neomain-page="compare"] .split .property-box .actions{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;justify-content:stretch;align-items:stretch;gap:6px;padding:0;min-width:0}
body.aznm[data-neomain-page="compare"] .split .card-inner{grid-template-columns:minmax(0,1fr);grid-template-rows:64px auto auto;align-items:stretch;align-content:space-between;gap:8px;padding:10px;min-width:0;min-height:194px}
body.aznm[data-neomain-page="compare"] .split .image-container{width:100%;height:64px;min-height:0;aspect-ratio:auto;margin:0;flex-basis:auto;border-radius:10px}
body.aznm[data-neomain-page="compare"] .split .details{gap:4px;min-width:0}
body.aznm[data-neomain-page="compare"] .split .property-box .act-btn{width:auto;min-width:0;max-width:100%;min-height:34px;padding:5px 8px;gap:5px;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
body.aznm[data-neomain-page="compare"] .split .property-box .act-btn i{font-size:12px;flex:none}
body.aznm[data-neomain-page="compare"] .split .property-box .act-btn span{min-width:0}
body.aznm[data-neomain-page="compare"] .split .addr{font-size:14px;line-height:1.4}
body.aznm[data-neomain-page="compare"] .split .compact-price{font-size:16px;line-height:1.3;overflow-wrap:anywhere}
body.aznm[data-neomain-page="compare"] #comparison-popup{align-items:stretch;justify-content:flex-end;padding:12px;background:rgb(5 12 18 / .5);animation:aznm-overlay-enter 300ms ease both}
body.aznm[data-neomain-page="compare"] #comparison-popup .popup-content{width:min(740px,100%);max-width:740px;height:100%;max-height:none;padding:18px;animation:aznm-result-enter 300ms cubic-bezier(.2,.75,.25,1) both;transition:transform 300ms ease}
body.aznm[data-neomain-page="compare"] #comparison-popup.is-closing{animation:none;opacity:0;transition:opacity 300ms ease}
body.aznm[data-neomain-page="compare"] #comparison-popup.is-closing .popup-content{animation:none;transform:translateX(100%)}
@keyframes aznm-result-enter{from{transform:translateX(44px);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes aznm-overlay-enter{from{opacity:0}to{opacity:1}}
@keyframes aznm-charts-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes aznm-compare-cursor{50%{opacity:0}}
@media(min-width:1500px){body.aznm[data-neomain-page="compare"] .comp-headers,body.aznm[data-neomain-page="compare"] .comp-row-values{grid-template-columns:repeat(min(var(--compare-count),3),minmax(0,1fr))}}
@media(max-width:600px){body.aznm[data-neomain-page="compare"] .header-actions{grid-template-columns:minmax(0,1fr) auto;gap:10px}body.aznm[data-neomain-page="compare"] .header-actions h2{font-size:21px}body.aznm[data-neomain-page="compare"] #compare-button{padding:8px 12px;font-size:14px}body.aznm[data-neomain-page="compare"] #comparison-popup{padding:8px;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom))}body.aznm[data-neomain-page="compare"] #comparison-popup .popup-content{padding:14px;border-radius:20px}body.aznm[data-neomain-page="compare"] .ai-insight-box{padding:12px}}
@media(prefers-reduced-motion:reduce){body.aznm[data-neomain-page="compare"] :is(.left-panel,.right-panel,#comparison-popup,#comparison-popup .popup-content,.compare-chart-section,.ai-text::after){animation:none!important;transition:none!important}}
body.aznm[data-neomain-page="compare"].aznm-comparison-modal-open{overflow:hidden!important}
