/* YH Smart Property Search v1.3: single-scroll compact chat with editable summary. */
.yhps-root,.yhps-overlay {--yhps-green:#173d34;--yhps-ink:#16362e;--yhps-muted:#59746a;--yhps-soft:#eef5ef;--yhps-line:#dfe8e1;--yhps-warm:#b68c51;font-family:inherit;color:var(--yhps-ink);line-height:1.5}
.yhps-root *, .yhps-root *::before,.yhps-root *::after,.yhps-overlay *, .yhps-overlay *::before,.yhps-overlay *::after{box-sizing:border-box}
.yhps-root button,.yhps-root input,.yhps-overlay button,.yhps-overlay textarea{font:inherit}
.yhps-root button,.yhps-overlay button {cursor:pointer}
.yhps-root button:focus-visible,.yhps-root input:focus-visible,.yhps-root a:focus-visible,.yhps-overlay button:focus-visible,.yhps-overlay a:focus-visible,.yhps-overlay summary:focus-visible,.yhps-overlay textarea:focus-visible{outline:3px solid #ca9e53;outline-offset:3px}
.yhps-root{max-width:1180px;margin:34px auto 40px;padding:0 10px}
.yhps-hero{background:radial-gradient(ellipse at 100% 6%,rgba(166,210,191,.24),transparent 40%),linear-gradient(135deg,#fcfbf7 0%,#f7faf7 76%,#eff6f1 100%);border:1px solid #e3eae3;border-radius:26px;box-shadow:0 16px 60px rgba(15,60,45,.055);padding:clamp(26px,4.4vw,58px)}
.yhps-root .yhps-overline{font-size:11px;letter-spacing:.16em;font-weight:800;color:#9d7840;margin:0 0 14px}
.yhps-root h2{font-size:clamp(30px,4.2vw,51px);font-weight:760;line-height:1.13;color:var(--yhps-green);letter-spacing:-.04em;margin:0 0 15px}
.yhps-root h2 span{color:#245c4e}
.yhps-root .yhps-intro{font-size:clamp(14px,1.48vw,17px);line-height:1.7;color:#49665b;max-width:690px;margin:0 0 27px}
.yhps-hero-form{display:flex;align-items:center;gap:10px;border:1px solid #cfdcd3;background:#fff;box-shadow:0 8px 24px rgba(19,73,52,.07);border-radius:17px;padding:8px 9px 8px 15px;max-width:790px;transition:border-color .16s,box-shadow .16s}
.yhps-hero-form:focus-within{border-color:#b99a62;box-shadow:0 6px 25px rgba(29,86,67,.13)}
.yhps-search-icon{font-size:29px;color:#81998b;line-height:1;min-width:23px;text-align:center;font-weight:300}
.yhps-root .yhps-hero-input,.yhps-root input[data-yhps-hero-input]{flex:1;min-width:0;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;padding:12px 3px;color:#18372e;font-size:15px;line-height:1.5;border-radius:0}
.yhps-root input[data-yhps-hero-input]::placeholder{color:#82978a;opacity:1}
.yhps-root .yhps-hero-form button{border:0;background:var(--yhps-green);color:#fff;font-weight:750;font-size:14px;padding:15px 24px;border-radius:12px;min-height:46px;white-space:nowrap;line-height:1.25}
.yhps-root .yhps-hero-form button:hover{background:#245747}
.yhps-root .yhps-guide{font-size:13px;color:#557568;margin:13px 0 20px;max-width:790px;line-height:1.6}
.yhps-filters-row{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:0 0 15px;max-width:900px}
.yhps-root .yhps-filters-row button,.yhps-root .yhps-prompt-row button{padding:10px 16px;background:#fff;border:1px solid #d9e4dc;color:#275043;border-radius:999px;font-size:12px;font-weight:650;line-height:1.35;box-shadow:0 2px 7px rgba(25,70,51,.025)}
.yhps-root .yhps-filters-row button:hover,.yhps-root .yhps-prompt-row button:hover{background:#e7f0e9;border-color:#c9dacc}
.yhps-category-break{width:1px;height:22px;background:#cedbd1;margin:0 5px}
.yhps-prompt-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;max-width:1000px}
.yhps-prompt-row>span{font-size:12px;color:#789184;margin-right:3px}
.yhps-root .yhps-prompt-row button{font-size:11px;padding:9px 12px}
.yhps-root .yhps-disclaimer{font-size:11px;line-height:1.7;color:#78867a;margin:23px 0 0;max-width:940px}
.yhps-root .yhps-disclaimer strong{color:#5c664c}
.yhps-bottom{margin-top:15px;border:1px solid #d6e6d9;background:#eff6ef;border-radius:17px;padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.yhps-bottom strong{color:var(--yhps-green);font-size:15px}
.yhps-root .yhps-bottom p{font-size:12px;color:#667d6c;margin:6px 0 0;line-height:1.6}
.yhps-actions{display:flex;gap:9px;flex-wrap:wrap;flex-shrink:0}
.yhps-root .yhps-actions a{text-decoration:none!important;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:11px 14px;font-weight:750;font-size:11px;line-height:1.4;white-space:nowrap}
.yhps-link-secondary{background:#fff;color:#2b5545!important;border:1px solid #c5dccd}
.yhps-link-primary{background:var(--yhps-green);color:#fff!important;border:1px solid var(--yhps-green)}
.yhps-link-primary:hover{background:#285646}
.yhps-visually-hidden{border:0;clip:rect(0,0,0,0);height:1px;width:1px;margin:-1px;padding:0;overflow:hidden;position:absolute;white-space:nowrap}
/* Modal is reparented to document.body by the frontend; keep styles self-contained. */
.yhps-overlay[hidden],.yhps-match-drawer[hidden],.yhps-area-drawer[hidden],.yhps-chat-cta[hidden]{display:none!important}
.yhps-overlay{position:fixed;inset:0;z-index:2147483647;font-size:14px}
.yhps-backdrop{border:0;position:absolute;inset:0;width:100%;height:100%;background:rgba(15,34,27,.10);padding:0;cursor:default}
.yhps-dialog{position:absolute;bottom:22px;right:25px;display:flex;flex-direction:column;width:min(426px,calc(100vw - 30px));height:min(662px,calc(100dvh - 44px));min-height:320px;background:#fff;border-radius:19px;overflow:hidden;border:1px solid #cddad0;box-shadow:0 23px 80px rgba(3,30,17,.3)}
.yhps-dialog-header{display:flex;align-items:center;gap:10px;background:linear-gradient(110deg,#153f33,#1c654f);padding:14px;color:#fff;flex:none}
.yhps-dialog-logo{display:grid;place-items:center;font-size:12px;font-weight:850;border-radius:12px;background:rgba(255,255,255,.16);width:39px;height:39px;letter-spacing:-.06em;flex:none}
.yhps-dialog-headings{display:flex;flex:1;flex-direction:column;min-width:0;gap:1px}
.yhps-dialog-headings strong{font-size:14px;line-height:1.3;color:#fff}
.yhps-dialog-headings span{font-size:10px;color:#d9e7dc}
.yhps-dialog .yhps-reset,.yhps-dialog .yhps-close{font-size:23px;line-height:1;min-width:31px;min-height:31px;padding:3px;border:none;background:transparent;color:#e8f5ea;border-radius:8px}
.yhps-dialog .yhps-reset:hover,.yhps-dialog .yhps-close:hover{background:rgba(255,255,255,.16)}
/* Compact one-glance requirement summary, expandable edit controls. */
.yhps-criteria{background:#f7faf7;border-bottom:1px solid #e2ece4;flex:none;min-width:0}
.yhps-criteria summary{display:block;cursor:pointer;list-style:none;padding:9px 14px 10px;color:#2c5545}
.yhps-criteria summary::-webkit-details-marker,.yhps-match-drawer summary::-webkit-details-marker{display:none}
.yhps-criteria summary:hover{background:#f0f7f2}
.yhps-criteria-top{display:flex;justify-content:space-between;align-items:center;gap:8px;line-height:1.35;font-size:11px}
.yhps-criteria-top b{font-weight:760}
.yhps-criteria-top span{color:#71877b;font-size:10px;font-weight:500;margin-left:auto}
.yhps-criteria-top em{font-style:normal;color:#2a6450;font-weight:700;font-size:10px}
.yhps-summary-chips{display:flex;gap:5px;align-items:center;overflow:hidden;white-space:nowrap;margin-top:7px;min-height:22px;max-width:100%}
.yhps-summary-tag,.yhps-summary-overflow{border:1px solid #d7e6db;border-radius:50px;background:#edf5ef;color:#315747;font-size:10px;padding:3px 7px;flex:0 1 auto;max-width:38%;min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.yhps-summary-overflow{flex:none;background:#fff}
.yhps-summary-empty{color:#7c9383;font-size:11px}
.yhps-filters{padding:4px 14px 11px;display:flex;gap:7px;flex-wrap:wrap;max-height:115px;overflow-y:auto}
.yhps-muted{color:#7f9387;font-size:11px}
.yhps-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #d9e8dd;background:#eff7f0;border-radius:8px;color:#346049;font-size:10px;padding:3px 3px 3px 8px;max-width:100%;overflow-wrap:anywhere;min-height:30px}
.yhps-chip span{overflow-wrap:anywhere}
.yhps-dialog .yhps-chip-remove{display:inline-grid;place-items:center;color:#4c6c5c;border:0;background:#e0ebdf;font-size:17px;line-height:1;border-radius:6px;min-width:24px;min-height:24px;padding:0}
.yhps-dialog .yhps-chip-remove:hover{background:#cddfcc;color:#153d35}
.yhps-edit-hint{font-size:10px;color:#6b8273;margin:0;padding:0 14px 11px}
.yhps-criteria:not([open]) .yhps-filters,.yhps-criteria:not([open]) .yhps-edit-hint{display:none}
/* The entire chat, actions and optional lists share ONE vertical scroller. */
.yhps-conversation-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;background:linear-gradient(180deg,#fff,#fafdfa)}
.yhps-thread{display:flex;flex-direction:column;gap:11px;padding:16px 14px 8px;min-height:0;overflow:visible}
.yhps-bubble{font-size:13px;line-height:1.6;padding:11px 13px;border-radius:15px;max-width:89%;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.yhps-bubble-system{align-self:flex-start;color:#294b39;background:#edf4ee;border:1px solid #e1ede3;border-bottom-left-radius:4px}
.yhps-bubble-user{align-self:flex-end;color:#fff;background:#173f32;border-bottom-right-radius:4px}
.yhps-quick{display:flex;gap:7px;padding:10px 13px 13px;background:#fff;flex-wrap:wrap;overflow:visible;min-height:0}
.yhps-dialog .yhps-quick-chip{border:1px solid #d6e5da;background:#f7fbf8;border-radius:50px;color:#315b48;font-size:11px;padding:7px 11px;line-height:1.3;font-weight:620}
.yhps-dialog .yhps-quick-chip:hover{background:#e8f3ea}
/* Optional directory lives INSIDE the compact chat; homepage remains unchanged. */
.yhps-area-drawer{border-top:1px solid #e0eae2;background:#f8fbf8;min-height:0;overflow:visible}
.yhps-area-drawer summary{display:flex;justify-content:space-between;gap:10px;align-items:center;cursor:pointer;list-style:none;padding:11px 14px;font-size:11px;font-weight:750;color:#244d3b}
.yhps-area-drawer summary::-webkit-details-marker{display:none}
.yhps-area-drawer summary span:last-child{font-weight:500;color:#728579}
.yhps-area-drawer .yhps-area-hint,.yhps-area-drawer .yhps-area-note{font-size:10px;line-height:1.5;color:#687d71;margin:3px 13px 8px}
.yhps-area-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:3px 11px 7px}
.yhps-dialog .yhps-area-choice{border:1px solid #d7e5da;background:#fff;border-radius:10px;padding:9px;text-align:left;color:#275140;min-width:0;box-shadow:0 1px 4px rgba(15,52,31,.03)}
.yhps-dialog .yhps-area-choice:hover,.yhps-dialog .yhps-area-choice:focus-visible{background:#eef6ef;border-color:#b6d1be}
.yhps-area-top{display:flex;align-items:flex-start;justify-content:space-between;gap:4px;flex-wrap:wrap}
.yhps-area-top strong{font-size:11px;line-height:1.3}
.yhps-area-qty{font-size:9px;color:#6d8475}
.yhps-area-info{display:block;margin-top:4px;color:#577364;font-size:9px;line-height:1.5;overflow-wrap:anywhere}
.yhps-match-drawer{border-top:1px solid #e3ece5;background:#fff;min-height:0;overflow:visible}
.yhps-match-drawer summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 14px;font-size:11px;cursor:pointer;list-style:none;font-weight:750;color:#25503c}
.yhps-match-drawer summary span:last-child{font-size:10px;font-weight:500;color:#728579}
.yhps-match-drawer .yhps-results{padding:4px 12px 13px;display:grid;gap:8px}
.yhps-empty{font-size:11px;color:#708877;line-height:1.6}
.yhps-listing{background:#fbfdfb;border:1px solid #e3ece5;padding:10px;border-radius:10px}
.yhps-listing-top{display:flex;gap:6px;align-items:flex-start;justify-content:space-between}
.yhps-listing h3{font-size:12px;line-height:1.4;color:#214333;font-weight:770;margin:0}
.yhps-listing-label{background:#f3ead4;padding:3px 6px;border-radius:999px;font-size:9px;white-space:nowrap;color:#77653d;font-weight:700}
.yhps-listing-location{margin:5px 0;color:#667d70;font-size:10px}
.yhps-listing-facts{display:flex;gap:5px 10px;flex-wrap:wrap;font-size:10px;color:#4b6856}
.yhps-listing-price{font-weight:800;color:#205640}
.yhps-listing-note{font-size:10px;color:#70694d;margin-top:7px;padding:6px;border-radius:6px;background:#f7f2e5}
.yhps-chat-cta{padding:13px 15px;margin:0;border-top:1px solid #e7eee8;color:#446353;font-size:11px;line-height:1.6}
.yhps-chat-cta strong{color:#24503c}
.yhps-chat-cta a{color:#215845;text-decoration:underline;font-weight:750}
.yhps-input-form{display:flex;align-items:flex-end;gap:7px;border-top:1px solid #e4ece5;padding:10px 12px 4px;flex:none}
.yhps-dialog textarea[data-yhps-message]{resize:none;flex:1;min-width:0;min-height:49px;max-height:120px;border:1px solid #d3e0d6;border-radius:11px;padding:10px 11px;color:#193f32;background:#fff;outline:none;box-shadow:none;font-size:13px;line-height:1.45}
.yhps-dialog textarea[data-yhps-message]:focus{border-color:#a4bda9}
.yhps-dialog textarea[data-yhps-message]::placeholder{color:#8da093;opacity:1}
.yhps-dialog .yhps-send{color:white;background:#174639;border:0;border-radius:10px;padding:12px 12px;font-size:12px;font-weight:760;min-height:49px;line-height:1.3;flex:none}
.yhps-dialog .yhps-send:hover{background:#2b614d}
.yhps-dialog .yhps-send:disabled{opacity:.58;cursor:wait}
.yhps-chat-note{color:#829184;font-size:9px;text-align:center;line-height:1.45;padding:2px 10px 10px;flex:none}
.yhps-chat-note strong{font-weight:720}
@media(max-width:780px){.yhps-root{margin:24px auto 30px}.yhps-hero{padding:30px 24px}.yhps-bottom{flex-wrap:wrap}.yhps-actions{width:100%}}
@media(max-width:540px){.yhps-root{padding:0 6px}.yhps-hero{padding:24px 17px;border-radius:19px}.yhps-root h2{font-size:clamp(25px,8vw,33px)}.yhps-root .yhps-intro{font-size:13px;margin-bottom:19px}.yhps-hero-form{padding:6px;gap:5px;border-radius:14px}.yhps-search-icon{display:none}.yhps-root input[data-yhps-hero-input]{font-size:16px;padding:10px 8px}.yhps-root .yhps-hero-form button{padding:12px;font-size:12px;min-height:43px}.yhps-filters-row{gap:7px}.yhps-root .yhps-filters-row button{font-size:11px;padding:9px 12px}.yhps-category-break{display:none}.yhps-root .yhps-prompt-row button{font-size:10px}.yhps-bottom{padding:16px}.yhps-bottom strong{font-size:13px}.yhps-actions a{flex:1;white-space:normal!important}.yhps-dialog{width:calc(100vw - 16px);height:min(87dvh,690px);max-height:calc(100dvh - 12px);right:8px;bottom:8px;border-radius:17px}.yhps-dialog textarea[data-yhps-message]{font-size:16px}.yhps-bubble{font-size:12px}}
@media(max-height:500px){.yhps-dialog{height:calc(100dvh - 12px);bottom:6px}.yhps-thread{padding:9px 13px}.yhps-dialog-header{padding:8px 12px}}
@media(prefers-reduced-motion:reduce){.yhps-root *, .yhps-overlay *{transition:none!important;animation:none!important}}

@media(max-width:355px){.yhps-area-list{grid-template-columns:1fr}}
