/* Catalogue controls: searchable, keyboard accessible and usable on a phone. */
.catalogue-search-primary{grid-template-columns:minmax(0,1.8fr) minmax(0,1.3fr) minmax(110px,.8fr) minmax(110px,.9fr) auto;gap:14px;align-items:end}
.catalogue-search-primary .field,.choice-field{min-width:0}
.choice-field{position:relative;align-self:end}
.choice-control{position:relative;width:100%}
.choice-control .choice-query{width:100%;padding-right:35px;min-height:44px}
.choice-clear{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:30px;height:34px;font-size:20px;color:var(--muted);border-radius:3px}
.choice-clear:hover,.choice-chip button:hover{background:var(--accent-soft);color:var(--accent)}
.choice-options{position:absolute;top:100%;left:0;right:0;z-index:80;list-style:none;padding:5px;margin:5px 0 0;background:var(--surface);border:1px solid var(--line-strong);border-radius:5px;box-shadow:0 8px 25px #172d2420;max-height:280px;overflow:auto;overscroll-behavior:contain;scroll-margin:6px}
.choice-option{position:relative;display:flex;flex-direction:column;gap:3px;min-height:43px;padding:9px 27px 9px 9px;border-radius:3px;cursor:pointer;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.choice-option small{font-size:10px;color:var(--muted)}
.choice-option:hover,.choice-option.is-active{background:var(--accent-soft);color:var(--accent)}
.choice-check{position:absolute;right:9px;top:11px;font-weight:600}
.choice-message{padding:12px 9px;font-size:12px;color:var(--muted);line-height:1.5}
.choice-error{color:var(--danger,#8c382e)}
.choice-selections{display:flex;flex-wrap:wrap;gap:5px}
.choice-selections:empty{display:none}
.choice-chip{display:flex;align-items:center;gap:5px;max-width:100%;min-width:0;background:var(--accent-soft);color:var(--accent);border:1px solid var(--line);border-radius:4px;font-size:10px;padding:3px 4px 3px 7px;line-height:1.4}
.choice-chip>span{min-width:0;overflow-wrap:anywhere}
.choice-chip button{flex:none;min-width:28px;min-height:28px;font-size:17px;border-radius:3px}
.search-place-help{margin-top:10px;font-size:10px;line-height:1.5;color:var(--muted)}
.search-place-help a{text-decoration:underline;text-underline-offset:2px}
.results-toolbar{align-items:flex-end;flex-wrap:wrap}
.results-actions{flex-wrap:wrap;align-items:end;gap:10px}
.sort-field label,.page-size-field label{font-size:10px;color:var(--muted)}
.sort-field .sort-select{max-width:none;width:210px;font-size:12px;border:1px solid var(--line-strong);background:var(--surface);padding:8px 26px 8px 10px;min-height:40px}
.page-size-field select{width:70px;min-height:40px;padding:8px;font-size:12px}
.sort-explanation{font-size:10px;color:var(--muted);line-height:1.6;margin:-5px 0 16px;max-width:780px}
.applied-filters{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:-10px 0 22px}
.applied-filter{border:1px solid var(--line);border-radius:4px;background:var(--surface);padding:6px 9px;color:var(--accent);font-size:11px;text-align:left;min-height:32px;max-width:100%;overflow-wrap:anywhere}
.applied-filter:hover{border-color:var(--accent)}
.applied-filter span{padding-left:5px;font-size:14px}
.reset-filters{font-size:11px;text-decoration:underline;text-underline-offset:3px;padding:6px}
.source-availability-note{margin-bottom:20px}.source-availability-note p{margin:7px 0;line-height:1.6}
@media(max-width:1050px){.catalogue-search-primary{grid-template-columns:repeat(2,minmax(0,1fr))}.catalogue-search-primary>button{min-height:44px}}
@media(max-width:650px){.catalogue-search-primary{grid-template-columns:minmax(0,1fr)}.choice-control .choice-query,.catalogue-search-primary input,.catalogue-search-primary select,.real-extra-filters input{font-size:16px;min-height:44px}.choice-option{font-size:14px;min-height:48px}.choice-option small{font-size:12px}.choice-chip{font-size:12px}.choice-options{max-height:260px}.results-actions{width:100%;justify-content:flex-start}.sort-field{flex:1;min-width:0}.sort-field .sort-select{font-size:14px;width:100%;max-width:100%;min-height:44px}.page-size-field select{min-height:44px;font-size:14px}.result-count{flex-wrap:wrap}.results-actions .segmented{margin-left:auto}.sort-explanation{font-size:11px}.search-place-help{font-size:11px}.applied-filter{font-size:12px;min-height:38px}}
@media(max-width:650px){.catalogue-search-primary.search-primary>.field,.catalogue-search-primary.search-primary>.button{grid-column:1/-1;width:100%}.catalogue-search-primary .field label{font-size:11px}}

.advanced-editor{margin:1rem 0;padding:1rem;border:1px solid #cbd5cd;background:#f8faf6}.advanced-editor>summary{cursor:pointer;font-weight:600;font-size:.9rem}.advanced-editor p{font-size:.82rem;line-height:1.6}.advanced-group{min-width:0;border:1px solid #c6d4ca;margin:.8rem 0;padding:1rem}.advanced-group legend{font-size:.75rem;padding:0 .4rem}.advanced-group-header,.advanced-add{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center;margin:.6rem 0}.advanced-group-header label{font-size:.8rem}.advanced-condition{display:grid;grid-template-columns:minmax(150px,1.3fr) minmax(150px,1fr) minmax(120px,1fr) 24px;gap:.6rem;margin:.8rem 0;align-items:end}.advanced-condition label{display:flex;flex-direction:column;min-width:0;gap:.3rem;font-size:.75rem}.advanced-editor input,.advanced-editor select{width:100%;min-width:0;padding:.6rem;border:1px solid #bdcbbb;background:#fff;border-radius:3px;font:inherit;font-size:.82rem}.advanced-group-header select{width:auto;max-width:100%}.advanced-editor .button{font-size:.78rem}#advanced-error{color:#93412f;font-size:.85rem;margin:.7rem 0}.search-place-help summary{cursor:pointer;font-size:.75rem}.search-place-help p{font-size:.78rem;line-height:1.6}.matching-id-filter select{padding:.65rem;border:1px solid #bcc8bd;border-radius:4px;background:#fff;font:inherit;font-size:.85rem}
@media(max-width:850px){.advanced-condition{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.advanced-group{padding:.7rem}.advanced-group-header label{max-width:100%}}
@media(max-width:500px){.advanced-condition{grid-template-columns:minmax(0,1fr)}.advanced-group .advanced-group{margin-left:0;padding:.5rem}.advanced-editor{padding:.7rem}}

/* Shared dimensions also override compact native selects in Safari. */
.search-form input:not([type=hidden]),.search-form select,.results-toolbar select,.advanced-editor input:not([type=hidden]),.advanced-editor select{box-sizing:border-box;height:44px;min-height:44px;line-height:1.3}
.search-form select,.results-toolbar select,.advanced-editor select,.matching-id-filter select{appearance:none;-webkit-appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%236b7a6c' stroke-width='1.3'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
.advanced-condition{grid-template-columns:minmax(150px,1fr) minmax(185px,1fr) minmax(180px,1.2fr) 44px}
.advanced-condition>.field{margin-bottom:0;align-self:end;grid-column:auto}
.advanced-condition .choice-query{font-size:13px}
.advanced-group-header label{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.advanced-remove{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line-strong);border-radius:4px;background:var(--surface);font-size:22px;color:var(--muted);line-height:1}
.advanced-remove:hover{color:var(--danger);background:var(--warning-soft)}
#advanced-draft-status{font-size:12px;color:var(--accent);min-height:0}
#advanced-draft-status:empty,#advanced-portal-note:empty{display:none}
#advanced-portal-note a{text-decoration:underline}
@media(max-width:1100px){.advanced-condition{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.advanced-remove{justify-self:end}}
@media(max-width:650px){.advanced-editor input:not([type=hidden]),.advanced-editor select{font-size:16px}.advanced-condition{grid-template-columns:minmax(0,1fr)}.advanced-group-header select{width:100%}.advanced-group-header label{width:100%}}

.property-view-switch{display:flex;gap:6px;margin:0 0 20px;border-bottom:1px solid var(--line)}
.property-view-switch a{padding:11px 14px;font-size:12px;border-bottom:2px solid transparent;color:var(--muted)}
.property-view-switch a.active{border-color:var(--accent);color:var(--accent);font-weight:600}
.property-list{display:grid;gap:16px}.property-card{display:grid;grid-template-columns:220px minmax(0,1fr);border:1px solid var(--line);background:var(--surface);border-radius:5px;overflow:hidden}
.property-cover{display:block;background:var(--accent-soft);width:100%;min-height:170px}.property-cover img{display:block;width:100%;height:100%;max-height:280px;object-fit:cover}.property-no-photo{display:grid;place-items:center;font-size:11px;color:var(--muted)}
.property-copy{padding:18px;min-width:0}.property-top{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted)}
.property-title{display:block;margin:9px 0;font-size:17px;font-weight:600;line-height:1.5}.property-portals{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0}.property-portal{padding:4px 8px;border:1px solid var(--line);border-radius:3px;background:var(--accent-soft);color:var(--accent);font-size:11px}
.property-members,.property-facts{font-size:11px;color:var(--muted);line-height:1.7;margin:7px 0}.property-facts span{display:block;font-size:10px}
.property-prices{list-style:none;padding:0;margin:12px 0}.property-prices li{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 15px;font-size:12px;margin:6px 0}.property-prices li>span{color:var(--muted)}.property-prices strong{font-weight:500}
.property-source-list{display:grid;gap:20px;margin:22px 0}.property-source{display:grid;grid-template-columns:240px minmax(0,1fr);border:1px solid var(--line);background:var(--surface);border-radius:4px;overflow:hidden}.property-source>div:last-child{padding:20px}.property-source h2{font-size:18px;margin:10px 0;line-height:1.5}.property-source p{font-size:13px;margin:10px 0}.property-source-actions{display:flex;gap:16px;flex-wrap:wrap;align-items:center;margin-top:16px}
@media(max-width:650px){.property-card,.property-source{grid-template-columns:minmax(0,1fr)}.property-cover{height:190px;min-height:0}.property-copy,.property-source>div:last-child{padding:15px}.property-top{flex-wrap:wrap}.property-title{font-size:17px}.property-prices li{flex-direction:column}.property-view-switch a{font-size:12px;padding:11px 9px}}

.dossier-preview,.dossier-publications{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0}
.dossier-preview .matching-publication,.dossier-publications .matching-publication{display:flex;flex-direction:column;min-width:0}
.dossier-preview .matching-photo,.dossier-publications .matching-photo{width:100%;height:140px}
.dossier-publications .matching-publication{padding:14px;border:1px solid var(--line);background:var(--surface)}
.dossier-pairs{display:flex;flex-wrap:wrap;gap:8px}.dossier-pairs .button{white-space:normal;max-width:100%;text-align:left}
@media(max-width:850px){.dossier-preview,.dossier-publications{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.dossier-preview,.dossier-publications{grid-template-columns:minmax(0,1fr)}.dossier-preview .matching-photo,.dossier-publications .matching-photo{height:190px}}

/* Discovery is a compact scan of properties; large albums stay in the detail. */
.property-list-compact{gap:8px}
/* Analysis keeps each source price visible in compact comparison rows. */
.property-list-analysis{gap:8px}
.property-list-analysis .property-card{grid-template-columns:72px minmax(0,1fr) 220px;gap:14px;align-items:center;min-height:104px;padding:12px}
.property-list-analysis .property-card:hover{border-color:var(--line-strong)}
.property-list-analysis .property-cover{width:72px;height:54px;min-height:54px;border-radius:3px;overflow:hidden}
.property-list-analysis .property-cover img{height:100%;max-height:none}
.property-list-analysis .property-no-photo{font-size:9px;text-align:center}
.property-list-analysis .property-copy{padding:0}
.property-list-analysis .property-title{font-size:14px;line-height:1.4;margin:0}
.property-analysis-specs{display:flex;flex-wrap:wrap;gap:2px 10px;margin:5px 0;font-size:11px;line-height:1.5;color:var(--muted)}
.property-analysis-specs .property-facts-source{font-size:10px}
.property-list-analysis .property-portals{align-items:center;gap:4px 6px;margin:4px 0 0}
.property-list-analysis .property-portal,.property-list-analysis .status{font-size:10px;padding:2px 5px}
.property-list-analysis .property-members{margin:0;font-size:10px;line-height:1.5}
.property-list-analysis .property-prices{min-width:0;margin:0;text-align:right}
.property-list-analysis .property-prices li{display:block;margin:5px 0;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.property-list-analysis .property-prices li:first-child{margin-top:0}
.property-list-analysis .property-prices li:last-child{margin-bottom:0}
.property-list-analysis .property-prices li>span{display:block;font-size:10px}
.property-list-analysis .property-prices strong{display:block;font-weight:500;font-family:var(--numbers)}
@media(max-width:1000px){.property-list-analysis .property-card{grid-template-columns:64px minmax(0,1fr) 180px;gap:12px}.property-list-analysis .property-cover{width:64px;height:48px;min-height:48px}}
@media(max-width:650px){.property-list-analysis .property-card{grid-template-columns:64px minmax(0,1fr);gap:6px 10px;min-height:0}.property-list-analysis .property-cover{grid-row:1/3;align-self:start}.property-list-analysis .property-prices{grid-column:2;text-align:left}.property-list-analysis .property-prices li{margin:6px 0}.property-list-analysis .property-title{font-size:14px}.property-analysis-specs{font-size:10px}.property-list-analysis .property-portal,.property-list-analysis .status{font-size:9px}}
.property-row{position:relative;display:grid;grid-template-columns:96px minmax(0,1fr) 230px;gap:16px;align-items:center;min-height:112px;padding:12px 16px;border:1px solid var(--line);border-radius:5px;background:var(--surface)}
.property-row:hover{border-color:var(--line-strong)}
.property-row:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.property-row-photo{position:relative;z-index:2;display:block;width:96px;height:72px;min-height:72px;padding:0;overflow:hidden;border-radius:3px;background:var(--accent-soft)}
.property-row-photo img{display:block;width:100%;height:100%;object-fit:cover}
.property-row-photo.property-no-photo{display:grid;font-size:10px;text-align:center}
.property-row-copy{min-width:0}
.property-row-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:15px;font-weight:600;line-height:1.35;color:var(--ink)}
.property-row-title::after{content:'';position:absolute;inset:0;border-radius:5px}
.property-row-title:hover{text-decoration:underline;text-underline-offset:3px}
.property-row-specs{display:flex;flex-wrap:wrap;gap:3px 12px;margin:5px 0;font-size:11px;line-height:1.5;color:var(--muted)}
.property-row-tags{display:flex;flex-wrap:wrap;align-items:center;gap:4px 7px}
.property-row-tags .property-portal{font-size:10px;padding:2px 5px}
.property-row-tags .status{font-size:10px;padding:2px 6px;white-space:nowrap}
.property-first-seen{font-size:11px;color:var(--muted);line-height:1.5}
.property-row-price{text-align:right;min-width:0;line-height:1.5}
.property-row-price strong{display:block;font-size:17px;font-weight:600;font-family:var(--numbers);overflow-wrap:anywhere}
.property-row-price>span,.property-row-price small{display:block;font-size:10px;color:var(--muted)}
.discovery-catalogue .page-heading{margin-bottom:20px}.discovery-catalogue .page-heading h1{font-size:34px}.discovery-catalogue .page-heading p{font-size:12px;line-height:1.5}
@media(max-width:850px){.property-row{grid-template-columns:96px minmax(0,1fr) 180px;gap:12px}.property-row-title{font-size:14px}.property-row-price strong{font-size:16px}}
@media(max-width:650px){.property-row{grid-template-columns:80px minmax(0,1fr);gap:6px 11px;padding:11px;min-height:120px}.property-row-photo{grid-row:1/3;width:80px;height:80px;min-height:80px;align-self:start}.property-row-copy{grid-column:2}.property-row-title{font-size:14px;line-height:1.35}.property-row-specs{font-size:10px;gap:2px 8px}.property-row-tags .property-portal,.property-row-tags .status{font-size:9px}.property-first-seen{font-size:10px}.property-row-price{grid-column:2;text-align:left}.property-row-price strong{font-size:16px}.property-row-price>span,.property-row-price small{font-size:10px}.discovery-catalogue .page-heading h1{font-size:29px}}

.property-detail-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:14px;color:var(--muted);font-size:12px}
.detail-progress-note{margin:18px 0 24px;padding:16px 18px;border-left:3px solid var(--green,#41634f);background:var(--surface-alt,#eaf0e6);border-radius:4px;font-size:14px}
.detail-progress-note p{margin:6px 0 12px;color:var(--muted);line-height:1.5}
.detail-progress-note .button{min-height:36px;padding:7px 12px;font-size:13px}
.detail-progress-label{color:var(--green,#41634f);font-size:12px}
.property-unified .photo-gallery{margin-bottom:26px}
.property-unified h2{font-size:23px;margin:22px 0 12px}
.property-retained .known-facts{margin-bottom:22px}.property-retained .known-fact strong{font-weight:500;text-align:right}
.property-info-source{font-size:11px;color:var(--muted);margin-bottom:12px}
.property-originals{border-top:1px solid var(--line);margin-top:20px;padding-top:4px}
.property-originals h2{font-size:17px;margin:14px 0}.property-originals ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.property-originals li{display:grid;gap:4px}.property-originals .button{font-size:12px;text-align:center;justify-content:center;white-space:normal}
.property-originals li>span{font-size:10px;color:var(--muted)}
.property-source-details{font-size:11px;margin-top:20px;border-top:1px solid var(--line);padding-top:14px}.property-source-details summary,.property-provenance summary,.property-description summary,.property-differences summary{cursor:pointer;color:var(--accent)}
.property-source-details ul{list-style:none;padding:0}.property-source-details li{display:grid;gap:6px;margin:13px 0}.property-source-details a{text-decoration:underline;text-underline-offset:3px;line-height:1.5}
.property-description{margin-bottom:22px;font-size:12px}.property-description p{margin-top:16px}
.property-provenance{border-top:1px solid var(--line);padding-top:18px;margin-top:22px;font-size:12px}.property-provenance dl>div{display:flex;justify-content:space-between;gap:15px;padding:8px 0;border-bottom:1px solid var(--line)}.property-provenance dd{text-align:right;color:var(--muted)}
.property-differences{padding:4px 16px 16px;border:1px solid var(--line);border-radius:4px;margin-bottom:25px}.property-differences details{font-size:12px;padding:10px 0;border-bottom:1px solid var(--line)}.property-differences ul{list-style:none;padding:0}.property-differences li{display:flex;justify-content:space-between;gap:15px;margin:10px 0}.property-differences li>span,.property-differences p{color:var(--muted);font-size:11px;line-height:1.6}
@media(max-width:650px){.property-unified{display:flex;flex-direction:column;gap:22px}.property-unified>section,.property-price-sheet{width:100%;min-width:0}.property-price-sheet{order:-1;position:static}.property-originals ul{grid-template-columns:repeat(2,minmax(0,1fr))}.property-unified h2{font-size:22px}.property-originals h2{font-size:17px}.property-detail-meta{font-size:11px}.property-differences li{flex-direction:column;gap:3px}.property-provenance dl>div{font-size:11px}.property-source-details{font-size:12px}}
.official-buildings{margin-top:28px;padding:20px;border:1px solid var(--line);border-radius:6px}.official-buildings>p{font-size:12px;color:var(--muted)}.official-buildings dl>div{display:flex;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.official-buildings dd{text-align:right;font-weight:500;max-width:60%;overflow-wrap:anywhere}
.quality-dashboard{margin:30px 0}.quality-dashboard>p,.quality-prices{font-size:12px;color:var(--muted)}.quality-dashboard th{font-weight:500}.quality-prices{padding:18px 0;display:grid;grid-template-columns:1fr 1fr;gap:20px}
@media(max-width:650px){.quality-prices{grid-template-columns:1fr;gap:0}.quality-dashboard .analysis-table{min-width:0;width:100%;font-size:11px}.quality-dashboard .analysis-table td,.quality-dashboard .analysis-table th{padding:12px 8px;white-space:normal}}
