.hh-av-root {
    --hh-av-primary: #D9A441;
    --hh-av-dark: #17202A;
    --hh-av-muted: #697586;
    --hh-av-bg: #ffffff;
    --hh-av-soft: #f6f7f9;
    --hh-av-border: rgba(17, 24, 39, 0.10);
    --hh-av-shadow: 0 22px 60px rgba(15, 23, 42, 0.24);
    font-family: inherit;
    position: relative;
    z-index: 999999;
}

.hh-av-floating-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999999;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 999px;
    background: var(--hh-av-primary);
    color: #fff;
    padding: 14px 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.hh-av-floating-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.hh-av-floating-icon {
    font-size: 20px;
    line-height: 1;
}

.hh-av-chat {
    position: fixed;
    right: 22px;
    bottom: 88px;
    width: min(380px, calc(100vw - 28px));
    max-height: min(680px, calc(100vh - 120px));
    z-index: 999999;
    display: none;
    overflow: hidden;
    border: 1px solid var(--hh-av-border);
    border-radius: 24px;
    background: var(--hh-av-bg);
    box-shadow: var(--hh-av-shadow);
}

.hh-av-root.is-open .hh-av-chat {
    display: flex;
    flex-direction: column;
    animation: hhAvSlideUp .22s ease both;
}

.hh-av-root.is-open .hh-av-floating-text {
    display: none;
}

.hh-av-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, var(--hh-av-dark), #243447);
    color: #fff;
}

.hh-av-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    background: var(--hh-av-primary);
    color: #fff;
    font-weight: 900;
    letter-spacing: .5px;
}

.hh-av-header strong,
.hh-av-header span {
    display: block;
    line-height: 1.25;
}

.hh-av-header span {
    font-size: 12px;
    opacity: .78;
}

.hh-av-close {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.hh-av-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 340px;
    max-height: 480px;
    overflow-y: auto;
    padding: 16px;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.hh-av-message {
    width: fit-content;
    max-width: 88%;
    padding: 11px 13px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
}

.hh-av-message-bot {
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    background: #eef2f7;
    color: #16202f;
}

.hh-av-message-user {
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    background: var(--hh-av-primary);
    color: #fff;
}

.hh-av-quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.hh-av-quick-actions button,
.hh-av-card-actions a,
.hh-av-card-actions button,
.hh-av-lead-form button,
.hh-av-footer button {
    border: 0;
    border-radius: 14px;
    background: var(--hh-av-dark);
    color: #fff;
    padding: 10px 12px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform .18s ease, opacity .18s ease;
}

.hh-av-quick-actions button {
    background: #fff;
    color: var(--hh-av-dark);
    border: 1px solid var(--hh-av-border);
    text-align: left;
}

.hh-av-quick-actions button:hover,
.hh-av-card-actions a:hover,
.hh-av-card-actions button:hover,
.hh-av-lead-form button:hover,
.hh-av-footer button:hover {
    transform: translateY(-1px);
    opacity: .92;
}

.hh-av-property-list {
    display: grid;
    gap: 12px;
}

.hh-av-property-card {
    overflow: hidden;
    border: 1px solid var(--hh-av-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
}

.hh-av-property-image {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 148px;
    background: linear-gradient(135deg, #eef2f7, #dde4ed);
    color: var(--hh-av-muted);
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
}

.hh-av-property-image img {
    display: block;
    width: 100%;
    height: 168px;
    object-fit: cover;
}

.hh-av-property-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 148px;
}

.hh-av-property-badges {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hh-av-property-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(23, 32, 42, .88);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    backdrop-filter: blur(6px);
}

.hh-av-property-badge-soft {
    background: rgba(255, 255, 255, .92);
    color: var(--hh-av-dark);
}

.hh-av-property-content {
    padding: 14px;
}

.hh-av-property-content h4 {
    margin: 0 0 8px;
    color: var(--hh-av-dark);
    font-size: 15.5px;
    line-height: 1.3;
}

.hh-av-property-meta {
    margin: 0 0 8px;
    color: var(--hh-av-muted);
    font-size: 13px;
}

.hh-av-property-price {
    margin: 0 0 6px;
    color: var(--hh-av-dark);
    font-size: 16px;
    font-weight: 950;
}

.hh-av-property-excerpt {
    margin: 8px 0 0;
    color: #4b5563;
    font-size: 12.5px;
    line-height: 1.45;
}

.hh-av-property-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.hh-av-property-info span {
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    padding: 5px 8px;
    font-size: 11.5px;
    font-weight: 800;
}

.hh-av-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 14px 14px;
}

.hh-av-card-actions a,
.hh-av-card-actions button {
    font-size: 13px;
}

.hh-av-card-actions .hh-av-action-view {
    background: var(--hh-av-primary);
}

.hh-av-card-actions .hh-av-action-interest {
    background: var(--hh-av-dark);
}

.hh-av-card-actions .hh-av-action-whatsapp {
    background: #25D366;
}

.hh-av-lead-form {
    display: grid;
    gap: 9px;
    border: 1px solid var(--hh-av-border);
    border-radius: 18px;
    background: #fff;
    padding: 12px;
}

.hh-av-lead-form input,
.hh-av-lead-form textarea,
.hh-av-footer input {
    width: 100%;
    border: 1px solid var(--hh-av-border);
    border-radius: 13px;
    padding: 10px 11px;
    font: inherit;
    outline: none;
    box-sizing: border-box;
}

.hh-av-lead-form textarea {
    min-height: 76px;
    resize: vertical;
}

.hh-av-lead-form button {
    background: var(--hh-av-primary);
}

.hh-av-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--hh-av-border);
    background: #fff;
}

.hh-av-footer button {
    background: var(--hh-av-primary);
}

@keyframes hhAvSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 560px) {
    .hh-av-floating-button {
        right: 16px;
        bottom: 16px;
    }

    .hh-av-chat {
        right: 14px;
        bottom: 78px;
        width: calc(100vw - 28px);
        max-height: calc(100vh - 100px);
    }

    .hh-av-body {
        min-height: 310px;
        max-height: calc(100vh - 250px);
    }
}

.hh-av-property-details {
    margin: 2px 0 0;
    font-size: 12px;
    color: #6b7280;
}


@media (min-width: 420px) {
    .hh-av-card-actions {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.hh-av-header > div:not(.hh-av-avatar):not(.hh-av-header-actions) {
    min-width: 0;
}

.hh-av-header-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hh-av-home,
.hh-av-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.hh-av-home:hover,
.hh-av-close:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .20);
}

.hh-av-filter-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-self: stretch;
    padding: 2px 0 4px;
}

.hh-av-filter-summary span {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--hh-av-border);
    border-radius: 999px;
    background: #fff;
    color: var(--hh-av-dark);
    padding: 6px 9px;
    font-size: 11.5px;
    font-weight: 850;
}

.hh-av-header-actions .hh-av-close {
    margin-left: 0;
}
