/* Floor Plan v2 - public map viewer */
.fp2-viewer {
    --fp2-bg: #eef0f2;
    --fp2-surface: #ffffff;
    --fp2-text: #1d1d1f;
    --fp2-muted: #6b7280;
    --fp2-border: #e3e6ea;
    --fp2-accent: #2563eb;
    --fp2-hit: #ff2d55;
    --fp2-shadow: 0 6px 24px rgba(15, 23, 42, .14);

    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    overflow: hidden;
    background: var(--fp2-bg);
    color: var(--fp2-text);
    font: 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    touch-action: none;
    user-select: none;
}

@media (prefers-color-scheme: dark) {
    .fp2-viewer:not(.fp2-light) {
        --fp2-surface: #1f2329;
        --fp2-text: #f1f3f5;
        --fp2-muted: #a0a7b1;
        --fp2-border: #343a42;
        --fp2-bg: #15181c;
    }
}

.fp2-stage, .fp2-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fp2-svg { display: block; cursor: grab; }
.fp2-panning .fp2-svg { cursor: grabbing; }

.fp2-clickable { cursor: pointer; }
.fp2-clickable:hover .fp2-shape { filter: brightness(.94); }
.fp2-has-hits .fp2-booth:not(.fp2-hit), .fp2-has-hits .fp2-space:not(.fp2-hit) { opacity: .35; }
.fp2-hit .fp2-shape { stroke: var(--fp2-hit); stroke-width: 3px; vector-effect: non-scaling-stroke; }
.fp2-booth-label { pointer-events: none; }

/* top bar + search */
.fp2-topbar {
    position: absolute; z-index: 5; top: 12px; left: 12px; right: 12px;
    display: flex; gap: 8px; max-width: 360px; /* same column as .fp2-panel (LEFT_COLUMN in viewer.js) */
}
.fp2-icon-btn, .fp2-search input, .fp2-chip, .fp2-zoom button {
    background: var(--fp2-surface); color: var(--fp2-text);
    border: 1px solid var(--fp2-border); box-shadow: var(--fp2-shadow);
}
.fp2-icon-btn { width: 44px; height: 44px; border-radius: 22px; font-size: 18px; cursor: pointer; flex: none; }
.fp2-search { flex: 1; }
.fp2-search input {
    width: 100%; height: 44px; border-radius: 22px; padding: 0 18px; font: inherit; outline: none;
}
.fp2-search input:focus { border-color: var(--fp2-accent); }

.fp2-chips {
    position: absolute; z-index: 4; top: 64px; left: 12px; right: 12px;
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
}
.fp2-chip {
    flex: none; height: 34px; padding: 0 14px; border-radius: 17px; font: inherit; font-weight: 500; cursor: pointer;
}
.fp2-chip span { color: var(--fp2-muted); margin-left: 4px; }

/* menu */
.fp2-menu {
    position: absolute; z-index: 8; top: 62px; left: 12px; width: 240px;
    background: var(--fp2-surface); border: 1px solid var(--fp2-border); border-radius: 14px;
    box-shadow: var(--fp2-shadow); padding: 8px; display: flex; flex-direction: column;
}
.fp2-menu[hidden] { display: none; }
.fp2-menu-title { font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--fp2-border); margin-bottom: 4px; }
.fp2-menu a, .fp2-menu button {
    text-align: left; padding: 10px; border-radius: 8px; color: var(--fp2-text); text-decoration: none;
    background: none; border: 0; font: inherit; cursor: pointer;
}
.fp2-menu a:hover, .fp2-menu button:hover { background: var(--fp2-bg); }

/* side / bottom panel */
.fp2-panel {
    position: absolute; z-index: 6; top: 110px; left: 12px; bottom: 12px; width: 360px;
    background: var(--fp2-surface); border: 1px solid var(--fp2-border); border-radius: 16px;
    box-shadow: var(--fp2-shadow); display: flex; flex-direction: column; user-select: text;
}
.fp2-panel[hidden] { display: none; }
.fp2-panel-close {
    position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 16px;
    background: var(--fp2-bg); color: var(--fp2-text); font-size: 20px; line-height: 1; cursor: pointer;
}
.fp2-panel-body { overflow-y: auto; padding: 18px 18px 22px; }
.fp2-panel h2 { font-size: 20px; margin: 0 40px 8px 0; line-height: 1.25; }
.fp2-panel h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--fp2-muted); margin: 16px 0 6px; }
.fp2-logo { max-width: 140px; max-height: 70px; object-fit: contain; display: block; margin-bottom: 10px; }
.fp2-meta { color: var(--fp2-muted); margin: 6px 0; }
.fp2-price { font-size: 18px; font-weight: 600; margin: 6px 0; }
.fp2-desc { margin: 10px 0; white-space: pre-line; }
.fp2-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.fp2-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 12px;
    background: var(--fp2-bg); border: 1px solid var(--fp2-border); color: var(--fp2-text); font: inherit; font-size: 12.5px;
}
.fp2-badge[style*="--c"]::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.fp2-link { cursor: pointer; }
.fp2-link:hover { border-color: var(--fp2-accent); }
.fp2-actions { display: flex; gap: 8px; margin: 8px 0; }
.fp2-actions button {
    border: 1px solid var(--fp2-border); background: var(--fp2-surface); color: var(--fp2-text);
    border-radius: 18px; padding: 6px 14px; font: inherit; cursor: pointer;
}
.fp2-actions button.on { border-color: #f5a623; color: #b8770b; }
.fp2-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.fp2-links a { color: var(--fp2-accent); text-decoration: none; word-break: break-all; }
.fp2-cta {
    display: block; text-align: center; margin-top: 8px; padding: 10px; border-radius: 10px;
    background: var(--fp2-accent); color: #fff; text-decoration: none; font-weight: 600;
}

.fp2-list { list-style: none; margin: 0; padding: 0; }
.fp2-list button {
    width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
    padding: 8px 6px; border: 0; border-bottom: 1px solid var(--fp2-border); background: none; color: inherit;
    font: inherit; cursor: pointer;
}
.fp2-list button:hover { background: var(--fp2-bg); }
.fp2-list img, .fp2-initial { width: 38px; height: 38px; border-radius: 8px; object-fit: contain; flex: none; background: var(--fp2-bg); }
.fp2-initial { display: grid; place-items: center; font-weight: 700; color: var(--fp2-muted); }
.fp2-list span:not(.fp2-initial) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fp2-list small { color: var(--fp2-muted); }
.fp2-list em { color: #16a34a; font-style: normal; }

/* zoom + legend */
.fp2-zoom { position: absolute; z-index: 5; right: 12px; bottom: 56px; display: flex; flex-direction: column; gap: 6px; }
.fp2-zoom button { width: 40px; height: 40px; border-radius: 20px; font-size: 18px; cursor: pointer; }
.fp2-legend {
    position: absolute; z-index: 4; right: 12px; bottom: 12px; display: flex; gap: 12px; flex-wrap: wrap;
    background: var(--fp2-surface); border: 1px solid var(--fp2-border); border-radius: 12px; padding: 6px 12px;
    box-shadow: var(--fp2-shadow); font-size: 12.5px;
}
.fp2-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fp2-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0,0,0,.15); }

.fp2-toast {
    position: absolute; z-index: 9; left: 50%; bottom: 24px; transform: translateX(-50%);
    background: #111; color: #fff; padding: 8px 16px; border-radius: 18px; font-size: 13px;
}

/* phones: panel becomes a bottom sheet */
@media (max-width: 720px) {
    .fp2-topbar { max-width: none; }
    .fp2-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 55%; border-radius: 18px 18px 0 0; }
    .fp2-zoom { bottom: 64px; }
    .fp2-legend { left: 12px; right: auto; }
}

/* decorations (cars on display spots, tables, logos) never block booth clicks */
.fp2-figure { pointer-events: none; }

/* depth look: raised bodies and sheen never take clicks */
.fp2-sides, .fp2-sheen { pointer-events: none; }

/* 3D view (view3d.js): the 2D stage and zoom buttons step aside */
.fp2-mode-3d .fp2-stage { visibility: hidden; }
.fp2-mode-3d .fp2-zoom button:not([data-act="toggle-3d"]) { display: none; }
.fp2-zoom .fp2-3d-toggle { font-size: 13px; font-weight: 700; }
.fp2-zoom .fp2-3d-toggle[aria-pressed="true"] { background: var(--fp2-accent); color: #fff; border-color: var(--fp2-accent); }

/* "Made with RSVP Host" badge (same as the event registration page); a direct child of the map, because the panel's chips share the class; the corner controls sit above it */
.fp2-viewer > .fp2-badge { position: absolute; z-index: 5; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
    background: #fff; color: #313a46; border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); font-size: .8rem; line-height: 1.2; text-decoration: none;
    transition: transform .15s, box-shadow .15s; }
.fp2-viewer > .fp2-badge:hover { color: #313a46; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.fp2-viewer > .fp2-badge img { border-radius: 6px; display: block; }
.fp2-with-badge .fp2-legend { bottom: 62px; }
.fp2-with-badge .fp2-zoom { bottom: 106px; }
.fp2-viewer.fp2-with-badge .fp2-3d-ctrl { bottom: 106px; }
@media (max-width: 720px) {
    .fp2-viewer > .fp2-badge { right: 10px; bottom: 10px; font-size: .72rem; }
    .fp2-with-badge .fp2-legend { bottom: 12px; }
    .fp2-with-badge .fp2-zoom { bottom: 64px; }
    .fp2-viewer.fp2-with-badge .fp2-3d-ctrl { bottom: 64px; }
}

/* credit line for map data: the 3D hint sits above it; on phones it has its own strip along the bottom and the corner controls move up */
.fp2-credit { position: absolute; z-index: 5; left: 12px; bottom: 6px; box-sizing: border-box; max-width: calc(100% - 215px); padding: 1px 7px; border-radius: 4px; background: rgba(255, 255, 255, .78); color: #334155; font-size: 10.5px; line-height: 1.25; pointer-events: none; }
.fp2-viewer.fp2-with-credit .fp2-3d-hint { bottom: 30px; }
@media (max-width: 720px) {
    .fp2-credit { left: 8px; bottom: 3px; max-width: calc(100% - 16px); }
    .fp2-with-credit > .fp2-badge { bottom: 34px; }
    .fp2-with-credit .fp2-legend { bottom: 36px; }
    .fp2-with-credit .fp2-zoom { bottom: 88px; }
    .fp2-viewer.fp2-with-credit .fp2-3d-ctrl { bottom: 88px; }
}

/* narrow phones: the legend no longer fits beside the badge, so it gets its own single row above it and the map buttons move up (same order as on desktop) */
@media (max-width: 560px) {
    .fp2-legend { box-sizing: border-box; max-width: calc(100% - 24px); flex-wrap: nowrap; gap: 8px; padding: 6px 10px; overflow-x: auto; scrollbar-width: none; font-size: 12px; }
    .fp2-legend span { flex: none; }
    .fp2-with-badge .fp2-legend { bottom: 54px; }
    .fp2-with-badge .fp2-zoom { bottom: 94px; }
    .fp2-viewer.fp2-with-badge .fp2-3d-ctrl { bottom: 94px; }
    .fp2-with-badge.fp2-with-credit .fp2-legend { bottom: 78px; }
    .fp2-with-badge.fp2-with-credit .fp2-zoom { bottom: 118px; }
    .fp2-viewer.fp2-with-badge.fp2-with-credit .fp2-3d-ctrl { bottom: 118px; }
}
