/**
 * Toast notifications.
 * The JS in assets/js/components/toast.js creates .travel-toast-root and .travel-toast,
 * but applies inline styles. This file is the upgrade path: the inline styles can be
 * removed once these classes are loaded.
 */

.travel-toast-root {
    position: fixed;
    bottom: var(--travel-space-lg);
    right: var(--travel-space-lg);
    top: auto;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--travel-space-sm);
    pointer-events: none;
    max-width: 360px;
}

@media (max-width: 480px) {
    .travel-toast-root {
        left: var(--travel-space-md);
        right: var(--travel-space-md);
        max-width: none;
    }
}

.travel-toast {
    pointer-events: auto;
    background: var(--travel-primary);
    color: #fff;
    padding: var(--travel-space-md) var(--travel-space-lg);
    border-radius: var(--travel-radius-card);
    font-size: var(--travel-fs-small);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: var(--travel-space-sm);
    line-height: 1.4;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.travel-toast.is-visible { opacity: 1; transform: translateY(0); }

/* Type variants */
.travel-toast--info    { background: var(--travel-color-info); }
.travel-toast--success { background: var(--travel-color-success); }
.travel-toast--warning,
.travel-toast--warn    { background: var(--travel-color-warning); }
.travel-toast--error   { background: var(--travel-color-danger); }

.travel-toast::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: inline-block;
}

.travel-toast__close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}
.travel-toast__close:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .travel-toast { transition: none; transform: none; }
}
