/* Stage 17 — professional search and filters */
.mc-filter-shell { position:relative; }
.mc-filter-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:0 0 16px; }
.mc-filter-count { color:var(--mc-muted); font-size:11px; font-weight:800; }
.mc-filter-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.mc-filter-bar--advanced {
    grid-template-columns:minmax(250px,1.8fr) repeat(4,minmax(120px,.75fr)) auto;
    padding:17px;
    margin-bottom:18px;
    border:1px solid var(--mc-border);
    border-radius:22px;
    background:var(--mc-surface);
    box-shadow:var(--mc-shadow-soft);
}
.mc-filter-bar--advanced > div { min-width:0; }
.mc-filter-bar--advanced label {
    display:block;
    margin-bottom:6px;
    color:var(--mc-ink);
    font-size:10px;
    font-weight:900;
}
.mc-filter-bar--advanced input,
.mc-filter-bar--advanced select {
    min-width:0;
    height:48px;
}
.mc-filter-actions { display:flex; align-items:stretch; gap:8px; }
.mc-filter-actions .mc-btn { white-space:nowrap; }
.mc-filter-results { position:relative; min-height:120px; }
.mc-filter-results.is-loading { opacity:.58; pointer-events:none; }
.mc-filter-results.is-loading::after {
    content:"";
    position:absolute;
    inset:0;
    display:block;
    min-height:120px;
    border-radius:20px;
    background:linear-gradient(90deg,rgba(255,255,255,.55),rgba(255,255,255,.86),rgba(255,255,255,.55));
    background-size:240% 100%;
    animation:mc-filter-shimmer 1.1s linear infinite;
    box-shadow:inset 0 0 0 1px rgba(23,105,224,.04);
}
.mc-filter-error {
    grid-column:1 / -1;
    display:grid;
    gap:7px;
    justify-items:center;
    padding:42px 20px;
    border:1px solid #f0d2d2;
    border-radius:22px;
    background:#fff7f7;
    color:#8f4040;
    text-align:center;
}
.mc-filter-error strong { font-size:14px; }
.mc-filter-error span { font-size:11px; color:#a66a6a; }
.mc-pagination { margin-top:22px; }
@keyframes mc-filter-shimmer {
    from { background-position:200% 0; }
    to { background-position:-40% 0; }
}
@media (max-width: 1100px) {
    .mc-filter-bar--advanced { grid-template-columns:minmax(240px,1.5fr) repeat(2,minmax(140px,1fr)) auto; }
    .mc-filter-search { grid-column:1/-1; }
    .mc-filter-actions { grid-column:1/-1; }
}
@media (max-width: 700px) {
    .mc-filter-toolbar { align-items:flex-start; flex-direction:column; }
    .mc-filter-bar--advanced { grid-template-columns:1fr; padding:14px; }
    .mc-filter-search,
    .mc-filter-actions { grid-column:auto; }
    .mc-filter-actions { flex-direction:column; }
    .mc-filter-actions .mc-btn { width:100%; }
}
@media (prefers-reduced-motion: reduce) {
    .mc-filter-results.is-loading::after { animation:none; }
}
