.filter-btn {
    width: 100%;
}

.filter-group {
    margin-bottom: 20px;
}

.clear-filters {
    width: 100%;
    padding: 8px;
    background: var(--color-surface);
    color: var(--color-text-muted);
    border: var(--border-width) solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-family: var(--font-body);
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}

.clear-filters:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-hover);
}

.filter-group label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: 5px;
    font-weight: 500;
}

.filter-group select {
    width: 100%;
    padding: 8px;
    border: var(--border-width) solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    background: var(--color-surface);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--focus-ring);
}

/* A boolean filter row (e.g. "only unnamed locations"): overrides the
   block/bold .filter-group label defaults for an inline checkbox + text. */
.filter-group .filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-weight: normal;
    color: var(--color-text-secondary);
    cursor: pointer;
    user-select: none;
}

.filter-group .filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.filter-group .filter-checkbox:hover span {
    color: var(--color-text);
}

.filter-group input[type="range"] {
    width: 100%;
    padding: 0;
    border: var(--border-width) solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
}

.filter-text-input {
    width: 100%;
    padding: 8px;
    border: var(--border-width) solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    background: var(--color-surface);
    color: var(--color-text);
}

.filter-text-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--focus-ring);
}

.sidebar-container {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 20px;
    height: fit-content;
    position: sticky;
    /* --navbar-height is published by nav.js (the bar's height varies by theme
       and with the pages strip toggled); the fallback approximates one row. */
    top: calc(var(--navbar-height, 64px) + 16px);
    box-shadow: var(--shadow-sm);
    max-height: calc(100vh - var(--navbar-height, 64px) - 36px);
    overflow-y: auto;
}

.sidebar-actions {
    position: static;
}

.sidebar h2 {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    margin: 0 0 20px 0;
    color: var(--color-text);
}

.sidebar h3 {
    font-size: var(--font-size-base);
    margin: 20px 0 10px 0;
    color: var(--color-text-secondary);
    font-weight: 600;
}