/* Tour Assistant Styles */
.tour-assistant-container {
    position: fixed;
    bottom: 20px;
    right: 80px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

.tour-assistant-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ff6b6b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.tour-assistant-button:hover {
    transform: scale(1.1);
    background-color: #ff5252;
}

.tour-assistant-icon {
    color: white;
    font-size: 24px;
}

/* Fix for Font Awesome icons */
.tour-assistant-container i[class^="fas"],
.tour-assistant-container i[class^="fab"],
.tour-assistant-container i[class^="far"],
.tour-assistant-container i[class^="icon-"] {
    display: inline-block;
    font-style: normal;
}

.tour-assistant-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.tour-assistant-panel.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.tour-assistant-header {
    padding: 15px;
    background-color: #ff6b6b;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tour-assistant-title {
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.tour-assistant-controls {
    display: flex;
    gap: 8px;
}

.tour-assistant-close,
.tour-assistant-minimize {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.tour-assistant-close:hover,
.tour-assistant-minimize:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.tour-assistant-panel.minimized .tour-assistant-body,
.tour-assistant-panel.minimized .tour-assistant-input {
    display: none;
}

.tour-assistant-panel.minimized {
    height: auto;
}

.tour-assistant-body {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
    max-height: 350px;
}

.tour-assistant-messages {
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 14px;
    position: relative;
}

.message.assistant {
    align-self: flex-start;
    background-color: #f1f1f1;
    border-bottom-left-radius: 5px;
}

.message.user {
    align-self: flex-end;
    background-color: #ff6b6b;
    color: white;
    border-bottom-right-radius: 5px;
}

.message.thinking {
    align-self: flex-start;
    background-color: #f1f1f1;
    border-bottom-left-radius: 5px;
    display: flex;
    padding: 15px;
}

.thinking-dot {
    width: 8px;
    height: 8px;
    background-color: #888;
    border-radius: 50%;
    margin: 0 2px;
    animation: thinking 1.4s infinite ease-in-out;
}

.thinking-dot:nth-child(1) {
    animation-delay: 0s;
}

.thinking-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes thinking {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.tour-assistant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.option-button {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 18px;
    padding: 8px 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-button:hover {
    background-color: #e9ecef;
}

.tour-assistant-input {
    display: flex;
    padding: 10px 15px;
    border-top: 1px solid #eee;
}

.tour-assistant-input input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
}

.tour-assistant-input button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.tour-assistant-input button:hover {
    background-color: #ff5252;
}

.tour-assistant-input button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.destination-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.destination-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.destination-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.destination-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.destination-card .name {
    padding: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.booking-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
}

.booking-summary h4 {
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 5px;
}

.summary-item .label {
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.action-button {
    flex: 1;
    padding: 8px 0;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-button.primary {
    background-color: #ff6b6b;
    color: white;
}

.action-button.primary:hover {
    background-color: #ff5252;
}

.action-button.secondary {
    background-color: #4CAF50;
    color: white;
}

.action-button.secondary:hover {
    background-color: #43A047;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .tour-assistant-panel {
        width: 300px;
        right: 0;
        max-height: 450px;
    }
    
    .tour-assistant-body {
        max-height: 300px;
    }
    
    .tour-assistant-container {
        bottom: 80px; 
        right: 20px;
    }
}
