/* Messemanager – Hallenplan-Plugin
   ─────────────────────────────────────────────────────
   Theme-bestimmt für Schrift; Highlight-Farbe pro Messe (--mm-fp-highlight).
*/

.mm-fp {
    --mm-fp-highlight: #C80010;
    position: relative;
    width: 100%;
    border: 1px solid currentColor;
    overflow: hidden;
    background: #ffffff;
    box-sizing: border-box;
}
.mm-fp *, .mm-fp *::before, .mm-fp *::after { box-sizing: border-box; }

.mm-fp-warning {
    padding: .75rem 1rem;
    border: 1px solid currentColor;
}

/* ── Pan/Zoom-Viewport ───────────────────────────── */
.mm-fp__viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
}
.mm-fp__viewport.is-panning { cursor: grabbing; }

.mm-fp__svg-wrap {
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
    transition: transform .15s ease;
    will-change: transform;
}
.mm-fp__svg-wrap.is-dragging { transition: none; }
.mm-fp__svg-wrap > svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Premium-Logo-Overlay – HTML-Layer über dem SVG.
   Bleibt pixelgenau, weil Größe/Position via JS gesetzt werden, NICHT vom
   stage-Transform getragen werden.                                         */
.mm-fp__logos {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 4;
}
.mm-fp__logo {
    position: absolute;
    transform: translate(-50%, -50%);
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
    pointer-events: none;
}

/* ── Stand-Interaktion (Plugin markiert Stand-Elements mit `.mm-fp__stand`,
   funktioniert für beide CRM-SVG-Konventionen: Legacy `.stand` und neuer
   PDF-Overlay mit `[data-stand-id]`).                                    */
.mm-fp__svg-wrap .mm-fp__stand { cursor: pointer; transition: fill .15s, stroke .15s; }
.mm-fp__svg-wrap .mm-fp__stand.is-occupied { fill: rgba(0,0,0,.04); }
.mm-fp__svg-wrap .mm-fp__stand.is-hover,
.mm-fp__svg-wrap .mm-fp__stand:hover {
    fill: var(--mm-fp-highlight);
    fill-opacity: .35;
    stroke: var(--mm-fp-highlight);
    stroke-width: 2;
}
.mm-fp__svg-wrap .mm-fp__stand.is-active {
    fill: var(--mm-fp-highlight);
    fill-opacity: .55;
    stroke: var(--mm-fp-highlight);
    stroke-width: 3;
}

/* ── Controls oben rechts ────────────────────────── */
.mm-fp__controls {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 5;
    display: flex;
    gap: .25rem;
}
.mm-fp__btn {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid currentColor;
    background: #ffffff;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: 1.1rem;
    line-height: 1;
    border-radius: 4px;
}
.mm-fp__btn:hover { background: rgba(0,0,0,.05); }

/* ── Tooltip ──────────────────────────────────────── */
.mm-fp__tooltip {
    position: absolute;
    z-index: 10;
    min-width: 180px;
    max-width: 260px;
    background: #ffffff;
    color: inherit;
    border: 1px solid currentColor;
    padding: .5rem .75rem;
    font-size: .85rem;
    line-height: 1.35;
    pointer-events: auto;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.mm-fp__tooltip[hidden] { display: none; }
.mm-fp__tt-stand {
    display: inline-block;
    border: 1px solid var(--mm-fp-highlight);
    color: var(--mm-fp-highlight);
    padding: 0 .4rem;
    font-weight: 700;
    font-size: .75rem;
    margin-bottom: .25rem;
}
.mm-fp__tt-logo {
    display: block;
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: .25rem 0 .35rem;
}
.mm-fp__tt-company { display: block; font-weight: 700; margin-bottom: .15rem; }
.mm-fp__tt-meta    { display: block; font-size: .75rem; opacity: .8; margin-bottom: .35rem; }
.mm-fp__tt-link {
    display: inline-block;
    margin-top: .25rem;
    font-weight: 700;
    color: var(--mm-fp-highlight);
    text-decoration: none;
}
.mm-fp__tt-link:hover { text-decoration: underline; }
.mm-fp__tt-available {
    display: inline-block;
    background: rgba(0,0,0,.06);
    padding: 0 .4rem;
    font-size: .75rem;
}
