/* ── Art Portfolio Filter Plugin ── */

.afp-wrap {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    background: transparent;
    font-family: 'Georgia', serif;
}

/* ── SIDEBAR ── */
.afp-sidebar {
    width: 230px;
    flex-shrink: 0;
    background: #f4f2ec;
    border-radius: 16px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    align-self: flex-start;
    position: sticky;
    top: 24px;
}

.afp-sidebar-title {
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.afp-search-wrap input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #dedad3;
    border-radius: 8px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    background: #fff;
    color: #2c2a25;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}

.afp-search-wrap input:focus {
    border-color: #b5b0a5;
}

.afp-filter-group {
    position: relative;
}

.afp-filter-group select {
    width: 100%;
    padding: 9px 30px 9px 12px;
    border: 1px solid #dedad3;
    border-radius: 8px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    background: #fff;
    color: #2c2a25;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}

.afp-filter-group select:focus {
    border-color: #b5b0a5;
}

.afp-filter-group::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-65%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #999;
    pointer-events: none;
}

/* ── CHIPS ── */
.afp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 0;
}

.afp-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1px solid #c8c4bc;
    border-radius: 20px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    background: #fff;
    color: #2c2a25;
}

.afp-chip-x {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #999;
    background: none;
    border: none;
    padding: 0;
    margin-left: 2px;
}

.afp-chip-x:hover { color: #333; }

.afp-hint {
    font-size: 11px;
    font-family: 'Courier New', monospace;
    color: #bbb;
    line-height: 1.5;
    margin-top: 2px;
}

/* ── GRID ── */
.afp-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-content: start;
}

/* ── CARD ── */
.afp-card {
    background: #f4f2ec;
    border-radius: 16px;
    overflow: hidden;
}

.afp-card.afp-hidden {
    display: none;
}

.afp-card-img {
    background-color: #e6e3db;
    background-size: cover;
    background-position: center;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afp-no-img {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #bbb;
}

.afp-card-body {
    padding: 16px 18px 20px;
}

.afp-card-title {
    font-family: 'Georgia', serif;
    font-size: 17px;
    font-weight: normal;
    color: #1e1c18;
    margin-bottom: 5px;
}

.afp-card-tags {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

/* ── NO RESULTS ── */
.afp-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #aaa;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .afp-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 660px) {
    .afp-wrap { flex-direction: column; }
    .afp-sidebar { width: 100%; position: static; }
    .afp-grid { grid-template-columns: 1fr; }
}
