/* Map tab on my_conference_page.html and conference_page.html (.vm-public) (js/venue-map.js):
   the venue's floor plan, where you are, where your next plan is, and turn-by-turn directions
   between them. Everything is scoped under .vm so the page's own .btn / .card / .pill / .toast
   rules stay out of it. */

.vm {
    --vm-teal: #11a191;
    --vm-teal-dark: #0b7f73;
    --vm-teal-deep: #00695c;
    --vm-teal-50: #e9f6f4;
    --vm-ink: #0f2a2a;
    --vm-text: #2f3f3f;
    --vm-muted: #6b7f7d;
    --vm-line: #e4ecea;
    --vm-edge: rgba(0, 150, 136, .13);
    --vm-red: #e5484d;
    --vm-amber: #d98a00;
    --vm-green: #22a35a;
    --vm-grad: linear-gradient(135deg, #14a998 0%, #0b8679 100%);
    --vm-glass: rgba(255, 255, 255, .86);
    --vm-shadow: 0 1px 2px rgba(16, 42, 40, .04), 0 12px 32px rgba(16, 42, 40, .07);
    --vm-float: 0 1px 2px rgba(16, 42, 40, .06), 0 6px 18px rgba(16, 42, 40, .10);
    --vm-h: clamp(560px, calc(100vh - 420px), 880px);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--vm-text);
    -webkit-font-smoothing: antialiased;
}
.vm *, .vm *::before, .vm *::after { box-sizing: border-box; }
.vm [hidden] { display: none !important; }
:where(.vm) button { font: inherit; cursor: pointer; }
:where(.vm) button:disabled { cursor: default; }
.vm button { min-height: 0; }
.vm svg { flex: none; }
.vm h3, .vm h4, .vm h5 { flex: none; }

/* My Map: the pane sits on the hero card's column, like My Schedule, and grows with its content */
@media screen and (min-width: 769px) {
    #map-tab { height: auto; padding-bottom: 28px; }
    #map-tab > .vm:not(.vm-public) { width: var(--mc-column); margin-left: 280px; }
    /* The pane box is 1400px wide from 280px left of the column, so the column overhangs it */
    #map-tab.active,
    .tab-content-container:has(> #map-tab.active) { overflow: visible; }

    /* Conference page (public): spans the header card like the Exhibitors tab */
    #map-tab:has(> .vm-public) { padding-top: 16px; box-sizing: border-box; }
    #map-tab > .vm-public { width: calc(var(--header-card-width) - 32px); margin-left: -284px; /* the pane starts 300px inside the card */ }
}

/* ---- Layout: one card, the map on the left and a scrolling panel on the right ---- */
.vm-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) 384px; grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "map search" "map panel"; height: var(--vm-h);
    background: #fff; border: 1px solid var(--vm-edge); border-radius: 22px; box-shadow: var(--vm-shadow); overflow: hidden;
}
.vm-grid > .vm-map { grid-area: map; }
.vm-panel { grid-area: panel; }

/* ---- Room search ---- */
.vm-search { grid-area: search; position: relative; z-index: 20; padding: 16px 18px 14px; background: #fff; border-left: 1px solid var(--vm-line); border-bottom: 1px solid var(--vm-line); }
.vm-sr-box {
    display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 14px; border-radius: 13px; cursor: text;
    background: #f3f7f6; border: 1px solid transparent; color: #7b8e8c; transition: background .15s, border-color .15s, box-shadow .15s;
}
.vm-sr-box:hover { background: #eef4f3; }
.vm-sr-box:focus-within { background: #fff; border-color: rgba(17, 161, 145, .55); box-shadow: 0 0 0 4px rgba(17, 161, 145, .12); color: var(--vm-teal-dark); }
.vm-sr-in {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0;
    font: inherit; font-size: 14px; font-weight: 500; color: var(--vm-ink); letter-spacing: -.005em;
}
.vm-sr-in::placeholder { color: #8a9c9a; font-weight: 400; }
.vm-sr-x { width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--vm-muted); font-size: 19px; line-height: 1; padding: 0; flex: none; }
.vm-sr-x:hover { background: #e6efed; color: var(--vm-ink); }
.vm-sr-list {
    position: absolute; left: 12px; right: 12px; top: calc(100% - 6px); margin: 0; padding: 6px; list-style: none;
    max-height: min(420px, calc(var(--vm-h) - 110px)); overflow-y: auto; overscroll-behavior: contain;
    background: #fff; border: 1px solid rgba(15, 42, 42, .08); border-radius: 16px; box-shadow: 0 18px 48px rgba(15, 42, 42, .18);
    scrollbar-width: thin; scrollbar-color: #d3e1de transparent; animation: vm-popIn .16s ease;
}
.vm-sr-h { padding: 10px 10px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #557370; }
.vm-sr-h:first-child { padding-top: 6px; }
.vm-sr-it { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 11px; cursor: pointer; }
.vm-sr-it:hover, .vm-sr-it.is-active { background: var(--vm-teal-50); }
.vm-sr-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #f1f6f5; color: var(--vm-teal-dark); }
.vm-sr-ic svg { width: 16px; height: 16px; }
.vm-sr-it.is-active .vm-sr-ic { background: #fff; }
.vm-sr-tx { flex: 1; min-width: 0; }
.vm-sr-tx b { display: block; font-size: 13.5px; font-weight: 600; color: var(--vm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-sr-tx b mark { background: none; color: var(--vm-teal-dark); }
.vm-sr-tx small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--vm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-sr-it em { flex: none; font-style: normal; font-size: 11px; font-weight: 600; color: var(--vm-muted); font-variant-numeric: tabular-nums; }
.vm-sr-it em.is-now { color: #b4232a; background: #fde7e8; padding: 2px 8px; border-radius: 999px; }
.vm-sr-none { padding: 14px 12px; font-size: 13px; color: var(--vm-muted); }

/* ---- Sessions and people in the search (js/venue-map.js, "Search: rooms, sessions and people") ---- */
.vm-sr-tip { display: flex; align-items: center; gap: 8px; margin: 2px 2px 4px; padding: 9px 10px; border-radius: 11px; background: #f4f8f7; font-size: 12px; color: var(--vm-muted); line-height: 1.35; }
.vm-sr-tip svg { width: 14px; height: 14px; color: var(--vm-teal); }
.vm-sr-tx small mark { background: none; color: var(--vm-teal-dark); font-weight: 600; }
.vm-sr-it em.is-past { color: #9aaba9; font-weight: 500; }
.vm-sr-it.is-off .vm-sr-ic { color: #8fa3a0; background: #f3f5f5; }
/* Sessions: titles are long, so two lines each for the title and its when and where */
.vm-sr-it.is-session { align-items: flex-start; }
.vm-sr-it.is-session .vm-sr-ic { margin-top: 1px; }
.vm-sr-it.is-session em { margin-top: 2px; }
.vm-sr-it.is-session .vm-sr-tx b,
.vm-sr-it.is-session .vm-sr-tx small { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.35; }
.vm-sr-it.is-session .vm-sr-tx small { margin-top: 2px; }
/* People: a photo, or initials on a colour of their own */
.vm-sr-av {
    position: relative; width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
    background: hsl(var(--av-h, 170) 46% 92%); color: hsl(var(--av-h, 170) 42% 30%); font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
}
.vm-sr-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vm-sr-av.is-big { width: 46px; height: 46px; font-size: 15px; }
.vm-sr-go { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--vm-teal); opacity: .8; }
.vm-sr-go svg { width: 14px; height: 14px; }
.vm-sr-it.is-active .vm-sr-go { opacity: 1; }
.vm-sr-more { justify-content: center; padding: 9px 10px; font-size: 12.5px; font-weight: 600; color: var(--vm-teal-dark); }
.vm-sr-load { display: flex; align-items: center; gap: 9px; padding: 10px 12px; font-size: 12px; color: var(--vm-muted); }
.vm-spin { width: 13px; height: 13px; flex: none; border-radius: 50%; border: 2px solid #d3e6e2; border-top-color: var(--vm-teal); animation: vm-spin .8s linear infinite; }
@keyframes vm-spin { to { transform: rotate(360deg); } }
.vm-sr-hint {
    display: flex; align-items: center; gap: 10px; margin: 6px 2px 2px; padding: 10px 10px 10px 12px; border-radius: 12px;
    background: linear-gradient(135deg, #f0faf8, #e6f5f2); font-size: 12px; line-height: 1.4; color: var(--vm-text);
}
.vm-sr-hint span { flex: 1; min-width: 0; }
.vm-sr-signin { flex: none; border: 0; border-radius: 999px; padding: 7px 13px; background: var(--vm-grad); color: #fff; font-size: 12px; font-weight: 600; }
/* One person: back, who they are, then where to find them */
.vm-sr-back { gap: 6px; padding: 7px 10px; font-size: 12.5px; font-weight: 600; color: var(--vm-teal-dark); }
.vm-sr-back svg { width: 14px; height: 14px; }
.vm-sr-who { display: flex; align-items: center; gap: 12px; padding: 8px 10px 10px; }
.vm-sr-who .vm-sr-tx b { font-size: 15px; white-space: normal; }
.vm-sr-who .vm-sr-tx small { white-space: normal; }
.vm-sr-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.vm-sr-tags span { padding: 2px 8px; border-radius: 999px; background: var(--vm-teal-50); color: var(--vm-teal-dark); font-size: 10.5px; font-weight: 600; }
.vm-sr-empty { padding: 4px 12px 10px; font-size: 12.5px; line-height: 1.5; color: var(--vm-muted); }
.vm-sr-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 8px 6px; margin-top: 4px; border-top: 1px solid var(--vm-line); }
.vm-sr-acts .vm-btn { flex: 1 1 auto; text-decoration: none; }
.vm-sr-acts .vm-btn svg { width: 15px; height: 15px; }
.vm-room.is-found rect { stroke: var(--vm-teal); stroke-width: 3; animation: vm-found 1.2s ease-in-out 2; }
@keyframes vm-found { 50% { fill: #cdeee7; } }

.vm-panel {
    display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    border-left: 1px solid var(--vm-line); background: #fafcfc;
    scrollbar-width: thin; scrollbar-color: #d3e1de transparent;
}
.vm-panel::-webkit-scrollbar { width: 8px; }
.vm-panel::-webkit-scrollbar-thumb { background: #d3e1de; border-radius: 8px; border: 2px solid #fafcfc; }
.vm-card { padding: 20px 22px; }
.vm-card + .vm-card { border-top: 1px solid var(--vm-line); }
.vm-next { background: #fff; padding: 22px 22px 20px; }
.vm-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; min-height: 28px; }
.vm-card-h h4 { margin: 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #557370; font-weight: 700; }
.vm-card-h > span { font-size: 12px; color: var(--vm-muted); font-variant-numeric: tabular-nums; }
.vm-eyebrow {
    display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: .14em; font-weight: 700;
    color: var(--vm-teal-dark); text-transform: uppercase;
}
.vm-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--vm-teal); box-shadow: 0 0 0 3px rgba(17, 161, 145, .16); }

.vm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px;
    padding: 10px 16px; font-weight: 600; font-size: 13px; border: 1px solid transparent; line-height: 1.2; letter-spacing: -.005em;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s; white-space: nowrap;
}
.vm-btn:active { transform: translateY(1px); }
.vm-btn:focus-visible { outline: 2px solid var(--vm-teal); outline-offset: 2px; }
.vm-btn.is-primary { background: var(--vm-grad); color: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 8px 20px rgba(17, 161, 145, .26), inset 0 1px 0 rgba(255, 255, 255, .16); }
.vm-btn.is-primary:hover { background: linear-gradient(135deg, #0f9584 0%, #00695c 100%); box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 10px 24px rgba(0, 150, 136, .32), inset 0 1px 0 rgba(255, 255, 255, .16); }
.vm-btn.is-primary:disabled { background: #b5d6d1; box-shadow: none; }
.vm-btn.is-ghost { background: #fff; border-color: var(--vm-line); color: var(--vm-ink); box-shadow: 0 1px 2px rgba(16, 42, 40, .04); }
.vm-btn.is-ghost:hover { border-color: rgba(17, 161, 145, .5); color: var(--vm-teal-dark); background: #fbfefd; }
.vm-btn.is-ghost.is-on { border-color: var(--vm-teal); background: var(--vm-teal-50); color: var(--vm-teal-dark); }
.vm-btn.is-ghost svg { color: var(--vm-teal); }
.vm-btn.is-sm { padding: 9px 12px; font-size: 12.5px; border-radius: 11px; }
.vm-btn.is-big { padding: 13px 18px; font-size: 14px; border-radius: 14px; flex: 1; }
/* A trip from My Schedule: the one tap left to see it */
.vm-btn.is-primary.is-attn { animation: vm-startAttn 1.5s ease-in-out 3; }
@keyframes vm-startAttn { 50% { box-shadow: 0 0 0 6px rgba(17, 161, 145, .22), 0 8px 20px rgba(17, 161, 145, .26); } }

/* ---- Map ---- */
.vm-map {
    position: relative; height: var(--vm-h); border-radius: 22px; overflow: hidden;
    border: 1px solid var(--vm-edge); box-shadow: var(--vm-shadow);
    background: radial-gradient(120% 90% at 30% 0%, #f7fbfa 0%, #ebf2f0 75%);
    touch-action: none; user-select: none; -webkit-user-select: none;
}
.vm-grid > .vm-map { height: auto; border: 0; border-radius: 21px 0 0 21px; box-shadow: none; }
/* The drawing keeps one size and the camera moves it (js/venue-map.js applyCam) */
.vm-view { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; }
.vm-view.is-dragging { cursor: grabbing; }
.vm-map.is-here .vm-view { cursor: crosshair; }
.vm-svg { position: absolute; left: 0; top: 0; display: block; transform-origin: 0 0; overflow: visible; }
/* Looping animations would redraw the map under the finger */
.vm-view.is-gesture .vm-svg * { animation-play-state: paused !important; }
.vm-map.is-here::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    box-shadow: inset 0 0 0 3px var(--vm-teal), inset 0 0 40px rgba(17, 161, 145, .25);
}
.vm-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--vm-muted); font-size: 13px; letter-spacing: .01em; }
/* Until the camera is placed (and the plans are in), only the loading line shows */
.vm-map.is-booting > :not(.vm-loading) { visibility: hidden; }
.vm-map:not(.is-booting) > .vm-loading { display: none; }
.vm-map > .vm-view { transition: opacity .25s ease; }
.vm-map.is-booting > .vm-view { opacity: 0; }

.vm-floor { transition: opacity .55s ease, transform .75s cubic-bezier(.2, .8, .2, 1), visibility 0s; transform-box: view-box; }
/* Hidden once faded out, so the other floors aren't drawn at all */
.vm-floor.is-off { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .55s ease, transform .75s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .75s; }
.vm-floor.is-off.is-above { transform: scale(1.1); }
.vm-floor.is-off.is-below { transform: scale(.9); }
.vm-bldg { fill: #fbfdfc; stroke: #c6d7d3; stroke-width: 2; }
.vm-bldg-sh { fill: rgba(15, 42, 42, .055); }
.vm-water { fill: #d3ebf4; stroke: #b7dcea; stroke-width: 1.5; }
.vm-road { fill: none; stroke: #e9ece8; stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; }
.vm-tree { fill: #a8d49b; }
.vm-gap { stroke: #f0e5d1; stroke-width: 5; }
.vm-corr { stroke: #e6efed; stroke-width: 40; stroke-linecap: round; fill: none; }
.vm-corr.is-outdoor { stroke: #f0e5d1; stroke-width: 26; }
.vm-corr.is-footpath { stroke: #ebe0cc; stroke-width: 12; }
.vm-lawn { fill: #e6f2df; stroke: #d2e7c8; stroke-width: 1.5; }
.vm-awning { stroke: #e2d2b4; stroke-width: 2; stroke-dasharray: 3 7; fill: none; }
.vm-area-label { font-size: 10.5px; letter-spacing: .14em; fill: #8aa19d; font-weight: 700; text-anchor: middle; pointer-events: none; }
.vm-bldg-label { font-size: 12px; letter-spacing: .16em; fill: #6b8580; font-weight: 800; text-anchor: middle; pointer-events: none; }
.vm-water-label { font-size: 11px; letter-spacing: .2em; fill: #6aa7bd; font-weight: 700; text-anchor: middle; pointer-events: none; font-style: italic; }
.vm-room { cursor: pointer; }
.vm-room rect { fill: #fff; stroke: #d3e1de; stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.vm-room:hover rect { stroke: var(--vm-teal); }
.vm-room text { font-size: 15px; font-weight: 600; fill: #2b4040; text-anchor: middle; pointer-events: none; }
.vm-room text.is-sub { font-size: 11px; font-weight: 500; fill: #7b8e8c; }
.vm-room.is-amenity rect { fill: #f2f6f5; stroke-dasharray: 4 3; }
.vm-room.is-amenity text { font-size: 11.5px; fill: #5d7471; }
.vm-room.is-small text { font-size: 12px; }
.vm-room.is-lounge rect { fill: #f7faf2; stroke: #dfe8d6; }
.vm-room.is-outdoor rect { fill: #dcefd4; stroke: #b6dbab; }
.vm-room.is-outdoor text.is-sub { fill: #5f8f55; }
.vm-room.is-dest rect { fill: #e3f6f2; stroke: var(--vm-teal); stroke-width: 2.5; animation: vm-destGlow 1.8s ease-in-out infinite; }
.vm-room.is-dest text { fill: var(--vm-teal-dark); }
@keyframes vm-destGlow { 50% { fill: #c6ede5; } }
.vm-room.is-origin rect { stroke: #86aaa4; stroke-dasharray: 6 4; stroke-width: 2; }
/* Places sit over drawn buildings and halls, so they stay see-through */
.vm-room.is-place rect { fill: rgba(17, 161, 145, 0); stroke: none; }
.vm-room.is-place:hover rect { fill: rgba(17, 161, 145, .05); }
.vm-room.is-place.is-origin rect { stroke: #86aaa4; stroke-dasharray: 6 4; stroke-width: 2; }
.vm-room.is-place.is-dest rect { fill: rgba(17, 161, 145, .1); stroke: var(--vm-teal); stroke-width: 2.5; stroke-dasharray: 8 6; animation: vm-placeGlow 1.8s ease-in-out infinite; }
.vm-room.is-place.is-found rect { stroke: var(--vm-teal); stroke-width: 3; animation: vm-placeFound 1.2s ease-in-out 2; }
@keyframes vm-placeGlow { 50% { fill: rgba(17, 161, 145, .2); } }
@keyframes vm-placeFound { 50% { fill: rgba(17, 161, 145, .18); } }
.vm-live { opacity: 0; transition: opacity .3s; pointer-events: none; }
.vm-live.is-on { opacity: 1; }
.vm-live .vm-core { fill: var(--vm-red); }
.vm-live .vm-ring { fill: none; stroke: var(--vm-red); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: vm-pulse 1.8s ease-out infinite; }
.vm-badge-bg { fill: #fff; stroke: #cfe0dc; stroke-width: 1.5; }
.vm-badge-ic { color: var(--vm-teal-dark); pointer-events: none; }
.vm-cp { pointer-events: none; }
.vm-cp-bg { fill: #0f2a2a; }
.vm-cp-px { fill: #fff; }

.vm-route-walked { fill: none; stroke: #93aea9; stroke-width: 5; stroke-dasharray: 1 10; stroke-linecap: round; opacity: .8; }
.vm-route-glow { fill: none; stroke: var(--vm-teal); stroke-width: 22; stroke-opacity: .14; stroke-linecap: round; stroke-linejoin: round; }
.vm-route-main { fill: none; stroke: var(--vm-teal); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.vm-route-flow { fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 1 22; animation: vm-flow .9s linear infinite; transition: opacity .4s; }
.vm-route-flow.is-hide { opacity: 0; }
@keyframes vm-flow { from { stroke-dashoffset: 23; } to { stroke-dashoffset: 0; } }
.vm-route.is-swap { animation: vm-swapIn .6s ease; }
@keyframes vm-swapIn { from { opacity: 0; } }

.vm-u-halo { fill: rgba(17, 161, 145, .12); stroke: rgba(17, 161, 145, .35); stroke-width: 1.5; }
.vm-u-pulse { fill: rgba(17, 161, 145, .35); transform-box: fill-box; transform-origin: center; animation: vm-pulse 2.2s ease-out infinite; }
.vm-u-dot { fill: #1aa898; stroke: #fff; stroke-width: 4.5; filter: url(#vm-dshadow); }
@keyframes vm-pulse { from { transform: scale(.6); opacity: .7; } to { transform: scale(3); opacity: 0; } }
.vm-ripple { fill: none; stroke: var(--vm-teal); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: vm-ripple .9s ease-out forwards; }
@keyframes vm-ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(7); opacity: 0; } }

.vm-d-ringbg { fill: rgba(255, 255, 255, .75); stroke: rgba(17, 161, 145, .15); stroke-width: 6; }
.vm-d-ring { fill: none; stroke: var(--vm-teal); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .6s, stroke .4s; }
.vm-d-ring.is-warn { stroke: var(--vm-amber); }
.vm-d-ring.is-late { stroke: var(--vm-red); }
.vm-d-pin path { fill: var(--vm-teal); stroke: #fff; stroke-width: 3; filter: url(#vm-dshadow); }
.vm-d-pin.is-drop { animation: vm-drop .75s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes vm-drop { from { transform: translateY(-60px); opacity: 0; } }
.vm-d-tag rect { fill: var(--vm-ink); }
.vm-d-tag text { fill: #fff; font-size: 12.5px; font-weight: 700; text-anchor: middle; }

/* ---- Map overlays ---- */
.vm-banner { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 6; pointer-events: none; }
.vm-nb {
    display: flex; align-items: center; gap: 12px; color: #fff; max-width: 560px; margin: 0 auto;
    background: linear-gradient(135deg, rgba(22, 56, 53, .97) 0%, rgba(12, 34, 33, .97) 100%);
    border-radius: 18px; padding: 10px 16px 10px 10px;
    box-shadow: 0 12px 32px rgba(10, 30, 29, .28), inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .06);
    animation: vm-nbIn .45s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes vm-nbIn { from { transform: translateY(-10px) scale(.97); opacity: 0; } }
.vm-nb-ic {
    width: 44px; height: 44px; border-radius: 13px; background: var(--vm-grad); color: #fff; display: grid; place-items: center; flex: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 4px 12px rgba(0, 0, 0, .18);
}
.vm-nb-ic svg { width: 24px; height: 24px; }
.vm-nb-ic.is-arrive { background: linear-gradient(135deg, #2fb86a 0%, #1b8d4c 100%); }
.vm-nb-ic.is-ask { background: linear-gradient(135deg, #4d8ff7 0%, #2a6ad9 100%); }
.vm-nb-tx { flex: 1; min-width: 0; }
.vm-nb-tx b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-nb-tx small { display: block; font-size: 12px; color: #a3d4cc; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-nb-d { text-align: right; flex: none; }
.vm-nb-d b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.vm-nb-d:has(b:empty) { display: none; }
.vm-nb-go {
    display: none; align-items: center; gap: 6px; flex: none; pointer-events: auto; cursor: pointer;
    height: 38px; min-height: 0; padding: 0 14px 0 12px; border: 0; border-radius: 12px; background: #fff; color: var(--vm-teal-dark);
    font: inherit; font-size: 13px; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); -webkit-tap-highlight-color: transparent;
    transition: transform .15s, background .15s;
}
.vm-nb-go svg { width: 13px; height: 13px; }
.vm-nb-go:hover { background: var(--vm-teal-50); }
.vm-nb-go:active { transform: scale(.96); }
.vm-nb-go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vm-nb-go.is-attn { animation: vm-goAttn 1.5s ease-in-out 3; }
@keyframes vm-goAttn { 50% { box-shadow: 0 0 0 5px rgba(255, 255, 255, .28), 0 2px 8px rgba(0, 0, 0, .18); } }

.vm-floorpill {
    position: absolute; left: 14px; top: 92px; z-index: 5; display: flex; flex-direction: column; gap: 3px; padding: 4px;
    background: var(--vm-glass); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid rgba(15, 42, 42, .08); border-radius: 16px; box-shadow: var(--vm-float);
}
.vm-floorpill button {
    position: relative; border: 0; background: transparent; width: 50px; height: 44px; border-radius: 12px;
    font-weight: 700; color: #3f5553; font-size: 13.5px; line-height: 1; letter-spacing: -.01em; transition: background .2s, color .2s;
}
.vm-floorpill button:hover:not(.is-on) { background: rgba(17, 161, 145, .08); color: var(--vm-teal-dark); }
.vm-floorpill button small { display: block; font-size: 9px; font-weight: 600; letter-spacing: .02em; color: var(--vm-muted); margin-top: 3px; }
.vm-floorpill button.is-on { background: linear-gradient(160deg, #1d4744 0%, #0f2a2a 100%); color: #fff; box-shadow: 0 4px 10px rgba(15, 42, 42, .25); }
.vm-floorpill button.is-on small { color: #a3d4cc; }
.vm-floorpill .vm-fd { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; display: none; }
.vm-floorpill .vm-fd.is-you { background: #1aa898; box-shadow: 0 0 0 2px #fff; }
/* (the opposite corner from "you": side by side at the right they covered the F of "6F") */
.vm-floorpill .vm-fd.is-dest { background: #f5a524; box-shadow: 0 0 0 2px #fff; right: auto; left: 5px; }
.vm-floorpill button.has-you .vm-fd.is-you, .vm-floorpill button.has-dest .vm-fd.is-dest { display: block; }

.vm-ctrls { position: absolute; right: 14px; bottom: 14px; z-index: 5; display: flex; flex-direction: column; filter: drop-shadow(0 1px 1px rgba(16, 42, 40, .06)) drop-shadow(0 5px 12px rgba(16, 42, 40, .12)); }
.vm-ctrls button {
    width: 42px; height: 42px; border-radius: 14px; border: 1px solid rgba(15, 42, 42, .08); background: rgba(255, 255, 255, .96); color: var(--vm-ink);
    display: grid; place-items: center; font-size: 20px; font-weight: 500; padding: 0; transition: background .15s, color .15s;
}
.vm-ctrls button:hover { background: #fff; color: var(--vm-teal-dark); }
.vm-ctrls button[data-vm="zoomIn"] { border-radius: 14px 14px 0 0; border-bottom: 0; }
.vm-ctrls button[data-vm="zoomOut"] { border-radius: 0 0 14px 14px; border-top: 1px solid var(--vm-line); }
.vm-ctrls .vm-recenter { margin-top: 8px; color: var(--vm-teal-dark); }
.vm-ctrls .vm-crowd-btn { margin-bottom: 8px; color: var(--vm-teal-dark); }
.vm-ctrls .vm-crowd-btn[hidden] { display: none; }
.vm-ctrls .vm-crowd-btn.is-on, .vm-ctrls .vm-crowd-btn.is-on:hover { background: linear-gradient(160deg, #1d4744 0%, #0f2a2a 100%); border-color: transparent; color: #fff; }
.vm-ctrls button:focus-visible { outline: 2px solid var(--vm-teal); outline-offset: 2px; }
.vm-ctrls button.is-attn { background: var(--vm-teal); color: #fff; border-color: var(--vm-teal); animation: vm-attn 1.4s ease-in-out infinite; }
@keyframes vm-attn { 50% { box-shadow: 0 0 0 6px rgba(17, 161, 145, .2); } }

.vm-loc {
    position: absolute; left: 14px; bottom: 14px; z-index: 5; max-width: calc(100% - 90px);
    display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; font-size: 12px;
    background: var(--vm-glass); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid rgba(15, 42, 42, .08); border-radius: 14px; box-shadow: var(--vm-float);
}
.vm-loc:empty { display: none; }
.vm-loc .vm-ld { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--vm-green); box-shadow: 0 0 0 3px rgba(34, 163, 90, .18); }
.vm-loc .vm-ld.is-amber { background: var(--vm-amber); box-shadow: 0 0 0 3px rgba(217, 138, 0, .18); }
.vm-loc .vm-ld.is-blue { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .18); }
.vm-loc .vm-ld.is-grey { background: #9aa9a7; box-shadow: 0 0 0 3px rgba(154, 169, 167, .2); }
.vm-loc b { color: var(--vm-ink); font-weight: 600; }
.vm-loc span { color: var(--vm-muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.vm-loc > div { min-width: 0; }

/* Busy & calm (js/venue-map.js, renderCrowd): rooms tinted by how busy they are likely to be,
   a glow at the doors people are coming and going at, and the bar that says for when */
.vm-map { --vm-c0: #2f9e63; --vm-c1: #e09a13; --vm-c2: #e2574c; }
.vm-map.is-crowd .vm-room.is-c0:not(.is-dest) rect { fill: #e2f5ea; stroke: #8fd0aa; }
.vm-map.is-crowd .vm-room.is-c1:not(.is-dest) rect { fill: #fff0cc; stroke: #edc35c; }
.vm-map.is-crowd .vm-room.is-c2:not(.is-dest) rect { fill: #ffe0db; stroke: #f09a8e; }
.vm-map.is-crowd .vm-room.is-place.is-c0:not(.is-dest) rect { fill: rgba(47, 158, 99, .16); stroke: rgba(47, 158, 99, .5); stroke-width: 1.5; }
.vm-map.is-crowd .vm-room.is-place.is-c1:not(.is-dest) rect { fill: rgba(224, 154, 19, .2); stroke: rgba(224, 154, 19, .6); stroke-width: 1.5; }
.vm-map.is-crowd .vm-room.is-place.is-c2:not(.is-dest) rect { fill: rgba(226, 87, 76, .2); stroke: rgba(226, 87, 76, .6); stroke-width: 1.5; }
.vm-heat-c { pointer-events: none; transition: opacity .5s ease; }
.vm-map.is-crowd .vm-loc { display: none; }
.vm-map.is-crowd .vm-toast { bottom: 108px; }
.vm-map.is-here .vm-crowdbar { display: none; }
.vm-crowdbar {
    position: absolute; left: 14px; bottom: 14px; z-index: 5; max-width: calc(100% - 84px);
    padding: 9px 10px 10px 14px; font-size: 12px;
    background: var(--vm-glass); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid rgba(15, 42, 42, .08); border-radius: 14px; box-shadow: var(--vm-float); animation: vm-barIn .25s ease;
}
.vm-crowdbar[hidden] { display: none; }
@keyframes vm-barIn { from { opacity: 0; transform: translateY(6px); } }
.vm-cb-row { display: flex; align-items: center; gap: 8px; }
.vm-cb-row > b { color: var(--vm-ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; margin-right: auto; }
.vm-cb-when { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 10px; background: rgba(15, 42, 42, .05); }
.vm-cb-when button { width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--vm-teal-dark); display: grid; place-items: center; padding: 0; }
.vm-cb-when button:hover { background: #fff; box-shadow: 0 1px 2px rgba(16, 42, 40, .12); }
.vm-cb-time { min-width: 62px; padding: 0 4px; text-align: center; color: var(--vm-ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vm-cb-now { border: 0; border-radius: 8px; background: var(--vm-teal-50); color: var(--vm-teal-dark); font-size: 11.5px; font-weight: 600; padding: 6px 9px; }
.vm-cb-now:hover { background: #d9f0ec; }
.vm-cb-now[hidden] { display: none; }
.vm-cb-x { width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--vm-muted); font-size: 18px; line-height: 1; padding: 0; }
.vm-cb-x:hover { background: rgba(15, 42, 42, .06); color: var(--vm-ink); }
.vm-cb-when button:focus-visible, .vm-cb-now:focus-visible, .vm-cb-x:focus-visible { outline: 2px solid var(--vm-teal); outline-offset: 1px; }
.vm-cb-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 7px; color: var(--vm-text); }
.vm-cb-key span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.vm-cb-key i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.vm-cb-key i.is-c0 { background: #bfe8cf; box-shadow: inset 0 0 0 1.5px var(--vm-c0); }
.vm-cb-key i.is-c1 { background: #ffe2a0; box-shadow: inset 0 0 0 1.5px var(--vm-c1); }
.vm-cb-key i.is-c2 { background: #ffc5bd; box-shadow: inset 0 0 0 1.5px var(--vm-c2); }
.vm-cb-note { flex-basis: 100%; color: var(--vm-muted); font-size: 11px; }
/* Narrow maps: the key says what it is, so the title makes room for the time */
@media (max-width: 768px) {
    .vm-cb-row > b { display: none; }
    .vm-cb-x { margin-left: auto; }
    .vm-crowdbar { padding-left: 10px; }
    .vm-cb-key { padding-left: 4px; }
}

.vm-toast {
    position: absolute; left: 50%; bottom: 74px; z-index: 8; transform: translate(-50%, 16px);
    background: rgba(15, 42, 42, .94); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 500;
    opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s; white-space: nowrap; max-width: calc(100% - 30px);
    overflow: hidden; text-overflow: ellipsis; box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.vm-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.vm-oc {
    position: absolute; left: 50%; bottom: 70px; z-index: 7; transform: translateX(-50%);
    width: min(440px, calc(100% - 28px)); background: rgba(255, 255, 255, .97); border: 1px solid rgba(15, 42, 42, .08); border-radius: 18px;
    box-shadow: 0 18px 48px rgba(15, 42, 42, .2); padding: 14px 16px; animation: vm-rise .35s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes vm-rise { from { transform: translate(-50%, 14px); opacity: 0; } }
.vm-oc-h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--vm-ink); font-weight: 600; }
.vm-oc-h svg { color: var(--vm-teal); }
.vm-oc-s { font-size: 12px; color: var(--vm-muted); margin: 3px 0 10px; }
.vm-chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.vm-chip {
    border: 1px solid var(--vm-line); background: #f6faf9; color: var(--vm-ink); border-radius: 999px; padding: 6px 12px;
    font-size: 12px; font-weight: 600; transition: border-color .15s, color .15s, background .15s;
}
.vm-chip:hover { border-color: var(--vm-teal); color: var(--vm-teal-dark); background: #fff; }
.vm-chip.is-primary { background: var(--vm-grad); color: #fff; border-color: transparent; }
.vm-chip.is-link { background: transparent; border-color: transparent; color: var(--vm-muted); }

.vm-pop {
    position: absolute; z-index: 9; width: 272px; background: #fff; border: 1px solid rgba(15, 42, 42, .08); border-radius: 16px;
    box-shadow: 0 18px 48px rgba(15, 42, 42, .2); padding: 14px 16px; font-size: 12.5px; animation: vm-popIn .2s ease;
}
@keyframes vm-popIn { from { opacity: 0; transform: translateY(6px); } }
.vm-pop h5 { margin: 0; padding-right: 18px; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; color: var(--vm-ink); }
.vm-pop .vm-pl { color: var(--vm-muted); font-size: 11.5px; margin: 2px 0 8px; }
.vm-pop .vm-ps { border-top: 1px solid var(--vm-line); padding: 8px 0; }
.vm-pop .vm-ps i { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--vm-muted); display: block; }
.vm-pop .vm-ps i.is-now { color: var(--vm-red); }
.vm-pop .vm-ps b { color: var(--vm-ink); font-weight: 600; display: block; line-height: 1.35; margin-top: 2px; }
.vm-pop .vm-ps span { color: var(--vm-muted); font-size: 11.5px; }
.vm-pop .vm-pc i { display: flex; align-items: center; gap: 6px; }
.vm-pop .vm-pc i::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--vm-c0); box-shadow: 0 0 0 3px rgba(47, 158, 99, .16); }
.vm-pop .vm-pc.is-c0 i { color: #23794b; }
.vm-pop .vm-pc.is-c1 i { color: #a56a00; }
.vm-pop .vm-pc.is-c1 i::before { background: var(--vm-c1); box-shadow: 0 0 0 3px rgba(224, 154, 19, .18); }
.vm-pop .vm-pc.is-c2 i { color: #b93a30; }
.vm-pop .vm-pc.is-c2 i::before { background: var(--vm-c2); box-shadow: 0 0 0 3px rgba(226, 87, 76, .18); }
.vm-pop .vm-pc span { display: block; margin-top: 3px; line-height: 1.4; }
.vm-pop .vm-actions + .vm-actions { margin-top: 6px; }
/* Meet here and Share stay side by side, also in the narrower card on phones */
.vm-pop .vm-actions.is-more { flex-wrap: nowrap; }
.vm-pop .vm-actions.is-more .vm-btn { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; gap: 6px; white-space: nowrap; }
.vm-pop .vm-x { position: absolute; top: 7px; right: 7px; border: 0; background: transparent; color: var(--vm-muted); font-size: 18px; line-height: 1; padding: 4px 6px; border-radius: 8px; }
.vm-pop .vm-x:hover { background: #f1f6f5; color: var(--vm-ink); }
.vm-pop .vm-actions { margin-top: 8px; flex-wrap: wrap; }
.vm-pop .vm-actions .vm-btn { flex: 1 1 auto; padding-left: 10px; padding-right: 10px; }

.vm-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 8; }

/* ---- Up next ---- */
.vm-un-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vm-un-time { font-size: 12px; color: var(--vm-muted); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.vm .vm-un-title { margin: 10px 0 8px; font-size: 19px; line-height: 1.28; color: var(--vm-ink); font-weight: 700; letter-spacing: -.02em; }
.vm-un-room { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 17px; color: var(--vm-ink); }
.vm-un-room b { font-weight: 600; }
.vm-un-room svg { color: var(--vm-teal); flex-shrink: 0; margin-top: 1px; }
/* The room, its building and its floor, a dot before each: the dot of one that starts a line is
   cut off at the left edge, so no line starts or ends with a dot */
.vm-un-where { flex: 1; min-width: 0; overflow: hidden; }
.vm-un-where > span { display: flex; flex-wrap: wrap; margin-left: -1em; }
.vm-un-where > span > span { color: var(--vm-muted); }
.vm-un-where > span > ::before { content: '·'; display: inline-block; width: 1em; text-align: center; color: var(--vm-muted); font-weight: 400; }
.vm-un-people { font-size: 12px; color: var(--vm-muted); margin-top: 5px; line-height: 1.45; }
.vm-un-stats {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 16px 0 14px; padding: 12px 14px;
    background: linear-gradient(135deg, #f3f9f8 0%, #edf6f4 100%); border: 1px solid #e0eeeb; border-radius: 14px;
}
.vm-stat { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--vm-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vm-stat b { color: var(--vm-ink); font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.vm-stat svg { color: var(--vm-teal); }
.vm-pill { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; white-space: nowrap; transition: background .3s, color .3s; font-variant-numeric: tabular-nums; }
.vm-pill:empty { display: none; }
.vm-pill.is-ok { background: #e1f5ea; color: #17703f; }
.vm-pill.is-warn { background: #fff0d4; color: #8a5a00; }
.vm-pill.is-late { background: #fde7e8; color: #b4232a; animation: vm-latePulse 1.6s ease-in-out infinite; }
.vm-pill.is-muted { background: #eef2f1; color: var(--vm-muted); }
@keyframes vm-latePulse { 50% { box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); } }
.vm-hints { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.vm-hints:empty { display: none; }
.vm-hint { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--vm-line); background: #fff; color: #334; text-align: left; width: 100%; line-height: 1.45; }
.vm-hint svg { color: var(--vm-teal); flex: none; }
.vm-hint b { font-weight: 600; }
.vm-hint.is-coffee { background: #fbf6ee; border-color: #f0e2c8; }
.vm-hint.is-coffee svg { color: #a26a1c; }
.vm-hint.is-late { background: #fff5f5; border-color: #f6d3d5; }
.vm-hint.is-late svg { color: var(--vm-red); }
.vm-hint.is-info { background: #f4f8ff; border-color: #d7e4fb; }
.vm-hint.is-info svg { color: #3b82f6; }
.vm-actions { display: flex; gap: 8px; }
.vm-actions + .vm-actions { margin-top: 8px; }
.vm-actions .vm-btn.is-sm { flex: 1; }
.vm-sf { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--vm-line); font-size: 12.5px; font-weight: 500; color: var(--vm-ink); cursor: pointer; position: relative; }
.vm-sf small { color: var(--vm-muted); font-weight: 400; }
.vm-sf input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vm-sw { width: 36px; height: 21px; border-radius: 999px; background: #d4dedc; position: relative; transition: background .2s; flex: none; }
.vm-sw::after { content: ''; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.vm-sf input:checked + .vm-sw { background: var(--vm-teal); }
.vm-sf input:checked + .vm-sw::after { transform: translateX(15px); }
.vm-sf input:focus-visible + .vm-sw { outline: 2px solid var(--vm-teal); outline-offset: 2px; }
.vm-empty { font-size: 13px; color: var(--vm-muted); line-height: 1.55; }
.vm-empty b { color: var(--vm-ink); display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }

.vm-arrived { text-align: center; padding: 8px 0 2px; }
.vm-ar-badge {
    width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, #2fb86a 0%, #1b8d4c 100%); color: #fff; box-shadow: 0 0 0 8px #e3f6ec, 0 10px 24px rgba(34, 163, 90, .3);
    animation: vm-pop .6s cubic-bezier(.3, 1.6, .5, 1);
}
@keyframes vm-pop { from { transform: scale(.3); opacity: 0; } }
.vm .vm-arrived h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; letter-spacing: -.015em; color: var(--vm-ink); }
.vm-arrived p { margin: 0 0 4px; font-size: 13px; color: var(--vm-muted); }
.vm-arrived p b { color: #17703f; }
.vm-arrived .vm-btn { margin-top: 14px; width: 100%; }

/* ---- Turn-by-turn ---- */
.vm-steps { list-style: none; margin: 0 -8px; padding: 0; position: relative; }
.vm-st { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; cursor: pointer; position: relative; transition: background .25s, opacity .25s; }
.vm-st:hover { background: #f1f7f6; }
.vm-st:focus-visible { outline: 2px solid var(--vm-teal); outline-offset: -2px; }
.vm-st + .vm-st::before { content: ''; position: absolute; left: 24px; top: -9px; height: 18px; border-left: 2px solid #e2ecea; }
.vm-st-ic {
    width: 34px; height: 34px; border-radius: 11px; background: #fff; border: 1px solid var(--vm-line); color: var(--vm-teal-dark);
    display: grid; place-items: center; flex: none; position: relative; z-index: 1; transition: background .25s, color .25s, border-color .25s, transform .3s;
}
.vm-st-ic svg { width: 18px; height: 18px; }
.vm-st-tx { flex: 1; min-width: 0; }
.vm-st-tx b { display: block; font-size: 13px; color: var(--vm-ink); font-weight: 500; line-height: 1.35; }
.vm-st-tx small { display: block; font-size: 11.5px; color: var(--vm-muted); margin-top: 2px; }
.vm-st-d { font-size: 12px; color: var(--vm-muted); font-weight: 500; flex: none; font-variant-numeric: tabular-nums; }
.vm-st.is-done { opacity: .45; }
.vm-st.is-done .vm-st-ic { background: #e3f6ec; border-color: #cdebd9; color: #17703f; }
.vm-st.is-active { background: var(--vm-teal-50); }
.vm-st.is-active .vm-st-tx b { font-weight: 600; }
.vm-st.is-active .vm-st-ic { background: var(--vm-grad); border-color: transparent; color: #fff; transform: scale(1.06); box-shadow: 0 6px 14px rgba(17, 161, 145, .3); }
.vm-st.is-static { cursor: default; color: var(--vm-muted); font-size: 13px; padding: 4px 8px; }
.vm-st.is-static:hover { background: transparent; }
.vm-st.is-finish .vm-st-ic { background: linear-gradient(135deg, #2fb86a 0%, #1b8d4c 100%); border-color: transparent; color: #fff; }

/* ---- Day ---- */
.vm-daynav { display: inline-flex; gap: 4px; }
.vm-daynav button { width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--vm-line); background: #fff; color: var(--vm-ink); display: grid; place-items: center; padding: 0; box-shadow: 0 1px 2px rgba(16, 42, 40, .04); }
.vm-daynav button:hover:not(:disabled) { border-color: var(--vm-teal); color: var(--vm-teal-dark); }
.vm-daynav button:disabled { opacity: .35; }
.vm-daynav .vm-daynow { width: auto; padding: 0 10px; font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1; color: var(--vm-teal-dark); border-color: rgba(17, 161, 145, .4); background: var(--vm-teal-50); white-space: nowrap; }
.vm-tl { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--vm-line); align-items: flex-start; }
.vm-tl:first-child { border-top: 0; padding-top: 0; }
.vm-tl-t { width: 62px; flex: none; font-size: 12px; color: var(--vm-muted); font-weight: 500; padding-top: 1px; font-variant-numeric: tabular-nums; }
.vm-tl-b { flex: 1; min-width: 0; }
.vm-tl-b b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: var(--vm-ink); font-weight: 500; line-height: 1.4; }
.vm-tl-r {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; border: 0; background: transparent; padding: 0;
    color: var(--vm-teal-dark); font-size: 12px; font-weight: 600; text-align: left;
}
.vm-tl-r:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 2px; }
.vm-tl-r:disabled { color: var(--vm-muted); font-weight: 500; }
.vm-tl.is-done { opacity: .5; }
.vm-tl.is-done .vm-tl-r { color: var(--vm-muted); }
.vm-tag { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; display: inline-block; }
.vm-tag.is-now { background: #fde7e8; color: #b4232a; }
.vm-tag.is-go { background: var(--vm-grad); color: #fff; }
/* (a session you stepped out of, where you come back to it) */
.vm-tag.is-back { background: #e6f4f2; color: #00695f; }
.vm-link { border: 0; background: transparent; padding: 0; color: var(--vm-teal-dark); font-size: 12.5px; font-weight: 600; }
.vm-link::after { content: ' →'; }
.vm-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.vm-today-foot { margin-top: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
.vm-note { color: var(--vm-muted); font-size: 11.5px; line-height: 1.6; margin: 0; padding: 16px 22px 22px; border-top: 1px solid var(--vm-line); }

@media (max-width: 1100px) {
    .vm-grid { grid-template-columns: minmax(0, 1fr) 340px; }
}

/* ---- Narrow: the map card, then the panel's cards below it ---- */
@media (max-width: 900px) {
    .vm-grid { display: flex; flex-direction: column; gap: 14px; height: auto; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
    .vm-grid > .vm-map, .vm-map { height: clamp(420px, 64vh, 600px); border: 1px solid var(--vm-edge); border-radius: 22px; box-shadow: var(--vm-shadow); }
    .vm-panel { overflow: visible; border-left: 0; background: none; gap: 14px; }
    .vm-search { order: -1; padding: 0; background: none; border: 0; }
    .vm-sr-box { height: 50px; background: #fff; border: 1px solid var(--vm-edge); border-radius: 16px; box-shadow: var(--vm-shadow); padding-left: 16px; }
    .vm-sr-box:hover { background: #fff; }
    .vm-sr-list { left: 0; right: 0; top: calc(100% + 8px); max-height: min(440px, 60vh); }
    .vm-card, .vm-next { background: #fff; border: 1px solid var(--vm-edge); border-radius: 20px; box-shadow: var(--vm-shadow); }
    .vm-card + .vm-card { border-top: 1px solid var(--vm-edge); }
    .vm-note { border-top: 0; padding: 2px 6px 0; }
    .vm-nb-go { display: inline-flex; }
}
@media (max-width: 768px) {
    .vm-grid { gap: 12px; }
    .vm-sr-in { font-size: 16px; }
    .vm-grid > .vm-map, .vm-map { height: clamp(420px, 66vh, 600px); height: clamp(420px, 66svh, 600px); border-radius: 20px; }
    .vm-panel { gap: 12px; }
    .vm-card { padding: 18px; border-radius: 20px; }
    .vm-next { padding: 20px 18px 18px; }
    .vm .vm-un-title { font-size: 18px; }
    .vm-banner { top: 10px; left: 10px; right: 10px; }
    .vm-nb { padding: 8px 12px 8px 8px; gap: 10px; border-radius: 16px; }
    .vm-nb-ic { width: 40px; height: 40px; border-radius: 12px; }
    .vm-nb-ic svg { width: 22px; height: 22px; }
    .vm-nb-tx b { font-size: 14px; }
    .vm-nb-d b { font-size: 16px; }
    .vm-floorpill { top: 80px; left: 10px; border-radius: 15px; }
    .vm-floorpill button { width: 44px; height: 42px; border-radius: 11px; }
    .vm-floorpill button small { display: none; }
    .vm-loc { left: 10px; bottom: 10px; font-size: 11.5px; padding: 8px 12px 8px 10px; max-width: calc(100% - 74px); }
    .vm-ctrls { right: 10px; bottom: 10px; }
    .vm-ctrls button { width: 42px; height: 42px; }
    .vm-ctrls .vm-recenter { margin-top: 6px; }
    .vm-pop { width: 248px; }
    .vm-oc { bottom: 64px; }
    .vm-toast { bottom: 66px; }
    .vm-crowdbar { left: 10px; bottom: 10px; max-width: calc(100% - 74px); }
    .vm-ctrls .vm-crowd-btn { margin-bottom: 6px; }
    .vm-map.is-crowd .vm-toast { bottom: 102px; }
    .vm-note { padding: 2px 4px 0; }
}
/* Touch screens: a backdrop blur over a moving map is re-blurred every frame */
@media (pointer: coarse) {
    .vm-floorpill, .vm-loc { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .95); }
}
@media (prefers-reduced-motion: reduce) {
    .vm *, .vm *::before, .vm *::after { animation: none !important; transition: none !important; }
}

/* ---------- Room links (js/venue-maps.js) ----------
   A room on the other tabs (My Schedule, Hub Today, a contact's sessions, My Booths, My Sessions)
   that the map knows: the name in the venue map's teal with a dotted underline and a small
   directions arrow, opening My Map on it. Not under .vm: these sit in the other tabs. */
.vml {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #0b7f73;
    font: inherit;
    font-weight: 600;
    line-height: inherit;
    letter-spacing: inherit;
    text-align: left;
    vertical-align: baseline;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .15s ease, color .15s ease;
}
.vml .vml-t {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: underline dotted rgba(11, 127, 115, .5);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}
.vml .vml-go {
    flex: none;
    color: inherit;
    width: .82em;
    height: .82em;
    opacity: .7;
    transition: transform .18s ease, opacity .18s ease;
}
/* The hover tint reaches past the text without taking room from it */
.vml::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -2px -5px;
    border-radius: 6px;
    background: transparent;
    transition: background-color .15s ease;
}
.vml:hover { color: #00695c; }
.vml:hover::before { background: rgba(17, 161, 145, .1); }
.vml:hover .vml-t { text-decoration-style: solid; text-decoration-color: currentColor; }
.vml:hover .vml-go { opacity: 1; transform: translate(1px, -1px); }
.vml:active::before { background: rgba(17, 161, 145, .18); }
.vml:focus-visible { outline: 2px solid #11a191; outline-offset: 3px; }
/* Drawn before the venue loaded: plain text until the map confirms the room */
.vml.is-pending { color: inherit; font-weight: inherit; cursor: inherit; pointer-events: none; }
.vml.is-pending .vml-t { text-decoration-color: transparent; }
.vml.is-pending .vml-go { opacity: 0; }
[data-vml].is-pending:not(.vml) { visibility: hidden; pointer-events: none; }
/* Invisible, and kept under reduced motion (which stops animations in tabs like My Schedule) */
[data-vml].is-pending { animation: vml-pending 1ms !important; }
@keyframes vml-pending { from { outline-color: transparent; } to { outline-color: transparent; } }
/* A finger needs more than the line of text */
@media (pointer: coarse) {
    .vml::after { content: ''; position: absolute; inset: -8px -4px; }
}
@media (prefers-reduced-motion: reduce) {
    .vml, .vml::before, .vml-go { transition: none; }
}
