/* Integration-only CSS: preserve the main site layout and the editor's SVG paint. */
.elrio-map .map-page__canvas {position:relative;overflow:hidden;background:transparent;isolation:isolate;}
.elrio-map [data-map-viewport] {position:relative;width:100%;height:100%;overflow:hidden;}
.elrio-map [data-map-viewport] > .floor {display:none;width:100%;height:100%;}
.elrio-map [data-map-viewport] > .floor.active {display:block;}
.elrio-map [data-map-viewport] > .floor > svg {display:block;width:100% !important;height:100% !important;max-width:none;max-height:none;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;}
/* Legacy pre-v2 exported SVGs need the exact same fallback as /map technical view.
   v2 carries its own colors, fonts and coordinates and is NOT modified here. */
.elrio-map [data-map-viewport] svg:not([data-map-export-version="2"]) [data-map_id] > path:not([fill]) {fill:var(--map-region-fill,#FCFCFC);}
.elrio-map [data-map-viewport] svg:not([data-map-export-version="2"]) [data-map_id] > path:not([stroke]) {stroke:var(--map-region-stroke,#C2C2C2);}
.elrio-map [data-map-viewport] svg:not([data-map-export-version="2"]) [data-map_id] > path:not([stroke-width]) {stroke-width:var(--map-region-stroke-width,2);}
.elrio-map [data-map-viewport] svg:not([data-map-export-version="2"]) [data-map_id] > text,
.elrio-map [data-map-viewport] svg:not([data-map-export-version="2"]) [data-map_id] > text tspan,
.elrio-map [data-map-viewport] svg:not([data-map-export-version="2"]) text[data-svg_label],
.elrio-map [data-map-viewport] svg:not([data-map-export-version="2"]) text[data-svg_label] tspan {
 fill:var(--map-region-text,#56585D) !important;
 font-family:Arial,sans-serif;font-weight:500;line-height:1.6;
 text-anchor:middle;dominant-baseline:middle;stroke:none;
}
.elrio-map [data-map-viewport] svg [id^="gm_"] {cursor:pointer;}
.elrio-map [data-map-viewport] svg [id^="gm_"]:hover > path,
.elrio-map [data-map-viewport] svg [id^="gm_"].is-selected > path,
.elrio-map [data-map-viewport] svg [id^="gm_"].is-category-highlighted > path,
.elrio-map [data-map-viewport] svg [id^="gm_"]:hover [data-map_id] > path,
.elrio-map [data-map-viewport] svg [id^="gm_"].is-selected [data-map_id] > path,
.elrio-map [data-map-viewport] svg [id^="gm_"].is-category-highlighted [data-map_id] > path {fill:var(--map-active-fill,#B3061D) !important;stroke:var(--map-active-fill,#B3061D) !important;}
/* Animate only the tenant room paint and its label, not free text, SVG logos,
   labels outside the store group or the geometry configured in the editor. */
.elrio-map [data-map-viewport] svg [id^="gm_"] > path,
.elrio-map [data-map-viewport] svg [id^="gm_"] [data-map_id] > path {
    transition:fill .28s ease-in-out,stroke .28s ease-in-out;
}
.elrio-map [data-map-viewport] svg [id^="gm_"] > text,
.elrio-map [data-map-viewport] svg [id^="gm_"] > text tspan,
.elrio-map [data-map-viewport] svg [id^="gm_"] [data-map_id] > text,
.elrio-map [data-map-viewport] svg [id^="gm_"] [data-map_id] > text tspan {
    transition:fill .28s ease-in-out;
}
/* Hover and selected labels use the same active text color from the editor.
   Explicit tspan selectors are required for multiline SVG labels with own fills. */
.elrio-map [data-map-viewport] svg [id^="gm_"]:hover > text,
.elrio-map [data-map-viewport] svg [id^="gm_"]:hover > text tspan,
.elrio-map [data-map-viewport] svg [id^="gm_"].is-selected > text,
.elrio-map [data-map-viewport] svg [id^="gm_"].is-category-highlighted > text,
.elrio-map [data-map-viewport] svg [id^="gm_"].is-selected > text tspan,
.elrio-map [data-map-viewport] svg [id^="gm_"].is-category-highlighted > text tspan,
.elrio-map [data-map-viewport] svg [id^="gm_"]:hover [data-map_id] > text,
.elrio-map [data-map-viewport] svg [id^="gm_"]:hover [data-map_id] > text tspan,
.elrio-map [data-map-viewport] svg [id^="gm_"].is-selected [data-map_id] > text,
.elrio-map [data-map-viewport] svg [id^="gm_"].is-category-highlighted [data-map_id] > text,
.elrio-map [data-map-viewport] svg [id^="gm_"].is-selected [data-map_id] > text tspan,
.elrio-map [data-map-viewport] svg [id^="gm_"].is-category-highlighted [data-map_id] > text tspan {
    fill:var(--map-active-text,#FFFFFF) !important;
}
/* Individual pictograms are tappable route destinations. SVG groups must
   accept pointer hits even when the artwork has transparent areas. */
.elrio-map [data-map-viewport] svg g[data-map-figure] {
    pointer-events:bounding-box;
    cursor:pointer;
    touch-action:manipulation;
}
.elrio-map [data-map-viewport] svg g[data-map-figure]:focus-visible {
    outline:2px solid var(--color-accent,#971b2f);
    outline-offset:3px;
}
.elrio-map .map-filter__option[hidden], .elrio-map [hidden] {display:none !important;}
.elrio-map .elrio-map__directory {display:none !important;}
.elrio-map .map-page__canvas .mapFloorEmpty {padding:45px 22px;color:#555;text-align:center;}
.elrio-map .map-page__facilities [data-map-figure-toggle].active,
.elrio-map .map-page__mobile-facilities [data-map-figure-toggle].active {background-color:#007d8a;}
/* Tenant card from the current design: thumbnail, name, red floor line and
   compact action. The outer anchor stays unclipped so the close button can
   sit outside the rounded panel; only the inner panel scrolls. */
.elrio-map .elrio-map__details {
    position:absolute;
    right:22px;
    bottom:50px;
    z-index:8;
    width:318px;
    max-width:calc(100% - 30px);
    box-sizing:border-box;
}
.elrio-map .elrio-map__details-content {
    display:flex;
    flex-direction:column;
    align-items:center;
    width:100%;
    max-height:min(610px, calc(100dvh - 100px));
    padding:34px 42px 56px;
    overflow-x:hidden;
    overflow-y:auto;
    border-radius:32px;
    background:#fff;
    box-shadow:0 10px 38px rgba(0,0,0,.13);
    text-align:center;
    box-sizing:border-box;
}
.elrio-map .elrio-map__details-close {
    position:absolute;
    top:-18px;
    right:-18px;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    padding:0;
    border:0;
    border-radius:50%;
    background:#b0b0b0;
    color:#fff;
    cursor:pointer;
    transition:background-color .2s ease;
}
.elrio-map .elrio-map__details-close:hover,
.elrio-map .elrio-map__details-close:focus-visible {background:#007d8a;}
.elrio-map .elrio-map__details-close svg {width:18px;height:18px;flex:none;}
.elrio-map .elrio-map__details-photo {
    position:relative;
    flex:none;
    width:100%;
    max-width:200px;
    aspect-ratio:1 / 1;
    overflow:hidden;
    border-radius:13px;
    background:#f5f5f5;
}
.elrio-map .elrio-map__details-photo img {
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
    user-select:none;
}
.elrio-map .elrio-map__details-placeholder {
    display:flex;
    position:absolute;
    inset:0;
    align-items:center;
    justify-content:center;
    padding:14px;
    color:#191919;
    font-size:20px;
    font-weight:700;
    line-height:1.25;
    overflow-wrap:anywhere;
}
.elrio-map .elrio-map__details-title {
    width:100%;
    margin:30px 0 0;
    font-size:20px;
    font-weight:600;
    line-height:1.35;
    text-align:center;
    text-transform:none;
    color:#191919;
    overflow-wrap:anywhere;
}
.elrio-map .elrio-map__details-stage {
    margin:4px 0 0;
    font-size:16px;
    font-family:Montserrat,Arial,sans-serif;
    font-weight:500;
    line-height:1.45;
    text-align:center;
    color:var(--color-accent,#971b2f);
    overflow-wrap:anywhere;
}
.elrio-map .btn.btn--border.elrio-map__details-link {
    flex:none;
    width:100%;
    min-width:0;
    min-height:62px;
    margin-top:22px;
    padding:9px 20px;
    border:1px solid #c6c6c6;
    border-radius:70px;
    background:transparent;
    color:#191919;
    font-size:16px;
    font-weight:600;
    line-height:1.3;
    text-transform:none;
    white-space:nowrap;
    text-decoration:none;
}
.elrio-map .btn.btn--border.elrio-map__details-link:hover {color:#fff;border-color:var(--color-accent,#971b2f);}
@media(max-width:991px) {
    .elrio-map .map-page__canvas {height:100%;}
    .elrio-map .map-page__mobile-facilities,
    .elrio-map .map-page__mobile-floors,
    .elrio-map .map-page__mobile-zoom {z-index:5;}
    .elrio-map .elrio-map__details {width:300px;right:22px;bottom:50px;}
    .elrio-map .elrio-map__details-content {padding:30px 36px 34px;}
    .elrio-map .elrio-map__details-photo {max-width:160px;}
    .elrio-map .btn.btn--border.elrio-map__details-link {min-width:0;min-height:53px;}
}
@media(max-width:575px) {
    .elrio-map .map-page__mobile-facilities {gap:clamp(10px,4vw,22px);}
    .elrio-map .elrio-map__details-content {padding:25px 25px 28px;border-radius:26px;}
    .elrio-map .elrio-map__details-title {font-size:18px;margin-top:18px;}
    .elrio-map .elrio-map__details-stage {font-size:14px;}
    .elrio-map .btn.btn--border.elrio-map__details-link {margin-top:18px;min-height:46px;min-width:0;font-size:14px;}
    .elrio-map .elrio-map__details-close {width:36px;height:36px;top:-14px;right:-14px;}
}

/* Full-width interaction surface. The SVG stage matches the site's container,
   while the public map engine fits the geometry and all side labels to it. */
.elrio-map .map-page__canvas-wrap {background:transparent;}
.elrio-map .map-page__canvas {background:transparent;}
/* The detail card remains anchored to the container-width stage;
   the outer canvas also accepts dragging and zooming from empty space. */
.elrio-map .map-page__stage {position:relative;width:100%;height:100%;margin-inline:auto;}
@media (min-width: 992px) {
    .elrio-map .map-page__canvas-wrap {
        /* Full viewport-wide *interaction* surface, outside the site's .container. */
        width:100vw;
        max-width:none;
        margin-left:calc(50% - 50vw);
        margin-right:0;
        height:649px; /* 469 + (113 - 30) + (127 - 30) */
        margin-top:30px;
    }
    .elrio-map .map-page__stage {
        /* Match the site's actual container width; the map runtime fits visible
           floor objects and all side captions inside this area. */
        width:min(100%, var(--container-width));
    }
    .elrio-map .map-page__canvas {
        height:100%;
        touch-action:none;
        cursor:grab;
    }
    .elrio-map .map-page__canvas.is-dragging-map {cursor:grabbing;}
    .elrio-map [data-map-viewport] {
        position:absolute;
        top:83px; /* original visual map position */
        left:0;
        right:0;
        width:100%;
        height:469px; /* original visual map scale / aspect */
        overflow:visible;
    }
    .elrio-map [data-map-viewport] > .floor {overflow:visible;}
    .elrio-map [data-map-viewport] > .floor > svg {overflow:visible !important;}
    .elrio-map .map-page__controls {margin-top:30px;}
    /* Detail card offset from the bottom of the interaction area. */
    .elrio-map .elrio-map__details {bottom:50px;}
}
@media (min-width: 992px) and (max-width: 1260px) {
    .elrio-map .map-page__canvas-wrap {
        height:570px; /* 430 + (100 - 30) + (100 - 30) */
    }
    .elrio-map [data-map-viewport] {
        top:70px;
        height:430px;
    }
    .elrio-map .elrio-map__details {bottom:50px;}
}

/* Map filters: white default stroke as in the design, accent only while open. */
.elrio-map .map-page__filters .map-filter__button {
    border:1px solid #fff;
}
.elrio-map .map-page__filters .map-filter.is-open .map-filter__button {
    border-color:var(--color-accent,#971b2f);
}
/* Search suggestions mirror the existing custom selects, not browser datalist UI. */
.elrio-map .map-page__filters .map-page__search,
.elrio-map .map-page__mobile-controls .map-page__search {
    position:relative;
    overflow:visible;
    z-index:35;
}
.elrio-map .map-page__mobile-controls {
    position:relative;
    z-index:25;
}
.elrio-map .map-page__search .map-search-suggest {
    position:absolute;
    top:calc(100% + 15px);
    left:0;
    z-index:40;
    width:100%;
    padding:35px 15px 40px 0;
    border-radius:30px;
    background:#fff;
    box-shadow:0 4px 55px rgba(0,0,0,.1);
    animation:elrioMapSearchShow .2s ease-out both;
}
@keyframes elrioMapSearchShow {
    from {opacity:0;transform:translateY(-8px);}
    to {opacity:1;transform:translateY(0);}
}
@media(prefers-reduced-motion:reduce) {
    .elrio-map .map-page__search .map-search-suggest {animation:none;}
}
.elrio-map .map-page__search .map-search-suggest__options {
    display:flex;
    flex-direction:column;
    max-height:355px;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:none;
}
/* Same separate scrollbar track/thumb geometry as .map-filter__scrollbar. */
.elrio-map .map-page__search .map-search-suggest__options::-webkit-scrollbar {display:none;}
.elrio-map .map-page__search .map-search-suggest__scrollbar {
    position:absolute;
    top:43px;
    right:31px;
    width:6px;
    height:calc(100% - 95px);
    border-radius:10px;
    background:#e6e6e6;
    pointer-events:none;
}
.elrio-map .map-page__search .map-search-suggest__scrollbar span {
    display:block;
    width:100%;
    height:68px;
    border-radius:inherit;
    background:var(--color-accent,#971b2f);
    transform:translateY(0);
}
.elrio-map .map-page__search .map-search-suggest__option {
    display:block;
    position:static;
    flex:none;
    top:auto;
    right:auto;
    width:100%;
    height:auto;
    padding:0 45px;
    border:0;
    border-radius:0;
    background:transparent;
    transform:none;
    text-align:left;
    font-size:19px;
    font-weight:500;
    line-height:2.1;
    color:#191919;
    cursor:pointer;
    transition:color var(--transition-base,.2s);
}
.elrio-map .map-page__search .map-search-suggest__option::before {content:none;display:none;}
.elrio-map .map-page__search .map-search-suggest__option:hover,
.elrio-map .map-page__search .map-search-suggest__option.is-active {color:var(--color-accent,#971b2f);}
.elrio-map .map-page__search .map-search-suggest__empty {
    padding:7px 24px 7px 30px;
    margin:0;
    font-size:17px;
    line-height:1.45;
    color:#6b6b6b;
}
@media(max-width:1260px) {
    .elrio-map .map-page__search .map-search-suggest__option {font-size:16px;}
}
@media(max-width:575px) {
    .elrio-map .map-page__search .map-search-suggest {border-radius:24px;padding:18px 10px 20px 0;}
    .elrio-map .map-page__search .map-search-suggest__scrollbar {top:22px;right:20px;height:calc(100% - 44px);}
    .elrio-map .map-page__search .map-search-suggest__options {max-height:275px;}
    .elrio-map .map-page__search .map-search-suggest__option {font-size:16px;padding:7px 20px 7px 24px;}
}

/* Mobile popup stays centered above the map controls while the stage and
   SVG keep their original interaction/stacking behavior. */
@media(max-width:991px) {
    .elrio-map .map-page__canvas {overflow:visible;isolation:auto;z-index:auto;}
    .elrio-map .map-page__stage {z-index:auto;isolation:auto;}
    .elrio-map .elrio-map__details {
        z-index:12;
        left:50%;
        right:auto;
        bottom:-70px;
        transform:translateX(-50%);
        width:300px;
        max-width:calc(100% - 66px);
    }
    .elrio-map .elrio-map__details-content {max-height:min(420px, 70dvh);}
}
@media(max-width:575px) {
    .elrio-map .elrio-map__details {width:calc(100% - 66px);max-width:300px;}
}
@media(max-width:360px) {
    .elrio-map .elrio-map__details {width:calc(100% - 40px);}
}

/* Short two-step SVG floor transition (opt-in on the public El Rio map).
   Only the floor layers fade; selection cards and controls do not animate.
   SVG fonts, coordinates, and editor colors are untouched. */
@keyframes elrioFloorOut {
    from {opacity:1;}
    to {opacity:0;}
}
@keyframes elrioFloorIn {
    from {opacity:0;}
    to {opacity:1;}
}
.elrio-map[data-map-floor-fade] [data-map-viewport] > .floor.mapFloor--leaving {
    display:block;
    position:absolute;
    inset:0;
    z-index:2;
    pointer-events:none;
    animation:elrioFloorOut 180ms ease-in-out both;
}
.elrio-map[data-map-floor-fade] [data-map-viewport] > .floor.mapFloor--arriving {
    display:block;
    position:relative;
    z-index:1;
    animation:elrioFloorIn 300ms ease-out 120ms both;
}
@media (prefers-reduced-motion: reduce) {
    .elrio-map[data-map-floor-fade] [data-map-viewport] > .floor.mapFloor--leaving,
    .elrio-map[data-map-floor-fade] [data-map-viewport] > .floor.mapFloor--arriving {
        animation:none;
    }
}

/* Font only: both v2 (self-contained) and legacy SVG labels should match the
   editor. Do not override colors, positions, text-anchor or inline sizes. */
.elrio-map [data-map-viewport] svg [data-map_id] > text,
.elrio-map [data-map-viewport] svg [data-map_id] > text tspan,
.elrio-map [data-map-viewport] svg text[data-svg_label],
.elrio-map [data-map-viewport] svg text[data-svg_label] tspan,
.elrio-map [data-map-viewport] svg text[data-free-text-content],
.elrio-map [data-map-viewport] svg text[data-free-text-content] tspan {
    font-family: "Montserrat", Arial, sans-serif !important;
    font-weight: 600 !important;
}


/* Route UI is deliberately compact: navigation panel design can be revised
   without changing the route graph or editor data. */
/* Same pill/button geometry as Подробнее, initially filled red. */
.elrio-map .btn.btn--accent.elrio-map__route-action {
    flex:none;
    width:100%;
    min-width:0;
    min-height:62px;
    margin-top:12px;
    padding:9px 20px;
    border:1px solid var(--color-accent,#971b2f);
    border-radius:70px;
    background:var(--color-accent,#971b2f);
    color:#fff;
    font-size:16px;
    font-weight:600;
    line-height:1.3;
    text-transform:none;
    white-space:nowrap;
    transition:background-color .25s ease,border-color .25s ease,opacity .25s ease;
}
.elrio-map .btn.btn--accent.elrio-map__route-action:hover,
.elrio-map .btn.btn--accent.elrio-map__route-action:focus-visible {
    background:#89172a;
    border-color:#89172a;
    opacity:1;
}
@media(max-width:991px) {
    .elrio-map .btn.btn--accent.elrio-map__route-action {min-width:0;min-height:53px;}
}
@media(max-width:575px) {
    .elrio-map .btn.btn--accent.elrio-map__route-action {min-width:0;min-height:46px;font-size:14px;}
}
/* Figures reuse the tenant card padding and button width at every viewport.
   Without a thumbnail, keep only the title and route action. */
.elrio-map .elrio-map__details--figure:not(.elrio-map__details--figure-with-image) .elrio-map__details-photo,
.elrio-map .elrio-map__details--figure .elrio-map__details-stage,
.elrio-map .elrio-map__details--figure .elrio-map__details-link {display:none!important;}
.elrio-map .elrio-map__details--figure:not(.elrio-map__details--figure-with-image) .elrio-map__details-title {margin-top:0;}
.elrio-map .elrio-map__details--figure .btn.btn--accent.elrio-map__route-action {margin-top:32px;}
/* Figma 2516:17470 — route card, shared site typography. */
.elrio-map .elrio-map__route-panel {
    position:absolute;
    right:max(0px, calc((100% - var(--container-width)) / 2));
    bottom:40px;
    z-index:15;
    width:322px;
    max-width:calc(100% - 36px);
    color:#191919;
    font-family:Montserrat,Arial,sans-serif;
    box-sizing:border-box;
    cursor:default;
}
.elrio-map .elrio-map__route-panel[hidden] {display:none!important;}
.elrio-map .elrio-map__route-content {
    display:flex;
    flex-direction:column;
    padding:32px 49px 49px 50px;
    max-height:calc(649px - 80px);
    box-sizing:border-box;
    border-radius:30px;
    background:#fff;
    box-shadow:0 4px 55px rgba(0,0,0,.1);
}
.elrio-map .elrio-map__route-title {
    margin:0;
    color:#191919;
    font-size:22px;
    font-weight:600;
    line-height:52px;
    letter-spacing:0;
    text-transform:none;
    white-space:nowrap;
}
.elrio-map .elrio-map__route-description {
    margin:-2px 0 28px;
    font-size:15px;
    font-weight:500;
    line-height:22px;
    color:#5c5c5c;
}
.elrio-map .elrio-map__route-steps-wrap {
    position:relative;
    display:flex;
    flex-direction:column;
    min-height:0;
    flex:0 1 auto;
}
.elrio-map .elrio-map__route-steps {
    display:flex;
    flex-direction:column;
    gap:20px;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    scrollbar-width:none;
    overscroll-behavior:contain;
}
.elrio-map .elrio-map__route-steps::-webkit-scrollbar {display:none;}
/* Match the category filter track, without taking width from the route tabs. */
.elrio-map .elrio-map__route-scrollbar {
    position:absolute;
    top:0;
    bottom:0;
    right:-22px;
    width:6px;
    border-radius:10px;
    background:#e6e6e6;
    touch-action:none;
    cursor:pointer;
}
.elrio-map .elrio-map__route-scrollbar[hidden] {display:none!important;}
.elrio-map .elrio-map__route-scrollbar span {
    display:block;
    width:100%;
    height:68px;
    border-radius:inherit;
    background:var(--color-accent,#971b2f);
    transform:translateY(0);
    cursor:grab;
}
.elrio-map .elrio-map__route-scrollbar:active span {cursor:grabbing;}
.elrio-map .elrio-map__route-steps:focus-visible {outline:2px solid #007d8a;outline-offset:2px;}
.elrio-map .elrio-map__route-step {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    flex:none;
    width:100%;
    min-height:137px;
    padding:17px 27px 12px;
    gap:12px;
    border:1px solid #d2d2d2;
    border-radius:15px;
    background:#fff;
    color:#000;
    text-align:left;
    font-family:inherit;
    cursor:pointer;
    box-sizing:border-box;
    transition:background-color .2s ease,color .2s ease,border-color .2s ease;
}
.elrio-map .elrio-map__route-step.is-active {
    padding-inline:20px;
    border-color:#971b2f;
    background:#971b2f;
    color:#fff;
    box-shadow:0 4px 55px rgba(0,0,0,.1);
}
.elrio-map .elrio-map__route-step:not(.is-active):hover {border-color:#971b2f;}
.elrio-map .elrio-map__route-step:focus-visible {outline:2px solid #007d8a;outline-offset:-3px;}
.elrio-map .elrio-map__route-floor {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:61px;
    min-height:25px;
    padding:0 10px;
    border:1px solid #a3a3a3;
    border-radius:27px;
    font-size:11.6px;
    font-weight:500;
    line-height:20px;
    color:#5c5c5c;
    box-sizing:border-box;
}
.elrio-map .elrio-map__route-step.is-active .elrio-map__route-floor {color:#fff;border-color:#fff;}
.elrio-map .elrio-map__route-instruction {
    display:block;
    width:100%;
    font-size:18px;
    font-weight:600;
    line-height:23px;
    overflow-wrap:anywhere;
}
.elrio-map .elrio-map__route-instruction span {display:block;}
.elrio-map .elrio-map__route-close {
    width:45px;
    height:45px;
    top:-12px;
    right:-7px;
    background:#aaa;
}
@media (min-width:992px) and (max-width:1260px) {
    .elrio-map .elrio-map__route-content {max-height:490px;padding:24px 36px;}
    .elrio-map .elrio-map__route-title {line-height:38px;}
    .elrio-map .elrio-map__route-description {margin:0 0 20px;}
}
@media (max-width:991px) {
    /* No mobile route-card frame was supplied: keep the original map and
       side controls fully usable, with the card just below the canvas. */
    .elrio-map.is-route-active .map-page__canvas-wrap {height:auto;padding-bottom:24px;}
    .elrio-map.is-route-active .map-page__canvas {height:540px;}
    .elrio-map .elrio-map__route-panel {position:relative;left:auto;right:auto;bottom:auto;width:322px;margin:0 auto;}
    .elrio-map .elrio-map__route-content {padding:22px 24px 24px;max-height:none;border-radius:26px;}
    .elrio-map .elrio-map__route-title {font-size:20px;line-height:1.4;}
    .elrio-map .elrio-map__route-description {margin:10px 0 18px;font-size:14px;line-height:20px;}
    .elrio-map .elrio-map__route-steps {max-height:300px;gap:12px;}
    .elrio-map .elrio-map__route-scrollbar {right:-16px;}
    .elrio-map .elrio-map__route-step,.elrio-map .elrio-map__route-step.is-active {min-height:100px;padding:13px 17px;gap:8px;}
    .elrio-map .elrio-map__route-instruction {font-size:16px;line-height:21px;}
    .elrio-map .elrio-map__route-close {width:36px;height:36px;top:-10px;right:-8px;}
}
.elrio-map .mapRouteOverlay .mapRouteLine {pointer-events:none;stroke-linecap:round;stroke-linejoin:round;}
.elrio-map .mapRouteOverlay .mapRouteLine--outer {stroke:#fff;stroke-width:15;}
.elrio-map .mapRouteOverlay .mapRouteLine--inner {stroke:#971b2f;stroke-width:7;}
/* Navigation network and barriers must never render as room contours. */
.elrio-map g.navigation,.elrio-map g.route-barrier {visibility:hidden!important;pointer-events:none!important;}

/* Source paths and editor barriers are never a part of the public rendering. */
.elrio-map svg g.navigation, .elrio-map svg g.route-barrier,
.elrio-map svg [data-region-type="navigation-line"],
.elrio-map svg [data-region-type="route-barrier"] {
  visibility:hidden!important;pointer-events:none!important;
}
/* Built route is a separate overlay and remains visible. */
.elrio-map svg .mapRouteOverlay {visibility:visible!important;}
.elrio-map .elrio-map__route-notice {
  position:absolute;z-index:25;left:50%;bottom:85px;transform:translateX(-50%);
  max-width:min(470px,calc(100% - 32px));width:max-content;
  padding:11px 18px;border-radius:12px;background:#fff;
  box-shadow:0 5px 25px rgba(0,0,0,.16);color:#971b2f;
  font:500 13px/1.5 Montserrat,sans-serif;text-align:center;
}
.elrio-map .elrio-map__route-notice[hidden]{display:none!important;}

/* Map pictograms: fade between the normal and active SVG from the figure editor.
   Match the shop hover easing/duration, without altering the drawing geometry. */
.elrio-map [data-map-viewport] svg g[data-map-figure][data-figure-transition="crossfade"] > [data-figure-art],
.elrio-map [data-map-viewport] svg g[data-map-figure][data-figure-transition="crossfade"] > [data-figure-active-art] {
    transition: opacity .28s ease-in-out;
}
.elrio-map [data-map-viewport] svg g[data-map-figure] > [data-figure-active-art] {
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .elrio-map [data-map-viewport] svg g[data-map-figure][data-figure-transition="crossfade"] > [data-figure-art],
    .elrio-map [data-map-viewport] svg g[data-map-figure][data-figure-transition="crossfade"] > [data-figure-active-art] {
        transition: none;
    }
}

/* Decorative figures remain visible (and can be highlighted by the type
   buttons), but cannot receive pointer/touch clicks or keyboard focus. */
.elrio-map [data-map-viewport] svg g[data-map-figure][data-figure-interactive="0"],
.elrio-map [data-map-viewport] svg g[data-map-figure][data-figure-interactive="0"] * {
    pointer-events:none !important;
    cursor:default;
}

/* On mobile, use the original overlay positions of controls from main.css.
   Keep the original light-gray canvas background of the mobile layout. */
@media (max-width: 991px) {
    .elrio-map .map-page__canvas-wrap {background:#ededed;}
    .elrio-map .map-page__title-container .page__title {width:auto;}

    /* Compact mobile controls, closer to the Metropolis floor-plan scale. */
    .elrio-map .map-page__mobile-floors {
        width:44px;
        padding:3px;
    }
    .elrio-map .map-page__mobile-floors button {
        width:38px;
        height:38px;
        font-size:18px;
    }
    .elrio-map .map-page__mobile-floors button.is-active {
        width:32px;
        height:32px;
        margin:2px 0;
    }
    .elrio-map .map-page__mobile-zoom {
        gap:8px;
    }
    .elrio-map .map-page__mobile-zoom button {
        width:38px;
        height:38px;
    }
    .elrio-map .map-page__mobile-zoom .map-page__zoom-button--plus {
        background-size:16px auto;
    }
    .elrio-map .map-page__mobile-zoom .map-page__zoom-button--minus {
        background-size:13px auto;
    }

    /* The floor SVG contains a light background rectangle for the editor.
       On the public mobile map it creates an unwanted pale backing below
       the actual plan, so let the map-stage background show through. */
    .elrio-map [data-map-viewport] svg [data-map-canvas-background] {
        fill:transparent !important;
        stroke:none !important;
    }
}
