.filter-section {
    position: relative;
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    transition: all 0.3s ease-in-out;
    z-index: 100;
}
.filter-section.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.toggle-filter-btn {
    position: absolute;
    bottom: 4px;
    right: 10px;
    font-size: 0.9rem;
    padding: 0.25rem 0.4rem;
    line-height: 1;
    z-index: 1100;
    transition: transform 0.2s ease;
}
.toggle-filter-btn:hover {
    transform: scale(1.1);
}
#filterContent {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    max-height: 500px;
    opacity: 1;
}
.filter-section.collapsed #filterContent {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}
body.has-fixed-filter {
    padding-top: 90px;
}
.section-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}
.view-buttons {
    display: flex;
    gap: 0.2rem;
}

.view-buttons .btn {
    display: inline-flex;      /* already good */
    align-items: center;       /* vertical centering */
    justify-content: center;   /* horizontal centering */
/*    padding: 0.25rem 0.6rem;   /* equal top/bottom, left/right */
/*    line-height: 1;            /* avoid extra vertical space from line-height */
}