/* Shared business record views; existing galleries and map controls keep their styles. */
.property-library,.property-child,.property-comparison,.property-result-group{min-width:0;max-width:100%;color:var(--ink);overflow-wrap:anywhere}
.hero.property-library-hero{display:block;margin:0;padding:0;border:0}
.property-library-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 16px}
.property-library-hero .property-library-heading h1{margin:0;color:var(--ink);font-size:24px;line-height:1.25;letter-spacing:-.02em}
.property-library-heading .ma-market-toolbar{margin:0;gap:12px}
.property-library-heading .ma-market-toolbar :is(.ai-input-entry,.text-button){min-height:36px}

.property-library{container:property-library / inline-size;margin-top:12px}
.property-filter-form{padding-bottom:12px;border-bottom:1px solid var(--line)}
.property-filter-common{display:grid;grid-template-columns:minmax(0,1fr) repeat(3,minmax(113px,.58fr)) auto auto;gap:8px;align-items:center}
.property-filter-form :is(input,select),.property-sort-control select{
  width:100%;min-width:0;height:36px;border:1px solid var(--line);border-radius:var(--radius);
  padding:0 10px;background:var(--surface);color:var(--ink);font:inherit;font-size:13px;
}
.property-library select{--select-inline-inset:9px;--select-arrow-reserve:23px;text-overflow:ellipsis}
.property-filter-form input::placeholder{color:var(--muted)}
.property-filter-form :is(input,select):focus,.property-sort-control select:focus{border-color:var(--blue)}
.property-filter-search{
  display:flex;align-items:center;gap:7px;min-width:0;height:36px;padding:0 9px;
  border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--muted);
}
.property-filter-search .icon{width:16px;height:16px}
.property-filter-form .property-filter-search input{height:100%;padding:0;border:0;background:transparent}
.property-filter-form .property-filter-search input:focus-visible{outline:0}
.property-filter-search:focus-within{border-color:var(--blue);outline:2px solid var(--blue);outline-offset:2px}
.property-filter-actions{display:flex;align-items:center;gap:10px}
.property-filter-form .button,.property-filter-actions .text-button{min-height:36px;font-size:12px;white-space:nowrap}
.property-filter-form .button{padding-inline:11px}
.property-filter-more[aria-expanded=true]{border-color:var(--blue);background:var(--blue-soft);color:var(--blue-deep)}
.property-filter-advanced{
  display:grid;grid-template-columns:minmax(0,1fr) repeat(3,minmax(0,1.2fr));align-items:end;gap:8px;
  margin-top:8px;padding:10px;border-radius:var(--radius);background:var(--subtle);
}
.property-filter-advanced fieldset{min-width:0;margin:0;padding:0;border:0}
.property-filter-range-label,.property-filter-handover{font-size:12px;color:var(--body)}
.property-filter-range-label{padding:0;margin-bottom:4px}
.property-filter-range-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.property-filter-handover{display:grid;gap:4px;min-width:0}
.property-filter-dirty{margin:6px 0 0;color:var(--muted);font-size:12px}
.property-filter-dirty:empty{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

.property-results-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin:10px 0 12px}
.property-results-status{min-width:0}
.property-results-status h2{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin:0;font-size:17px}
.property-results-status h2 small{color:var(--muted);font-size:12px;font-weight:400}
.property-results-status p{margin:3px 0 0;color:var(--muted);font-size:12px}
.property-results-actions{display:flex;align-items:center;gap:8px;min-width:0;margin-left:auto}
.property-sort-control{display:flex;align-items:center;gap:6px;min-width:0;color:var(--muted);font-size:12px}
.property-sort-control span{white-space:nowrap}
.property-sort-control select{width:min(218px,100%);height:34px;font-size:12px}
.property-library .property-view-switch{height:34px;flex:none}
.property-library .property-view-switch button{min-width:42px;padding-inline:8px}
.property-library button,.property-child button,.property-legacy-facts button,.property-risk-section button{cursor:pointer}
.property-library button:disabled{cursor:default;opacity:.5}
.property-library :is(button,a,input,select):focus-visible,.property-child :is(button,a,summary):focus-visible,.property-risk-section summary:focus-visible,.property-comparison-scroll:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.property-note,.property-empty{font-size:12px;line-height:1.7;color:var(--muted)}
.property-error{padding:16px;border-left:3px solid #ae3e30;background:#fff5f2;color:#783127;line-height:1.7}
.property-error button,.property-note button{margin-left:10px;min-height:40px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);padding:5px 12px;color:inherit}
.property-compare-tray{
  position:sticky;bottom:8px;z-index:6;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;
  margin:12px 0 0;padding:7px 10px;border:1px solid var(--line);border-radius:var(--radius);
  background:var(--canvas);box-shadow:var(--shadow);
}
.property-compare-tray p{margin:0;color:var(--body);font-size:12px}
.property-compare-chips{display:flex;flex:1 1 160px;flex-wrap:wrap;gap:6px;min-width:0}
.property-compare-chips .comparison-chip{max-width:min(100%,185px);min-height:32px;overflow-wrap:anywhere}
.property-compare-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.property-compare-actions :is(.button,.text-button){min-height:32px;font-size:12px;white-space:nowrap}
.property-compare-actions .button{padding-inline:10px}
.property-result-group{margin:26px 0 36px}
.property-result-group[data-result-group="matches"]{margin-top:0}
.property-result-group>h2{display:flex;align-items:baseline;flex-wrap:wrap;gap:12px;margin:0 0 16px;font-size:18px}
.property-result-group>h2 small{font-size:12px;color:var(--muted);font-weight:400}
.property-result-group>[data-property-more]{display:block;min-height:44px;margin:20px auto 0}
.property-pending-reasons{padding:8px 10px;margin:10px 0;color:#77541a;background:#fff8e9;border-radius:5px;font-size:12px;line-height:1.6}
.property-risk-badge{display:inline-block;max-width:100%;padding:5px 9px;margin:8px 0;border:1px solid #d5dde5;border-radius:5px;background:#f4f6f8;color:#536476;font-size:11px;font-weight:600;line-height:1.6}
.property-risk-badge.is-attention{background:#fff1e9;color:#973b16;border-color:#e6a885}
.property-risk-badge.is-partial{background:#fff9e9;color:#77541a;border-color:#e2cc8c}
.property-risk-badge.is-checked{background:#edf3f8;color:#365674;border-color:#bfd0e0}
.property-comparison{padding:20px 0;margin:0 0 26px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.property-comparison h2,.property-risk-section h2,.property-child-section h2{font-size:18px;margin:0 0 12px;line-height:1.5}
.property-comparison-warning{font-size:13px;line-height:1.7;color:#77541a;background:#fff8e9;padding:10px 12px}
.property-comparison-scroll{max-width:100%;overflow:auto;overscroll-behavior-inline:contain;border:1px solid var(--line);border-radius:var(--radius)}
.property-comparison table{border-collapse:separate;border-spacing:0;width:100%;min-width:720px;table-layout:fixed;font-size:12px}
.property-comparison th,.property-comparison td{text-align:left;vertical-align:top;padding:13px 14px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);line-height:1.65;overflow-wrap:anywhere;background:var(--paper)}
.property-comparison thead th{font-size:13px;background:var(--subtle)}
.property-comparison tr>:first-child{position:sticky;left:0;z-index:1;width:118px;background:var(--subtle);box-shadow:1px 0 0 var(--line)}
.property-comparison td strong{font-size:13px;font-weight:600}
.property-comparison tr:last-child>*{border-bottom:0}
.property-comparison tr>:last-child{border-right:0}
.property-comparison .property-sources{margin-top:10px}
.property-basis,.property-field-state,.property-dates span{display:block;margin-top:5px;font-size:11px;line-height:1.6;color:var(--muted)}
.property-map-section{margin:22px 0 28px;min-width:0}
.property-map-section h2{font-size:18px}
.property-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;margin:0}
.property-field{min-width:0;padding:16px 0;border-bottom:1px solid var(--line)}
.property-field dt{font-size:12px;color:var(--muted);line-height:1.6}
.property-field dt small{display:block;font-size:10px;font-weight:400}
.property-field dd{margin:6px 0 0;line-height:1.6;overflow-wrap:anywhere}
.property-field dd>strong{font-size:14px;font-weight:600}
.property-sources{list-style:none;margin:8px 0 0;padding:0;font-size:11px;line-height:1.65;color:var(--muted)}
.property-sources li{display:grid;gap:3px;min-width:0;margin:0 0 5px}
.property-sources button{justify-self:start;text-align:left;max-width:100%;overflow-wrap:anywhere;white-space:normal;min-height:32px}
.property-sources small{display:block;font-size:10px;line-height:1.65;font-weight:400}
.property-disclosure{display:block;margin-top:8px;color:var(--muted);font-size:10px;line-height:1.6}
.property-legacy-facts{margin-bottom:0}
.property-legacy-facts dd>strong{font-weight:550}
.property-legacy-facts .property-sources{margin-top:6px}
.property-legacy-facts+.property-fields{grid-template-columns:1fr}
.property-child-entry{display:inline-flex;align-items:center;min-height:44px;margin-top:10px}
.property-breadcrumb{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 22px;font-size:12px;line-height:1.8}
.property-breadcrumb a{color:var(--blue-deep);padding:6px 0}
.property-child-heading{padding:0 0 22px;border-bottom:1px solid var(--line)}
.property-child-heading>p{margin:0 0 8px;font-size:12px;color:var(--muted)}
.property-child-heading h1{margin:0 0 10px;font-size:26px;line-height:1.4;overflow-wrap:anywhere}
.property-child-heading>a{color:var(--blue-deep);font-size:12px}
.property-child-section,.property-risk-section{margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}
#project-risk>.property-risk-section{margin-top:0;padding-top:0;border-top:0}
.property-risk-section ul{list-style:none;padding:0;margin:12px 0}
.property-risk-notice{border-left:3px solid #d7dfe7;background:var(--paper);padding:12px 14px;margin:10px 0;font-size:12px;line-height:1.7}
.property-risk-notice.is-warn{border-left-color:#c97132;background:#fff6ed}
.property-risk-notice>strong{font-size:13px}
.property-risk-notice p{margin:7px 0}
.property-risk-notice small{display:block;color:var(--muted);font-size:11px}
.property-internal{margin:18px 0;padding:12px 14px;border:1px dashed var(--line);border-radius:var(--radius);background:var(--subtle);color:var(--body)}
.property-internal summary{cursor:pointer;font-size:12px;min-height:32px;padding:6px 0}
.property-internal>p{font-size:12px}
.property-payment-plans>article,.property-observations>article{min-width:0;margin:12px 0;padding:16px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);font-size:12px;line-height:1.7}
.property-payment-plans h3{margin:0 0 10px;font-size:14px;overflow-wrap:anywhere}
.property-payment-steps{padding-left:24px;margin:16px 0 0}
.property-payment-steps li{padding:10px 0;border-top:1px solid var(--line)}
.property-payment-steps li>div{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.property-payment-steps li strong{font-size:16px}
.property-payment-steps li>p{margin:6px 0}
.property-validity{color:#77541a}
.property-offers{font-size:12px;line-height:1.7;color:var(--muted);margin:16px 0}
.property-child-links{padding-left:20px;font-size:13px}
.property-child-links a{display:inline-block;min-height:44px;padding:10px 0;color:var(--blue-deep)}
@container property-library (max-width:719px){
  .property-filter-common{grid-template-columns:minmax(0,1fr) repeat(3,minmax(0,.75fr))}
  .property-filter-more{grid-column:1 / 3;justify-self:start}
  .property-filter-actions{grid-column:3 / -1;justify-self:end}
  .property-filter-advanced{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container property-library (max-width:550px){
  .property-filter-common{grid-template-columns:repeat(2,minmax(0,1fr))}
  .property-filter-search,.property-filter-actions{grid-column:1/-1}
  .property-filter-more{grid-column:auto;justify-self:stretch}
  .property-results-actions{width:100%;margin-left:0}
  .property-sort-control{flex:1}
  .property-sort-control select{width:100%}
}
@container property-library (max-width:450px){
  .property-filter-advanced{grid-template-columns:minmax(0,1fr)}
  .property-compare-chips{flex-basis:100%}
}
@media(max-width:900px){.property-fields{column-gap:16px}}
@media(max-width:600px){.property-fields{grid-template-columns:1fr}.property-comparison tr>:first-child{width:100px}.property-child-heading h1{font-size:23px}}
@media(max-width:420px){.property-library .project-card-content{min-width:0}.property-comparison table{min-width:660px}.property-comparison th,.property-comparison td{padding:10px}.property-payment-plans>article,.property-observations>article{padding:12px}.property-field{padding:14px 0}.property-risk-badge{font-size:11px}}
