.calendar-jump-form {
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.align-date-btn {
    height: calc(1.5em + 0.75rem + 2px); /* matches .btn-sm height */
    min-height: 32px; /* fallback for browsers that render date inputs too short */
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-size: 1rem;
    line-height: 1.5;
}

.tag-filter-btn-lang {
    background-color: #0d6efd !important;
    padding: 0.375rem 0.75rem !important;
    border-color: #0d6efd;
}

.tag-filter-btn-tag {
    background-color: #7b00be !important;
    padding: 0.375rem 0.75rem !important;
    border-color: #7b00be;
}

.tag-filter-btn-custom {
    background-color: #fd750d !important;
    padding: 0.375rem 0.75rem !important;
    border-color: #fd750d;
}

.tags-filters {
    margin-top: 1rem;
}

.top-search-content {
    align-items: center;
}

.tags-filters-heading {
    text-align: center;
}

.tags-filter-content {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* Make tag filters display side by side */
.tags-filters-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: flex-start;
}

.tags-filters-content-item {
    
    margin-bottom: 1rem;
}

/* When there are 3 items, they will naturally distribute as 33% each due to flex: 1 1 auto */
/* The max-width: 50% ensures they don't exceed 50% when there are fewer items */

.tags-filters-content-item-heading {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Make buttons within each filter group display in a row */
.tags-filters-content-item .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Selected filter badges */
.selected-filter-badge {
    display: inline-flex;
    align-items: center;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    transition: background-color 0.15s ease-in-out;
}

/* Language filter badges - blue */
.selected-filter-badge[data-filter-type="languages"] {
    background-color: #0d6efd;
}

.selected-filter-badge[data-filter-type="languages"]:hover {
    background-color: #0b5ed7;
}

/* Tag filter badges - purple */
.selected-filter-badge[data-filter-type="tags"] {
    background-color: #7b00be;
}

.selected-filter-badge[data-filter-type="tags"]:hover {
    background-color: #6a00a8;
}

/* Custom tag filter badges - orange */
.selected-filter-badge[data-filter-type="customTags"] {
    background-color: #fd750d;
}

.selected-filter-badge[data-filter-type="customTags"]:hover {
    background-color: #e66a0c;
}

.selected-filter-badge .btn-close {
    font-size: 0.75rem;
    padding: 0.125rem;
    margin-left: 0.5rem;
    background: none;
    border: none;
    color: white;
    opacity: 0.8;
    transition: opacity 0.15s ease-in-out;
}

.selected-filter-badge .btn-close:hover {
    opacity: 1;
}

/* Active state for filter buttons */
.tag-filter-btn-lang.active,
.tag-filter-btn-tag.active,
.tag-filter-btn-custom.active {
    position: relative;
    box-shadow: inset 0 0 0 2px white;
    font-weight: 600;
}

.tag-filter-btn-lang.active::after,
.tag-filter-btn-tag.active::after,
.tag-filter-btn-custom.active::after {
    content: "✓";
    position: absolute;
    top: 0.125rem;
    right: 0.125rem;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Selected filters container positioning */
.selected-filters {
    position: relative;
    min-height: 100px;
}

.selected-filters-content {
    position: relative;
    min-height: 60px;
}

/* Reset filters button positioning and styling */
.reset-filters {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 10;
}

.selected-filters-content-item {
    margin-bottom: 1.5rem;
}