/* idx-plus (Nov 27, 2026): compare, share menu, nearby sales, new since last visit badge, save this search, open house
   calendar links, cleaner printed listing. Loaded only where one of these switches is on. Colors follow each site's theme. */

/* New since your last visit */
.badge.b-visit { background: #0F5132; color: #fff; }

/* Compare: button on result cards, tray, table */
.card-photo .cmp-btn { position: absolute; right: 8px; bottom: 8px; min-height: 32px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(0,0,0,.12);
  background: #fff; color: var(--brand, #0E2A47); font: 600 13px/1.2 var(--font, inherit); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.card-photo .cmp-btn[aria-pressed="true"], .l-actions [data-compare-toggle][aria-pressed="true"] { background: var(--brand, #0E2A47); color: #fff; }
.card-photo .badge.oh ~ .cmp-btn { bottom: 36px; }
.ip-tray { position: fixed; right: 16px; bottom: 16px; z-index: 900; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: #fff; border: 1px solid #DDE3EB; border-radius: 14px; box-shadow: 0 10px 28px rgba(10,30,60,.18); font-size: 15px; }
.ip-tray[hidden] { display: none; }
.ip-tray [aria-disabled="true"] { opacity: .55; pointer-events: none; }
.cmp-wrap { overflow-x: auto; border: 1px solid #DDE3EB; border-radius: 14px; margin: 16px 0; -webkit-overflow-scrolling: touch; }
.cmp-tbl { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 640px; font-size: 15px; }
.cmp-tbl th, .cmp-tbl td { padding: 10px 12px; border-bottom: 1px solid #EEF2F6; text-align: left; vertical-align: top; }
.cmp-tbl tbody th { position: sticky; left: 0; background: #F7F9FB; font-weight: 600; width: 180px; z-index: 1; }
.cmp-tbl thead th { background: #fff; width: 22%; }
.cmp-tbl .cmp-corner { position: sticky; left: 0; background: #fff; z-index: 2; }
.cmp-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.cmp-addr { display: block; margin-top: 8px; font-weight: 700; color: var(--brand, #0E2A47); }
.cmp-city { display: block; font-size: 13px; color: #5B6576; font-weight: 400; }
.cmp-remove { font-size: 13px; margin-top: 4px; }
.cmp-none { color: #8A94A3; }
.cmp-courtesy td { font-size: 13px; color: #3B4B5E; }

/* Share menu */
.ip-share { max-width: 420px; }
.ip-share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.ip-share-row .btn { flex: 1 1 40%; text-align: center; min-height: 44px; }

/* Recent sales near this home */
.ip-near-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 16px; }
.ip-near-stats > div { border: 1px solid #DDE3EB; border-radius: 12px; padding: 12px; text-align: center; }
.ip-near-stats b { display: block; font-size: 22px; color: var(--brand, #0E2A47); }
.ip-near-stats small { color: #5B6576; }
.ip-near-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .ip-near-stats, .ip-near-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Save this search and open house calendar links */
.ip-save { margin-left: 4px; }
.oh-cal { display: inline-block; margin: 0 14px 12px; font-size: 14px; font-weight: 600; }
.oh-list .oh-cal { margin: 0 0 0 8px; }
.oh-start { margin: 6px 0 10px; }
.oh-start [aria-pressed="true"] { background: var(--brand, #0E2A47); color: #fff; }

/* Full screen photos */
.photo-viewer.ip-fullscreen { max-width: none; width: 100vw; height: 100vh; margin: 0; border-radius: 0; }
.photo-viewer.ip-fullscreen .pv-img { max-height: calc(100vh - 140px); }

/* Cleaner printed listing (switch print_view): photo strip, facts, description, courtesy and the RMLS notice */
@media print {
  .ip-print .g-side { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; }
  .ip-print .gallery2 { height: auto; }
  .ip-print #g-img { max-height: 3.4in; width: 100%; object-fit: cover; }
  .ip-print #location .map-frame, .ip-print #hazards, .ip-print #payment, .ip-print #assumable, .ip-print .ar-teaser, .ip-print .walk-box,
  .ip-print .vc-chart, .ip-print #nearby-sales .card-photo, .ip-print .gate-box, .ip-print .my-note-box { display: none !important; }
  .ip-print #remarks.clamp { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .ip-print [data-more], .ip-print .oh-cal, .ip-print #remarks::after { display: none !important; }
  .ip-print .courtesy-strip { font-size: 11pt; }
  .ip-print .listing-grid { display: block; }
}
