/* Chat Page Styles */
.chat-wrapper {
    position: relative;
    min-height: calc(100vh - 120px);
    padding-top: 60px;
    height: auto;
}

/* Chat Message Links */
.ai-message a {
    color: #e67e22 !important;
    text-decoration: underline !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ai-message a:hover {
    color: #d35400 !important;
    text-decoration: underline !important;
}

/* Mobile Tour Cards - Simple Professional Design */
.mobile-tours-container {
    margin-top: 20px;
    padding: 0;
    max-width: 100%;
}

.tour-summary-mobile .message-content {
    padding: 0;
    max-width: none;
}

.mobile-tour-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.mobile-tour-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.mobile-tour-content {
    padding: 16px;
}

.mobile-tour-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.mobile-tour-details {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.mobile-tour-price {
    font-size: 18px;
    font-weight: 600;
    color: #2196f3;
    margin-bottom: 16px;
}

.mobile-explore-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}

.mobile-explore-btn:hover {
    background: #1976d2;
}

/* No Tours Found Message Styles */
.no-tours-message {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%);
    border-radius: 12px;
    border: 2px dashed #ffb74d;
    margin: 15px 0;
}

.no-tours-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.no-tours-title {
    font-size: 16px;
    font-weight: 600;
    color: #e65100;
    margin-bottom: 8px;
}

.no-tours-description {
    font-size: 13px;
    color: #bf360c;
    margin-bottom: 15px;
    line-height: 1.4;
}

.no-tours-contact-btn {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 3px 6px rgba(255, 152, 0, 0.3);
}

.no-tours-contact-btn:hover {
    background: linear-gradient(135deg, #f57c00 0%, #ef6c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(255, 152, 0, 0.4);
}

main .container {
    padding: 0;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.chat-container {
    display: flex;
    height: calc(100vh - 180px);
    gap: 20px;
}

/* Left Sidebar - Chat Interface */
.chat-sidebar {
    width: 40%;
    background-color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    height: calc(100vh - 180px);
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.tripado-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border-radius: 50%;
}

.tripado-logo img {
    width: 35px;
    height: auto;
}

.tripado-ai-text {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
    letter-spacing: 0.5px;
}



.currency-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f1f5f9;
    border-radius: 8px;
    font-weight: 500;
    color: #334155;
}

.flag {
    font-size: 18px;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 300px;
    scroll-behavior: smooth;
}

/* Custom scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Scroll fade indicators */
.chat-messages::before {
    content: '';
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, white, transparent);
    z-index: 1;
    pointer-events: none;
}

.chat-messages::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to top, white, transparent);
    z-index: 1;
    pointer-events: none;
}

.message {
    display: flex;
    margin-bottom: 4px;
}

.message-content {
    padding: 16px;
    border-radius: 12px;
    max-width: 80%;
    margin-bottom: 8px;
}

.ai-message .message-content {
    background: transparent;
    border: none;
    color: #334155;
    padding: 12px 0;
}

.user-message .message-content {
    background: linear-gradient(135deg, #34B0DC 0%, #0ea5e9 100%);
    color: white;
    border: none;
    padding: 12px 16px;
}

.user-message {
    justify-content: flex-end;
}

.message-content p {
    margin: 0 0 8px 0;
    line-height: 1.5;
    font-size: 15px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.ai-message .message-content p {
    color: #334155;
}

.user-message .message-content p {
    color: white;
}

.cta-button {
    background: linear-gradient(135deg, #34B0DC 0%, #0ea5e9 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 176, 220, 0.3);
}

.feedback-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-top: 4px;
}

.feedback-text:hover {
    color: #34B0DC;
}

.feedback-text i {
    color: #fbbf24;
    font-size: 12px;
}

/* Chat Input */
.chat-input-container {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background-color: white;
}

.chat-input {
    display: flex;
    align-items: center;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 4px;
    gap: 8px;
    transition: border-color 0.2s ease;
}

.chat-input:focus-within {
    border-color: #34B0DC;
    box-shadow: 0 0 0 3px rgba(52, 176, 220, 0.1);
}

.message-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 15px;
    color: #334155;
    outline: none;
}

.message-input::placeholder {
    color: #94a3b8;
}

.voice-button,
.send-button {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
}

.voice-button:hover,
.send-button:hover {
    background-color: #e2e8f0;
    color: #34B0DC;
}

.send-button {
    background: linear-gradient(135deg, #34B0DC 0%, #0ea5e9 100%);
    color: white;
}

.send-button:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

/* Quick Suggestions */
.quick-suggestions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.suggestion-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    border-color: #34B0DC;
    color: #34B0DC;
    background-color: #f0f9ff;
}

.suggestion-btn i {
    font-size: 12px;
}

/* Right Main Content */
.chat-main {
    flex: 1;
    background-image: url('../images/hero_background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 180px);
    overflow-y: auto;
}

.main-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tours-placeholder {
    position: absolute;
    top: 40px;
    left: 40px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    max-width: 300px;
}

.tours-placeholder-content h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.tours-placeholder-content p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.scenic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 60px 40px 40px;
    color: white;
}

.overlay-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 24px 0;
    line-height: 1.2;
    max-width: 600px;
}

.progress-indicator {
    width: 200px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, #34B0DC, #0ea5e9);
    border-radius: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Typing indicator styles */
.typing-indicator .message-content {
    padding: 12px 16px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #94a3b8;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { 
        transform: translateY(0);
        opacity: 0.4; 
    }
    30% { 
        transform: translateY(-10px);
        opacity: 1; 
    }
}

/* Responsive breakpoints matching base.css */
@media (max-width: 1200px) {
    main .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    main .container {
        max-width: 960px;
        padding: 0 15px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-wrapper {
        min-height: auto;
        height: auto;
        padding: 15px 0;
    }
    
    main .container {
        max-width: 720px;
        padding: 0 15px;
        height: auto;
    }
    
    .chat-container {
        flex-direction: column;
        min-height: auto;
        height: auto;
        gap: 10px;
    }
    
    .chat-sidebar {
        width: 100%;
        height: auto;
        min-height: auto;
        max-height: none;
        border-right: none;
        border-radius: 12px;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    }
    
    .chat-messages {
        height: auto;
        min-height: 350px;
        max-height: 50vh;
        flex: none;
        overflow-y: auto;
    }
    
    .chat-main {
        display: none !important; /* Hide right panel completely on mobile */
    }
    
    .scenic-overlay {
        position: static;
        background: rgba(0, 0, 0, 0.8);
        padding: 25px 20px;
        margin-top: auto;
    }
    
    .main-content {
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .tours-placeholder {
        position: static;
        margin: 20px;
        max-width: none;
    }
    
    .overlay-content {
        padding: 40px 20px 20px;
    }
    
    .overlay-content h1 {
        font-size: 24px;
    }
    
    .quick-suggestions {
        flex-direction: column;
    }
    
    .suggestion-btn {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .chat-wrapper {
        min-height: auto;
        padding: 10px 0;
    }
    
    main .container {
        max-width: 100%;
        padding: 0 10px;
        height: auto;
    }
    
    .chat-container {
        flex-direction: column-reverse;
        min-height: auto;
        height: auto;
        gap: 0;
    }
    
    .chat-sidebar {
        width: 100%;
        height: auto;
        min-height: auto;
        max-height: none;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .chat-messages {
        height: auto;
        min-height: 300px;
        max-height: 60vh;
        padding: 15px;
        overflow-y: auto;
    }
    
    .chat-main {
        height: auto;
        min-height: 200px;
        order: -1;
        margin-bottom: 10px;
    }
    
    .chat-header {
        padding: 12px 15px;
        flex-shrink: 0;
    }
    
    .chat-input-container {
        padding: 15px;
        flex-shrink: 0;
    }
    
    .message-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 12px;
    }
    
    .scenic-overlay {
        position: static;
        background: rgba(0, 0, 0, 0.8);
        padding: 20px 15px;
        margin-top: auto;
    }
    
    .main-content {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
    }
    
    .overlay-content h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .tours-placeholder {
        position: static;
        margin: 15px;
        max-width: none;
        padding: 20px;
    }
    
    .chat-messages {
        padding: 15px;
    }
    
    .chat-input-container {
        padding: 15px;
    }
    
    .overlay-content h1 {
        font-size: 20px;
    }
}

/* User welcome styles removed - clean interface without user greetings */

/* Header actions container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Settings button */
.settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.settings-btn:hover {
    background: #f8f9fa;
    border-color: #34B0DC;
    color: #34B0DC;
    transform: scale(1.05);
}

.settings-btn i {
    font-size: 14px;
}

/* Signout button */
.signout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.signout-btn:hover {
    background: #f8f9fa;
    border-color: #34B0DC;
    color: #34B0DC;
    transform: scale(1.05);
}

.signout-btn i {
    font-size: 14px;
}

/* Enhanced overlay content with better spacing */
.overlay-content p {
    font-size: 1rem;
    color: white;
    margin-top: 15px;
    margin-bottom: 5px;
    max-width: 600px;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-actions {
        gap: 10px;
    }
    
    .settings-btn,
    .signout-btn {
        width: 32px;
        height: 32px;
    }
    
    .settings-btn i,
    .signout-btn i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .overlay-content p {
        font-size: 0.9rem;
        margin-top: 10px;
    }
}
