.departures-modal[hidden] {
    display: none;
}

.departures-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: departures-fade-in 0.2s ease;
}

.departures-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.departures-modal__content {
    position: relative;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: var(--color-surface, #fff);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: departures-slide-up 0.25s ease;
}

.departures-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 12px;
}

.departures-modal__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text, #1a1a1a);
}

.departures-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: var(--color-surface-muted, #f0f0f0);
    color: var(--color-text-soft, #666);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.departures-modal__close:hover {
    background: var(--color-border, #ddd);
}

.departures-modal__body {
    padding: 8px 24px 24px;
    overflow-y: auto;
}

.departures-modal__status {
    margin: 0;
    color: var(--color-text-soft, #666);
    font-size: 0.85rem;
    line-height: 1.5;
}

.departures-modal__list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.departures-modal__origin {
    margin: 0 0 2px;
    color: var(--color-text, #1a1a1a);
    font-size: 0.88rem;
    font-weight: 700;
}

.departures-modal__months {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.departures-modal__month-link {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--color-accent, #d97706);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease;
}

.departures-modal__month-link:hover {
    background: var(--color-accent-dark, #b45309);
}

@keyframes departures-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes departures-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
