
/* v23 — final Smart Property light-theme override.
   Loaded last on Deal Analysis so legacy navy module styles cannot win. */
body.da-standalone #dealAnalysisView .smart-comps,
body.da-standalone #dealAnalysisView details.smart-comps{
  background:#fff!important;background-image:none!important;border:1px solid #cbdde2!important;
  color:#102033!important;box-shadow:0 8px 22px rgba(24,46,53,.055)!important;
}
body.da-standalone #dealAnalysisView .smart-comps>summary{
  background:linear-gradient(135deg,#f3faf7 0%,#f8fbfa 100%)!important;background-image:none!important;
  color:#102033!important;border-bottom:1px solid #d8e6e2!important;
}
body.da-standalone #dealAnalysisView .smart-comps-table-wrap{
  background:#fff!important;background-image:none!important;border:0!important;
}
body.da-standalone #dealAnalysisView table.smart-comps-table,
body.da-standalone #dealAnalysisView .smart-comps table{
  background:#fff!important;background-image:none!important;color:#102033!important;
}
body.da-standalone #dealAnalysisView .smart-comps table thead,
body.da-standalone #dealAnalysisView .smart-comps table thead tr,
body.da-standalone #dealAnalysisView .smart-comps table th{
  background:#eaf4f1!important;background-image:none!important;color:#29443f!important;border-color:#d1e1dd!important;
}
body.da-standalone #dealAnalysisView .smart-comps table tbody,
body.da-standalone #dealAnalysisView .smart-comps table tbody tr,
body.da-standalone #dealAnalysisView .smart-comps table td{
  background:#fff!important;background-image:none!important;color:#142337!important;border-color:#e0ebe8!important;
}
body.da-standalone #dealAnalysisView .smart-comps table tbody tr:nth-child(even) td{background:#f8fbfa!important}
body.da-standalone #dealAnalysisView .smart-comps table tbody tr:hover td{background:#eef7f4!important}
body.da-standalone #dealAnalysisView .smart-comps-table td:first-child,
body.da-standalone #dealAnalysisView .smart-comps-table td:first-child *{color:#142337!important}
body.da-standalone #dealAnalysisView .smart-comps-table td:first-child small,
body.da-standalone #dealAnalysisView .smart-comps-table .comp-meta{color:#657982!important}
body.da-standalone #dealAnalysisView .smart-comps-table td:last-child{color:#147966!important}

/* Property Facts */
body.da-standalone #dealAnalysisView #smartPropertyFactsSection{background:transparent!important;color:#102033!important}
body.da-standalone #dealAnalysisView #smartPropertyFactsSection .smart-section-title,
body.da-standalone #dealAnalysisView #smartPropertyFactsSection .smart-section-title h3{color:#102033!important}
body.da-standalone #dealAnalysisView #smartPropertyFactsSection .smart-property-facts{
  background:#eef7f4!important;background-image:none!important;border:1px solid #cbdde2!important;
  border-radius:14px!important;padding:10px!important;
}
body.da-standalone #dealAnalysisView #smartPropertyFactsSection .smart-property-facts>div{
  background:#fff!important;background-image:none!important;border:1px solid #d8e5e2!important;color:#102033!important;
}
body.da-standalone #dealAnalysisView #smartPropertyFactsSection .smart-property-facts span{color:#60747c!important}
body.da-standalone #dealAnalysisView #smartPropertyFactsSection .smart-property-facts strong{color:#102033!important}

/* Dark mode: warm Deal Seeker palette, never legacy navy */
html[data-theme="dark"] body.da-standalone #dealAnalysisView .smart-comps,
html[data-theme="dark"] body.da-standalone #dealAnalysisView details.smart-comps{
  background:#23251f!important;border-color:#50564c!important;color:#f7f4ec!important;
}
html[data-theme="dark"] body.da-standalone #dealAnalysisView .smart-comps>summary{
  background:#2a2d26!important;color:#f7f4ec!important;border-bottom-color:#4d554c!important;
}
html[data-theme="dark"] body.da-standalone #dealAnalysisView .smart-comps-table-wrap,
html[data-theme="dark"] body.da-standalone #dealAnalysisView .smart-comps table{background:#23251f!important;color:#f7f4ec!important}
html[data-theme="dark"] body.da-standalone #dealAnalysisView .smart-comps table th{
  background:#30362f!important;color:#dce7df!important;border-color:#4d554c!important;
}
html[data-theme="dark"] body.da-standalone #dealAnalysisView .smart-comps table td{
  background:#252821!important;color:#f7f4ec!important;border-color:#41483f!important;
}
html[data-theme="dark"] body.da-standalone #dealAnalysisView .smart-comps table tbody tr:nth-child(even) td{background:#292c25!important}
html[data-theme="dark"] body.da-standalone #dealAnalysisView .smart-comps table tbody tr:hover td{background:#30342c!important}
html[data-theme="dark"] body.da-standalone #dealAnalysisView .smart-comps-table td:first-child,
html[data-theme="dark"] body.da-standalone #dealAnalysisView .smart-comps-table td:first-child *{color:#f7f4ec!important}
html[data-theme="dark"] body.da-standalone #dealAnalysisView .smart-comps-table td:first-child small,
html[data-theme="dark"] body.da-standalone #dealAnalysisView .smart-comps-table .comp-meta{color:#c8c3b7!important}
html[data-theme="dark"] body.da-standalone #dealAnalysisView .smart-comps-table td:last-child{color:#9de5c0!important}


/* v24 — make closed Rental/Sale Comps clearly discoverable */
body.da-standalone #dealAnalysisView .smart-comps > summary.smart-comps-summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  min-height:82px!important;
  padding:15px 18px!important;
  cursor:pointer!important;
  list-style:none!important;
  border-radius:14px!important;
}
body.da-standalone #dealAnalysisView .smart-comps > summary.smart-comps-summary::-webkit-details-marker{
  display:none!important;
}
body.da-standalone #dealAnalysisView .smart-comps-summary-main{
  display:flex!important;
  align-items:center!important;
  gap:13px!important;
  min-width:0!important;
}
body.da-standalone #dealAnalysisView .smart-comps-icon{
  flex:0 0 42px!important;
  width:42px!important;
  height:42px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:12px!important;
  font:800 21px/1 "Space Grotesk",sans-serif!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 5px 12px rgba(31,54,64,.08)!important;
}
body.da-standalone #dealAnalysisView .smart-comps-icon-rental{
  background:#e3f2ff!important;
  color:#316fa7!important;
  border:1px solid #c0ddf4!important;
}
body.da-standalone #dealAnalysisView .smart-comps-icon-sale{
  background:#fff0d8!important;
  color:#9a6412!important;
  border:1px solid #edd09b!important;
}
body.da-standalone #dealAnalysisView .smart-comps-copy{
  display:flex!important;
  flex-direction:column!important;
  gap:3px!important;
  min-width:0!important;
}
body.da-standalone #dealAnalysisView .smart-comps-copy strong{
  color:#102033!important;
  font-size:16px!important;
  line-height:1.2!important;
}
body.da-standalone #dealAnalysisView .smart-comps-copy small{
  color:#667a82!important;
  font-size:12.5px!important;
  line-height:1.35!important;
  font-weight:500!important;
}
body.da-standalone #dealAnalysisView .smart-comps-view{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  min-height:38px!important;
  padding:8px 13px!important;
  border-radius:999px!important;
  background:#e7f4ef!important;
  border:1px solid #bcded1!important;
  color:#126b58!important;
  font-size:12.5px!important;
  font-weight:800!important;
  white-space:nowrap!important;
  box-shadow:0 4px 10px rgba(20,121,102,.06)!important;
}
body.da-standalone #dealAnalysisView .smart-comps-view b{
  font-size:20px!important;
  line-height:1!important;
  transition:transform .2s ease!important;
}
body.da-standalone #dealAnalysisView .smart-comps[open] .smart-comps-view b{
  transform:rotate(90deg)!important;
}
body.da-standalone #dealAnalysisView .smart-comps > summary.smart-comps-summary:hover{
  background:linear-gradient(135deg,#eef8f4 0%,#f7fbfa 100%)!important;
}
body.da-standalone #dealAnalysisView #smartRentalCompsWrap{
  border-left:4px solid #6aa7d8!important;
}
body.da-standalone #dealAnalysisView #smartSaleCompsWrap{
  border-left:4px solid #d8a24f!important;
}

@media(max-width:700px){
  body.da-standalone #dealAnalysisView .smart-comps > summary.smart-comps-summary{
    align-items:flex-start!important;
    min-height:92px!important;
    padding:14px!important;
  }
  body.da-standalone #dealAnalysisView .smart-comps-icon{
    flex-basis:38px!important;width:38px!important;height:38px!important;
  }
  body.da-standalone #dealAnalysisView .smart-comps-copy small{
    font-size:11.5px!important;
  }
  body.da-standalone #dealAnalysisView .smart-comps-view{
    padding:7px 10px!important;
    font-size:11.5px!important;
  }
}

/* Dark mode */
html[data-theme="dark"] body.da-standalone #dealAnalysisView .smart-comps-copy strong{color:#f7f4ec!important}
html[data-theme="dark"] body.da-standalone #dealAnalysisView .smart-comps-copy small{color:#c5c7bf!important}
html[data-theme="dark"] body.da-standalone #dealAnalysisView .smart-comps-icon-rental{
  background:#263a4a!important;color:#b7dcfb!important;border-color:#426481!important;
}
html[data-theme="dark"] body.da-standalone #dealAnalysisView .smart-comps-icon-sale{
  background:#48381f!important;color:#f2d293!important;border-color:#735a31!important;
}
html[data-theme="dark"] body.da-standalone #dealAnalysisView .smart-comps-view{
  background:#2c3d35!important;border-color:#456354!important;color:#b8ebd5!important;
}
html[data-theme="dark"] body.da-standalone #dealAnalysisView .smart-comps > summary.smart-comps-summary:hover{
  background:#30352e!important;
}
