/* A compact desktop workspace. Mobile keeps its existing feed and gestures. */
.fd-property-share { margin: 14px 0; }
.fd-property-share input { width: 100%; margin-top: 8px; padding: 10px; font: inherit; }
.fd-property-share [role="status"]:not(:empty) { display: block; margin-top: 6px; color: var(--fd-text-soft); }
#property-link-notice { max-width: min(24rem, 90vw); border: 1px solid var(--fd-line); border-radius: 20px; padding: 24px; background: var(--fd-surface); color: var(--fd-text); }
#property-link-notice::backdrop { background: rgb(12 23 27 / 55%); }
#property-link-notice h2 { margin: 0 0 18px; font: 700 23px/1.25 var(--fd-display); }
#property-link-notice button { border: 0; border-radius: 24px; padding: 12px 20px; background: var(--fd-terracotta); color: white; font: inherit; cursor: pointer; }
@media (min-width: 900px) {
  .bp-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  [data-theme="light"] .feed-body {
    --fd-bg: #f6f8fa;
    --fd-surface: #fff;
    --fd-surface-2: #edf1f5;
    --fd-text: #172b36;
    --fd-text-soft: #465d6b;
    --fd-text-mute: #627782;
    --fd-teal: #23706c;
    --fd-sage: #23706c;
    --fd-sage-soft: #286760;
    --fd-terracotta: #a5573d;
    --fd-line: #dce4e9;
  }
  .bp-app {
    --bp-border: color-mix(in srgb, var(--fd-text) 11%, transparent);
    --bp-shadow: 0 3px 15px #17354607;
    font-size: 13px;
  }
  .bp-header {
    height: 60px;
    min-height: 60px;
    padding: 10px 24px;
    gap: 34px;
    background: var(--fd-surface);
  }
  .feed-body .bp-logo { font-size: 30px; letter-spacing: -1.45px; }
  .bp-header nav { gap: 26px; align-items: center; }
  .bp-header nav a { height: 60px; font-size: 12px; }
  .bp-header nav a[aria-current] { color: var(--fd-teal); }
  .bp-header nav a[aria-current]::after { bottom: 0; height: 2px; background: var(--fd-teal); }
  .bp-account { gap: 19px; }
  .bp-account > button, .bp-account > a { font-size: 11px; padding: 7px 0; }
  .bp-account .appearance-picker { min-height: 31px; border-radius: 8px; font-size: 10px; }
  .bp-favorites b { min-width: 19px; height: 19px; background: var(--fd-surface-2); }

  .bp-search {
    position: relative;
    z-index: 600;
    padding: 10px 24px 12px;
    background: var(--fd-surface);
    box-shadow: 0 3px 12px #163c4d04;
  }
  .bp-search-heading { display: none; }
  .bp-form { grid-template-columns: 1.03fr 1.65fr 1.12fr 1fr .72fr auto; gap: 10px; }
  .bp-form > label { gap: 5px; font-size: 10px; line-height: 14px; font-weight: 500; }
  .bp-form :is(input,select) {
    height: 42px;
    border-radius: 10px;
    border-color: var(--bp-border);
    background: var(--fd-bg);
    font-size: 12px;
    padding-inline: 12px;
    transition: border-color .15s, box-shadow .15s;
  }
  .bp-form :is(input,select):focus-visible { outline: none; border-color: var(--fd-teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fd-teal) 12%, transparent); }
  .bp-input-icon > svg { left: 12px; top: 12px; }
  .bp-form .bp-input-icon input { padding-left: 35px; }
  .bp-app .bp-primary, .bp-detail-dialog .bp-primary {
    min-height: 42px;
    border-radius: 10px;
    background: var(--fd-teal);
    font-size: 12px;
    box-shadow: 0 3px 8px #144d4910;
  }
  .bp-form .bp-primary { padding-inline: 18px; }
  .bp-advanced:not([hidden]) {
    position: absolute;
    z-index: 650;
    top: calc(100% + 8px);
    left: 24px;
    width: min(840px, calc(100vw - 48px));
    max-height: min(470px, calc(100dvh - 175px));
    padding: 22px;
    overflow: auto;
    border: 1px solid var(--bp-border);
    border-radius: 16px;
    background: var(--fd-surface);
    box-shadow: 0 18px 65px #15384626, 0 3px 12px #1538460b;
  }
  .bp-advanced-grid { gap: 12px; }
  .bp-advanced-grid > label { font-size: 11px; line-height: 1.4; }
  .bp-advanced-grid :is(input,select) { height: 42px; border-radius: 9px; background: var(--fd-bg); font-size: 12px; }
  .bp-advanced-checks { gap: 15px 20px; padding-block: 20px; }
  .bp-advanced-checks label { font-size: 11px; line-height: 1.5; }
  .bp-advanced-bottom { gap: 16px; }
  .bp-advanced-bottom p { max-width: 330px; font-size: 10px; }
  .bp-search > .bp-error:not([hidden]) { position: absolute; top: calc(100% + 8px); right: 24px; max-width: min(430px, calc(100% - 48px)); padding: 12px 16px; border: 1px solid var(--fd-terracotta); border-radius: 10px; background: var(--fd-surface); box-shadow: 0 6px 25px #163c4d12; }

  .bp-workspace { grid-template-columns: minmax(445px, 49%) minmax(0, 1fr); }
  .bp-results { padding: 22px 22px 100px 24px; background: var(--fd-bg); scrollbar-color: #c7d4dc transparent; scrollbar-width: thin; }
  .bp-results-head { align-items: center; gap: 12px; }
  .bp-results-head .bp-eyebrow { display: none; }
  .bp-results-head h2 { font-size: 25px; line-height: 1.2; letter-spacing: -.7px; }
  .bp-sort { flex-direction: row; align-items: center; gap: 5px; font-size: 10px; }
  .bp-sort select { max-width: 156px; padding: 7px 0 7px 4px; background: transparent; font-size: 11px; }
  .bp-results > .bp-filter-row { min-height: 0; flex-wrap: wrap; gap: 8px 12px; margin: 13px 0 12px; padding: 0; }
  .bp-results .bp-quick-filters { flex: 1; flex-wrap: wrap; gap: 6px; }
  .bp-filter-button { min-height: 31px; border-radius: 8px; background: var(--fd-surface); padding: 0 10px; font-size: 10px !important; }
  .bp-filter-button[aria-pressed="true"], .bp-filter-button[aria-expanded="true"] { border-color: color-mix(in srgb, var(--fd-teal) 45%, transparent); background: color-mix(in srgb, var(--fd-teal) 7%, var(--fd-surface)); color: var(--fd-teal); }
  .bp-save-search { margin-left: auto; gap: 5px; font-size: 10px !important; }
  .bp-active-filters { display: flex; flex-wrap: wrap; gap: 5px; overflow: visible; }
  .bp-active-filters > span { font-size: 9px; border-radius: 6px; padding: 5px 7px; background: var(--fd-surface-2); }
  .bp-results > .bp-match-strip { gap: 9px; padding: 9px 11px; margin: 0 0 11px; min-height: 46px; border: 1px solid color-mix(in srgb, var(--fd-teal) 16%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--fd-teal) 5%, var(--fd-surface)); }
  .bp-match-strip .bp-match-symbol { width: 28px; height: 28px; border-radius: 9px; background: color-mix(in srgb, var(--fd-teal) 10%, transparent); font-size: 10px; }
  .bp-match-strip > span:not(.bp-match-symbol) { flex: 1; min-width: 0; line-height: 1.4; }
  .bp-match-strip b { font-size: 11px; font-weight: 600; line-height: 1.4; margin: 0; }
  .bp-match-strip .bp-match-description { display: none; }
  .bp-match-strip button { min-height: 29px; padding: 5px 9px; flex: none; border: 1px solid color-mix(in srgb, var(--fd-teal) 20%, transparent); border-radius: 8px; background: var(--fd-surface); color: var(--fd-teal); font-size: 10px; font-weight: 600; white-space: nowrap; }
  .bp-match-strip button[data-bp="match-demo"] { border-color: transparent; background: transparent; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
  .bp-results-sub { min-height: 38px; margin: 0 0 10px; gap: 10px; }
  .bp-context { max-width: 77%; font-size: 10px; line-height: 1.5; }
  .bp-view-switch { border-radius: 9px; background: var(--fd-surface); padding: 3px; }
  .bp-view-switch button { border-radius: 6px; height: 26px; width: 28px; }
  .bp-view-switch button[aria-pressed="true"] { color: var(--fd-teal); background: color-mix(in srgb, var(--fd-teal) 9%, var(--fd-surface)); box-shadow: none; }
  .bp-zone-notice { padding: 10px 12px; margin-bottom: 14px; border-radius: 10px; font-size: 10px; }

  .bp-cards { gap: 18px; }
  .bp-card { border-radius: 16px; border-color: color-mix(in srgb, var(--fd-text) 9%, transparent); box-shadow: 0 3px 15px #17354607; }
  .bp-card:hover { border-color: color-mix(in srgb, var(--fd-teal) 35%, transparent); box-shadow: 0 8px 24px #17354610; }
  .bp-card.is-selected { border-color: var(--fd-teal); box-shadow: 0 0 0 2px color-mix(in srgb, var(--fd-teal) 18%, transparent), 0 7px 24px #1735460d; }
  .bp-card-photo { aspect-ratio: 1.45; }
  .bp-card-body { padding: 15px 15px 0; }
  .bp-card-price b { font-size: 23px; letter-spacing: -.65px; }
  .bp-card-body > .bm-badge { gap: 8px; padding: 8px 10px; margin-bottom: 12px; border-radius: 10px; }
  .bp-card-body > .bm-badge b { font-size: 21px; }
  .bp-card-body > .bm-badge.bm-strong { background: #eef7f4; border-color: #c9e1d8; color: #205a4b; }
  .bp-card-body > .bm-badge > span:nth-child(2) { font-size: 10px; }
  .bp-card-body > .bm-badge > span:nth-child(2) small { font-size: 9px; }
  .bp-app .bp-card-title { font-size: 14px; line-height: 1.45; min-height: 41px; }
  .bp-card-footer { min-height: 44px; }
  .bp-card-footer > button { min-height: 34px; border-radius: 7px; }
  .bp-card-footer > button:hover { background: var(--fd-surface-2); color: var(--fd-teal); }
  .bp-app .bp-heart { width: 33px; height: 33px; border-color: #fff; background: #fffffff0; box-shadow: 0 2px 8px #142b3b1a; }
  .bp-new { background: #ffffffed; color: #265d52; border-radius: 6px; font-size: 9px; padding: 5px 8px; }
  .bp-transaction, .bp-photo-count { border-radius: 6px; }
  .bp-load-more { min-height: 43px; border-radius: 10px; }
  .bp-empty { background: var(--fd-surface); border-radius: 16px; padding: 40px 24px; }

  .bp-map-panel { border-left-color: var(--bp-border); background: #e8f0f2; }
  .bp-map-tools { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; top: 16px; left: 16px; right: 16px; gap: 8px; align-items: start; }
  .bp-map-tools > .bp-map-follow { grid-column: 1; grid-row: 1; }
  .bp-map-tools > [data-bp="recenter"] { grid-column: 3; grid-row: 1; }
  .bp-map-tools > .bp-zone-toolbar { grid-column: 2; grid-row: 1; width: auto; order: initial; justify-self: start; }
  .bp-map-tools label, .bp-map-tools button { min-height: 37px; padding: 0 10px; border-color: #d8e3e7; border-radius: 10px; background: #fffffff5; color: #224849; font-size: 10px; box-shadow: 0 3px 12px #173a4710; }
  .bp-map-tools > .bp-map-follow { gap: 7px; font-size: 10px; }
  .bp-map-follow input { width: 14px; height: 14px; }
  .bp-map-tools button:hover { border-color: #9abebc; background: #fff; }
  .bp-map-tools .bz-toolbar button.bz-primary { background: #23706c; color: #fff; border-color: #23706c; }
  .bp-map-tools:has(.bz-toolbar.is-editing) { display: block; }
  .bp-map-tools:has(.bz-toolbar.is-editing) > .bp-zone-toolbar { width: 100%; }
  .bp-map-tools .bz-editor { width: min(460px, 100%); max-width: 100%; border: 1px solid #d2e0e4; border-radius: 14px; padding: 13px; background: #fffffff7; box-shadow: 0 10px 35px #173a4721; }
  .bp-map-tools .bz-editor .bz-mode { font-size: 11px; color: #224849; }
  .bp-map-tools .bz-editor .bz-mode select { padding: 6px 8px; border-radius: 7px; border-color: #d2e0e4; }
  .bp-map-tools .bz-editor .bz-instruction { font-size: 11px; margin: 9px 0 12px; }
  .bp-map-tools .bz-editor .bz-editor-actions button { min-height: 31px; padding: 5px 8px; border-radius: 8px; font-size: 10px; box-shadow: none; }
  .bp-map-note { bottom: 17px; left: 16px; max-width: calc(100% - 83px); padding: 9px 11px; border-color: #d9e4e7; border-radius: 10px; background: #fffffff2; color: #2c4b50; box-shadow: 0 4px 16px #173a470d; }
  .bp-map-note > span { font-size: 10px; }
  .bp-map-note small { font-size: 9px; }
  .bp-map-panel .leaflet-control-zoom { margin-right: 16px; margin-bottom: 79px; border-radius: 10px; border-color: #d2e0e4; box-shadow: 0 4px 16px #173a4712; }
  .bp-marker { border-color: #c4d9d8; border-radius: 9px; color: #225d58; box-shadow: 0 3px 10px #173a4720; }
  .bp-marker.is-cluster { background: #23706c; box-shadow: 0 0 0 5px #23706c15, 0 4px 12px #173a4726; }
  .bp-marker.is-selected, .bp-marker.is-hovered, .bp-marker:hover { background: #174e4b; border-color: #174e4b; color: white; }
  .bp-marker.is-cluster.is-selected { background: #a5573d; border-color: white; }
  .bp-map-preview { border-color: #d2e0e4; border-radius: 16px; box-shadow: 0 15px 50px #173a472b; }

  .bp-app[data-view="list"] .bp-results, .bp-app[data-view="grid"] .bp-results { padding-inline: 32px; }
  .bp-app[data-view="list"] .bp-cards { max-width: 1120px; }
  .bp-app[data-view="list"] .bp-card-photo { aspect-ratio: auto; }
  .bp-app[data-view="grid"] .bp-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bp-app[data-view="grid"] .bp-card-photo { aspect-ratio: 1.45; }
  .bp-detail-dialog, .bp-compare-dialog, .bp-searches-dialog, .bm-profile-dialog { border-radius: 20px; border-color: var(--bp-border, var(--fd-line)); background: var(--fd-surface); box-shadow: 0 25px 100px #102a3b33; }
  .bp-dialog-head { padding: 19px 26px; background: var(--fd-surface); }
  .bp-dialog-head h2 { font-size: 23px; }
  .bp-dialog-head .bp-eyebrow { font-size: 9px; margin-bottom: 3px; }
  .bp-dialog-close { width: 34px; height: 34px; }
  .bp-detail-content { background: var(--fd-surface); }
  .bp-detail-aside { background: var(--fd-bg); }
  .bp-compare-tray { border-color: var(--bp-border); border-radius: 16px; background: var(--fd-surface); box-shadow: 0 12px 50px #17354622; }
  .bp-desktop :focus-visible { outline-color: var(--fd-teal); }
}

@media (min-width: 900px) and (max-width: 1249px) {
  .bp-header { gap: 24px; padding-inline: 20px; }
  .bp-header nav { gap: 18px; }
  .bp-account { gap: 13px; }
  .bp-search { padding-inline: 20px; }
  .bp-form { gap: 8px; }
  .bp-form .bp-primary { padding-inline: 13px; }
  .bp-workspace { grid-template-columns: minmax(400px, 49%) minmax(0, 1fr); }
  .bp-results { padding: 19px 17px 100px 20px; }
  .bp-results-head h2 { font-size: 22px; }
  .bp-sort { flex-direction: column; align-items: flex-end; gap: 1px; }
  .bp-sort select { max-width: 142px; }
  .bp-match-strip .bp-match-symbol { display: none; }
  .bp-match-strip { flex-wrap: wrap; }
  .bp-match-strip > span:not(.bp-match-symbol) { flex-basis: 100%; }
  .bp-match-strip button { flex: 1; justify-content: center; }
  .bp-card-photo { aspect-ratio: auto; }
  .bp-card-body > .bm-badge { padding: 7px 8px; }
  .bp-card-body > .bm-badge > span:nth-child(2) small { font-size: 8px; }
  .bp-card-body > .bm-badge b { font-size: 20px; }
  .bp-map-tools { grid-template-columns: minmax(0, 1fr) auto; left: 12px; right: 12px; }
  .bp-map-tools > [data-bp="recenter"] { grid-column: 2; }
  .bp-map-tools > .bp-zone-toolbar { grid-column: 1 / -1; grid-row: 2; }
  .bp-app[data-view="grid"] .bp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bp-app[data-view="grid"] .bp-card-photo { aspect-ratio: 1.45; }
}

@media (min-width: 1600px) {
  .bp-workspace { grid-template-columns: minmax(680px, 48%) minmax(0, 1fr); }
  .bp-results { padding-inline: 28px; }
  .bp-cards { gap: 20px; }
}

.bp-account .bp-lia-entry { border:1px solid #badbd9; background:#e8f6f4; color:#176e68; border-radius:20px; font:600 13px var(--bp-body,sans-serif); padding:8px 14px; cursor:pointer; }
.bp-header nav { gap:18px; }
@media(min-width:900px) and (max-width:1190px) { .bp-header nav { gap:12px; } .bp-header nav a { font-size:12px; } .bp-account-searches,.bp-account-link { display:none; } }

/* A local expansion keeps the current project and comparison intact. */
.bp-app .bp-result-expansion { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:0 0 18px; padding:13px 16px; border:1px solid #c9ded2; border-radius:14px; background:#edf5ef; color:#245443; }
.bp-app .bp-result-expansion[hidden] { display:none!important; }
.bp-result-expansion > span { font-size:13px; line-height:1.4; }
.bp-app .bp-result-expansion button { min-height:40px; flex:none; padding:9px 14px; border:1px solid #b2cdbd; border-radius:10px; background:#fff; color:#195640; font:600 13px/1.3 var(--fd-body,sans-serif); cursor:pointer; }
.bp-app .bp-result-expansion button:hover { background:#dceee0; }
.bp-app .bp-result-expansion button:disabled { opacity:.65; cursor:progress; }
@media(max-width:1100px) { .bp-app .bp-result-expansion { padding:12px; gap:10px; } .bp-result-expansion > span { font-size:12px; } .bp-app .bp-result-expansion button { padding-inline:11px; } }
