:root {
    --primary-color: #d00000;         /* Strong Red */
    --secondary-color: #9d0208;       /* Deep Red */
    --accent-color: #e5383b;          /* Bright Red */
    --light-color: #fff0f0;           /* Very Light Red background */
    --dark-color: #2b0000;            /* Very Dark Red/Brown */
    --success-color: #ff595e;         /* Soft Red for success */
    --warning-color: #ff006e;         /* Vibrant Pink/Red for warning */
    --bot-bubble: #ffe5e5;            /* Light red background for bot */
    --user-bubble: #d00000;           /* Solid red for user messages */
    --text-color: #333;               /* Default text color */
    --bg-color: #fff;                 /* Default background */
    --input-bg: #f8f9fa;              /* Input background */
    --border-color: rgba(0, 0, 0, 0.1); /* Border color */
    --shadow-color: rgba(0, 0, 0, 0.1); /* Shadow color */
}

/* Dark mode variables */
[data-theme="dark"] {
    --primary-color: #ff6b6b;
    --secondary-color: #ee5253;
    --accent-color: #ff7675;
    --light-color: #2d3436;
    --dark-color: #f5f6fa;
    --success-color: #55efc4;
    --warning-color: #fd79a8;
    --bot-bubble: #3a3f44;
    --user-bubble: #ee5253;
    --text-color: #f5f6fa;
    --bg-color: #2d3436;
    --input-bg: #3a3f44;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Base styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s, color 0.3s;
}

/* Chatbot container */
.chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 400px;
    z-index: 1000;
    transition: all 0.3s ease;
    top:120px;
}

/* Chatbot icon */
.chatbot-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--shadow-color);
    position: absolute;
    right: 0;
    bottom: 0;
    transition: all 0.3s ease;
    z-index: 1001;
}

.chatbot-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px var(--shadow-color);
}

.chatbot-icon i {
    color: white;
    font-size: 24px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Chatbot window */
.chatbot-window {
    background-color: var(--bg-color);
    border-radius: 18px;
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
    display: none;
    height: 400px;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.chatbot-window.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

/* Chatbot header */
.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.chatbot-title {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chatbot-actions {
    display: flex;
    gap: 8px;
}

.chatbot-action-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
}

.chatbot-action-btn:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.chatbot-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Chatbot messages */
.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: var(--bg-color);
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Custom scrollbar */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Messages */
.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 1px 2px var(--shadow-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    background-color: var(--bot-bubble);
    color: var(--text-color);
    border-top-left-radius: 5px;
    align-self: flex-start;
    margin-right: auto;
}

.user-message {
    background-color: var(--user-bubble);
    color: white;
    border-top-right-radius: 5px;
    margin-left: auto;
    align-self: flex-end;
}

/* Input container */
.chatbot-input-container {
    padding: 12px;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-actions {
    display: flex;
    gap: 8px;
}

.input-action-btn {
    background: none;
    border: none;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
}

.input-action-btn:hover {
    opacity: 1;
    background-color: var(--input-bg);
    color: var(--primary-color);
}

.chatbot-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: all 0.2s;
    background-color: var(--input-bg);
    color: var(--text-color);
}

.chatbot-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(229, 56, 59, 0.2);
}

.chatbot-send {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chatbot-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(229, 56, 59, 0.3);
}

.chatbot-send:active {
    transform: scale(0.98);
}

/* Property cards */
.property-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    background-color: var(--bg-color);
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: all 0.2s;
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.property-card h5 {
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-card p {
    margin: 5px 0;
    font-size: 13px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-highlight {
    font-weight: 500;
    color: var(--secondary-color);
    min-width: 90px;
    display: inline-block;
}

/* Typing indicator */
.typing-indicator {
    display: inline-flex;
    padding: 12px 16px;
    background-color: var(--bot-bubble);
    border-radius: 18px;
    align-items: center;
    gap: 6px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-color);
    border-radius: 50%;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* Quick replies */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply {
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 16px;
    margin: 0;
    cursor: pointer;
    font-size: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.quick-reply:hover {
    background-color: rgba(208, 0, 0, 0.1);
    transform: translateY(-1px);
}

.quick-reply:active {
    transform: translateY(0);
}

/* Welcome message */
.welcome-message {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, var(--input-bg), var(--bot-bubble));
    border-radius: 12px;
    margin-bottom: 15px;
}

.welcome-message h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Property image */
.property-image {
    width: 100%;
    border-radius: 12px;
    margin: 10px 0;
    box-shadow: 0 3px 10px var(--shadow-color);
    border: 1px solid var(--border-color);
}

/* Buttons */
.btn-details {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    margin-top: 8px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-details:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(208, 0, 0, 0.3);
}

/* Emoji */
.emoji {
    font-size: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

/* Timestamp */
.timestamp {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.4);
    margin-top: 4px;
    text-align: right;
}

/* No results */
.no-results {
    padding: 15px;
    background-color: var(--light-color);
    border-radius: 12px;
    border: 1px solid rgba(247, 37, 133, 0.2);
    color: var(--warning-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Filter modal */
.filter-section {
    margin-bottom: 20px;
}

.filter-section h6 {
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-option {
    padding: 6px 12px;
    background-color: var(--input-bg);
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.filter-option:hover {
    background-color: var(--bot-bubble);
}

.filter-option.active {
    background-color: var(--primary-color);
    color: white;
}

.price-range, .size-range {
    margin-top: 15px;
}

.price-labels, .size-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
}

/* Emoji picker */
.emoji-picker {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.emoji-item {
    font-size: 20px;
    cursor: pointer;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.2s;
}

.emoji-item:hover {
    background-color: var(--input-bg);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .chatbot-container {
        width: 100%;
        bottom: 0;
        right: 0;
    }
    
    .chatbot-window {
        border-radius: 0;
        height: 100vh;
    }
    
    .chatbot-icon {
        right: 20px;
        bottom: 20px;
    }
}

/* Add these styles to your existing CSS file */

/* Property status indicators */
.status-booked {
    color: #d00000;
    font-weight: 600;
}

.status-registered {
    color: #28a745;
    font-weight: 600;
}

.status-available {
    color: #007bff;
    font-weight: 600;
}

/* Detailed property view */
.property-card.detailed-view {
    padding: 20px;
}

.property-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.detail-label {
    font-weight: 600;
    color: var(--secondary-color);
    display: inline-block;
    min-width: 100px;
}

/* Filter controls */
.filter-controls {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--secondary-color);
}

.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
}

.filter-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.filter-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-button:hover {
    background-color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .property-details-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
    }
}