/* v1 2026-11-25 Showcase listing details: lead sidebar + declutter. body.bb-idx-detail is set by bb-idx-detail.js.
   Never hides the Listing Brokerage row or the Stellar disclaimer. */

/* ---------- Lead card ---------- */
.bb-lead {
  box-sizing: border-box; margin: 24px 0; padding: 22px 22px 18px;
  background: #F1F2F4; border: 1px solid #D9DCE1; border-radius: 14px;
  color: #1a1a1a; font-family: Montserrat, Arial, sans-serif; font-size: 20px; line-height: 1.4;
}
.bb-lead *, .bb-lead *::before, .bb-lead *::after { box-sizing: border-box; }
.bb-lead p { margin: 0; }
.bb-lead__showing {
  display: block; width: 100%; margin: 0 0 20px; padding: 18px 16px; border: 0; border-radius: 10px;
  background: #1E6B34 !important; color: #fff !important; cursor: pointer; text-transform: none !important; box-shadow: none !important;
  font: 700 22px/1.2 Poppins, Arial, sans-serif !important; letter-spacing: .01em;
}
.bb-lead__showing:hover { background: #17552A !important; }
.bb-lead__agent { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #C9CDD3; }
.bb-lead__photo { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center 20%; background: #0D2E52; }
.bb-lead__who { min-width: 0; }
.bb-lead__name { font: 700 20px/1.25 Poppins, Arial, sans-serif; color: #0D2E52; }
.bb-lead__firm { font-size: 18px; color: #333; margin-top: 2px !important; }
.bb-lead__phone { margin-top: 4px !important; }
.bb-lead__phone a { font-size: 20px; font-weight: 700; color: #0D2E52 !important; text-decoration: none; white-space: nowrap; }
.bb-lead__phone a:hover { text-decoration: underline; }
.bb-lead__form { margin: 0; padding-top: 16px; }
.bb-lead__h { margin: 0 0 12px !important; font: 700 22px/1.25 Poppins, Arial, sans-serif !important; color: #1a1a1a !important; }
.bb-lead__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bb-lead label { display: block; margin: 0 0 10px; }
.bb-lead input, .bb-lead textarea {
  display: block; width: 100%; margin: 0; padding: 12px 14px; min-height: 52px;
  border: 1px solid #8A9099; border-radius: 8px; background: #fff; color: #1a1a1a;
  font: 400 20px/1.35 Montserrat, Arial, sans-serif; box-shadow: none;
}
.bb-lead textarea { min-height: 104px; resize: vertical; }
.bb-lead input::placeholder, .bb-lead textarea::placeholder { color: #5A606A; opacity: 1; }
.bb-lead input:focus, .bb-lead textarea:focus, .bb-lead button:focus-visible { outline: 3px solid #F2B705; outline-offset: 1px; }
.bb-lead [aria-invalid="true"] { border: 2px solid #B00020; }
.bb-lead__send {
  display: block; width: 100%; margin: 4px 0 0; padding: 16px; border: 0; border-radius: 10px;
  background: #00707A !important; color: #fff !important; cursor: pointer; text-transform: none !important; box-shadow: none !important;
  font: 700 22px/1.2 Poppins, Arial, sans-serif !important;
}
.bb-lead__send:hover { background: #005A62 !important; }
.bb-lead__send[disabled] { opacity: .75; cursor: wait; }
.bb-lead__back { display: block; margin: 0 0 10px; padding: 4px 0; border: 0; background: none !important; color: #0D2E52 !important; font: 600 18px/1.3 Montserrat, Arial, sans-serif !important; text-decoration: underline; cursor: pointer; box-shadow: none !important; }
.bb-lead__back[hidden] { display: none !important; }
.bb-lead__status { margin-top: 10px !important; font-size: 18px; font-weight: 600; }
.bb-lead__status:empty { display: none; }
.bb-lead__status.is-bad { color: #B00020; }
.bb-lead__consent { margin-top: 12px !important; font-size: 16px !important; line-height: 1.4; color: #333; }
.bb-lead__done { font-size: 20px; }
.bb-lead__done a { color: #0D2E52 !important; font-weight: 700; }
.bb-lead__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bb-lead__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Declutter (detail pages only) ---------- */
/* One Save/Ask/Tour/Hide/Share bar: keep the first one in the left column, hide the repeats. */
body.bb-idx-detail .sidx-listing-details .sidx-primary-actions ~ .sidx-primary-actions,
body.bb-idx-detail .sidx-listing-details .sidx-primary-jumbo { display: none !important; }
/* Sidebar replaces Showcase's Ask a Question / Schedule a Tour buttons (kept in the DOM, not removed). */
body.bb-idx-detail .sidx-listing-details .sidx-left-column > .sidx-call-to-actions { display: none !important; }
/* Thumbnail strip duplicates the main photo carousel. */
body.bb-idx-detail .sidx-listing-details .sidx-photo-array { display: none !important; }
/* Social widgets. */
body.bb-idx-detail .sidx-listing-details .sidx-details-table__friends { display: none !important; }
/* App-style menu: keep Search and Sign in / Sign up, hide Dashboard / Listings / Searches. */
body.bb-idx-detail .sidx-header-link-dashboard,
body.bb-idx-detail .sidx-header-link-listings,
body.bb-idx-detail .sidx-header-link-searches { display: none !important; }
/* Address heading: normal case is applied in JS; make it a real heading size. */
body.bb-idx-detail .sidx-listing-details .sidx-listing-heading h1,
body.bb-idx-detail .sidx-listing-details .sidx-address-1 { font-size: 30px !important; line-height: 1.2; color: #0D2E52; text-transform: none !important; }
body.bb-idx-detail .sidx-listing-details .sidx-address-2 { font-size: 22px !important; line-height: 1.3; color: #1a1a1a; text-transform: none !important; }
body.bb-idx-detail .sidx-listing-details .sidx-sub-address,
body.bb-idx-detail .sidx-listing-details .sidx-sub-address span { font-size: 16px !important; color: #333 !important; }

/* ---------- Desktop: wide photo + content left, sticky lead card right ---------- */
@media (min-width: 1100px) {
  body.bb-idx-detail #sidx-main-container { max-width: 1240px !important; margin-left: auto; margin-right: auto; }
  body.bb-idx-detail .sidx-listing-details .sidx-columns {
    display: grid !important; grid-template-columns: minmax(0, 1fr) 390px; column-gap: 36px; align-items: start;
  }
  body.bb-idx-detail .sidx-listing-details .sidx-left-column,
  body.bb-idx-detail .sidx-listing-details .sidx-right-column { display: contents !important; }
  body.bb-idx-detail .sidx-listing-details .sidx-columns > * > * { grid-column: 1; order: 9; min-width: 0; width: auto !important; max-width: 100% !important; float: none !important; }
  body.bb-idx-detail .sidx-listing-details .sidx-left-column > .sidx-primary-actions:first-child { order: 1; justify-content: flex-start; gap: 28px; }
  body.bb-idx-detail .sidx-listing-details .sidx-right-column > .sidx-carousel { order: 2; }
  body.bb-idx-detail .sidx-listing-details .sidx-left-column > .sidx-price-area { order: 3; margin-top: 18px; }
  body.bb-idx-detail .sidx-listing-details .sidx-left-column > .sidx-reversing { order: 4; }
  body.bb-idx-detail .sidx-listing-details .sidx-left-column > .sidx-list-items { order: 5; }
  body.bb-idx-detail .sidx-listing-details .sidx-right-column > .sidx-listing-description { order: 6; }
  body.bb-idx-detail .sidx-listing-details .sidx-right-column > .sidx-listing-snapshot { order: 7; }
  body.bb-idx-detail .sidx-listing-details .sidx-left-column > .mortgage-calculator { order: 8; margin: 28px 0; max-width: 640px; }
  /* Stellar disclaimer / courtesy blocks keep Showcase's own position (order 9, document order). */
  body.bb-idx-detail .sidx-listing-details .sidx-columns .bb-lead {
    grid-column: 2; grid-row: 1 / span 80; order: 0; align-self: start;
    position: sticky; top: 24px; margin: 0;
  }
  body.bb-idx-detail .sidx-listing-details .sidx-reversing .sidx-primary-info { max-width: 640px; }
  /* Back-to-top button sat over the sticky card; move it to the bottom corner on these pages. */
  body.bb-idx-detail .bbh-top { top: auto !important; bottom: 24px !important; }
}
@media (max-width: 1099px) {
  .bb-lead { margin: 20px 0 24px; }
}
@media (max-width: 420px) {
  .bb-lead { padding: 18px 14px 14px; }
  .bb-lead__photo { flex-basis: 80px; width: 80px; height: 80px; }
}
/* Low-contrast Showcase grays -> readable dark gray for older eyes. */
body.bb-idx-detail .sidx-listing-details .sidx-list-item-value,
body.bb-idx-detail .sidx-listing-details .sidx-primary-info-item,
body.bb-idx-detail .sidx-listing-details .sidx-days-online { color: #333 !important; }
@media (max-width: 1099px) { .bb-lead textarea { min-height: 136px; } }
