/* Floating Sullivan chat widget — sitewide */
.hw-root{all:initial;font-family:'DM Sans',system-ui,sans-serif;box-sizing:border-box}
.hw-root *,.hw-root *::before,.hw-root *::after{box-sizing:border-box}
.hw-fab{
  position:fixed;z-index:997;right:20px;bottom:88px;
  display:inline-flex;align-items:center;gap:10px;
  padding:13px 18px 13px 15px;border:1px solid rgba(150,189,204,.35);
  border-radius:40px;background:linear-gradient(135deg,#233746 0%,#2E6F8E 100%);
  color:#f5f9fb;font:500 12.5px/1 'DM Sans',system-ui,sans-serif;letter-spacing:.02em;
  cursor:pointer;box-shadow:0 14px 36px -12px rgba(15,26,33,.55);
  transition:transform .22s cubic-bezier(.23,1,.32,1),box-shadow .22s ease,opacity .2s ease,visibility .2s ease;
}
.hw-fab:hover{transform:translateY(-2px);box-shadow:0 18px 42px -12px rgba(15,26,33,.65)}
.hw-fab.is-dimmed{
  opacity:0;visibility:hidden;pointer-events:none;transform:translateY(8px) scale(.96);
}
.hw-fab svg{flex:none}
.hw-fab-dot{
  width:8px;height:8px;border-radius:50%;background:#9fc2d0;
  box-shadow:0 0 0 0 rgba(159,194,208,.7);animation:hwPulse 2s infinite;
}
@keyframes hwPulse{
  0%{box-shadow:0 0 0 0 rgba(159,194,208,.55)}
  70%{box-shadow:0 0 0 10px rgba(159,194,208,0)}
  100%{box-shadow:0 0 0 0 rgba(159,194,208,0)}
}
.hw-panel{
  position:fixed;z-index:999;right:16px;bottom:16px;width:min(408px,calc(100vw - 24px));
  height:min(640px,calc(100svh - 28px));display:flex;flex-direction:column;
  background:#f7f9f8;border:1px solid rgba(35,55,70,.1);border-radius:18px;
  box-shadow:
    0 28px 80px -24px rgba(15,26,33,.55),
    0 0 0 1px rgba(255,255,255,.4) inset;
  overflow:hidden;
  opacity:0;transform:translateY(14px) scale(.975);pointer-events:none;
  transition:opacity .24s ease,transform .24s cubic-bezier(.23,1,.32,1);
}
.hw-panel.is-open{opacity:1;transform:none;pointer-events:auto}
.hw-head{
  flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  padding:15px 14px 13px;
  background:
    linear-gradient(135deg, rgba(46,111,142,.22) 0%, transparent 48%),
    linear-gradient(180deg,#1c2f3c 0%,#233746 100%);
  color:#fff;
  border-bottom:1px solid rgba(159,194,208,.18);
}
.hw-brand-mark{
  display:block;font-size:9px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;
  color:rgba(159,194,208,.9);margin-bottom:4px;
}
.hw-head h2{margin:0;font-family:'Cormorant Garamond',Georgia,serif;font-weight:400;font-size:1.4rem;line-height:1.1}
.hw-head p{margin:5px 0 0;font-size:11px;color:rgba(255,255,255,.68);line-height:1.4;max-width:30ch}
.hw-head-actions{display:flex;gap:6px}
.hw-icon-btn{
  width:34px;height:34px;border:0;border-radius:8px;background:rgba(255,255,255,.08);
  color:#fff;cursor:pointer;display:grid;place-items:center;text-decoration:none;
}
.hw-icon-btn:hover{background:rgba(255,255,255,.16)}
.hw-market{
  flex:none;display:flex;gap:12px;flex-wrap:wrap;padding:8px 12px;background:#fff;
  border-bottom:1px solid rgba(35,55,70,.08);font-size:11px;color:#5A6478;
}
.hw-market strong{color:#233746;font-weight:600}
.hw-msgs{
  flex:1;min-height:0;overflow:auto;padding:14px 12px;display:flex;flex-direction:column;gap:10px;
  background:
    radial-gradient(ellipse 80% 40% at 0% 0%, rgba(94,143,163,.12), transparent 55%),
    #eef2ef;
}
.hw-msg{max-width:92%;display:flex;flex-direction:column;gap:4px}
.hw-msg .who{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#6b7280;padding:0 4px}
.hw-msg .bubble{
  padding:10px 12px;border-radius:12px;font-size:13px;line-height:1.5;color:#1a2a34;
  background:#fff;border:1px solid rgba(35,55,70,.08);white-space:pre-wrap;
}
.hw-msg.user{align-self:flex-end}
.hw-msg.user .bubble{background:#233746;color:#fff;border-color:transparent}
.hw-msg.user .who{text-align:right}
.hw-matches{
  flex:none;max-height:168px;overflow:auto;padding:10px 12px;background:#fff;
  border-top:1px solid rgba(35,55,70,.08);display:flex;flex-direction:column;gap:8px;
}
.hw-match{
  display:block;padding:9px 10px 9px 12px;border-radius:8px;
  background:#f7f9f8;border:1px solid rgba(35,55,70,.08);
  border-left:3px solid #2E6F8E;
  font-size:12px;color:#233746;text-decoration:none;
  transition:background .15s ease,border-color .15s ease;
}
.hw-match:hover{background:#eef3f5;border-color:rgba(46,111,142,.28)}
.hw-match .hw-match-price{
  display:block;font-size:13px;font-weight:600;color:#233746;letter-spacing:.01em;margin-bottom:2px;
}
.hw-match .hw-match-addr{display:block;font-weight:500;line-height:1.3;margin-bottom:3px}
.hw-match .hw-match-meta{display:block;color:#5A6478;font-size:11px;line-height:1.35}
.hw-match-badges{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:4px}
.hw-badge{
  display:inline-block;font-size:10px;font-weight:600;letter-spacing:.02em;
  padding:2px 6px;border-radius:4px;background:#e8f1f5;color:#1f4f66;
}
.hw-contact{
  flex:none;display:flex;flex-direction:column;gap:5px;padding:7px 12px 6px;
  background:#fff;border-top:1px solid rgba(35,55,70,.08);
}
.hw-contact-row{
  display:grid;grid-template-columns:1fr 1.15fr .9fr;gap:5px;
}
.hw-contact input{
  border:1px solid rgba(35,55,70,.12);border-radius:6px;padding:6px 8px;
  font:inherit;font-size:11px;background:#f4f6f5;color:#1a2a34;min-width:0;
}
.hw-contact input:focus{outline:2px solid rgba(46,111,142,.3);outline-offset:0}
.hw-handoff{
  align-self:flex-start;border:0;background:transparent;color:#2E6F8E;
  padding:2px 0;cursor:pointer;
  font:500 10.5px/1.2 'DM Sans',system-ui,sans-serif;letter-spacing:.04em;
  text-decoration:underline;text-underline-offset:2px;text-decoration-color:rgba(46,111,142,.35);
}
.hw-handoff:hover{color:#233746;text-decoration-color:#233746}
.hw-handoff:disabled{opacity:.5;cursor:wait}
.hw-compose{
  flex:none;display:grid;grid-template-columns:1fr auto;gap:8px;padding:8px 12px 10px;
  background:#fff;border-top:1px solid rgba(35,55,70,.08);
}
.hw-compose textarea{
  resize:none;min-height:42px;max-height:96px;border:1px solid rgba(35,55,70,.14);
  border-radius:10px;padding:9px 11px;font:inherit;font-size:13px;line-height:1.4;
  color:#1a2a34;background:#f8f5f0;
}
.hw-compose textarea:focus{outline:2px solid rgba(46,111,142,.35);outline-offset:1px}
.hw-chips{flex:none;display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 10px;background:#fff}
.hw-chip{
  border:1px solid rgba(35,55,70,.14);background:#f7f9f8;color:#233746;cursor:pointer;
  font:500 10.5px/1.2 'DM Sans',system-ui,sans-serif;letter-spacing:.02em;
  padding:6px 9px;border-radius:999px;
}
.hw-chip:hover{background:#eef3f5;border-color:rgba(46,111,142,.35)}
.hw-send{
  align-self:end;border:0;border-radius:10px;padding:0 14px;height:42px;
  background:#2E6F8E;color:#fff;font:600 11px/1 'DM Sans',system-ui,sans-serif;
  letter-spacing:.1em;text-transform:uppercase;cursor:pointer;
}
.hw-send:hover{background:#255A74}
.hw-send:disabled{opacity:.5;cursor:wait}
.hw-foot{flex:none;padding:0 12px 9px;background:#fff;font-size:10px;color:#6b7280}
.hw-foot a{color:#233746;border-bottom:1px solid #c4a35a;text-decoration:none}

@media(max-width:720px){
  .hw-fab{bottom:72px;right:14px}
  .hw-fab span:not(.hw-fab-dot){display:none}
  .hw-fab{padding:14px}
  .hw-panel{right:0;bottom:0;width:100vw;height:min(92svh,740px);border-radius:16px 16px 0 0}
  .hw-contact-row{grid-template-columns:1fr 1fr;gap:5px}
  .hw-contact-row input:last-of-type{grid-column:1/-1}
}
@media(prefers-reduced-motion:reduce){
  .hw-fab,.hw-panel,.hw-fab-dot{animation:none;transition:none}
}
body.hw-open{overflow:hidden}
