#apf-filter-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 10px 15px rgba(15, 23, 42, 0.25);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

#apf-filter-btn:hover,
#apf-filter-btn:focus-visible {
    background: #0f172a;
    box-shadow: 0 15px 25px rgba(15, 23, 42, 0.35);
    outline: none;
}

#apf-filter-btn:active {
    transform: translateY(1px);
    box-shadow: 0 8px 12px rgba(15, 23, 42, 0.25);
}

.apf-filter-icon svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
}

.apf-filter-text {
    line-height: 1;
}

@media (max-width: 768px) {
    #apf-filter-btn {
        right: 16px;
        bottom: 16px;
        padding: 10px 16px;
    }
}

#apf-sidebar {
    position: fixed;
    top: 0;
    left: -340px;
    width: 340px;
    height: 100%;
    background: #ffffff;
    z-index: 10000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04), 0 20px 40px rgba(15, 23, 42, 0.16);
}

#apf-sidebar.open {
    left: 0;
}

.apf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #111827;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 12px;
}

.apf-title {
    white-space: nowrap;
}

#apf-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
}

.apf-group {
    padding: 15px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.apf-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #111827;
}

.apf-group h4 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.apf-group input[type="checkbox"] {
    margin-right: 8px;
}

.apf-apply {
    width: calc(100% - 30px);
    margin: 15px;
    padding: 12px;
    background: #111827;
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
}

.apf-apply:hover,
.apf-apply:focus-visible {
    background: #0f172a;
    outline: none;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.28);
}

.apf-apply:active {
    transform: translateY(1px);
    box-shadow: 0 8px 12px rgba(15, 23, 42, 0.2);
}

@media (max-width: 768px) {
    #apf-sidebar {
        width: 100%;
        left: -100%;
    }
}

body.apf-lock {
    overflow: hidden;
}
