/* Site toast alerts — enquiry forms, contact, popup */
.site-toast-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100002;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-width: min(380px, calc(100vw - 2rem));
    pointer-events: none;
}

.site-toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.8rem 0.9rem 0.95rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(26, 61, 50, 0.1);
    pointer-events: auto;
    overflow: hidden;
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.site-toast.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.site-toast p {
    margin: 0;
    flex: 1;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #1f2a26;
    padding-top: 0.05rem;
}

.site-toast__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.site-toast__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.site-toast--success {
    border-color: #b8dfc8;
    background: #f4fbf7;
}

.site-toast--success .site-toast__icon {
    color: #1a5c3e;
}

.site-toast--error {
    border-color: #f5c2c0;
    background: #fff8f7;
}

.site-toast--error .site-toast__icon {
    color: #8b1e1e;
}

.site-toast__close {
    flex-shrink: 0;
    border: none;
    background: none;
    font-size: 1.2rem;
    line-height: 1;
    color: #7a8480;
    cursor: pointer;
    padding: 0;
}

.site-toast__close:hover {
    color: #1a3d32;
}

.site-toast__bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    transform-origin: left center;
    animation: siteToastBar linear forwards;
}

.site-toast--success .site-toast__bar {
    background: #1a5c3e;
}

.site-toast--error .site-toast__bar {
    background: #8b1e1e;
}

@keyframes siteToastBar {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Hide legacy inline form alerts — use toast instead */
.plan-trip-form__error,
.plan-trip-form__success,
.tour-booking-error,
.tour-booking-success {
    display: none !important;
}

@media (max-width: 640px) {
    .site-toast-stack {
        top: auto;
        bottom: calc(4.5rem + env(safe-area-inset-bottom));
        right: 0.75rem;
        left: 0.75rem;
        max-width: none;
    }
}
