/* DCR AI Experience — the assistant: the conversation on the home page, and the "问 AI" button and panel on every other page. */
.dcrx-fab,.dcrx-pop{--navy:#0B1E33;--blue:#004274;--gold:#E7C788;--ink:#172536;--grey:#4A5A6A;--mist:#F6F7F5;--line:#E1E5EA;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;line-height:1.5;text-align:left;-webkit-font-smoothing:antialiased;box-sizing:border-box}
.dcrx-pop *,.dcrx-pop *::before{box-sizing:border-box}
.dcrx-pop p,.dcrx-pop form{margin:0;padding:0}
.dcrx-pop button,.dcrx-pop input{font-family:inherit;margin:0}
.dcrx-pop .dcrx-sr,.dcrx-pop .dcrx-hp{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;padding:0;margin:-1px}
html.dcrx-lock,html.dcrx-lock body{overflow:hidden}

/* the conversation */
.dcrx-chat{height:560px;max-height:82vh;background:#fff;color:var(--ink);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.dcrx-chat__top{height:60px;flex-shrink:0;padding:0 14px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px}
.dcrx-chat__top img{width:38px;height:38px;border-radius:50%;object-fit:cover;flex-shrink:0}
.dcrx-chat__top div{display:flex;flex-direction:column;gap:1px}
.dcrx-chat__name{font-size:15px;line-height:1.4;font-weight:800;color:var(--ink)}
.dcrx-chat__status{display:flex;align-items:center;gap:6px;font-size:12.5px;line-height:1.4;color:#0B6B4F}
.dcrx-chat__status i{width:8px;height:8px;border-radius:50%;background:#17A673}
.dcrx-chat__log{flex:1 1 auto;min-height:0;overflow-y:auto;padding:14px;display:flex;flex-direction:column-reverse;gap:10px}
.dcrx-msg{display:flex}
.dcrx-msg--ai{justify-content:flex-start}.dcrx-msg--me{justify-content:flex-end}
.dcrx-msg>div{max-width:84%;padding:10px 14px;font-size:15px;line-height:1.6;border-radius:16px;overflow-wrap:anywhere}
.dcrx-msg--ai>div{background:#EEF2F6;color:var(--ink);border-bottom-left-radius:4px}
.dcrx-msg--me>div{background:var(--blue);color:#fff;border-bottom-right-radius:4px}
.dcrx-msg--new{animation:dcrxUp .3s ease both}
.dcrx-msg__links{margin-top:10px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.dcrx .dcrx-msg__links a{font-size:14px;font-weight:700;color:var(--blue);text-decoration:underline}
.dcrx .dcrx-msg__links a.dcrx-msg__go{min-height:40px;padding:0 16px;display:inline-flex;align-items:center;border-radius:20px;background:var(--blue);color:#fff;text-decoration:none}
/* a reply that carries listings, and the card that takes a contact, use the full width of the conversation */
.dcrx-msg--wide>div,.dcrx-msg--wide>form{max-width:100%;width:100%}
.dcrx-msg__cards{margin-top:10px;display:flex;flex-direction:column;gap:8px}
.dcrx a.dcrx-lcard{min-height:84px;display:flex;gap:10px;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;color:var(--ink);text-decoration:none}
.dcrx a.dcrx-lcard:hover{border-color:var(--blue)}
.dcrx-lcard__p{position:relative;width:96px;flex-shrink:0;background:#DDE3EA}
.dcrx-lcard__p img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}
.dcrx-lcard__t{min-width:0;padding:8px 10px 8px 0;display:flex;flex-direction:column;justify-content:center}
.dcrx-lcard__t b{font-size:14px;line-height:1.4;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dcrx-lcard__t i{font-style:normal;font-size:15px;line-height:1.4;font-weight:800;color:var(--blue)}
.dcrx-lcard__t small{font-size:12.5px;line-height:1.5;color:var(--grey)}
.dcrx-msg__acts{margin-top:10px;display:flex;flex-wrap:wrap;gap:8px}
.dcrx .dcrx-msg__acts a{min-height:40px;padding:0 14px;display:inline-flex;align-items:center;border-radius:8px;font-size:14px;font-weight:700;text-decoration:none}
.dcrx .dcrx-msg__acts a.dcrx-act--go{background:var(--gold);color:var(--ink)}
.dcrx .dcrx-msg__acts a.dcrx-act--line{border:1.5px solid var(--blue);color:var(--blue)}
.dcrx .dcrx-msg__acts button.dcrx-act--ask{min-height:40px;padding:0 14px;display:inline-flex;align-items:center;background:#fff;border:1.5px solid var(--blue);border-radius:8px;font-size:14px;line-height:1.2;font-weight:700;color:var(--blue);cursor:pointer}
.dcrx .dcrx-leadcard{margin:0;padding:12px;background:#fff;border:1px solid var(--line);border-radius:10px;display:flex;flex-direction:column}
.dcrx p.dcrx-leadcard__need{margin-bottom:10px;font-size:13px;line-height:1.5;color:var(--grey)}
.dcrx-leadcard__need b{color:var(--ink);font-weight:700}
.dcrx .dcrx-leadcard input[type=text]{width:100%;height:44px;margin:0 0 8px;padding:0 12px;background:#fff;border:1px solid #C9D1DA;border-radius:8px;outline:none;box-shadow:none;font-size:16px;color:var(--ink)}
.dcrx .dcrx-leadcard input[type=text]:focus{border-color:var(--blue)}
.dcrx .dcrx-leadcard button{width:100%;height:46px;border:0;border-radius:8px;background:var(--blue);color:#fff;font-size:15px;font-weight:800;cursor:pointer}
.dcrx .dcrx-leadcard button[disabled]{opacity:.6}
.dcrx-leadcard small{margin-top:8px;font-size:12px;line-height:1.4;color:var(--grey);text-align:center}
.dcrx p.dcrx-leadcard__err{margin-bottom:8px;font-size:13px;line-height:1.5;color:#B42318}
.dcrx-leadcard--done{gap:2px;font-size:14px;line-height:1.6}
.dcrx-leadcard--done b{font-weight:800;color:#0B6B4F}
.dcrx-msg--typing>div{padding:14px 16px;display:flex;align-items:center;gap:6px}
.dcrx-msg--typing em{margin-left:6px;font-style:normal;font-size:13px;line-height:1;color:var(--grey)}
.dcrx-chat__quick.dcrx-chat__quick--off{display:none}
.dcrx-msg--typing span{width:8px;height:8px;border-radius:50%;background:var(--blue);animation:dcrxDot 1.2s infinite}
.dcrx-msg--typing span:nth-child(2){animation-delay:.2s}.dcrx-msg--typing span:nth-child(3){animation-delay:.4s}
.dcrx-chat__quick{flex-shrink:0;padding:4px 14px 10px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.dcrx .dcrx-chat__quick button{height:40px;flex-shrink:0;padding:0 14px;background:#fff;border:1.5px solid var(--blue);border-radius:22px;font-size:14px;font-weight:700;color:var(--blue);cursor:pointer;line-height:1}
.dcrx .dcrx-chat__quick button:hover{background:var(--blue);color:#fff}
.dcrx .dcrx-chat__quick a{min-height:44px;display:flex;align-items:center;font-size:15px;font-weight:700;color:var(--blue);text-decoration:underline}
.dcrx form.dcrx-chat__form{flex-shrink:0;margin:0;padding:10px 12px;border-top:1px solid var(--line);display:flex;gap:8px}
.dcrx form.dcrx-chat__form input[type=text]{flex:1 1 auto;min-width:0;height:48px;padding:0 16px;background:var(--mist);border:1px solid #D5DBE1;border-radius:24px;outline:none;box-shadow:none;font-size:16px;color:var(--ink)}
.dcrx form.dcrx-chat__form input[type=text]:focus{border-color:var(--blue)}
.dcrx form.dcrx-chat__form input::placeholder,.dcrx .dcrx-leadcard input::placeholder{color:#6B7A89;opacity:1}
.dcrx form.dcrx-chat__form button{height:48px;padding:0 20px;border:0;border-radius:24px;background:var(--blue);color:#fff;font-size:15px;font-weight:700;white-space:nowrap;cursor:pointer}

@keyframes dcrxUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes dcrxDot{0%,80%,100%{opacity:.25}40%{opacity:1}}
.dcrx form.dcrx-chat__form button.dcrx-chat__mic{width:48px;height:48px;flex-shrink:0;padding:0;border:1px solid #D5DBE1;border-radius:50%;background:#fff;color:var(--blue);display:flex;align-items:center;justify-content:center;cursor:pointer}
.dcrx form.dcrx-chat__form button.dcrx-chat__mic[aria-pressed=true]{background:#B42318;border-color:#B42318;color:#fff}
.dcrx .dcrx-chat__mic svg{width:20px;height:20px}
.dcrx .dcrx-chat__top button.dcrx-chat__x{margin-left:auto;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--grey);font-size:26px;line-height:1;cursor:pointer}
.dcrx .dcrx-chat__x:hover{background:var(--mist)}

/* on the home page the conversation sits in its own section */
@media (min-width:1024px){
  .dcrx-chat{flex:1 1 auto;min-width:0;height:600px;box-shadow:0 20px 50px rgba(0,0,0,.35)}
  .dcrx-msg--wide>div{max-width:92%}
  .dcrx-msg--wide>form,.dcrx-msg--wide>.dcrx-leadcard--done{max-width:420px}
  .dcrx-lcard__p{width:132px}
  .dcrx-chat__top{height:68px;padding:0 20px;gap:12px}
  .dcrx-chat__top img{width:42px;height:42px}
  .dcrx-chat__top div{gap:2px}
  .dcrx-chat__name{font-size:16px}
  .dcrx-chat__status{font-size:13px}
  .dcrx-chat__log{padding:16px 20px}
  .dcrx-chat__quick{padding:4px 20px 12px}
  .dcrx .dcrx-chat__quick button{height:38px;padding:0 16px}
  .dcrx form.dcrx-chat__form{padding:12px 16px}
  .dcrx form.dcrx-chat__form input[type=text]{padding:0 18px;font-size:15px}
  .dcrx form.dcrx-chat__form button{padding:0 26px}
}

/* the search page: what the assistant found by reading the listings one by one */
.dcrx-aifind{padding:14px 16px;background:#fff;border:1.5px solid var(--blue);border-radius:10px;font-size:15px;line-height:1.7;color:var(--ink)}
.dcrx p.dcrx-aifind__wait{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--grey)}
.dcrx-aifind__wait span{width:7px;height:7px;border-radius:50%;background:var(--blue);animation:dcrxDot 1.2s infinite}
.dcrx-aifind__wait span:nth-child(2){animation-delay:.2s}.dcrx-aifind__wait span:nth-child(3){animation-delay:.4s;margin-right:4px}
.dcrx-aifind__who{display:block;margin-bottom:2px;font-size:13px;font-weight:700;color:var(--blue)}
.dcrx .dcrx-aifind__more{margin-top:10px;min-height:38px;padding:0 14px;border:1.5px solid var(--blue);border-radius:19px;background:#fff;color:var(--blue);font-size:14px;font-weight:700;cursor:pointer}
@media (min-width:768px){.dcrx-aifind .dcrx-msg__cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}

/* everywhere else: a button in the corner that opens the same conversation */
.dcrx-fab{position:fixed;right:16px;bottom:16px;z-index:9000;height:52px;padding:0 18px 0 8px;display:flex;align-items:center;gap:8px;border:0;border-radius:26px;background:var(--blue);color:#fff;font-size:15px;font-weight:700;line-height:1;box-shadow:0 6px 20px rgba(11,30,51,.35);cursor:pointer}
.dcrx-fab:hover{background:var(--navy)}
.dcrx-fab img{width:36px;height:36px;border-radius:50%;background:#fff;object-fit:cover}
.dcrx-fab i{position:absolute;top:1px;left:34px;width:12px;height:12px;border-radius:50%;background:var(--gold);border:2px solid #fff}
.dcrx-fab[hidden],.dcrx-pop[hidden],.dcrx-veil,.dcrx-veil[hidden]{display:none}
.dcrx-pop{position:fixed;z-index:99990;right:16px;bottom:16px;width:400px;max-width:calc(100vw - 32px);height:620px;max-height:calc(100vh - 32px);border-radius:14px;box-shadow:0 24px 60px rgba(11,30,51,.45);animation:dcrxUp .2s ease both}
.dcrx-pop .dcrx-chat{height:100%;max-height:none;box-shadow:none;border-radius:14px}
.dcrx-pop .dcrx-msg--wide>div{max-width:100%}
.dcrx-pop .dcrx-lcard__p{width:96px}
@media (max-width:767px){
  .dcrx-pop{left:0;right:0;bottom:0;width:auto;max-width:none;height:82vh;height:82dvh;max-height:none;border-radius:16px 16px 0 0}
  .dcrx-pop .dcrx-chat{border-radius:16px 16px 0 0}
  .dcrx-veil{display:block;position:fixed;inset:0;z-index:99989;background:rgba(11,30,51,.5);cursor:pointer;-webkit-tap-highlight-color:transparent}
}
/* phones: the button takes the corner the theme's back-to-top arrow used; on a listing it sits above the call / viewing bar */
@media (max-width:991px){
  .back-to-top-wrap{display:none!important}
  body.single-property .dcrx-fab{bottom:84px}
}
@media (min-width:992px){.back-to-top-wrap{bottom:84px!important}}
@media print{.dcrx-fab,.dcrx-pop{display:none}}
