/* MB Resort Agent Styles */

.mbra-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

/* Video Background */
.mbra-video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 80%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -1;
}

.mbra-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,50,100,0.8));*/
    z-index: 0;
}

/* Agent Container */
.mbra-agent-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 80%;
    padding: 30px;
  /*  background: rgba(0, 0, 0, 0.6);*/
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

.mbra-agent-header {
    text-align: center;
    margin-bottom: 30px;
}

.mbra-agent-title {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 300;
    margin: 0 0 10px 0;
}

.mbra-agent-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    margin: 0;
}

/* Chat Area */
.mbra-chat-area {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 300px;
}

.mbra-message {
    margin-bottom: 15px;
    padding: 12px 18px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mbra-user-message {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mbra-bot-message {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mbra-bot-message strong {
    color: #fff;
    font-weight: 500;
}

.mbra-bot-message a {
    color: #4CAF50;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.mbra-bot-message a:hover {
    opacity: 0.8;
}

/* Input Area */
.mbra-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mbra-chat-input {
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.mbra-chat-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}

.mbra-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mbra-send-button {
    padding: 15px 25px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mbra-send-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Quick Actions */
.mbra-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.mbra-quick-button {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mbra-quick-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Scrollbar Styling */
.mbra-chat-area::-webkit-scrollbar {
    width: 6px;
}

.mbra-chat-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.mbra-chat-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.mbra-chat-area::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Typing Indicator */
.mbra-typing-indicator {
    display: inline-block;
    padding: 10px 15px;
}

.mbra-typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin-right: 5px;
    animation: typing 1.4s infinite;
}

.mbra-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.mbra-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Property Card Styles */
.mbra-property-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
}

.mbra-property-card h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 10px 0;
    font-family: 'Montserrat', sans-serif;
}

.mbra-property-detail {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
}

.mbra-property-label {
    color: rgba(255, 255, 255, 0.6);
}

.mbra-property-value {
    color: #fff;
    font-weight: 500;
}

.mbra-availability-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
}

.mbra-available {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.mbra-sold {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mbra-agent-container {
        padding: 20px;
    }
    
    .mbra-agent-title {
        font-size: 20px;
    }
    
    .mbra-chat-area {
        min-height: 250px;
        padding: 15px;
    }
    
    .mbra-message {
        font-size: 13px;
        max-width: 90%;
    }
    
    .mbra-quick-actions {
        gap: 8px;
    }
    
    .mbra-quick-button {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .mbra-chat-input {
        padding: 12px;
        font-size: 13px;
    }
    
    .mbra-send-button {
        padding: 12px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .mbra-wrapper {
        border-radius: 15px;
    }
    
    .mbra-agent-container {
        padding: 15px;
        border-radius: 15px;
    }
    
    .mbra-chat-area {
        min-height: 200px;
    }
    
    .mbra-input-area {
        gap: 8px;
    }
}