/* 2026-10-14 Shawn: search cards get the Rankings type, spacing and calm. Photo is a proper landscape frame, never a tall sliver. */
html body #cards.cards.list-view{container-type:inline-size}
html body #cards.cards.list-view article.card.card{display:block!important;
  padding:22px 26px 22px 22px!important;background:#fffdf8!important;border:1px solid rgba(26,21,18,.09)!important;border-radius:18px!important;box-shadow:none!important}
html body #cards.cards.list-view article.card.card.selected{border-color:rgba(194,162,76,.6)!important;background:linear-gradient(90deg,#fdf3ef 0%,#fffdf8 60%)!important}
html body #cards.cards.list-view article.card.card>.card-image{height:auto!important;min-height:0!important;aspect-ratio:16/10!important;width:100%!important;margin:0 0 18px!important;align-self:start!important;
  border-radius:14px!important;overflow:hidden!important;background:#efe7da!important;position:relative}
html body #cards.cards.list-view article.card.card>.card-image>img.listing-photo,html body #cards.cards.list-view article.card.card>.card-image>img.building-exterior-main{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 45%!important}
html body #cards.cards.list-view article.card.card .card-open{grid-column:2!important;display:block!important;text-align:left;padding:2px 0 0!important;background:none!important;border:0!important}
html body #cards.cards.list-view article.card.card .card-open .price{font-family:Fraunces,Georgia,serif!important;font-weight:400!important;font-size:22px!important;letter-spacing:-.01em;color:#7d1128!important;margin:0 0 10px!important}
html body #cards.cards.list-view article.card.card .card-open .price small{font-family:Inter,system-ui,sans-serif;font-size:13px;color:#96897f;font-weight:500}
html body #cards.cards.list-view article.card.card .card-open h3{font-family:Fraunces,Georgia,serif!important;font-weight:400!important;font-size:27px!important;line-height:1.1!important;letter-spacing:-.018em!important;color:#1a1512!important;margin:0!important}
html body #cards.cards.list-view article.card.card .card-open .building-name{font-family:Inter,system-ui,sans-serif!important;font-size:11px!important;font-weight:500!important;letter-spacing:.24em!important;text-transform:uppercase!important;color:#96897f!important;margin:9px 0 0!important}
html body #cards.cards.list-view article.card.card .card-open .facts{font-family:Inter,system-ui,sans-serif!important;font-size:15px!important;color:#5d534c!important;margin-top:14px!important;line-height:1.5!important}
html body #cards.cards.list-view article.card.card .card-open .muted{font-family:Inter,system-ui,sans-serif!important;font-size:14px!important;color:#96897f!important}
html body #cards.cards.list-view article.card.card .folio-card-note{font-family:Fraunces,Georgia,serif!important;font-style:italic!important;font-weight:300!important;font-size:17px!important;line-height:1.45!important;color:#5d534c!important;
  background:none!important;border:0!important;border-left:1px solid #c2a24c!important;border-radius:0!important;padding:2px 0 2px 16px!important;margin:16px 0 0!important;box-shadow:none!important}
html body #cards.cards.list-view article.card.card .folio-card-note b{display:block;font-family:Inter,system-ui,sans-serif;font-style:normal;font-weight:600;font-size:10.5px;letter-spacing:.22em;text-transform:uppercase;color:#9a7c2e;margin-bottom:4px}
html body #cards.cards.list-view article.card.card .card-meta{grid-column:2!important;font-family:Inter,system-ui,sans-serif!important;font-size:13px!important;color:#96897f!important;gap:6px 14px!important;margin-top:14px!important;border:0!important;background:none!important;padding:0!important}
html body #cards.cards.list-view article.card.card .listing-attribution{grid-column:2!important;background:none!important;border:0!important;padding:16px 0 0!important}
html body #cards.cards.list-view article.card.card .listing-contact-agent{border-radius:999px!important;padding:11px 22px!important;font:600 14px Inter,system-ui,sans-serif!important}
@media(max-width:760px){
  html body #cards.cards.list-view article.card.card{display:block!important;padding:14px!important}
  html body #cards.cards.list-view article.card.card>.card-image{aspect-ratio:3/2!important;margin-bottom:16px!important}
  html body #cards.cards.list-view article.card.card .card-open h3{font-size:24px!important}
}

html body #cards.cards.list-view article.card.card>.card-image>img.building-exterior-thumb{position:absolute!important;inset:auto 12px 12px auto!important;width:96px!important;height:70px!important;border:3px solid #fffdf8!important;border-radius:10px!important;object-fit:cover!important;box-shadow:0 6px 18px rgba(26,21,18,.28)!important;z-index:2}
html body #cards.cards.list-view article.card.card>.card-image .building-exterior-label{z-index:3}
/* side by side only when the results column is genuinely wide; otherwise the photo becomes a tall sliver */
@container (min-width:820px){
  html body #cards.cards.list-view article.card.card{display:grid!important;grid-template-columns:minmax(300px,40%) minmax(0,1fr)!important;column-gap:30px!important;align-items:start!important}
  html body #cards.cards.list-view article.card.card>.card-image{grid-column:1!important;grid-row:1 / span 3!important;aspect-ratio:4/3!important;margin:0!important}
  html body #cards.cards.list-view article.card.card .card-open{grid-row:1!important;align-self:start!important}
  html body #cards.cards.list-view article.card.card .card-meta{grid-row:2!important;position:static!important}
  html body #cards.cards.list-view article.card.card .listing-attribution{grid-row:3!important;position:static!important}
  html body #cards.cards.list-view article.card.card{grid-template-rows:auto auto 1fr!important;grid-template-areas:none!important}
}

/* 2026-10-25 Claude for Shawn: keep all the gold when Buy is on (the list-card restyle above was overriding it). */
html body.buy-mode #cards.cards.list-view article.card.card{border:1px solid transparent!important;background:linear-gradient(#fffaf0,#fffaf0) padding-box,linear-gradient(135deg,#8a6a2f,#e9cf8f 30%,#b8924d 50%,#f3dfa6 70%,#8a6a2f) border-box!important;box-shadow:0 14px 34px rgba(138,106,47,.22)!important}
html body.buy-mode #cards.cards.list-view article.card.card .card-open .price{background:linear-gradient(100deg,#4a3714 0%,#7a5a22 30%,#b88a35 48%,#d6ac55 52%,#7a5a22 70%,#4a3714 100%)!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;color:transparent!important;text-shadow:none!important}
html body.buy-mode #cards.cards.list-view article.card.card .card-open .price small{-webkit-text-fill-color:#7a5a22!important;color:#7a5a22!important}
html body.buy-mode #cards.cards.list-view article.card.card .card-open .building-name{color:#7a5a22!important}
html body.buy-mode #cards.cards.list-view article.card.card .listing-contact-agent{background:linear-gradient(135deg,#4a3714,#9a7430 45%,#d6ac55 55%,#7a5a22)!important;color:#fffaf0!important;border-color:#8a6a2f!important}
