/* ================= FLOAT BUTTON ================= */
#chat-toggle{
    position:fixed;
    bottom:20px;
    right:20px;
    width:62px;
    height:62px;

    background:linear-gradient(135deg,#111827,#000000);
    color:#facc15; /* GOLD */

    font-size:24px;
    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;
    z-index:99999;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.6),
        0 0 0 3px rgba(250,204,21,0.15);

    transition:all 0.3s ease;
}

#chat-toggle:hover{
    transform:scale(1.12) rotate(8deg);
    box-shadow:
        0 15px 40px rgba(0,0,0,0.8),
        0 0 0 5px rgba(250,204,21,0.25);
}

/* ================= CHAT BOX ================= */
#bharatacre-chatbot{
    position:fixed;
    bottom:90px;
    right:20px;
    width:370px;
    height:540px;

    background:rgba(17,24,39,0.92); /* DARK GLASS */
    backdrop-filter:blur(16px);

    border-radius:22px;
    overflow:hidden;

    box-shadow:0 40px 100px rgba(0,0,0,0.6);

    display:none;
    flex-direction:column;

    transform:translateY(40px) scale(0.95);
    opacity:0;
    transition:all 0.35s ease;

    border:1px solid rgba(255,255,255,0.05);

    z-index:99999;
}

/* OPEN STATE */
#bharatacre-chatbot.active{
    display:flex;
    transform:translateY(0) scale(1);
    opacity:1;
}

/* ================= HEADER ================= */
.chat-header{
    background:linear-gradient(135deg,#000000,#1f2937);
    color:#facc15; /* GOLD */

    padding:16px;

    font-weight:600;
    display:flex;
    justify-content:space-between;
    align-items:center;

    font-size:15px;
    letter-spacing:0.5px;

    border-bottom:1px solid rgba(255,255,255,0.05);
}

/* ================= MESSAGES ================= */
#chat-messages{
    flex:1;
    overflow-y:auto;
    padding:15px;

    display:flex;
    flex-direction:column;
    gap:12px;

    background:linear-gradient(to bottom,#020617,#020617);
}

/* SCROLLBAR */
#chat-messages::-webkit-scrollbar{
    width:5px;
}
#chat-messages::-webkit-scrollbar-thumb{
    background:#444;
    border-radius:10px;
}

/* ================= CHAT BUBBLES ================= */
.msg{
    padding:10px 14px;
    border-radius:16px;
    max-width:75%;
    font-size:14px;
    line-height:1.5;

    animation:fadeMsg 0.25s ease;
}

@keyframes fadeMsg{
    from{opacity:0; transform:translateY(12px);}
    to{opacity:1; transform:translateY(0);}
}

/* USER MESSAGE */
.user{
    background:linear-gradient(135deg,#facc15,#eab308);
    color:#111;

    align-self:flex-end;

    box-shadow:0 6px 18px rgba(250,204,21,0.3);
}

/* BOT MESSAGE */
.bot{
    background:#111827;
    color:#e5e7eb;

    align-self:flex-start;

    border:1px solid rgba(255,255,255,0.05);
}

/* ================= PROPERTY CARD ================= */
.property-card-chat{
    border-radius:14px;
    overflow:hidden;

    background:#020617;

    box-shadow:0 6px 20px rgba(0,0,0,0.5);
    transition:0.3s;

    border:1px solid rgba(255,255,255,0.05);
}

.property-card-chat:hover{
    transform:translateY(-4px);
}

.property-card-chat img{
    width:100%;
    height:140px;
    object-fit:cover;
}

.property-card-chat .info{
    padding:12px;
    font-size:13px;
    color:#d1d5db;
}

.property-card-chat .info strong{
    display:block;
    font-size:14px;
    margin-bottom:5px;
    color:#facc15;
}

/* ================= INPUT ================= */
.chat-input{
    display:flex;
    align-items:center;
    padding:10px;
    border-top:1px solid rgba(255,255,255,0.05);

    background:#020617;
    gap:6px;
}

/* INPUT FIELD */
.chat-input input{
    flex:1;
    border:none;
    padding:11px 14px;
    outline:none;

    background:#111827;
    border-radius:25px;

    font-size:14px;
    color:#fff;
}

/* BUTTON */
.chat-input button{
    border:none;

    background:linear-gradient(135deg,#facc15,#eab308);
    color:#111;

    padding:10px;
    border-radius:50%;
    cursor:pointer;

    transition:0.25s;
}

.chat-input button:hover{
    transform:scale(1.12);
}

/* MIC BUTTON */
.chat-input button:last-child{
    background:linear-gradient(135deg,#22c55e,#16a34a);
    color:#fff;
}

/* ================= TYPING ================= */
.typing{
    display:none;
    font-size:12px;
    padding:0 12px 10px;
    color:#aaa;
}

/* ================= MOBILE ================= */
@media(max-width:768px){

    #chat-toggle{
        width:55px;
        height:55px;
        bottom:15px;
        right:15px;
    }

    #bharatacre-chatbot{
        width:100%;
        height:100%;
        bottom:0;
        right:0;
        border-radius:0;
    }

    .msg{
        max-width:85%;
        font-size:13px;
    }
}