body.is-admin #rcSection { padding-left: 1.5rem; padding-right: 1.5rem; grid-column: 1; }
.rc-panel { display: none; }
.rc-panel.active { display: block; }
.rc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.rc-tab { background: rgba(255,255,255,0.05); border: 1px solid rgba(201,168,76,0.25); color: var(--muted, #888); padding: 7px 14px; border-radius: 6px; font-size: 0.8rem; cursor: pointer; transition: all 0.2s; }
.rc-tab:hover { border-color: var(--gold, #C9A84C); color: var(--gold, #C9A84C); }
.rc-tab.active { background: rgba(201,168,76,0.15); border-color: var(--gold, #C9A84C); color: var(--gold, #C9A84C); font-weight: 600; }
.rc-loading { display: flex; align-items: center; gap: 10px; color: var(--muted, #888); font-size: 0.85rem; padding: 24px 0; }
.rc-big-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.8rem; color: var(--gold, #C9A84C); line-height: 1; margin-bottom: 4px; }
.rc-range { font-size: 0.8rem; color: var(--muted, #888); margin-bottom: 16px; }
.rc-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 12px; margin-top: 12px; }
.rc-valuation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.rc-valuation-col-head { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 6px; margin-bottom: 0.7rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(201,168,76,0.2); }
.rc-valuation-col-head .ck-ic { font-size: 0.85rem; }
.rc-stat-label { font-size: 0.7rem; color: var(--muted, #888); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.rc-stat-val { font-size: 1rem; font-weight: 600; color: #fff; }
.rc-stat-val.gold { color: var(--gold, #C9A84C); }
.rc-comps-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; background: rgba(255,255,255,0.03); border-radius: 8px; padding: 14px; }
.rc-comp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rc-comp-card { background: #111; border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s; }
.rc-comp-card:hover { border-color: rgba(201,168,76,0.35); }
.rc-comp-card-img { position: relative; width: 100%; aspect-ratio: 16/9; background: #1a1a1a; overflow: hidden; }
.rc-comp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-comp-card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; opacity: 0.2; }
.rc-comp-card-badge { position: absolute; top: 8px; left: 8px; }
.rc-comp-card-body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.rc-comp-card-price { font-size: 1.15rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.rc-comp-card-addr { font-size: 0.75rem; color: #c0c0c0; font-weight: 500; }
.rc-comp-card-addr a { color: inherit; text-decoration: none; }
.rc-comp-card-addr a:hover { color: var(--gold); }
.rc-comp-card-specs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.72rem; color: #888; margin-top: 2px; }
.rc-comp-card-specs span { display: flex; align-items: center; gap: 3px; }
.rc-comp-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.7rem; color: #666; }
.rc-comp-card-psf { color: var(--gold); font-weight: 700; }
.rc-comp-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.82rem; }
.rc-comp-addr { font-weight: 500; color: #e0e0e0; margin-bottom: 2px; }
.rc-comp-addr a { color: inherit; text-decoration: none; transition: color 0.15s; }
.rc-comp-addr a:hover { color: var(--gold); }
.rc-comp-meta { color: var(--muted, #888); font-size: 0.75rem; margin-bottom: 4px; }
.rc-comp-price { font-weight: 700; color: var(--gold, #C9A84C); text-align: right; }
.rc-comp-psf { font-size: 0.72rem; color: var(--muted, #888); text-align: right; }
.rc-badge { display: inline-block; font-size: 0.65rem; padding: 2px 7px; border-radius: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.rc-badge-active { background: rgba(74,222,128,0.15); color: #4ade80; }
.rc-badge-sold { background: rgba(248,113,113,0.15); color: #f87171; }
.rc-badge-pending { background: rgba(251,191,36,0.15); color: #fbbf24; }
.rc-map-wrap { height: 320px; border-radius: 8px; overflow: hidden; background: #0d0d0d; }
.rc-map-wrap #rcMap { height: 100%; width: 100%; }
.rc-map-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 0.75rem; color: var(--muted, #888); }
.rc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.rc-error { color: #f87171; font-size: 0.85rem; padding: 16px 0; }
    .rc-no-property {
      text-align: center; padding: 2.4rem 1.2rem; color: var(--muted);
    }
.rc-no-property-icon { font-size: 2.4rem; margin-bottom: 0.5rem; opacity: 0.85; }
.rc-no-property-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.45rem; letter-spacing: -0.01em; }
    .rc-no-property-msg {
      font-size: 0.82rem; line-height: 1.55; max-width: 480px; margin: 0 auto;
    }
    .rc-no-property-tech {
      font-size: 0.66rem; color: rgba(248,113,113,0.7); font-family: 'SF Mono', Consolas, monospace;
      margin-top: 0.9rem; padding: 0.35rem 0.7rem;
      background: rgba(248,113,113,0.06); border: 1px solid rgba(248,113,113,0.2);
      border-radius: 4px; display: inline-block;
    }
.rc-fix-addr { max-width: 440px; margin: 1.4rem auto 0; text-align: left; }
    .rc-fix-input {
      width: 100%; box-sizing: border-box; font-size: 16px; font-family: inherit;
      color: var(--text); background: var(--bg2);
      border: 1px solid rgba(111,183,232,0.4); border-radius: 8px;
      padding: 0.7rem 0.9rem; outline: none;
      transition: border-color 0.18s, box-shadow 0.18s;
    }
.rc-fix-input::placeholder { color: var(--muted); }
.rc-fix-input:focus { border-color: #6FB7E8; box-shadow: 0 0 0 3px rgba(111,183,232,0.16); }
.rc-fix-hint { font-size: 0.7rem; color: var(--muted); margin-top: 0.45rem; line-height: 1.45; text-align: center; }
    .rc-section {
      overflow: hidden;
      max-height: 0;
      opacity: 0;
      margin-top: 0;
      pointer-events: none;
      transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.45s ease;
    }
    .rc-section.rc-visible {
      opacity: 1;
      margin-top: 32px;
      pointer-events: auto;
    }
.rc-section.rc-visible.rc-compact  { max-height: 30000px; }
.rc-section.rc-visible.rc-expanded { max-height: 30000px; grid-column: 1 / 3; }
#crmPane-intel .rc-section, #drPane-intel .rc-section, [id^="inlinePane_"][id$="_intel"] .rc-section { overflow: visible !important; margin-top: 0 !important; }
#crmPane-intel .rc-section.rc-visible.rc-expanded, #drPane-intel .rc-section.rc-visible.rc-expanded, [id^="inlinePane_"][id$="_intel"] .rc-section.rc-visible.rc-expanded { grid-column: auto !important; }
.rc-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 20px; }
#rcAddressLabel { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
    .rc-prop-static {
      font-size: 0.9rem;
      color: var(--text);
      font-weight: 600;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 100%;
    }
    .rc-prop-select {
      background: var(--bg2);
      border: 1px solid rgba(111,183,232,0.35);
      color: var(--text);
      font-family: inherit;
      font-size: 0.88rem;
      font-weight: 600;
      padding: 6px 28px 6px 10px;
      border-radius: 6px;
      cursor: pointer;
      outline: none;
      max-width: 100%;
      text-overflow: ellipsis;
      transition: border-color 0.18s, box-shadow 0.18s;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1l4 4 4-4' stroke='%236FB7E8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
      background-repeat: no-repeat;
      background-position: right 9px center;
      background-size: 10px 6px;
    }
.rc-prop-select:hover  { border-color: rgba(111,183,232,0.65); }
.rc-prop-select:focus  { border-color: #6FB7E8; box-shadow: 0 0 0 3px rgba(111,183,232,0.18); }
.rc-prop-select option { background: var(--bg2); color: var(--text); }
    .rc-prop-count {
      font-size: 0.65rem;
      color: var(--muted);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-weight: 700;
      padding: 3px 7px;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: rgba(255,255,255,0.02);
    }
#rcAddressLabel { width: 100%; }
.rc-prop-select { width: 100%; flex: 1 1 auto; }
      .rc-tabs {
        flex-wrap: nowrap !important;
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* right edge fade hints there is more to scroll to */
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent 100%);
                mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent 100%);
        padding: 2px 0;
      }
.rc-tabs::-webkit-scrollbar { display: none; }
.rc-tab { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
.rc-comp-card { cursor:pointer; }
document.querySelectorAll('#rcSection .rc-tab').forEach(function(b){ var oc = b.getAttribute('onclick') || ''; b.classList.toggle('active', oc.indexOf("'overview'") !== -1); });
document.querySelectorAll('#rcSection .rc-panel').forEach(function(p){ p.classList.remove('active'); });
    document.querySelectorAll('.rc-tab').forEach(function(b) {
      b.classList.toggle('active', b.getAttribute('onclick').includes("'" + name + "'"));
    });
document.querySelectorAll('.rc-panel').forEach(function(p) { p.classList.remove('active'); });
    document.querySelectorAll('.rc-comp-filter-btn').forEach(function(b) {
      b.style.background    = b.dataset.src === source ? '#C9A84C' : '#141414';
      b.style.color         = b.dataset.src === source ? '#000'    : '#888';
      b.style.borderColor   = b.dataset.src === source ? '#C9A84C' : '#2a2a2a';
    });
    document.querySelectorAll('.rc-comp-card').forEach(function(card) {
      card.style.display = (source === 'all' || card.dataset.source === source) ? '' : 'none';
    });
