/* Dream Hub Homes assistant widget */
#dhh-chat-btn {
    position: fixed; right: 18px; bottom: 56px; z-index: 1050;
    width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
    background: #111; color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s ease;
}
#dhh-chat-btn:hover { transform: scale(1.07); }
#dhh-chat-btn svg { width: 28px; height: 28px; fill: currentColor; }
#dhh-chat-btn .dhh-dot {
    position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%;
    background: #2ecc71; border: 2px solid #111;
}

#dhh-chat {
    position: fixed; right: 18px; bottom: 124px; z-index: 1050;
    width: 370px; max-width: calc(100vw - 24px); height: 540px; max-height: calc(100vh - 150px);
    background: #fff; color: #222; border-radius: 14px; overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    display: none; flex-direction: column;
    font-family: Roboto, Arial, sans-serif; font-size: 14px; line-height: 1.45;
}
#dhh-chat.open { display: flex; }

.dhh-head {
    background: #111; color: #fff; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between;
}
.dhh-head strong { display: block; font-size: 15px; letter-spacing: .5px; }
.dhh-head small { opacity: .7; font-size: 11px; }
.dhh-head button { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; padding: 0 4px; }

.dhh-msgs { flex: 1; overflow-y: auto; padding: 12px; background: #f4f4f6; }
.dhh-msg { max-width: 88%; margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; word-wrap: break-word; overflow-wrap: anywhere; }
.dhh-msg.bot { background: #fff; border: 1px solid #e6e6ea; border-top-left-radius: 3px; }
.dhh-msg.user { background: #111; color: #fff; margin-left: auto; border-top-right-radius: 3px; }
.dhh-msg p { margin: 0 0 6px; }
.dhh-msg p:last-child { margin-bottom: 0; }
.dhh-msg ul { margin: 4px 0 6px 18px; padding: 0; }
.dhh-msg a { color: #0b66c3; text-decoration: underline; }
.dhh-msg.user a { color: #9cd0ff; }

.dhh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.dhh-chips button {
    background: #fff; border: 1px solid #c9c9d1; border-radius: 16px; padding: 5px 10px; font-size: 12.5px; cursor: pointer; color: #222;
}
.dhh-chips button:hover { background: #111; color: #fff; border-color: #111; }

.dhh-typing span {
    display: inline-block; width: 7px; height: 7px; margin: 0 2px; background: #999; border-radius: 50%;
    animation: dhh-bounce 1s infinite ease-in-out;
}
.dhh-typing span:nth-child(2) { animation-delay: .15s; }
.dhh-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dhh-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }

.dhh-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e6e6ea; background: #fff; }
.dhh-form input {
    flex: 1; border: 1px solid #c9c9d1; border-radius: 20px; padding: 9px 14px; font-size: 14px; outline: none; min-width: 0;
}
.dhh-form input:focus { border-color: #111; }
.dhh-form button {
    border: 0; border-radius: 20px; background: #111; color: #fff; padding: 0 16px; cursor: pointer; font-size: 14px;
}
.dhh-form button:disabled { opacity: .5; cursor: default; }
.dhh-foot { font-size: 10.5px; color: #777; text-align: center; padding: 0 10px 8px; background: #fff; }

@media (max-width: 480px) {
    #dhh-chat { right: 8px; left: 8px; width: auto; max-width: none; bottom: 120px; height: calc(100vh - 140px); }
}
