/* ── Schedule create wizard styles ─────────────────────────────────────────
   Loaded globally from the admin layout so they survive HTMX body swaps.
   All selectors are prefixed with .sw-* to avoid collisions.             */

:root {
    --sw-accent: #ff9a3c;
    --sw-accent-soft: rgba(255,154,60,.12);
    --sw-line: #e6e6e6;
    --sw-step: #10b981;
    --sw-step-dark: #059669;
    --sw-step-soft: rgba(16,185,129,.14);
    --sw-step-pending: #d1d5db;
}

/* ─── Progress stepper ──────────────────────────────────────────────────── */
.sw-stepper-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 20px 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.sw-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    position: relative;
}
.sw-step {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    position: relative;
    padding: 0 4px;
}
.sw-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #9ca3af;
    font-weight: 700;
    font-size: .78rem;
    border: 2px solid var(--sw-step-pending);
    position: relative;
    z-index: 2;
    transition: all .25s ease;
}
.sw-step.done .sw-dot {
    background: linear-gradient(180deg, var(--sw-step) 0%, var(--sw-step-dark) 100%);
    border-color: var(--sw-step-dark);
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(16,185,129,.3);
}
.sw-step.done .sw-dot::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(16,185,129,.15);
}
.sw-step.now .sw-dot {
    background: #ffffff;
    border-color: var(--sw-step);
    color: var(--sw-step-dark);
    box-shadow: 0 0 0 4px var(--sw-step-soft), 0 1px 4px rgba(16,185,129,.18);
    transform: scale(1.06);
}
.sw-step::before,
.sw-step::after {
    content: "";
    position: absolute;
    top: 12px;
    height: 2px;
    background: var(--sw-step-pending);
    z-index: 1;
}
.sw-step::before { left: 0;  right: 50%; }
.sw-step::after  { left: 50%; right: 0;  }
.sw-step:first-child::before,
.sw-step:last-child::after { display: none; }
.sw-step.done::before,
.sw-step.done::after,
.sw-step.now::before {
    background: linear-gradient(90deg, var(--sw-step) 0%, var(--sw-step-dark) 100%);
}
.sw-label {
    display: block;
    margin-top: 6px;
    font-size: .72rem;
    color: #6b7280;
    letter-spacing: .02em;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sw-step.now  .sw-label { color: var(--sw-step-dark); font-weight: 700; }
.sw-step.done .sw-label { color: #374151; font-weight: 600; }

@media (max-width: 576px) {
    .sw-stepper-wrap { padding: 10px 10px 8px; }
    .sw-dot { width: 22px; height: 22px; font-size: .7rem; }
    .sw-step::before, .sw-step::after { top: 10px; height: 2px; }
    .sw-label { font-size: .66rem; }
}

/* ─── Selection cards ────────────────────────────────────────────────────── */
.sw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.sw-card {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 18px;
    background: #ffffff;
    text-decoration: none !important;
    color: #111827 !important;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    display: block !important;
}
.sw-card:hover {
    border-color: var(--sw-accent);
    box-shadow: 0 6px 16px rgba(17,24,39,.08);
    transform: translateY(-2px);
    color: #111827 !important;
    text-decoration: none !important;
}
.sw-card-title  { font-weight: 600; color: #111827; font-size: .98rem; letter-spacing: -.01em; }
.sw-card-meta   { font-size: .82rem; color: #6b7280; margin-top: 4px; }
.sw-card-badge  { display: inline-block; font-size: .7rem; padding: 2px 8px; border-radius: 10px;
                  background: #f4f4f4; color: #555; letter-spacing: .04em; }
.sw-card-add    { border: 2px dashed var(--sw-line); background: #fafafa; color: #666; text-align: center;
                  display: flex; align-items: center; justify-content: center; font-weight: 500; }
.sw-card-add:hover { border-color: var(--sw-accent); background: var(--sw-accent-soft); color: var(--sw-accent); }

/* City chips */
.sw-grid-city {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    grid-template-columns: none;
}
.sw-card-city {
    display: inline-flex !important;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1.5px solid var(--sw-accent);
    color: #111827 !important;
    line-height: 1.2;
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
    text-decoration: none !important;
}
.sw-card-city:hover {
    background: var(--sw-accent-soft);
    box-shadow: 0 2px 6px rgba(255,154,60,.25);
    transform: translateY(-1px);
    color: #111827 !important;
}
.sw-card-city .sw-card-title {
    font-weight: 500;
    font-size: .9rem;
    white-space: nowrap;
}

/* ─── Step-summary rows ─────────────────────────────────────────────────── */
.sw-summary {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    border: 1px solid var(--sw-line); border-radius: 8px; background: #fafafa; margin-bottom: 8px;
}
.sw-summary-num {
    width: 26px; height: 26px; border-radius: 50%; background: var(--sw-accent); color: white;
    display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 600;
}
.sw-summary-body { flex: 1; }
.sw-summary-label { font-size: .72rem; color: #999; text-transform: uppercase; letter-spacing: .05em; }
.sw-summary-value { font-weight: 600; color: #222; }
.sw-summary a  { color: var(--sw-accent) !important; font-size: .85rem; text-decoration: none !important; }
.sw-summary a:hover { text-decoration: underline !important; }
.sw-summary-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: var(--sw-accent) !important;
    text-decoration: none !important;
    transition: background-color .15s ease;
}
.sw-summary-edit:hover { background: var(--sw-accent-soft); text-decoration: none !important; }

/* ─── Step panel & misc ─────────────────────────────────────────────────── */
.sw-panel { border: 1px solid var(--sw-line); border-radius: 10px; padding: 20px; background: white; }
.sw-panel h6 { color: #444; font-weight: 700; letter-spacing: .01em; }
.sw-search { max-width: 320px; }

/* ─── Locked-event banner ───────────────────────────────────────────────── */
.sw-event-locked {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 4px solid var(--sw-accent);
    border-radius: 8px;
}
.sw-event-locked-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--sw-accent-soft);
    color: var(--sw-accent);
    font-size: 0.95rem;
    flex-shrink: 0;
}
.sw-event-locked-body { flex: 1; min-width: 0; }
.sw-event-locked-label {
    font-size: 0.7rem; color: #92400e;
    text-transform: uppercase; letter-spacing: 0.05em;
    font-weight: 600;
}
.sw-event-locked-value {
    font-size: 0.95rem; color: #111827; font-weight: 600;
    line-height: 1.3; margin-top: 1px;
}
.sw-event-locked-sub  { font-weight: 400; color: #6b7280; font-size: 0.85rem; }
.sw-event-locked-swap {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px;
    font-size: 0.78rem; font-weight: 500;
    color: #92400e; background: #fff;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.15s, border-color 0.15s;
}
.sw-event-locked-swap:hover {
    background: var(--sw-accent-soft);
    border-color: var(--sw-accent);
    color: #92400e;
    text-decoration: none !important;
}

/* ─── Wizard action buttons ─────────────────────────────────────────────── */
.sw-btn {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none !important;
    cursor: pointer;
}
.sw-btn-accent {
    background: var(--sw-accent) !important;
    color: #ffffff !important;
    border: 1px solid var(--sw-accent);
}
.sw-btn-accent:hover {
    background: #e8892e !important;
    color: #ffffff !important;
}
