:root{
  --property-bg:#080c18;--property-panel:#151b30;--property-inset:#10162a;
  --property-line:#3e3b65;--property-text:#f8fafc;--property-muted:#aeb9d1;
  --property-violet:#a855f7;--property-cyan:#22d3ee;
}
.property-market,.market-detail{max-width:1640px}
.property-market{padding-block:clamp(1rem,3vw,2.5rem) 5rem}
.property-market-top,.property-quick,.property-result-toolbar,.property-actions,.property-smart-search{
  display:flex;align-items:center;flex-wrap:wrap;gap:.65rem;min-width:0
}
.property-market-top{justify-content:space-between;margin-bottom:1rem}
.property-market-top h1{margin:0;font-size:clamp(1.6rem,4vw,2.5rem);color:var(--property-text)}
.property-smart-search{flex:1;max-width:54rem;justify-content:end}
.property-smart-search input,.property-filter-fields input,.property-filter-fields select,.property-result-toolbar select{
  min-height:44px;background:var(--property-inset);color:var(--property-text);border:1px solid var(--property-line);
  border-radius:.72rem;font:inherit;padding:.5rem .75rem;min-width:0
}
.property-smart-search input{flex:1 1 18rem;border-color:#8063b4;box-shadow:0 0 20px #a855f730}
.property-smart-search input::placeholder{color:var(--property-muted)}
.property-quick{padding:.65rem 0;margin-block:.55rem 1rem;gap:.55rem}
.property-quick label,.property-result-toolbar label{display:flex;align-items:center;gap:.45rem;color:var(--property-muted);font-size:.85rem}
.property-quick select{min-width:6rem}
.property-browser{display:grid;grid-template-columns:minmax(0,1fr) minmax(14rem,18rem);gap:1rem;align-items:start}
.property-results,.property-detail-shell,.property-info-panel,.property-ai-panel{
  background:linear-gradient(145deg,#181d35,#10162a);border:1px solid var(--property-line);
  border-radius:1rem;box-shadow:0 15px 32px #03071166;min-width:0
}
.property-results{padding:clamp(.65rem,1.3vw,1.1rem)}
.property-result-toolbar{justify-content:space-between;margin-bottom:.8rem;color:var(--property-text)}
.property-result-toolbar label select{max-width:10rem}
.property-actions button,.property-gallery-controls button,.property-gallery-stage button:not(.property-gallery-open){
  min-height:44px;padding:.35rem .68rem;border:1px solid #514778;border-radius:.65rem;
  background:#242043;color:#f5edff;font:inherit;cursor:pointer
}
.property-actions button[aria-pressed="true"]{background:#523294;border-color:#b78eff}
.property-market .market-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,14rem),1fr));gap:.75rem}
.market-grid.property-list-view{grid-template-columns:minmax(0,1fr)}
.property-list-view .market-card{display:grid;grid-template-columns:minmax(0,14rem) minmax(0,1fr)}
.market-card{background:linear-gradient(140deg,#171d34,#10162a);border-color:#49416d;box-shadow:0 10px 22px #03041155}
.property-card-media{position:relative;min-width:0;overflow:hidden}
.property-card-media .market-photo,.property-card-placeholder{aspect-ratio:16/9;margin:0}
.property-card-placeholder{display:grid;place-items:center;background:radial-gradient(ellipse at 20% 30%,#43256b,transparent 75%),#111a31;
  color:#c6a7ff;font-size:2.7rem}
.property-card-media .market-photo img{object-fit:cover}
.property-card-media:has(.market-photo span) .market-photo{min-height:7rem}
.property-favorite,.property-actions .property-favorite{min-width:44px;min-height:44px;padding:.15rem .55rem;
  border:1px solid #9279bd;border-radius:.8rem;background:#10162adf;color:#f7e8ff;font-size:1.35rem;cursor:pointer}
.property-card-media .property-favorite{position:absolute;inset:.45rem auto auto .45rem}
.property-card-code{position:absolute;inset:.55rem .5rem auto auto}
.property-card-code,.property-detail-code{display:inline-block;padding:.22rem .55rem;border-radius:.6rem;border:1px solid #584c82;
  background:#141b32ec;font: .76rem ui-monospace,monospace;color:#f3e8ff}
.market-card-body{padding:.75rem;gap:.5rem;color:var(--property-text)}
.market-card-body h3{font-size:1rem}
.market-card-body p{font-size:.86rem;color:var(--property-muted)}
.property-metrics{display:flex;flex-wrap:wrap;gap:.35rem;min-width:0}
.property-metrics span{display:inline-flex;align-items:center;border:1px solid #38395d;background:#151d36;
  color:#dfd7f6;padding:.18rem .45rem;font-size:.75rem;border-radius:.44rem}
.property-card-detail{width:100%;box-shadow:inset 0 0 17px #c18cff33}
.market-card-body .property-actions{gap:.32rem}
.market-card-body .property-actions button{font-size:.75rem}
.property-ai-rail{position:sticky;top:5rem}
.property-ai-panel{padding:clamp(.8rem,1.7vw,1.15rem);border-color:#8053b0;background:radial-gradient(ellipse at 15% 100%,#463174,transparent 75%),#121830}
.property-ai-panel summary{cursor:pointer;font-weight:800;color:#f4eaff;min-height:44px;align-content:center}
.property-ai-panel h2{font-size:1.05rem;color:#f4eaff}
.property-ai-panel p{color:#d4cae7}
.property-ai-panel button+.button{margin:.4rem .35rem 0 0}
.property-ai-orb{width:5rem;aspect-ratio:1;margin:.3rem auto .75rem;border-radius:50%;border:1px solid #c2a1ff;
  background:radial-gradient(circle at 65% 24%,#e8daff 5%,#8c6bfa 22%,#221653 51%,#131d50 70%,#22d3ee 90%);
  box-shadow:0 0 30px #a855f780,inset 0 0 12px #22d3ee88}
#market-ai-results{display:grid;gap:.45rem;margin-top:.55rem}
.property-sheet{width:min(95vw,48rem);max-height:84dvh;overflow:auto;color:var(--property-text);
  background:#151b30;border:1px solid #8053b0;border-radius:1rem;padding:clamp(.8rem,2vw,1.3rem)}
.property-sheet::backdrop,.property-gallery-dialog::backdrop{background:#070813cb}
.property-filter-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:.65rem;margin-block:.75rem}
.property-filter-fields label{display:grid;gap:.2rem;font-size:.85rem}
.property-filter-fields input,.property-filter-fields select{width:100%}
.property-compare-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.6rem;margin-bottom:.7rem}
.property-detail-shell{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:.8rem;padding:.65rem}
.property-detail-summary{min-width:0;padding:clamp(.55rem,1.9vw,1.2rem);color:var(--property-text)}
.property-detail-summary h1{margin:.35rem 0;font-size:clamp(1.45rem,3vw,2.2rem)}
.property-detail-price{display:grid;gap:.25rem;padding:.85rem;margin:.9rem 0;color:var(--property-text);border:1px solid #a679ff;
  border-radius:.86rem;background:linear-gradient(115deg,#1e2045,#3a2367);box-shadow:inset 0 0 24px #a855f74a,0 0 16px #a855f73c}
.property-detail-price strong{font-size:clamp(1rem,2vw,1.5rem)}
.property-detail-lower{display:grid;grid-template-columns:minmax(0,2fr) minmax(15rem,1fr);gap:.8rem;margin-block:.9rem}
.property-info-panel{padding:.85rem}
.property-info-panel h2{font-size:1.12rem}
.property-related{margin-block:.8rem}
.property-related .market-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr))}
.property-gallery{min-width:0;display:grid;gap:.45rem}
.property-gallery-stage,.property-empty-photo{position:relative;background:#10162a;border:1px solid #524870;border-radius:.84rem;overflow:hidden}
.property-gallery-stage{aspect-ratio:4/3;touch-action:pan-y}
.property-empty-photo{min-height:12rem;display:grid;place-items:center;color:var(--property-muted);text-align:center;padding:.5rem}
.property-gallery-open{border:0;background:transparent;padding:0;display:block;width:100%;height:100%;cursor:zoom-in}
.property-gallery-open img{width:100%;height:100%;object-fit:contain;display:block;color:var(--property-muted)}
.property-gallery-count{position:absolute;inset:auto auto .45rem .55rem;border-radius:.55rem;background:#080c18e8;
  color:#f8fafc;padding:.2rem .5rem;font-size:.8rem;pointer-events:none}
.property-gallery-prev,.property-gallery-next{position:absolute;top:50%;transform:translateY(-50%);min-width:44px}
.property-gallery-prev{inset-inline-start:.42rem}.property-gallery-next{inset-inline-end:.42rem}
.property-gallery-thumbs{display:flex;gap:.35rem;overflow-x:auto;scroll-snap-type:x proximity;padding:.15rem}
.property-gallery-thumbs button{flex:0 0 clamp(3.6rem,7vw,5.4rem);aspect-ratio:4/3;min-height:44px;padding:0;overflow:hidden;
  background:#171b31;border-radius:.55rem;border:1px solid #4a456e;cursor:pointer;scroll-snap-align:start}
.property-gallery-thumbs button[aria-pressed="true"]{border-color:#d5a0ff;box-shadow:0 0 9px #a855f783}
.property-gallery-thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.property-gallery-dialog{width:min(94vw,72rem);max-height:94dvh;padding:.65rem;background:#10162a;border:1px solid #8053b0;border-radius:.9rem;overflow:auto}
.property-zoom-image{display:block;max-width:100%;max-height:76dvh;margin:auto;object-fit:contain;touch-action:pan-y}
.property-zoom-image.zoomed{width:150%;max-width:none;max-height:none}
.property-gallery-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem;margin-top:.45rem}
.listing-tile.property-office-card{aspect-ratio:auto;overflow:hidden;min-width:0;align-content:start;border-color:#4f4574}
.property-office-card .listing-tile-amount{color:#e9d9ff}
.property-office-card .listing-source,.property-office-card .property-address{color:#d3daef}
.property-office-cover{margin:-.4rem -.4rem .55rem;min-width:0;border-radius:.7rem;overflow:hidden;background:#12182b}
.property-office-cover .photo-preview{width:100%}
.property-office-cover .photo-frame{aspect-ratio:16/9}
.property-office-cover .photo-frame img{object-fit:cover}
.property-office-detail .property-hero{padding:0 0 .45rem;background:none;color:var(--ink)}
.property-office-detail{margin-bottom:.8rem}
.property-detail .photo-folder,.ai-composer,.ad-draft,.personal-record,.report-units .report-metric{border-color:#534478}
.match-results .match-criteria .tag{border:1px solid #6c5599}
@media(max-width:1050px){
  .property-browser{grid-template-columns:minmax(0,1fr)}
  .property-ai-rail{position:static;grid-row:1}
  .property-ai-rail .property-ai-orb{float:left;width:3.3rem;margin-inline:.5rem}
}
@media(max-width:730px){
  .property-market-top{display:grid;width:100%}
  .property-smart-search{display:grid;grid-template-columns:minmax(0,1fr);width:100%}
  .property-quick{display:flex;flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:.45rem}
  .property-quick>*{flex:none;scroll-snap-align:start}
  .property-detail-shell,.property-detail-lower,.property-list-view .market-card{grid-template-columns:minmax(0,1fr)}
  .property-list-view .property-card-media .market-photo,.property-list-view .property-card-placeholder{aspect-ratio:2.2}
  .property-sheet{inset:auto 0 0;width:100%;max-width:100%;margin:0;border-radius:1rem 1rem 0 0;
    padding-bottom:calc(1rem + env(safe-area-inset-bottom))}
  #market-detail:has(.property-contact-dock){padding-bottom:7.5rem}
  .property-contact-dock{position:fixed;z-index:22;inset:auto 0 0;margin:0;padding:.55rem .55rem calc(.5rem + env(safe-area-inset-bottom)) 4rem;
    background:#0f1629ed;border-top:1px solid #514478;gap:.4rem}
  .property-contact-dock .market-contact{font-size:.84rem}
  .property-contact-dock .button{font-size:.77rem;min-height:44px;padding:.3rem .5rem}
  body:has(#market-detail .property-contact-dock)>.market-assistant{bottom:calc(9.2rem + env(safe-area-inset-bottom))}
}
@media(max-width:500px){
  .property-market .market-grid,.property-related .market-grid{grid-template-columns:minmax(0,1fr)}
  .property-result-toolbar label{flex-wrap:wrap}
  .property-contact-dock{padding-inline:.5rem 3.7rem}
}
@media(prefers-reduced-motion:no-preference){
  .property-market .market-card,.property-gallery-open img{animation:property-appear .25s ease-out}
  .property-card-detail,.property-office-card,.property-gallery-thumbs button{transition:border-color .18s,box-shadow .18s}
  .market-card:hover,.property-office-card:hover{border-color:#876ccc;box-shadow:0 0 18px #8b5cf636}
  @keyframes property-appear{from{opacity:.72}to{opacity:1}}
}
@media print{
  body:has(#market-detail){background:white!important;color:black!important}
  body:has(#market-detail) header,.market-assistant,.market-assistant-launch,.property-contact-dock,.property-detail-actions,
  .property-detail-lower .property-ai-panel,.property-related,.property-gallery-thumbs,.property-gallery-prev,.property-gallery-next,
  .property-gallery-count,.property-gallery-dialog{display:none!important}
  #market-detail,#market-detail *{color:black!important;background:white!important;box-shadow:none!important}
  #market-detail .property-detail-shell,#market-detail .property-detail-lower{display:block;padding:.25rem}
  #market-detail .property-gallery-stage{max-width:55%;margin:0 auto}
}

.listing-tile .listing-mobile-open{display:none}
@media(max-width:849px){
  .inventory-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;padding:.5rem}
  .inventory-card-grid .listing-tile{display:flex;flex-direction:column;padding:.6rem;font-size:.82rem;border-radius:.8rem}
  .inventory-card-grid .listing-tile-header{flex-wrap:wrap;gap:.2rem .4rem}
  .inventory-card-grid .listing-tile-header .tag{margin:0;font-size:.68rem;line-height:1.5}
  .inventory-card-grid .file-code{min-height:34px;padding:.22rem .4rem;font-size:.73rem}
  .inventory-card-grid .property-office-cover{margin:-.25rem -.25rem .35rem}
  .inventory-card-grid .property-office-cover .photo-frame{aspect-ratio:2}
  .inventory-card-grid .listing-tile-summary{margin-block:.4rem;min-width:0}
  .inventory-card-grid .listing-tile-summary>div{min-width:0}
  .inventory-card-grid .property-address{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .inventory-card-grid .listing-tile-amount{margin-block:.3rem .5rem;line-height:1.55}
  .inventory-card-grid .listing-tile-contacts,
  .inventory-card-grid .listing-source,
  .inventory-card-grid .single-listing-offer{display:none}
  .inventory-card-grid .listing-mobile-open{display:block;width:100%;min-height:44px;margin-top:auto;color:#f6efff;background:#292044;border-color:#66518d;padding:.35rem}
}

@media(max-width:849px){
  .inventory-card-grid.inventory-card-rail{
    grid-template-columns:none;
    grid-auto-flow:column;
    grid-auto-columns:clamp(8rem,45%,15rem);
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scroll-snap-type:inline proximity;
    scroll-padding-inline:.5rem;
    scrollbar-width:thin;
    scrollbar-color:#8b5cf6 var(--field);
  }
  .inventory-card-rail .listing-tile{scroll-snap-align:start}
}
