/* bm-mitarbeiter/assets/css/frontend.css
   blueMarketing – Mitarbeiter Cards
   ─────────────────────────────────────────────────────────────── */

/* ── CSS Custom Properties ────────────────────────────────────── */
:root {
    font-size: clamp(16px, -2.2857px + 0.9524vw, 22px) !important;
    --bm-primary: var(--primary, #09102b);
    --bm-primary-2: var(--primary-2, #1f3c8a);
    --bm-secondary: var(--secondary, #278e25);
    --bm-secondary-2: var(--secondary-2, #41a741);
    --bm-accent: color-mix(in srgb, var(--bm-primary) 70%, white 30%);
    --bm-text: var(--color-black, #1c1c1c);
    --bm-text-light: #5a5f7d;
    --bm-bg: var(--color-gray, #ebebee);
    --bm-card-bg: var(--color-white, #ffffff);
    --bm-border: #dbe3f0;
    --bm-radius: 0.75rem;
    --bm-radius-sm: 0.5rem;
    --bm-card-radius: 1rem;
    --bm-image-radius: 1rem;
    --bm-divider-size: 0.1875rem;
    --bm-icon-size: 1.2rem;
    --bm-card-media-size: clamp(10rem, 22vw, 12.5rem);
    --bm-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    --bm-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.12);
    --bm-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --bm-linkedin: #0077b5;
    --bm-linkedin-hover: #005582;
    --bm-facebook: #1877f2;
    --bm-facebook-hover: #0d5ec9;
    --bm-xing: #006567;
    --bm-xing-hover: #004f50;
    --bm-x: #111111;
    --bm-x-hover: #333333;
}

/* ── Utilities ────────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Filter Bar ───────────────────────────────────────────────── */
.bm-filter {
    margin-bottom: 0;
    padding: 1.2rem 1.4rem;
}

.bm-filter--with-spacing {
    margin-bottom: 2rem;
}

.bm-filter__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.bm-filter__inner--cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.bm-filter__inner--cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.bm-filter__inner--cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 53.75rem) {
    .bm-filter__inner--cols-3,
    .bm-filter__inner--cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 35rem) {
    .bm-filter__inner--cols-2,
    .bm-filter__inner--cols-3,
    .bm-filter__inner--cols-4 {
        grid-template-columns: 1fr;
    }
}

.bm-filter__field {
    flex: 1 1 12.5rem;
    min-width: 10rem;
}

.bm-filter__field--search {
    flex: 2 1 16.25rem;
}

.bm-filter__input,
.bm-filter__select {
    width: 100%;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    color: var(--bm-text);
    background: var(--bm-bg);
    border: 1px solid transparent;
    border-radius: var(--bm-radius-sm);
    outline: none;
    transition:
        border-color var(--bm-transition),
        box-shadow var(--bm-transition);
    appearance: none;
    -webkit-appearance: none;
}

.bm-filter__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%235a5f7d' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    padding-right: 2rem;
    cursor: pointer;
}

.bm-filter__input:focus,
.bm-filter__select:focus {
    border-color: var(--bm-primary-2);
    box-shadow: 0 0 0 0.1875rem color-mix(in srgb, var(--bm-primary-2) 16%, transparent);
    background: #fff;
}

/* Select-like checkbox dropdown (compact checkbox style inside dropdown) */
.bm-filter__select-like {
    position: relative;
}

.bm-filter__select-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    color: var(--bm-text);
    background: var(--bm-bg);
    border: 1px solid transparent;
    border-radius: var(--bm-radius-sm);
    outline: none;
    cursor: pointer;
}

.bm-filter__select-toggle[aria-expanded='true'] {
    border-color: var(--bm-primary-2);
    background: #fff;
    box-shadow: var(--bm-shadow);
}

.bm-filter__checkboxes-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    z-index: 60;
    background: var(--bm-card-bg);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    max-height: 18rem;
    overflow: auto;
    padding: 0.5rem;
}

.bm-filter__checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bm-filter__checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
}

.bm-filter__checkbox-label:hover {
    background: color-mix(in srgb, var(--bm-bg) 88%, #000 12%);
}

.bm-filter__checkbox-label--disabled {
    opacity: 0.6;
    cursor: default;
}

.bm-filter__select-text {
    text-align: left;
}

/* ── Card ─────────────────────────────────────────────────────── */
.bm-card {
    position: relative;
    background: var(--bm-card-bg);
    overflow: visible;
    box-shadow: var(--bm-shadow);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition:
        box-shadow var(--bm-transition),
        transform var(--bm-transition);
    padding: 2rem 2rem 2rem 2rem;
    border-radius: var(--bm-card-radius);
}

.bm-card:hover {
    box-shadow: var(--bm-shadow-hover);
    transform: translateY(-0.25rem);
}

/* Keep visual consistency with DIVI column style (.services-boxes). */
.bm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--bm-divider-size);
    background: linear-gradient(90deg, var(--bm-secondary-2), var(--bm-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bm-card:hover::before,
.bm-grid.services-boxes > .bm-card::before {
    transform: scaleX(1);
}

/* Hidden state for JS filter */
.bm-card--hidden {
    display: none;
}

/* ── Card Image ───────────────────────────────────────────────── */
.bm-card__image-wrap {
    position: relative;
    flex: 0 0 var(--bm-card-media-size);
    min-height: var(--bm-card-media-size);
    overflow: hidden;
    border-radius: var(--bm-image-radius);
    border: 1px solid var(--bm-primary-2);
}

.bm-card__avatar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.bm-card:hover .bm-card__avatar {
    transform: scale(1.04);
}

/* Placeholder (no thumbnail) */
.bm-card__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2.1rem, 5.6vw, 3.1rem);
    font-weight: 700;
    color: var(--bm-primary);
    letter-spacing: -0.04em;
    line-height: 1;
}

/* ── Right accent stripe (image/body divider) ─────────────────── */
.bm-card__image-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--bm-divider-size);
}

/* ── Card Body ────────────────────────────────────────────────── */
.bm-card__body {
    padding: 0 0 0 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.bm-card__name {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
    color: var(--bm-primary-2);
    line-height: 1.25;
}

.bm-card__position {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bm-secondary);
    margin: 0 0 0.35rem;
}

.bm-card__standort {
    font-size: 0.9rem;
    color: var(--bm-text-light);
    margin: 0 0 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.bm-card__beschreibung {
    font-size: 1rem;
    color: var(--bm-text-light);
    line-height: 1.55;
    margin: 0 0 1rem;
    flex: 1;
}

/* ── Kontakt Links ────────────────────────────────────────────── */
.bm-card__kontakt {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bm-border);
}

.bm-card__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.25rem;
}

.bm-card__link--social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    word-break: normal;
}

.bm-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    color: var(--bm-text-light);
    text-decoration: none;
    transition: color var(--bm-transition);
    word-break: break-all;
}

.bm-card__link:hover {
    color: var(--bm-primary-2);
}

.bm-card__link--social.bm-card__link--linkedin {
    color: var(--bm-linkedin);
}

.bm-card__link--linkedin:hover {
    color: var(--bm-linkedin-hover);
}

.bm-card__link--social.bm-card__link--facebook {
    color: var(--bm-facebook);
}

.bm-card__link--facebook:hover {
    color: var(--bm-facebook-hover);
}

.bm-card__link--social.bm-card__link--xing {
    color: var(--bm-xing);
}

.bm-card__link--xing:hover {
    color: var(--bm-xing-hover);
}

.bm-card__link--social.bm-card__link--x {
    color: var(--bm-x);
}

.bm-card__link--x:hover {
    color: var(--bm-x-hover);
}

/* ── Icons (inline SVG via CSS mask) ─────────────────────────── */
.bm-icon {
    display: inline-block;
    width: var(--bm-icon-size);
    height: var(--bm-icon-size);
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.bm-icon--email {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.bm-icon--phone {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1-9.4 0-17-7.6-17-17 0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1L6.6 10.8z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1-9.4 0-17-7.6-17-17 0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1L6.6 10.8z'/%3E%3C/svg%3E");
}

.bm-icon--linkedin {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z'/%3E%3C/svg%3E");
}

.bm-icon--location {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
}

.bm-icon--mobile {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H8C6.34 1 5 2.34 5 4v16c0 1.66 1.34 3 3 3h8c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3zm-2 20h-4v-1h4v1zm3.25-3H6.75V4h10.5v14z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H8C6.34 1 5 2.34 5 4v16c0 1.66 1.34 3 3 3h8c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3zm-2 20h-4v-1h4v1zm3.25-3H6.75V4h10.5v14z'/%3E%3C/svg%3E");
}

.bm-icon--xing {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.188 0h-3.025l-7.42 13.01L11.63 24h3.025l-3.887-10.99L18.188 0zm-13.5 4h-2.85l3.2 5.56L2.5 14h2.85l2.538-4.44L4.688 4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.188 0h-3.025l-7.42 13.01L11.63 24h3.025l-3.887-10.99L18.188 0zm-13.5 4h-2.85l3.2 5.56L2.5 14h2.85l2.538-4.44L4.688 4z'/%3E%3C/svg%3E");
}

.bm-icon--facebook {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95c5.05-.5 9-4.76 9-9.95z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95c5.05-.5 9-4.76 9-9.95z'/%3E%3C/svg%3E");
}

.bm-icon--x {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.244 2H21l-6.56 7.5L22.5 22h-6.3l-4.93-6.57L5.5 22H2.7l7.01-8.01L1.5 2h6.46l4.45 5.94L18.244 2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.244 2H21l-6.56 7.5L22.5 22h-6.3l-4.93-6.57L5.5 22H2.7l7.01-8.01L1.5 2h6.46l4.45 5.94L18.244 2z'/%3E%3C/svg%3E");
}

.bm-icon--website {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
}

.bm-icon--clock {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7z'/%3E%3C/svg%3E");
}

/* ── Grid (v2.0.0) ────────────────────────────────────────────── */
.bm-grid {
    display: grid;
    gap: 1.5rem;
}

.bm-grid--cols-1 {
    grid-template-columns: 1fr;
}
.bm-grid--cols-2 {
    grid-template-columns: repeat(2, 1fr);
}
.bm-grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
.bm-grid--cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 68.75rem) {
    .bm-grid--cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 53.75rem) {
    .bm-grid--cols-3,
    .bm-grid--cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 35rem) {
    .bm-grid--cols-2,
    .bm-grid--cols-3,
    .bm-grid--cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Loading state for grid (aria-busy driven) */
.bm-grid[aria-busy='true'] {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity var(--bm-transition);
}

/* ── Grid no-results ──────────────────────────────────────────── */
.bm-grid__no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--bm-text-light);
    padding: 2rem 1rem;
    font-size: 1rem;
}

/* ── Working hours ────────────────────────────────────────────── */
.bm-card__hours {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    cursor: default;
}

.bm-card__hours-today {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bm-secondary);
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--bm-secondary);
    border-radius: 2rem;
    white-space: nowrap;
    cursor: pointer;
}

.bm-card__hours-today--closed {
    color: var(--bm-text-light);
    border-color: var(--bm-border);
}

/* Tooltip wrapper */
.bm-card__hours-tooltip {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    min-width: 14rem;
    max-width: min(25rem, calc(100vw - 2rem));
    background: var(--bm-primary);
    color: #fff;
    border-radius: var(--bm-radius-sm);
    box-shadow: var(--bm-shadow);
    padding: 0.75rem;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--bm-transition);
    white-space: normal;
}

/* Show on hover (CSS) and via JS .is-visible class */
.bm-card__hours:hover .bm-card__hours-tooltip,
.bm-card__hours-tooltip.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Tooltip arrow */
.bm-card__hours-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 0.35rem solid transparent;
    border-top-color: var(--bm-primary);
}

/* Hours table inside tooltip */
.bm-hours-table {
    width: 100%;
    border-collapse: collapse;
}

.bm-hours-table td {
    padding: 0.2rem 0.4rem;
}

.bm-hours-table td:last-child {
    text-align: right;
}

.bm-hours-table__day {
    white-space: nowrap;
}

.bm-hours-table__time {
    white-space: nowrap;
}

.bm-hours-table__row--today td {
    font-weight: 700;
    color: var(--bm-secondary-2);
}

/* ── Custom fields ────────────────────────────────────────────── */
.bm-card__custom-fields {
    margin-top: 0.5rem;
}

.bm-card__custom-field {
    font-size: 0.9rem;
    color: var(--bm-text-light);
    margin: 0;
    line-height: 1.4;
}

.bm-card__custom-field strong {
    color: var(--bm-text);
    font-weight: 600;
    margin-right: 0.3rem;
}

.bm-card__custom-label {
    color: var(--bm-text);
    font-weight: 600;
    margin-right: 0.3rem;
}

/* ── Base Filter Badges (v2.1.0) ──────────────────────────────── */
.bm-filter__base-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--bm-border);
}

.bm-filter__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: color-mix(in srgb, var(--bm-secondary) 8%, white);
    border: 1px solid color-mix(in srgb, var(--bm-secondary) 20%, white);
    border-radius: 1.5rem;
    font-size: 0.85rem;
    color: var(--bm-secondary);
    font-weight: 600;
}

.bm-filter__badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    background: var(--bm-secondary);
    color: white;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.bm-filter__badge-label {
    font-weight: 700;
    color: var(--bm-secondary);
}

.bm-filter__badge-value {
    color: var(--bm-secondary);
}

/* ── Checkboxes (v2.1.0) ──────────────────────────────────────── */
.bm-filter--checkbox .bm-filter__field--checkboxes {
    flex: 1 1 16rem;
    min-width: 10rem;
}

.bm-filter__fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.bm-filter__legend {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bm-text);
    margin-bottom: 0.6rem;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.bm-filter__checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 12rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}

/* Scroll styling for checkbox container */
.bm-filter__checkboxes::-webkit-scrollbar {
    width: 0.4rem;
}
.bm-filter__checkboxes::-webkit-scrollbar-track {
    background: transparent;
}
.bm-filter__checkboxes::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--bm-primary-2) 30%, white);
    border-radius: 0.2rem;
}
.bm-filter__checkboxes::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--bm-primary-2) 50%, white);
}

.bm-filter__checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    user-select: none;
    border-radius: 0.3rem;
    transition:
        background-color var(--bm-transition),
        color var(--bm-transition);
}

.bm-filter__checkbox-label:hover {
    background-color: color-mix(in srgb, var(--bm-primary) 5%, white);
}

.bm-filter__checkbox-label--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: var(--bm-text-light);
}

.bm-filter__checkbox-label--disabled:hover {
    background-color: transparent;
}

.bm-filter__checkbox {
    cursor: pointer;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--bm-primary-2);
    flex-shrink: 0;
}

.bm-filter__checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.bm-filter__checkbox-text {
    font-size: 0.95rem;
    color: var(--bm-text);
    flex: 1;
    word-break: break-word;
}

.bm-filter__checkbox-label--disabled .bm-filter__checkbox-text {
    color: var(--bm-text-light);
}

/* ── Filter Style Classes ─────────────────────────────────────── */
.bm-filter--dropdown {
    /* Dropdown style is the default */
}

.bm-filter--checkbox .bm-filter__inner {
    align-items: flex-start;
}

/* Dedicated sorting control styles (v2.1.0) */
.bm-filter__field--orderby {
    flex: 0 1 14rem;
    min-width: 11rem;
}

.bm-filter__select--orderby {
    font-weight: 600;
    background-color: color-mix(in srgb, var(--bm-primary) 4%, var(--bm-bg));
    border-color: color-mix(in srgb, var(--bm-primary-2) 20%, transparent);
}

.bm-filter__select--orderby:focus {
    border-color: var(--bm-primary-2);
}

/* ── Responsive Adjustments ───────────────────────────────────── */
@media (max-width: 53.75rem) {
    .bm-filter__checkboxes {
        max-height: 10rem;
    }
}

@media (max-width: 35rem) {
    .bm-filter__base-badges {
        flex-direction: column;
        gap: 0.5rem;
    }

    .bm-filter__badge {
        width: 100%;
    }

    .bm-filter__checkboxes {
        max-height: 8rem;
    }

    .bm-filter__field--orderby {
        min-width: 100%;
    }
}

/* ── Loading State ─────────────────────────────────────────────– */
.bm-is-loading {
    opacity: 0.6;
    pointer-events: none;
}
