/* SIMSAR AI V3: match SIMSAR brand (red, white, neutral). Scoped selectors only. */
#sm-ai-v2-launch,#sm-ai-v2-panel{font-family:inherit,system-ui,-apple-system,"Segoe UI",sans-serif;box-sizing:border-box}
#sm-ai-v2-panel *,#sm-ai-v2-launch *{box-sizing:border-box}
#sm-ai-v2-launch{position:fixed;inset:auto 18px 20px auto;z-index:2147482000;display:flex;align-items:center;gap:9px;background:#dc2e1d;color:#fff;border:1px solid #c72a1d;border-radius:999px;padding:11px 15px;font-size:13px;font-weight:750;line-height:1.25;box-shadow:0 6px 20px #9f251f35;cursor:pointer;max-width:calc(100vw - 32px)}
#sm-ai-v2-launch:hover{background:#bb281b;transform:translateY(-1px)}
#sm-ai-v2-launch .sm-ai-v2-spark{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#ffffff25;font-size:15px}
#sm-ai-v2-panel{position:fixed;inset:auto 18px 74px auto;width:min(370px,calc(100vw - 30px));height:min(510px,calc(100dvh - 104px));z-index:2147482001;display:none;flex-direction:column;overflow:hidden;border-radius:16px;border:1px solid #e3e8ef;background:#fff;color:#1b293f;box-shadow:0 16px 48px #1b293f26;font-size:13px;line-height:1.55}
#sm-ai-v2-panel[data-open="true"]{display:flex}
#sm-ai-v2-panel[dir="rtl"]{text-align:right}#sm-ai-v2-panel[dir="ltr"]{text-align:left}
#sm-ai-v2-head{display:flex;align-items:center;gap:10px;min-height:69px;padding:12px 15px;border-bottom:1px solid #edf0f5;background:#fff;color:#19283d}
#sm-ai-v2-head .sm-ai-v2-avatar{width:38px;height:38px;flex-shrink:0;display:grid;place-items:center;border-radius:12px;background:#dc2e1d;color:#fff;font-size:22px}
#sm-ai-v2-head .sm-ai-v2-titles{display:flex;flex:1;flex-direction:column;gap:0;min-width:0}
#sm-ai-v2-head strong{font-size:15px;font-weight:800;line-height:1.4}
#sm-ai-v2-head .sm-ai-v2-titles span{font-size:11px;color:#7a899f}
#sm-ai-v2-head .sm-ai-v2-close{margin-inline-start:auto;width:30px;height:30px;flex-shrink:0;display:grid;place-items:center;border:1px solid #e4e9ef;background:#fff;border-radius:9px;color:#6e7a8a;font-size:21px;line-height:1;cursor:pointer}
#sm-ai-v2-head .sm-ai-v2-close:hover{background:#fff3f1;color:#dc2e1d}
#sm-ai-v2-messages{min-height:0;flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:11px;padding:16px;background:#f6f8fb;overscroll-behavior:contain}
.sm-ai-v2-message{max-width:91%;align-self:flex-start;overflow-wrap:anywhere;white-space:pre-wrap;padding:11px 13px;border:1px solid #e3e8ee;border-radius:13px 13px 13px 3px;background:#fff;color:#26374b;font-size:13px;line-height:1.75}
.sm-ai-v2-message[data-role="user"]{align-self:flex-end;border-color:#f5ccc5;background:#fff0ed;color:#95291e;border-radius:13px 13px 3px 13px}
#sm-ai-v2-tips{display:flex;flex-wrap:wrap;gap:6px;padding:8px 11px;border-top:1px solid #f0f2f5;background:#fff}
#sm-ai-v2-tips .sm-ai-v2-chip{background:#fff;color:#bc3225;border:1px solid #f2d2cc;border-radius:999px;padding:5px 9px;font-size:11px;line-height:1.4;cursor:pointer}
#sm-ai-v2-tips .sm-ai-v2-chip:hover{background:#fff0ec}
#sm-ai-v2-form{display:flex;align-items:center;gap:7px;padding:10px 11px;border-top:1px solid #edf0f5;background:#fff}
#sm-ai-v2-input{flex:1;min-width:0;height:41px;border:1px solid #dce2e9;border-radius:10px;background:#fff;color:#243248;padding:9px 11px;font:inherit;font-size:12.5px;outline:none;direction:inherit}
#sm-ai-v2-input:focus{border-color:#df523f;box-shadow:0 0 0 2px #ef483b17}
#sm-ai-v2-send{height:41px;min-width:62px;padding:0 11px;border:0;border-radius:10px;background:#dc2e1d;color:#fff;font:inherit;font-weight:750;white-space:nowrap;cursor:pointer}
#sm-ai-v2-send:disabled{opacity:.55;cursor:wait}
#sm-ai-v2-panel .sm-ai-v2-card{display:flex;gap:10px;align-items:center;padding:9px;text-decoration:none;color:inherit;background:#fff;border:1px solid #e3e7ed;border-radius:11px}
#sm-ai-v2-panel .sm-ai-v2-card:hover{border-color:#eb8d84}
#sm-ai-v2-panel .sm-ai-v2-card img{width:64px;height:64px;flex-shrink:0;object-fit:cover;border-radius:8px}
#sm-ai-v2-panel .sm-ai-v2-card-info{min-width:0}#sm-ai-v2-panel .sm-ai-v2-card strong{display:block;font-size:12px}#sm-ai-v2-panel .sm-ai-v2-card span{display:block;margin-top:4px;font-size:11px;color:#6f8092}
#sm-ai-v2-launch:focus-visible,#sm-ai-v2-panel button:focus-visible{outline:2px solid #e15a44;outline-offset:2px}
@media(max-width:600px){#sm-ai-v2-launch{inset:auto 12px 76px auto;padding:10px 12px;font-size:12px}#sm-ai-v2-panel{inset:auto 0 0 0;width:100vw;height:min(80dvh,690px);max-height:calc(100dvh - 25px);border-radius:18px 18px 0 0}#sm-ai-v2-head{min-height:66px}}

/* V5 property-specific follow-up and native-detail context */
#sm-ai-v2-focus[hidden],#sm-ai-v2-focus-questions[hidden]{display:none!important}
#sm-ai-v2-focus{display:flex;align-items:center;gap:10px;padding:9px 12px;background:#fff4f1;border-bottom:1px solid #f1d1ca;color:#843021;direction:inherit}
#sm-ai-v2-focus .sm-ai-v2-focus-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
#sm-ai-v2-focus .sm-ai-v2-focus-info span{font-size:10px;font-weight:650;color:#a65648}
#sm-ai-v2-focus .sm-ai-v2-focus-info strong{font-size:12px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sm-ai-v2-focus-clear{height:26px;width:26px;border:1px solid #ecc6bd;background:#fff;border-radius:8px;color:#a04338;font-size:18px;cursor:pointer}
#sm-ai-v2-focus-questions{display:flex;gap:6px;flex-wrap:wrap;padding:8px 11px;background:#fff8f5;border-top:1px solid #f2dbd5}
#sm-ai-v2-focus-questions .sm-ai-v2-focus-chip{border:1px solid #ecc6bd;border-radius:999px;padding:5px 8px;background:#fff;color:#ac3526;font:inherit;font-size:11px;cursor:pointer}
#sm-ai-v2-panel .sm-ai-v2-result{display:flex;flex-direction:column;gap:0;border-radius:11px;border:1px solid #e3e7ed;background:#fff;overflow:hidden}
#sm-ai-v2-panel .sm-ai-v2-result .sm-ai-v2-card{border:0;border-radius:0}
#sm-ai-v2-panel .sm-ai-v2-result-ask{width:100%;padding:9px 12px;text-align:center;background:#fff7f4;color:#c12d1e;border:0;border-top:1px solid #f1d1ca;font:inherit;font-weight:700;font-size:12px;cursor:pointer}
#sm-ai-v2-panel .sm-ai-v2-result-ask:hover{background:#ffece6}

/* SIMSAR AI V6 — photographic result cards, site-aligned design */
#sm-ai-v2-panel .sm-ai-v2-result{flex:0 0 auto;border:1px solid #e7e9ee;box-shadow:0 3px 10px rgba(25,40,61,.06)}
#sm-ai-v2-panel .sm-ai-v2-result .sm-ai-v2-card{display:block;padding:0;text-decoration:none}
#sm-ai-v2-panel .sm-ai-v2-card-visual{height:148px;position:relative;display:flex;align-items:center;justify-content:center;background:#f4f2ef;color:#7d8797;overflow:hidden}
#sm-ai-v2-panel .sm-ai-v2-card-visual img{width:100%;height:100%;border-radius:0;object-fit:cover;display:block}
#sm-ai-v2-panel .sm-ai-v2-photo-fallback{display:none;font-size:12px}
#sm-ai-v2-panel .sm-ai-v2-no-photo .sm-ai-v2-photo-fallback{display:block}
#sm-ai-v2-panel .sm-ai-v2-card-info{padding:11px 13px}
#sm-ai-v2-panel .sm-ai-v2-card-title{font-size:13px;line-height:1.5;color:#1c2b40}
#sm-ai-v2-panel .sm-ai-v2-card-price{margin-top:5px;font-size:15px;font-weight:800;color:#d72e20}
#sm-ai-v2-panel .sm-ai-v2-card-location,#sm-ai-v2-panel .sm-ai-v2-card-specs{margin-top:4px;font-size:11px;color:#6b7788}
#sm-ai-v2-panel .sm-ai-v2-details-link{display:inline-block;margin-top:8px;font-weight:750;font-size:12px;color:#cc2d22}

/* SIMSAR_AI_SIZE_V7_START */
/* Wider/taller SIMSAR AI panel, without changing application logic. */
#sm-ai-v2-panel {
  width: min(560px, calc(100vw - 36px));
  height: min(850px, calc(100dvh - 104px));
  max-height: calc(100dvh - 104px);
}
#sm-ai-v2-head { min-height: 76px; padding: 14px 18px; }
#sm-ai-v2-messages { padding: 18px; gap: 14px; }
#sm-ai-v2-panel .sm-ai-v2-message { font-size: 14px; line-height: 1.75; }
#sm-ai-v2-form { padding: 12px 15px; }
#sm-ai-v2-input { height: 48px; font-size: 14px; }
#sm-ai-v2-send { height: 48px; min-width: 74px; }
#sm-ai-v2-panel .sm-ai-v2-card-visual { height: 190px; }
@media (max-width: 600px) {
  #sm-ai-v2-panel {
    inset: auto 0 0 0;
    width: 100vw;
    height: 92dvh;
    max-height: 96dvh;
    border-radius: 18px 18px 0 0;
  }
  #sm-ai-v2-head { min-height: 65px; padding: 10px 13px; }
  #sm-ai-v2-messages { padding: 12px; gap: 10px; }
  #sm-ai-v2-form { padding: 9px 12px max(10px, env(safe-area-inset-bottom)); }
  #sm-ai-v2-panel .sm-ai-v2-card-visual { height: 168px; }
}
/* SIMSAR_AI_SIZE_V7_END */
