.ai-yacht-chat-container {
    max-width: 900px;
    margin: 30px auto;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 650px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    overflow: hidden;
}

.ai-yacht-chat-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2);
    position: relative;
}

.ai-yacht-chat-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.ai-yacht-chat-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.ai-yacht-chat-header h3::before {
    content: '⚓';
    font-size: 24px;
    opacity: 0.9;
}

.ai-yacht-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.ai-yacht-chat-message {
    margin-bottom: 16px;
    display: flex;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-yacht-chat-message-user {
    justify-content: flex-end;
}

.ai-yacht-chat-message-bot {
    justify-content: flex-start;
}

.ai-yacht-chat-message-content {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: 20px;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ai-yacht-chat-message-user .ai-yacht-chat-message-content {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.25);
}

.ai-yacht-chat-message-bot .ai-yacht-chat-message-content {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.ai-yacht-chat-message.error .ai-yacht-chat-message-content {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border-color: #fecaca;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.ai-yacht-chat-message-loading .ai-yacht-chat-message-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.ai-yacht-chat-typing-indicator {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 4px 0;
}

.ai-yacht-chat-typing-indicator span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0073aa;
    animation: typing 1.4s infinite;
    opacity: 0.6;
}

.ai-yacht-chat-typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.ai-yacht-chat-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-yacht-chat-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px) scale(1.1);
        opacity: 1;
    }
}

.ai-yacht-chat-input-container {
    display: flex;
    padding: 20px 24px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 16px 16px;
    gap: 12px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
    position: relative;
}

.ai-yacht-chat-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
}

.ai-yacht-chat-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 28px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    background: #f9fafb;
    color: #1f2937;
    font-family: inherit;
}

.ai-yacht-chat-input::placeholder {
    color: #9ca3af;
}

.ai-yacht-chat-input:focus {
    border-color: #0073aa;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.1);
    transform: translateY(-1px);
}

.ai-yacht-chat-input:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.6;
}

.ai-yacht-chat-send {
    padding: 14px 28px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    border: none;
    border-radius: 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.25);
    white-space: nowrap;
}

.ai-yacht-chat-send:hover:not(:disabled) {
    background: linear-gradient(135deg, #005a87 0%, #004a6f 100%);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.35);
    transform: translateY(-1px);
}

.ai-yacht-chat-send:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 115, 170, 0.25);
}

.ai-yacht-chat-send:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.ai-yacht-chat-yachts {
    margin-top: 20px;
}

.ai-yacht-chat-yachts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.ai-yacht-chat-yacht-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.ai-yacht-chat-yacht-card:hover {
    box-shadow: 0 8px 24px rgba(0, 115, 170, 0.15);
    transform: translateY(-2px);
    border-color: #0073aa;
}

.ai-yacht-chat-yacht-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
}

.ai-yacht-chat-yacht-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ai-yacht-chat-yacht-card:hover .ai-yacht-chat-yacht-image {
    transform: scale(1.05);
}

.ai-yacht-chat-yacht-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.ai-yacht-chat-yacht-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-yacht-chat-yacht-name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.ai-yacht-chat-yacht-builder {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    font-style: italic;
}

.ai-yacht-chat-yacht-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.ai-yacht-chat-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #f0f4f8;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.ai-yacht-chat-detail-badge svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.ai-yacht-chat-yacht-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.ai-yacht-chat-yacht-location svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.ai-yacht-chat-yacht-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 4px 0;
    padding: 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
    border: 1px solid #bae6fd;
}

.ai-yacht-chat-price-label {
    font-size: 12px;
    color: #0369a1;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-yacht-chat-price-amount {
    font-size: 22px;
    font-weight: 700;
    color: #0073aa;
    line-height: 1;
}

.ai-yacht-chat-price-period {
    font-size: 13px;
    color: #0369a1;
    font-weight: 500;
}

.ai-yacht-chat-yacht-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    padding: 8px 0;
    border-top: 1px solid #f3f4f6;
}

.ai-yacht-chat-amenities-label {
    font-weight: 600;
    color: #374151;
}

.ai-yacht-chat-amenities-list {
    color: #6b7280;
}

.ai-yacht-chat-yacht-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    border: 2px solid transparent;
}

.ai-yacht-chat-yacht-link:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.ai-yacht-chat-yacht-link svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.ai-yacht-chat-yacht-link:hover svg {
    transform: translate(2px, -2px);
}

/* Responsive */
@media (max-width: 768px) {
    .ai-yacht-chat-container {
        height: 550px;
        margin: 15px;
        border-radius: 12px;
    }
    
    .ai-yacht-chat-header {
        padding: 16px 20px;
        border-radius: 12px 12px 0 0;
    }
    
    .ai-yacht-chat-header h3 {
        font-size: 18px;
        color: #ffffff;
    }
    
    .ai-yacht-chat-messages {
        padding: 20px 16px;
    }
    
    .ai-yacht-chat-message-content {
        max-width: 85%;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .ai-yacht-chat-input-container {
        padding: 16px 20px;
        border-radius: 0 0 12px 12px;
    }
    
    .ai-yacht-chat-input {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .ai-yacht-chat-send {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .ai-yacht-chat-yachts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Scrollbar styling */
.ai-yacht-chat-messages::-webkit-scrollbar {
    width: 10px;
}

.ai-yacht-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.ai-yacht-chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.ai-yacht-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
    background-clip: padding-box;
}
