/* Brøns Maskinmenu - mega menu-panel */

.bmm-panel {
    --bmm-accent: #FFB800;
    --bmm-dark: #0a0a0a;

    position: absolute;
    top: 100%;
    left: 0;              /* JS flytter panelet, så det holder sig inden for skærmen */
    transform: translateY(6px);
    z-index: 100000;   /* over Elementors sektioner og kortenes badges */

    display: none;
    min-width: min(1100px, 94vw);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .16), 0 2px 6px rgba(0, 0, 0, .06);
    border-top: 4px solid var(--bmm-accent);
    padding: 26px 30px;
    text-align: left;
}

/* Den gamle dropdown vises ikke, når panelet er monteret */
.bmm-has-panel > ul.sub-menu,
.bmm-has-panel > .elementskit-dropdown,
.bmm-has-panel > .sub-menu { display: none !important; }

.bmm-has-panel { position: relative; }
.bmm-has-panel.bmm-open > .bmm-panel { display: block; }

.bmm-panel-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 26px 34px;
}

.bmm-col-title {
    margin: 0 0 12px;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #6b7280;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.bmm-list { list-style: none; margin: 0; padding: 0; }
.bmm-list li { margin: 0; }

.bmm-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    margin-left: -8px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--bmm-dark);
    font-size: .93rem;
    font-weight: 500;
    line-height: 1.25;
    transition: background .15s, color .15s;
}
.bmm-list a:hover,
.bmm-list a:focus-visible {
    background: #fffbeb;
    color: var(--bmm-dark);
    outline: none;
}
.bmm-list a:focus-visible { box-shadow: 0 0 0 2px var(--bmm-accent); }

.bmm-thumb {
    flex: none;
    width: 46px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f0;
    border-radius: 6px;
    overflow: hidden;
}
.bmm-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.bmm-label { flex: 1; }

.bmm-shortcut a { font-weight: 700; }
.bmm-badge {
    flex: none;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: var(--bmm-accent);
    color: var(--bmm-dark);
    border-radius: 999px;
    padding: 2px 8px;
}

/* Mobil: panelet skal ikke svæve, det skal folde ud i menuen */
@media (max-width: 1024px) {
    .bmm-panel {
        position: static;
        left: auto !important;
        transform: none;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        padding: 12px 0 4px;
    }
    .bmm-panel-inner { grid-template-columns: 1fr; gap: 18px; }
    .bmm-col-title { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .bmm-list a { transition: none; }
}
