/* Travel Directions Modal Styles */

/* Modal Overlay */
#directionsModal.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

/* Modal Container */
.directions-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Header */
.directions-modal .modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.directions-modal .modal-header h3 {
    margin: 0;
    font-size: 1.2em;
    flex: 1;
}

.directions-modal .modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.directions-modal .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal Body */
.directions-modal .modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Context Sections */
.hotel-context, .activity-context {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 0.95em;
}

.hotel-context {
    background: #e8f5e8;
    border-left: 4px solid #28a745;
}

.activity-context {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.hotel-location, .activity-location {
    color: #666;
    font-size: 0.9em;
}

.activity-date {
    color: #667eea;
    font-weight: 500;
    font-size: 0.9em;
}

/* Directions Content */
.directions-content {
    min-height: 100px;
    line-height: 1.5;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    text-align: center;
}

.progress-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Directions Result Styling */
.directions-result {
    font-size: 0.95em;
}

.route-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.route-summary h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.route-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.route-details span {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.route-description, .step-by-step, .alternatives, .travel-tips {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
}

.route-description {
    background: #f8f9ff;
    border: 1px solid #e3e6ff;
}

.step-by-step {
    background: #fff;
    border: 1px solid #ddd;
}

.alternatives {
    background: #f0f8ff;
    border: 1px solid #b8d4f1;
}

.travel-tips {
    background: #fffbf0;
    border: 1px solid #ffeaa7;
}

.directions-result h5 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #333;
    font-weight: 600;
}

.directions-result ol, .directions-result ul {
    margin: 0;
    padding-left: 20px;
}

.directions-result li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.directions-text pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-family: inherit;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Modal Footer */
.directions-modal .modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 12px 12px;
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    #directionsModal.modal-overlay {
        padding: 10px;
    }
    
    .directions-modal {
        max-height: 95vh;
    }
    
    .directions-modal .modal-header,
    .directions-modal .modal-body,
    .directions-modal .modal-footer {
        padding: 15px;
    }
    
    .route-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .directions-modal .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .directions-modal .modal-footer button {
        width: 100%;
    }
}

/* Activity Actions Button Styling */
.activity-actions {
    margin-top: 8px;
}

.activity-actions .btn-sm {
    font-size: 0.85em;
    padding: 6px 12px;
    border-radius: 5px;
}