/* ── Info bar (bottom of map) ──────────────────────────────────────── */
.info-bar {
    position: fixed;
    bottom: 0;
    left: var(--panel-w);
    right: 0;
    min-height: var(--bar-h);
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 900;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 6px 16px;
    gap: 4px 12px;
    box-shadow: 0 -2px 8px rgba(0,0,0,.3);
    transition: left var(--transition);
}
/* When panel is collapsed, info bar takes full width */
.panel.collapsed ~ .info-bar { left: 0; }

.info-content {
    font-size: 12px;
    color: var(--text-dim);
    flex: 1;
    min-width: 0;
    line-height: 1.8;
}
.info-content .info-item {
    display: inline-block;
    white-space: nowrap;
}
.info-content .info-item + .info-item::before {
    content: '|';
    margin: 0 6px;
    color: var(--border);
}
.info-content .info-label {
    color: var(--text-dim);
}
.info-content .info-value {
    color: var(--text);
    font-weight: 500;
}

/* ── Screenshot mode: larger fonts ─────────────────────────────────── */
body.screenshot .info-content { font-size: 22px; }

/* ── Embed mode: hide chrome, keep map + info bar ─────────────────── */
body.embed #hamburger-btn             { display: none; }
body.embed #panel                     { display: none; }
body.embed #playback-controls         { display: none !important; }
body.embed .maplibregl-ctrl-top-right { display: none; }
body.embed [data-field="anim-time"]   { display: none !important; }

/* Embed play/stop FAB — sits in the status bar, left of the NextPort logo */
.embed-play-fab {
    display: none;
    position: fixed;
    bottom: 9px;
    right: 50px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: background 0.15s;
}
.embed-play-fab:hover { background: rgba(0, 50, 100, 0.85); }
.embed-play-fab svg   { display: block; }

body.embed .embed-play-fab:not(.hidden) { display: flex; }

/* ── Narrow viewport: vessel + period only, playback on second row ── */
@media (max-width: 960px) {
    .info-content .info-item[data-field="extra"] { display: none; }
    .info-content .info-item[data-field="extra"]::before { display: none; }
    .info-content {
        flex-basis: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
