/* ════════════════════════════════════════
   ARMADA MOSCOW FILTER  v2.0
   Тёмная схема: #1A202C фон, #2B6CB0 акцент
   ════════════════════════════════════════ */

/* ── Обёртка ── */
.amf-wrap {
    background: linear-gradient(135deg, #1e2738 0%, #1a2035 100%);
    border: 1px solid rgba(43, 108, 176, 0.22);
    border-radius: 14px;
    padding: 22px 24px 18px;
    margin: 0 0 28px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s;
}

.amf-wrap.amf-active {
    border-color: rgba(43, 108, 176, 0.45);
    box-shadow: 0 4px 24px rgba(43, 108, 176, 0.12);
}

/* ── Сетка ── */
.amf-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px 14px;
    align-items: end;
}

/* ── Поле ── */
.amf-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.amf-field--actions {
    min-width: 150px;
}

/* ── Метка ── */
.amf-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: #4a5568;
    line-height: 1;
}

.amf-label--hidden {
    visibility: hidden;
}

/* ── Select ── */
.amf-select {
    width: 100%;
    height: 40px;
    padding: 0 32px 0 11px;
    background: #252f42;
    color: #cbd5e0;
    border: 1px solid rgba(43, 108, 176, 0.28);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    transition: border-color 0.18s, box-shadow 0.18s, background-color 0.18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amf-select:hover {
    border-color: rgba(43, 108, 176, 0.55);
    background-color: #2a3548;
}

.amf-select:focus {
    outline: none;
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.18);
    background-color: #2a3548;
}

.amf-select option {
    background: #252f42;
    color: #cbd5e0;
    padding: 4px 8px;
}

/* ── Кнопки ── */
.amf-btns {
    display: flex;
    gap: 7px;
}

.amf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    height: 40px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.amf-btn--submit {
    background: #2b6cb0;
    color: #fff;
    box-shadow: 0 3px 12px rgba(43, 108, 176, 0.38);
    flex-shrink: 0;
}

.amf-btn--submit:hover {
    background: #215387;
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(43, 108, 176, 0.48);
    color: #fff;
}

.amf-btn--submit svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.amf-btn--reset {
    background: transparent;
    color: #4a5568;
    border: 1px solid rgba(74, 85, 104, 0.35);
    font-size: 12px;
    padding: 0 12px;
}

.amf-btn--reset:hover {
    background: rgba(74, 85, 104, 0.1);
    color: #718096;
    border-color: rgba(74, 85, 104, 0.6);
}

/* ── Теги активных фильтров ── */
.amf-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(43, 108, 176, 0.1);
}

.amf-tags-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #2d3748;
    font-weight: 700;
}

.amf-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(43, 108, 176, 0.12);
    border: 1px solid rgba(43, 108, 176, 0.3);
    border-radius: 20px;
    padding: 3px 4px 3px 10px;
}

.amf-tag-text {
    font-size: 12px;
    color: #90cdf4;
    font-weight: 500;
    line-height: 1.2;
}

.amf-tag-x {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.amf-tag-x:hover {
    background: rgba(229, 62, 62, 0.25);
    color: #fc8181;
}

/* ── Адаптив ── */
@media (max-width: 1100px) {
    .amf-row {
        grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    }
}

@media (max-width: 768px) {
    .amf-wrap {
        padding: 16px 14px 12px;
        border-radius: 10px;
    }
    .amf-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .amf-field--actions {
        grid-column: 1 / -1;
    }
    .amf-label--hidden { display: none; }
    .amf-btns { width: 100%; }
    .amf-btn--submit { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
    .amf-row { grid-template-columns: 1fr; }
}
