/* Art+Books+Coffee Events — Craigslist-compact layout */

#abc-events-app {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    max-width: 960px;
    margin: 0;
    color: #222;
}

/* ---- Search ---- */

.abc-search-wrap {
    position: relative;
    margin-bottom: 10px;
}

.abc-search-wrap input {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 32px 7px 10px;
    font-size: 14px;
    border: 1px solid #bbb;
    border-radius: 4px;
}

.abc-search-wrap input:focus {
    outline: none;
    border-color: #666;
}

.abc-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #888;
    padding: 0 4px;
    line-height: 1;
    display: none;
}

.abc-search-clear.visible {
    display: block;
}

/* ---- Pills row (pills + swap button) ---- */

.abc-pills-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

/* ---- Sort pills ---- */

.abc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
    transition: opacity 0.15s ease;
}

.abc-pills-out {
    opacity: 0;
}

.abc-pills-in {
    opacity: 0;
    animation: abc-fade-in 0.15s ease forwards;
}

@keyframes abc-fade-in {
    to { opacity: 1; }
}

.abc-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: opacity 0.15s, border-color 0.15s;
    user-select: none;
}

.abc-pill:hover {
    opacity: 1;
}

.abc-pill.active {
    opacity: 1;
    border-color: #222;
}

/* Pill colors — one per display label */
.abc-pill-opening     { background: #e8d5f5; color: #5b2d8e; }
.abc-pill-show        { background: #d5e8f5; color: #2d5b8e; }
.abc-pill-reception   { background: #f5e8d5; color: #8e5b2d; }
.abc-pill-workshop    { background: #d5f5e8; color: #2d8e5b; }
.abc-pill-cafe        { background: #f5f0d5; color: #7a6c1e; }
.abc-pill-salon       { background: #f5d5e8; color: #8e2d5b; }
.abc-pill-art-fair    { background: #e0d5f5; color: #4b2d8e; }
.abc-pill-residency   { background: #d5f5f0; color: #2d7a6c; }
.abc-pill-artist-talk { background: #f0f5d5; color: #6c7a1e; }
.abc-pill-book-signing{ background: #f5ddd5; color: #8e3f2d; }
.abc-pill-author-talk { background: #ddf5d5; color: #3f8e2d; }
.abc-pill-poetry      { background: #d5ddf5; color: #2d3f8e; }
.abc-pill-art-walk    { background: #f5d5dd; color: #8e2d3f; }
.abc-pill-open-studio { background: #e8f5d5; color: #5b8e2d; }
.abc-pill-museum      { background: #d5e0f5; color: #2d4b8e; }
.abc-pill-maker       { background: #f5e0d5; color: #8e4b2d; }
.abc-pill-experimental{ background: #dde0f5; color: #3d3d8e; }
.abc-pill-other       { background: #e8e8e8; color: #555; }

/* Free pill */
.abc-pill-free        { background: #d5f5d5; color: #2d8e2d; }

/* Neighborhood pills */
.abc-pill-hood        { background: #5a6e7f; color: #fff; }

/* ---- Swap button ---- */

.abc-swap-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 4px solid #c5b8d9;
    background: #ece4f5;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    margin-top: 1px;
}

.abc-swap-btn:hover {
    background: #ddd0ed;
    border-color: #8e74ab;
}

/* ---- Events list ---- */

.abc-events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.abc-event-item {
    padding: 4px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.abc-event-date {
    color: #888;
    font-size: 12px;
    min-width: 100px;
    flex-shrink: 0;
}

.abc-event-type {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.abc-event-title a {
    color: #0000cc;
    text-decoration: none;
}

.abc-event-title a:hover {
    text-decoration: underline;
}

.abc-event-venue a {
    color: #0000cc;
    text-decoration: none;
    font-size: 13px;
}

.abc-event-venue a:hover {
    text-decoration: underline;
}

.abc-event-meta {
    color: #888;
    font-size: 12px;
}

/* Separator between sorted and unsorted groups */
.abc-sort-gap {
    height: 24px;
    border-bottom: 2px dashed #ccc;
    margin-bottom: 4px;
}

/* ---- Empty / count ---- */

.abc-count {
    color: #888;
    font-size: 12px;
    margin-bottom: 8px;
}

.abc-empty {
    color: #888;
    padding: 20px 0;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
    #abc-events-app {
        font-size: 13px;
    }

    .abc-event-item {
        flex-direction: column;
        gap: 2px;
        padding: 6px 0;
    }

    .abc-event-date {
        min-width: auto;
    }

    .abc-pills {
        gap: 4px;
    }

    .abc-pill {
        font-size: 11px;
        padding: 2px 8px;
    }

    .abc-swap-btn {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}
