/************************/

/****** WAYFINDING ******/

#wayfinding {
    /*space mellem elementer*/
    --elementSpace: 2vw;
    /*padding omkring alt*/
    --wfPadding: 4vw;
    /*højde til (H3) overskrifter*/
    --h3space: 2em;
    z-index: 20;
    position: fixed;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    overflow: auto;
    color: white;
    font-size: var(--HD18px);
    padding: var(--wfPadding);
    /*løft hele bunden (til nav og sprogknapper) */
    padding-bottom: 12vh;
    /* flash effecter kræver manuel spacing her*/
    padding-right: 0;
    display: grid;
    grid-template-columns: 5fr 50% 3fr;
    grid-template-rows: 4.5em 5fr 2fr;
    grid-template-areas: "title title title" "tags map floors" "info map floors";
}

.portraitmode #wayfinding {
    /*space mellem elementer*/
    --elementSpace: 2vh;
    /*padding omkring alt*/
    --wfPadding: 4vh;
    /*højde til (H3) overskrifter*/
    --h3space: 2.5em;
    /*reset right padding*/
    padding-right: var(--wfPadding);
    /*løft hele bunden (til nav og sprogknapper) */
    padding-bottom: 4vh;
    grid-template-columns: 60% 40%;
    grid-template-rows: 5em 25% 42% 13% auto;
    grid-template-areas: "title title" "tags tags" "map map" "info ." "floors floors";
}

#wayfinding.singlefloor {
    padding-right: var(--wfPadding);
    grid-template-areas: "title title title" "tags map map" "info map map";
}

.portraitmode #wayfinding.singlefloor {
    grid-template-rows: 5em 25% 50% 14% auto;
    grid-template-areas: "title title" "tags tags" "map map" "info ." ". .";
}

#wayfinding h2 {
    grid-area: title;
    text-transform: uppercase;
    letter-spacing: 4.8px;
    font-size: var(--HD45px);
    color:var(--background-text-color);
}

#wayfinding #tagspace {
    grid-area: tags;
    display: flex;
    position: relative;
    justify-content: space-between;
}

#wayfinding #mapspace {
    grid-area: map;
    display: block;
    position: relative;
}

#wayfinding #floorspace {
    grid-area: floors;
    display: block;
}

#wayfinding h3 {
    text-transform: uppercase;
    font-size: var(--HD18px);
    font-weight: 700;
    letter-spacing: 2px;
    color:var(--background-text-color);
}

#tagspace h3, #mapspace h3, #floorspace h3 {
    position: absolute;
}

#floorspace h3 {
    margin-left: var(--elementSpace);
}

.portraitmode #floorspace h3 {
    margin-left: 0;
}

/* TAG SPACE */

#tagspace .tagcol {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    position: relative;
    margin-right: var(--elementSpace);
    overflow: hidden;
}

.portraitmode #tagspace .tagcol:last-child {
    margin-right: 0;
}

#tagspace .taglist {
    /* display: block; */
    list-style: none;
    padding-left: 0;
    margin-top: var(--h3space);
    overflow: scroll;
    height: 48vh;
    position: relative;
}

.portraitmode #tagspace .taglist {
    overflow: scroll;
    height: calc(100% - var(--h3space));
}

#tagspace .tag {
    margin-bottom: var(--HD12px);
    display: flex;
    justify-items: left;
    align-items: center;
    text-decoration: none;
    font-weight: 300;
    padding: var(--HD9px) var(--HD15px);
    transition-property: border-width;
    transition-duration: .1s;
    transition-timing-function: ease-out;
    cursor: pointer;
    overflow: hidden;
}

.portraitmode #tagspace .tag {
    width: calc(50% - 5px);
    float: left;
}

.portraitmode #tagspace .tag:nth-child(odd) {
    margin-right: 10px;
}

#tagspace .tag.active {
    background: #fff;
    color: #000;
    border-right: var(--locationcolor) solid 8px;
}

#tagspace .tag .material-icons {
    margin-right: var(--HD9px);
    width: 1em;
    font-size: var(--HD24px);
    line-height: inherit;
}

.btn-scrolldown, .btn-scrollup {
    color: #000;
    width: 25%;
    min-width: var(--HD45px);
    float: right;
    height: var(--HD45px);
    font-size: var(--HD45px);
    text-align: center;
    transition: opacity .3s;
}

.btn-scrolldown.disabled, .btn-scrollup.disabled {
    opacity: .4;
}

#taginfo {
    grid-area: info;
    background: #fff;
    color: #323235;
    transform-style: preserve-3d;
    perspective: 100px;
    margin-right: var(--elementSpace);
    z-index: 9999;
}

#taginfo p {
    margin: 0
}

.portraitmode #taginfo {
    margin-right: calc(var(--elementSpace) / 2);
    margin-bottom: var(--elementSpace);
    margin-top: var(--HD12px);
}

#taginfo .tagimage {
    display: none;
    float: left;
    margin: var(--HD11px);
    margin-right: var(--HD15px);
    max-height: calc(100% - 20px);
    max-width: 40%;
}

#taginfo img {
    float: left;
    margin: var(--HD11px);
    margin-right: var(--HD15px);
    max-height: calc(100% - 20px);
    max-width: 40%;
}

#taginfo .content {
    padding: var(--HD21px);
    position: relative;
    height: 100%;
    width: 100%;
}

#taginfo .title {
    position: relative;
    margin-bottom: 1rem;
    font-weight: bold;
}

#taginfo .btn-more {
    color: #fff;
    width: calc(50% - 0.7vw);
    height: 60px;
    min-width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    float: right;
    cursor: pointer;
    background: #df5a34;
    bottom: -70px;
    right: 0;
    position: absolute;
    display: none;
}

#taginfo .btn-close {
    position: absolute;
    right: calc(0px - var(--HD18px));
    top: calc(0px - var(--HD18px));
    background: var(--locationcolor);
    border-radius: 50%;
    display: block;
    width: var(--HD36px);
    height: var(--HD36px);
    display: flex;
    justify-content: center;
    align-items: center;
}

#taginfo .btn-close .material-icons {
    font-size: var(--HD24px);
}

/* CENTER SPACE */

#wayfinding .map-area {
    background: #ccc;
    width: 100%;
    height: calc(100% - var(--h3space));
    margin-top: var(--h3space);
}

#wayfinding .map-controls {
    margin-top: var(--HD12px);
    display: flex;
    justify-content: flex-end;
    position: absolute;
    right: 0;
}

#wayfinding .map-controls .btn-control {
    height: var(--HD60px);
    min-width: var(--HD60px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: var(--HD12px);
    cursor: pointer;
}

#wayfinding .map-controls .btn-zoom {
    font-size: var(--HD36px);
    font-weight: lighter;
}

/* RIGHT SPACE */

#floorlist {
    width: 100%;
    margin-top: var(--h3space);
    height: calc(100% - var(--h3space));
    overflow: scroll;
}

.portraitmode #floorlist {
    width: calc(100% + 80px);
    overflow: auto;
    display: flex;
    flex-flow: row nowrap;
    padding: var(--HD24px);
    padding-top: var(--h3space);
    margin: calc(0px - var(--HD24px));
    margin-top: 0;
}

#floorlist .floor {
    margin-left: var(--elementSpace);
    margin-right: var(--wfPadding);
    width: calc(100% - var(--elementSpace) - var(--wfPadding));
    height: 15vh;
    margin-bottom: var(--HD21px);
    cursor: pointer;
}

.portraitmode #floorlist .floor {
    width: 10vh;
    height: 100%;
    margin: 0 var(--HD21px) 0 0;

}


#floorlist .floor-img {
    overflow: hidden;
    opacity: 0.4;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#floorlist .floor.active .floor-img {
    opacity: 1;
}

#floorlist .floor-img img {
    max-width: 100%;
    max-height: 100%;
}

#floorlist .floortitle {
    position: absolute;
    font-weight: 300;
    bottom: 0px;
    display: block;
    padding: 0.4em;
    width: 100%;
    text-align: center;
}

#floorlist .tag-match {
    width: var(--HD36px);
    height: var(--HD36px);
    background: var(--locationcolor);
    border-radius: 50%;
    position: absolute;
    right: calc(4px - var(--HD12px));
    top: var(--HD9px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.portraitmode #floorlist .tag-match {
    /* right: -10px; */
    top: -5px;
}

#floorlist .floor.active .tag-match, #floorlist .floor.active .myfloor {
    display: none;
}

#floorlist .no-match {
    display: none;
}

#floorlist .myfloor {
    width: 22px;
    height: 22px;
    background: rgba(255, 0, 0, 1);
    box-shadow: 0px 0px 0px 6px rgba(255, 0, 0, .5);
    border-radius: 50%;
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 999;
}

.floor-scroll {
    margin: 0 3vw 0 2vw;
}

/* .portraitmode .floor-scroll {
    display: none;
} */

.moreatdifferentfloors {
    float: right;
    color: var(--locationcolor);
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    opacity: 0;
    letter-spacing: 1px;
}

.moreatdifferentfloors .arrow {
    margin-left: 0.3em;
}

.portraitmode .moreatdifferentfloors .arrow {
    transform: rotate(90deg);
}

@media (orientation: landscape) {
    /* hvis singfloor og singletheme lav plads til language-knapper */
    /* ved at flytte zoom-btns til venstre side */
    #wayfinding.singlefloor .map-controls.lang-obs {
        right: auto;
        left: 0;
        margin-left: calc(0px - var(--HD12px));
    }
}