/* Property Chatbot Styles */

.chatbot-widget {
    position: fixed;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    right: 1.5rem;
    z-index: 4000;
    font-family: 'Inter', sans-serif;
}

.chatbot-toggle {
    background: linear-gradient(135deg, #1a1a1a, #3b3b3b);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-toggle i {
    font-size: 1rem;
}

.chatbot-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.25);
}

.chatbot-window {
    position: absolute;
    bottom: 4.5rem;
    right: 0;
    width: 280px;
    max-width: 85vw;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 4001;
}

.chatbot-window.open {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a1a1a;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.chatbot-status {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

.chatbot-header-actions {
    display: flex;
    gap: 0.35rem;
}

.chatbot-icon-btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1a1a1a;
    transition: background 0.2s ease;
}

.chatbot-icon-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.chatbot-body {
    padding: 0.75rem;
    max-height: 280px;
    overflow-y: auto;
    background: #f8f9fb;
}

.chatbot-message {
    display: flex;
    margin-bottom: 0.75rem;
    gap: 0.6rem;
}

.chatbot-message.user {
    flex-direction: row-reverse;
}

.chatbot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.chatbot-message.user .chatbot-avatar {
    background: #d4af37;
    color: #1a1a1a;
}

.chatbot-text {
    background: #fff;
    border-radius: 16px;
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    line-height: 1.4;
    flex: 1;
}

.chatbot-message.user .chatbot-text {
    background: #1a1a1a;
    color: #fff;
}

.chatbot-quick-replies {
    padding: 0 0.75rem 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chatbot-option {
    border: 1px solid #d4af37;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    background: #fff;
    color: #1a1a1a;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.chatbot-option:hover,
.chatbot-option:focus {
    background: #d4af37;
    color: #1a1a1a;
}

.chatbot-option.skip {
    border-color: #ccc;
    color: #666;
}

.chatbot-footer {
    border-top: 1px solid #f0f0f0;
    padding: 0.75rem 1rem;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #666;
}

.chatbot-link {
    color: #d4af37;
    font-weight: 600;
    text-decoration: none;
}

.chatbot-property-card {
    background: #fff;
    border-radius: 16px;
    padding: 0.6rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-top: 0.5rem;
}

.chatbot-property-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.chatbot-property-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.chatbot-property-card p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
}

.chatbot-property-card .price {
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0.25rem;
}

.chatbot-property-card .btn {
    width: 100%;
    margin-top: 0.35rem;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.5rem;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
}

.chatbot-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
}

.chatbot-loading::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #1a1a1a;
    animation: chatbot-spin 0.8s linear infinite;
}

@keyframes chatbot-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 576px) {
    .chatbot-widget {
        right: 0.75rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }

.chatbot-window {
        width: calc(100vw - 2rem);
        right: -0.5rem;
    }
}

