/* Chatbot Styles */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-height: 500px;
    background-color: #fff;
    border-radius: 0px;
    box-shadow: 0 5px 25px #00000016;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
    display: none;
}

#chatbot-header {
    padding: 15px; 
    background-color: #f0b429;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 0px 0px 0 0;
}

#chatbot-header .header-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

#chatbot-toggle, #chatbot-clear-history {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

#chatbot-toggle:hover, #chatbot-clear-history:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#chatbot-clear-history {
    font-size: 1.1rem;
}

#chatbot-messages {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
    max-height: 350px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.4;
}

.user-message {
    background-color: #fff134e8;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

/* Updated bot message styles to group them */
.bot-message {
    background-color: #f0f0f0;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    margin-bottom: 2px;
    white-space: pre-line;
    line-height: 1.6;
    max-width: 100%;
    font-size: 16px;
    padding: 15px;
}

/* Special styling for booking confirmations */
.bot-message:has(br) {
    white-space: pre-line;
    line-height: 1.6;
}

/* Ensure bullet points are properly indented */
.bot-message br + • {
    margin-left: 5px;
    display: inline-block;
}

/* Ensure proper spacing for bullet points */
.bot-message br {
    margin-bottom: 5px;
    display: block;
    content: "";
}

/* Ensure bullet points are properly aligned */
.bot-message span.bullet {
    margin-left: 0;
    display: inline-block;
    width: 15px;
    text-align: center;
    color: #f0b429;
    font-weight: bold;
}

/* New styles for grouped bot messages */
.bot-message-group {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    max-width: 80%;
    margin-bottom: 10px;
}

.bot-message-group .bot-message {
    margin-bottom: 1px;
    border-radius: 15px;
}

.bot-message-group .bot-message:first-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 15px;
}

.bot-message-group .bot-message:last-child {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 5px;
}

.bot-message-group .bot-message:not(:first-child):not(:last-child) {
    border-radius: 15px;
    border-bottom-left-radius: 5px;
    border-top-left-radius: 15px;
}

/* Single bot message */
.bot-message-single {
    border-radius: 15px;
    border-bottom-left-radius: 5px;
}

#chatbot-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
}

#chatbot-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
    outline: none;
}

#chatbot-send {
    background-color: #f0b429;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

#chatbot-send:hover {
    background-color: #d9a424;
}

#chatbot-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #f0b429;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 1.5rem;
}


.typing-indicator {
    display: flex;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-radius: 15px;
    align-self: flex-start;
    width: fit-content;
    border-bottom-left-radius: 5px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    margin: 0 1px;
    background-color: #888;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.4;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0% {
        opacity: 0.4;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
    100% {
        opacity: 0.4;
        transform: translateY(0);
    }
}

/* Amenity Payment Card Styles */
.payment-option {
    max-width: 90% !important;
}

.amenity-payment-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.amenity-details h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
}

.amenity-details p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666;
}

.amenity-actions {
    display: flex;
    justify-content: flex-end;
}

.amenity-actions .btn {
    font-size: 14px;
    padding: 5px 10px;
}