@charset "UTF-8";

/* ==========================================================================
   Floor maps: a floor list next to the SVG plan of the selected floor.
   See js/building_map.js.

   The plans are deliberately plain: thin line work, and no fills apart from a
   light tint on the rooms that are in use.
   ========================================================================== */

.bm-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.bm-rail {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    flex: 1 1 100%;
    margin: 0;
}

.bm-planwrap {
    flex: 1 1 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    .bm-rail {
        flex: 0 0 15rem;
    }

    .bm-planwrap {
        flex: 1 1 0;
    }
}

/* ---------- floor list ---------- */

.bm-railbtn {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    width: 100%;
    padding: .35rem .6rem;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    background: #fff;
    text-align: left;
    font-family: "Roboto", sans-serif;
    line-height: 1.25;
}

.bm-railbtn:hover:not(:disabled):not(.is-active) {
    border-color: #0d6efd;
    background: #f1f6ff;
}

.bm-railbtn.is-active {
    border-color: #0d6efd;
    background: #0d6efd;
    color: #fff;
}

.bm-railbtn.is-active:hover {
    border-color: #0b5ed7;
    background: #0b5ed7;
}

.bm-railbtn.is-active .bm-railno {
    color: #fff;
}

.bm-railbtn:disabled {
    background: #f8f9fa;
    border-color: #e9ecef;
    cursor: default;
}

.bm-railbtn:disabled .bm-railno,
.bm-railbtn:disabled .bm-railuse {
    color: #adb5bd;
}

.bm-railno {
    flex: 0 0 2.2em;
    font-weight: 700;
    font-size: .85rem;
}

.bm-railuse {
    font-size: .75rem;
    color: #6c757d;
}

.bm-railbtn.is-active .bm-railuse {
    color: rgba(255, 255, 255, .85);
}

/* ---------- floor plan panel ---------- */

.bm-panel {
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    padding: .75rem;
    background: #fff;
}

.bm-plan-title {
    font-family: "Roboto", sans-serif;
    font-size: .85rem;
    color: #495057;
    margin: 0 0 .4rem;
}

.bm-plan-no {
    display: inline-block;
    min-width: 2.4em;
    margin-right: .5rem;
    padding: 0 .4rem;
    border-radius: .25rem;
    background: #0d6efd;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.bm-plan {
    width: 100%;
}

.bm-plan .bm-svg {
    width: 100%;
    height: auto;
    display: block;
}

.bm-info {
    border-top: 1px dotted #dee2e6;
    margin-top: .5rem;
    padding-top: .5rem;
    min-height: 4.6em;
}

.bm-info-title {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    margin: 0 0 .2rem;
}

.bm-info-title .bm-sub {
    font-weight: 400;
    font-size: .85rem;
    color: #6c757d;
}

/* ---------- SVG plan: plain line work ---------- */

.bm-svg {
    font-family: "Roboto", sans-serif;
}

.bm-svg .bm-foyer {
    fill: #fff;
    stroke: none;
}

.bm-svg .bm-wallline {
    fill: none;
    stroke: #495057;
    stroke-width: 4;
}

.bm-svg .bm-item .bm-shape {
    fill: none;
    stroke: #868e96;
    stroke-width: 2;
}

.bm-svg .bm-session .bm-shape {
    fill: #f4f8fc;
    stroke: #2b6cb0;
    stroke-width: 3;
}

.bm-svg .bm-room .bm-shape {
    fill: #f8f9fa;
    stroke: #adb5bd;
}

.bm-svg .bm-room .bm-label {
    fill: #868e96;
}

.bm-svg .bm-zone .bm-shape {
    fill: none;
    stroke: #b08d3f;
    stroke-width: 2;
    stroke-dasharray: 9 6;
}

.bm-svg .bm-counter .bm-shape {
    fill: #f1f3f5;
    stroke: #adb5bd;
    stroke-width: 2;
}

.bm-svg .bm-counter .bm-label {
    fill: #868e96;
}

/* the entrance is a square recess cut out of the corner */
.bm-svg .bm-entrance .bm-shape {
    fill: #f1f3f5;
    stroke: none;
}

.bm-svg .bm-wall-gap {
    fill: none;
    stroke: #fff;
    stroke-width: 7;
}

.bm-svg .bm-edge {
    fill: none;
    stroke: #495057;
    stroke-width: 4;
}

/* an atrium is drawn with a dashed edge, the usual way of showing a void */
.bm-svg .bm-atrium .bm-shape {
    fill: #f6f8fa;
    stroke: none;
}

.bm-svg .bm-atrium .bm-edge {
    stroke: #adb5bd;
    stroke-width: 2;
    stroke-dasharray: 12 7;
}

.bm-svg .bm-atrium .bm-label {
    fill: #6c757d;
}

.bm-plan .bm-atrium:hover .bm-shape,
.bm-plan .bm-atrium:focus-visible .bm-shape,
.bm-plan .bm-atrium.is-active .bm-shape {
    fill: #fdf6e6;
    stroke: none;
}

.bm-svg .bm-entrance .bm-label {
    fill: #146c43;
}

.bm-svg .bm-ic-stair {
    fill: none;
    stroke: #868e96;
    stroke-width: 2;
}

.bm-svg .bm-ic-line {
    stroke: #868e96;
    stroke-width: 2;
}

.bm-svg .bm-ic-women {
    fill: #c9788b;
}

.bm-svg .bm-ic-men {
    fill: #6f9dc4;
}

/* doors: the wall is cut away and a thin leaf is drawn */
.bm-svg .bm-door-gap {
    stroke: #fff;
    stroke-width: 5;
}

.bm-svg .bm-door {
    fill: none;
    stroke: #2b6cb0;
    stroke-width: 1.5;
}

.bm-svg .bm-label {
    fill: #212529;
    font-size: 25px;
    text-anchor: middle;
}

.bm-svg .bm-label.bm-small {
    font-size: 17px;
    fill: #495057;
}

.bm-svg .bm-label.bm-sub {
    font-size: 15px;
    fill: #868e96;
}

.bm-svg .bm-box-label {
    fill: #6c757d;
    font-size: 16px;
    font-weight: 700;
    text-anchor: middle;
}

.bm-svg .bm-zone .bm-label {
    fill: #8a6d1f;
    font-size: 16px;
}

.bm-svg .bm-role {
    fill: #2b6cb0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .06em;
    text-anchor: middle;
}

/* a floor that is one single room in use, such as the cafeteria on B1 */
.bm-svg .bm-area {
    fill: #fdf9f0;
}

.bm-plan .bm-area.is-active {
    fill: #fbf4e4;
}

.bm-svg .bm-foyer-label.bm-area-label text {
    fill: #212529;
    font-size: 25px;
}

.bm-svg .bm-foyer-label text {
    fill: #adb5bd;
    font-size: 21px;
    text-anchor: middle;
}

.bm-svg .bm-closed-label text {
    fill: #adb5bd;
    font-size: 34px;
    letter-spacing: .04em;
    text-anchor: middle;
}

/* interaction */
.bm-plan .bm-item,
.bm-plan .bm-foyer {
    cursor: pointer;
}

.bm-plan .bm-item:hover .bm-shape,
.bm-plan .bm-item:focus-visible .bm-shape {
    stroke: #f59e0b;
}

.bm-plan .bm-entrance:hover .bm-shape,
.bm-plan .bm-entrance:focus-visible .bm-shape,
.bm-plan .bm-entrance.is-active .bm-shape {
    fill: #e8f3ec;
    stroke: none;
}

.bm-plan .bm-item:focus-visible {
    outline: none;
}

.bm-plan .bm-item.is-active .bm-shape {
    stroke: #f59e0b;
    stroke-width: 4;
}

.bm-plan .bm-foyer.is-active {
    fill: #fffdf5;
}
