@font-face {
    font-family: Inter;
    src: url("./fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: Inter;
    src: url("./fonts/inter-latin-wght-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

.visitor-map-mode {
    --vm-text: #182840;
    --vm-muted: #506279;
    --vm-line: #dce3ec;
    --vm-blue: #204fce;
    --vm-blue-dark: #173a9e;
    --vm-blue-soft: #edf3ff;
    --vm-surface: #f6f8fc;
    --vm-map: #edf1eb;
    --vm-shadow: 0 6px 22px #23334b15, 0 1px 2px #23334b08;
    --vm-header-height: calc(70px + env(safe-area-inset-top, 0px));
    --vm-footer-height: calc(50px + env(safe-area-inset-bottom, 0px));
    --vm-rail: 342px;
    --vm-gutter: 22px;
    color: var(--vm-text);
    font-family: Inter, system-ui, sans-serif;
}
.visitor-map-mode.route-map-focus { --vm-rail: 0px; }
.visitor-map-mode #mapWorkspace { background: var(--vm-map); }
.visitor-map-mode #mapWorkspace > #mapHost {
    inset: var(--vm-header-height) 0 var(--vm-footer-height) var(--vm-rail);
    width: auto;
    height: auto;
    min-height: 0;
    background-color: var(--vm-map);
    background-image: radial-gradient(#7c947d24 1px, transparent 1px);
    background-size: 20px 20px;
}
.visitor-map-mode.vm-night #mapWorkspace > #mapHost { background-color: #182421; }
#visitorMapUI [hidden] { display: none !important; }
.vm-icon {
    flex: none;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.vm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

#visitorMapUI button {
    color: var(--vm-text);
    border-color: var(--vm-line);
    background: #fff;
    font-weight: 620;
    line-height: 1.24;
}
#visitorMapUI button:enabled:hover { border-color: #9bb4e9; background: var(--vm-blue-soft); }
#visitorMapUI button:disabled { color: #5b6b81; background: #f0f3f7; opacity: 1; }
#visitorMapUI button:focus-visible,
#visitorMapUI a:focus-visible,
#visitorMapUI summary:focus-visible,
#visitorMapUI input:focus-visible,
#visitorMapUI select:focus-visible {
    outline: 2px solid var(--vm-blue);
    outline-offset: 2px;
}
#visitorMapUI .vm-primary:enabled, #visitorMapUI .vm-sensor-actions .primary:enabled {
    color: #fff;
    background: var(--vm-blue);
    border-color: var(--vm-blue);
}
#visitorMapUI .vm-primary:enabled:hover, #visitorMapUI .vm-sensor-actions .primary:enabled:hover {
    background: var(--vm-blue-dark);
    border-color: var(--vm-blue-dark);
}
#visitorMapUI .vm-primary:disabled {
    color: #46639b;
    background: #eaf0fb;
    border-color: #e1e8f4;
}

.vm-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 6;
    height: var(--vm-header-height);
    padding: env(safe-area-inset-top, 0px) var(--vm-gutter) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border-bottom: 1px solid var(--vm-line);
}
.vm-brand {
    position: static;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: none;
    color: var(--vm-text);
    text-decoration: none;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.035em;
}
.vm-brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 13px;
    color: white;
    background: #1c408f;
}
.vm-brand-mark .vm-icon { width: 27px; height: 27px; }
.vm-brand small {
    margin-top: 4px;
    color: var(--vm-muted);
    font-size: 12px;
    font-weight: 530;
    letter-spacing: 0;
}
.vm-header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.vm-demo {
    padding: 5px 10px;
    color: #624713;
    border: 1px solid #ead8ad;
    border-radius: 8px;
    background: #fff6dd;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
#visitorMapUI #vmLogin {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 7px 13px;
    border-radius: 11px;
}
#vmLogin .vm-icon { width: 17px; height: 17px; }

#visitorMapUI .vm-card {
    color: var(--vm-text);
    border-color: var(--vm-line);
    background: #fff;
    box-shadow: var(--vm-shadow);
}
#visitorMapUI #vmPlanner {
    position: absolute;
    top: var(--vm-header-height);
    bottom: var(--vm-footer-height);
    left: 0;
    width: var(--vm-rail);
    max-width: none;
    max-height: none;
    padding: 22px var(--vm-gutter);
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-right: 1px solid var(--vm-line);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}
.vm-panel-title h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.16;
    font-weight: 760;
    letter-spacing: -.045em;
}
#visitorMapUI #vmPlannerCollapse {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    min-height: 36px !important;
    border: 1px solid var(--vm-line);
    border-radius: 10px;
}
#vmPlannerCollapse[aria-expanded="false"] .vm-icon { transform: rotate(-90deg); }
#vmPlannerBody { padding-top: 14px; }
#visitorMapUI #vmPlannerBody > label {
    display: block;
    margin: 0 0 6px;
    font-weight: 690;
    color: var(--vm-text);
    font-size: 12px;
}
.vm-start-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    margin-bottom: 13px;
}
.vm-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 45px;
    padding-inline: 11px 8px;
    border: 1px solid var(--vm-line);
    border-radius: 11px;
    background: var(--vm-surface);
    color: #516782;
}
.vm-field:focus-within { border-color: #97b0e7; }
.vm-from > span {
    width: 12px;
    height: 12px;
    margin-inline: 3px;
    flex: none;
    background: #2456dd;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #2456dd30;
}
.vm-to { margin-top: 7px; }
.vm-to > .vm-icon { color: #c3364e; }
#visitorMapUI .vm-field :is(input, select) {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 43px;
    margin: 0 !important;
    padding: 3px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--vm-text);
    font: inherit;
    font-size: 13px;
    text-overflow: ellipsis;
}
#visitorMapUI .vm-field :is(input,select):focus-visible { outline-offset: -2px; }
#visitorMapUI .vm-field input::placeholder { color: #596b82; opacity: 1; }
#visitorMapUI #vmScanStart {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 45px;
    padding: 0 9px;
    border-radius: 11px;
    color: var(--vm-blue);
    background: var(--vm-blue-soft);
    border-color: #d6e2fa;
}
#vmScanStart .vm-icon { width: 18px; height: 18px; }
#visitorMapUI #vmVoiceSearch {
    display: grid;
    place-items: center;
    min-height: 36px;
    width: 36px;
    padding: 0;
    flex: none;
    background: #e4edfe;
    border: 0;
    color: var(--vm-blue);
    border-radius: 8px;
}
#vmVoiceStatus, #vmHere, #vmPlannerStatus {
    margin: 6px 0;
    font-size: 12px;
    color: var(--vm-muted);
    overflow-wrap: anywhere;
}
#vmVoiceStatus:empty { display: none; }
#vmHere { color: #17654f; }
#visitorMapUI .vm-route-modes {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 8px;
    margin-top: 12px;
}
#visitorMapUI .vm-route-modes button, #visitorMapUI .vm-target-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    border-radius: 10px;
    font-size: 12px;
}
.vm-route-modes .vm-icon, .vm-target-actions .vm-icon { width: 16px; height: 16px; }
#visitorMapUI :is(#vmPlannerOptions,#vmTargetDetails) > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 32px;
    color: #344b6a;
    font-size: 12px;
}
#visitorMapUI summary::-webkit-details-marker { display: none; }
#visitorMapUI summary .vm-icon { width: 15px; height: 15px; }
#visitorMapUI details[open] > summary .vm-icon { transform: rotate(180deg); }
#vmPlannerOptions { margin-top: 6px; }
#vmPlannerOptions .vm-row { margin-bottom: 5px; }
#vmRoutePrivacy { color: var(--vm-muted); }
.vm-destinations { border-top: 1px solid var(--vm-line); padding-top: 15px; margin-top: 8px; }
.vm-destinations h2 { margin: 0 0 6px; font-size: 14px; font-weight: 720; }
.vm-chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    padding: 3px 2px 8px;
}
#visitorMapUI .vm-chips button {
    min-height: 36px !important;
    font-size: 11px !important;
    padding: 5px 10px;
    border-radius: 8px;
    color: #384f70;
    background: #f3f6fb;
}
#visitorMapUI .vm-chips button[aria-pressed="true"] {
    color: #183d9e;
    background: #e6eeff;
    border-color: #cad9fb;
}
.vm-nearby { margin: 4px 0 0; padding: 0; max-height: none; overflow: visible; list-style: none; }
.vm-nearby li + li { border-top: 1px solid #edf0f6; }
#visitorMapUI .vm-nearby button {
    width: 100%;
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    text-align: left;
    border: 0;
    border-radius: 8px;
}
.vm-nearby button > span:first-child { min-width: 0; }
.vm-nearby strong, .vm-nearby small { display: block; }
.vm-nearby strong { font-size: 12px; font-weight: 680; overflow-wrap: anywhere; }
.vm-nearby small, .vm-nearby-distance { margin-top: 3px; color: var(--vm-muted); font-size: 10px; }
.vm-nearby-distance { max-width: 68px; text-align: end; }

#visitorMapUI .vm-floors {
    top: calc(var(--vm-header-height) + var(--vm-gutter));
    left: calc(var(--vm-rail) + var(--vm-gutter));
    right: auto;
    width: max-content;
    max-width: min(265px, calc(100% - var(--vm-rail) - 85px));
    padding: 8px;
    border-radius: 13px;
}
.vm-floor-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    color: #223c64;
    font-size: 13px;
    font-weight: 700;
}
.vm-floor-heading .vm-icon { width: 17px; height: 17px; color: var(--vm-blue); }
#visitorMapUI #vmBuilding { display: block; width: 100%; }
#visitorMapUI .vm-floors #vmFloors { max-width: 100%; }
#visitorMapUI #vmFloors button {
    min-height: 36px !important;
    min-width: 36px;
    background: var(--vm-surface);
}
#visitorMapUI #vmFloors button[aria-current="true"] {
    color: var(--vm-blue);
    border-color: #cfdcf6;
    background: var(--vm-blue-soft);
}
.vm-controls {
    top: calc(var(--vm-header-height) + var(--vm-gutter));
    right: var(--vm-gutter);
    gap: 9px;
}
.vm-tool-group {
    display: grid;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--vm-line);
    border-radius: 13px;
    box-shadow: var(--vm-shadow);
}
#visitorMapUI .vm-tool-group button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 44px !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #27446a;
}
#visitorMapUI .vm-tool-group button:focus-visible { outline-offset: -3px; }
#visitorMapUI .vm-tool-group button:disabled { color: #6a7890; }
#visitorMapUI .vm-tool-group button + button { border-top: 1px solid #edf0f6; }
#visitorMapUI .vm-tool-group button:is([aria-pressed="true"],[aria-expanded="true"]) {
    color: var(--vm-blue);
    background: var(--vm-blue-soft);
}
#visitorMapUI #vmFocus { color: var(--vm-blue); }
#visitorMapUI #vmLayerPanel, #visitorMapUI #vmCameraCard {
    top: calc(var(--vm-header-height) + 76px);
    right: calc(var(--vm-gutter) + 54px);
    width: min(265px, calc(100% - 76px));
    max-height: 62dvh;
    overflow: auto;
}

#visitorMapUI #vmTargetCard {
    left: calc(var(--vm-rail) + var(--vm-gutter));
    right: auto;
    bottom: calc(var(--vm-footer-height) + 20px);
    width: min(328px, calc(100% - var(--vm-rail) - 78px));
    max-height: min(38dvh, 405px);
    padding: 14px;
    border-radius: 16px;
    overflow: auto;
    overscroll-behavior: contain;
}
#visitorMapUI.vm-preview-ready #vmTargetCard { bottom: calc(var(--vm-footer-height) + 75px); }
.vm-target-header { display: flex; align-items: flex-start; gap: 10px; }
.vm-target-pin {
    display: grid;
    place-items: center;
    flex: none;
    width: 37px;
    height: 37px;
    border-radius: 10px;
    background: #feecef;
    color: #c3364e;
}
.vm-target-heading { min-width: 0; flex: 1; }
#visitorMapUI #vmTargetName { font-size: 16px; line-height: 1.27; margin: 0; overflow-wrap: anywhere; }
#visitorMapUI #vmTargetInfo { margin: 4px 0 0; color: var(--vm-muted); font-size: 11px; }
#visitorMapUI #vmTargetRoute { margin: 10px 0 8px; color: #274e91; font-size: 13px; font-weight: 690; }
#visitorMapUI #vmCloseTarget {
    display: grid;
    place-items: center;
    width: 34px;
    min-height: 34px;
    padding: 0;
    flex: none;
    border-radius: 9px;
}
.vm-target-actions { display: flex; gap: 6px; flex-wrap: wrap; }
#visitorMapUI .vm-target-actions button { min-height: 36px; }
#vmTargetDetails { margin-top: 5px; }
#visitorMapUI #vmRouteLaunch {
    left: calc(var(--vm-rail) + var(--vm-gutter));
    bottom: calc(var(--vm-footer-height) + 17px);
    width: min(328px, calc(100% - var(--vm-rail) - 78px));
    transform: none;
}
#visitorMapUI #vmBegin { min-height: 48px; border-radius: 13px; font-size: 14px; box-shadow: var(--vm-shadow); }

#visitorMapUI .vm-bottom {
    z-index: 5;
    inset: auto 0 0;
    height: var(--vm-footer-height);
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 var(--vm-gutter) env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--vm-line);
    color: var(--vm-muted);
    background: #fff;
    text-align: start;
    font-size: 11px;
}
#visitorMapUI .vm-bottom > button, #visitorMapUI .vm-bottom > a,
#visitorMapUI .vm-sensors > summary {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 34px !important;
    padding: 5px 8px !important;
    border-radius: 8px;
    color: #294569;
    font-size: 11px !important;
    text-decoration: none;
}
#visitorMapUI .vm-sensors > summary { box-shadow: none; }
.vm-sensor-card { bottom: calc(100% + 8px); left: var(--vm-gutter); }
.vm-parking-icon {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    color: #fff;
    background: #2754b7;
    font-size: 10px;
    font-weight: 730;
}
#visitorMapUI #vmFloorCaption { color: var(--vm-muted); background: transparent; padding: 0; }
.visitor-map-mode :is(#vmPlannerStatus,#notice) { font-variant-numeric: tabular-nums; }
.visitor-map-mode #notice {
    bottom: calc(var(--vm-footer-height) + 12px);
    left: auto;
    right: var(--vm-gutter);
    transform: none;
    margin: 0;
}
.visitor-map-mode #notice:not(.error) { display: none; }
.visitor-map-mode #notice.error { padding: 8px 14px; }
.visitor-map-mode.route-map-focus #navDock {
    left: var(--vm-gutter);
    bottom: calc(var(--vm-footer-height) + 12px);
    border: 1px solid var(--vm-line);
    box-shadow: var(--vm-shadow);
}
.visitor-map-mode.route-live #vmTargetCard, .visitor-map-mode.route-map-focus #vmTargetCard { display: none; }
.visitor-map-mode #navSymbol { background: var(--vm-blue-soft); color: var(--vm-blue); }
.visitor-map-mode #empty.vm-empty { padding: 24px; color: var(--vm-muted); }
#empty.vm-empty .vm-empty-mark {
    justify-self: center;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin-bottom: 10px;
    border: 1px solid #dce4f0;
    border-radius: 17px;
    background: #fff;
    color: #254eaa;
    box-shadow: 0 8px 22px #23334b15;
}
.vm-empty-mark .vm-icon { width: 30px; height: 30px; }
#empty.vm-empty h2 { margin: 0; color: var(--vm-text, #182840); font-size: 20px; }
#empty.vm-empty p { max-width: 290px; margin: 6px 0; font-size: 13px; }

@media (max-width: 760px) {
    .visitor-map-mode {
        --vm-header-height: calc(60px + env(safe-area-inset-top, 0px));
        --vm-footer-height: calc(52px + env(safe-area-inset-bottom, 0px));
        --vm-rail: 0px;
        --vm-gutter: 10px;
    }
    .vm-brand { font-size: 14px; gap: 7px; }
    .vm-brand small { font-size: 10px; margin-top: 3px; }
    .vm-brand-mark { width: 35px; height: 35px; border-radius: 10px; }
    .vm-brand-mark .vm-icon { width: 22px; height: 22px; }
    .vm-header-actions { gap: 5px; }
    .vm-demo { font-size: 10px; padding: 4px 5px; }
    #visitorMapUI #vmLogin {
        justify-content: center;
        width: 42px;
        min-height: 42px;
        padding: 0;
    }
    #vmLogin > span { position: absolute; clip-path: inset(50%); white-space: nowrap; }
    #visitorMapUI #vmPlanner {
        z-index: 3;
        top: auto;
        bottom: calc(var(--vm-footer-height) + 9px);
        left: var(--vm-gutter);
        right: var(--vm-gutter);
        width: auto;
        max-height: min(50dvh, 400px);
        padding: 12px 14px;
        border: 1px solid var(--vm-line);
        border-radius: 16px;
        box-shadow: var(--vm-shadow);
    }
    #visitorMapUI.vm-preview-ready:not(.vm-editing) #vmPlanner { display: none; }
    #visitorMapUI.vm-editing #vmTargetCard, #visitorMapUI.vm-editing #vmRouteLaunch { display: none; }
    .vm-panel-title h1 { font-size: 22px; }
    #vmPlannerBody { padding-top: 8px; }
    .vm-start-row { margin-bottom: 7px; }
    #visitorMapUI .vm-field :is(input, select) { font-size: 16px; }
    .vm-chips { flex-wrap: nowrap; overflow: auto; scrollbar-width: thin; }
    .vm-controls { gap: 7px; }
    #visitorMapUI .vm-tool-group button { width: 42px; height: 42px; min-height: 42px !important; }
    #visitorMapUI #vmTargetCard, #visitorMapUI #vmRouteLaunch {
        left: var(--vm-gutter);
        right: var(--vm-gutter);
        width: auto;
        max-width: none;
    }
    #visitorMapUI #vmTargetCard { max-height: 30dvh; padding: 11px 12px; }
    #visitorMapUI.vm-preview-ready #vmTargetCard { bottom: calc(var(--vm-footer-height) + 65px); }
    #visitorMapUI #vmRouteLaunch { bottom: calc(var(--vm-footer-height) + 9px); }
    .visitor-map-mode.route-map-focus #navDock {
        right: var(--vm-gutter);
        max-height: min(40dvh, 320px);
    }
    #visitorMapUI #vmFloorCaption { display: none; }
    .visitor-map-mode #mapWorkspace > #mapHost:has(.vm-empty) { bottom: calc(var(--vm-footer-height) + min(50dvh, 390px)); }
    .visitor-map-mode #empty.vm-empty { padding: 10px; }
    #empty.vm-empty .vm-empty-mark { width: 48px; height: 48px; margin-bottom: 4px; }
    .vm-empty-mark .vm-icon { width: 25px; height: 25px; }
}
@media (max-width: 350px) {
    .vm-brand { font-size: 12px; }
    .vm-brand small { font-size: 9px; }
    .vm-demo { font-size: 9px; }
    #visitorMapUI #vmLogin { width: 38px; }
}
@media (max-width: 760px) {
    #visitorMapUI:not(.vm-preview-ready) #vmTargetCard { display: none; }
}
