/* Base Styles */
body { font-family: 'Segoe UI', sans-serif; margin: 0; background: #f3f4f6; }

/* Chat Container */
#chat-container { max-width: 600px; margin: 0 auto; background: white; height: 100vh; display: flex; flex-direction: column; box-shadow: 0 0 20px rgba(0,0,0,0.1); }
header { background: #0f172a; color: white; padding: 15px; display: flex; justify-content: space-between; align-items: center; }
select#lang-select { background: #334155; color: white; border: none; padding: 5px; border-radius: 4px; }

/* Chat Window */
#chat-window { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; scroll-behavior: smooth; }

/* Messages */
.msg { padding: 12px 16px; border-radius: 18px; max-width: 80%; line-height: 1.5; font-size: 15px; word-wrap: break-word; }
.user { align-self: flex-end; background: #0f172a; color: white; border-bottom-right-radius: 2px; }
.bot { align-self: flex-start; background: #f1f5f9; color: #1e293b; border-bottom-left-radius: 2px; border: 1px solid #e2e8f0; }

/* CAROUSEL (The Fix) */
.carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 5px;
    width: 100%;
    min-height: 260px; /* Force height so it doesn't collapse */
}

/* PROPERTY CARD (The Fix) */
.prop-card {
    flex: 0 0 250px; /* Fixed width, do not shrink */
    height: 250px;   /* Fixed height */
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.prop-card img {
    width: 100%;
    height: 140px; /* Fixed image height */
    object-fit: cover;
    background-color: #e2e8f0; /* Grey background if image missing */
}

.prop-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prop-title { font-weight: bold; font-size: 14px; color: #0f172a; margin-bottom: 4px; }
.prop-loc { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.prop-price { font-weight: bold; color: #16a34a; font-size: 15px; }

/* Input Area */
.input-area { padding: 15px; border-top: 1px solid #eee; display: flex; gap: 10px; background: white; align-items: center; }
input#user-input { flex: 1; padding: 12px; border: 1px solid #cbd5e1; border-radius: 25px; outline: none; font-size: 16px; }
button#mic-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: #64748b; }
button#mic-btn.listening { color: #ef4444; animation: pulse 1.5s infinite; }
button#send-btn { background: #0ea5e9; color: white; border: none; padding: 10px 20px; border-radius: 25px; cursor: pointer; font-weight: 600; }

@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }