@color: #c1041f;

.page-map, .page-kort {

    /*---------------------------------------------------  TEMPORARY  --------------------------------------------------*/

    .bx-wrapper {

        .bx-loading {
            display: none;
        }

        .bx-viewport {
            height: 967px !important;
        }
    }

    /*---------------------------------------------------  TEMPORARY  --------------------------------------------------*/

    .main-container {

        .content-system {
            display: none;
        }

        .row.overflow-hidden {

            .region-left-carousel {

                .carousel-wrapper {
                    margin: 0 -10px 0 0;
                    padding: 42px 0 62px;

                    .bx-wrapper {

                        .bx-viewport {
                            border: none;
                            left: 0;
                            box-shadow: none;

                            .vertical-carousel {

                                .single-item-info {
                                    width: 100%;
                                    margin: 0 0 13px;
                                    background-color: @light-grey; /*----------@light-grey---------*/
                                    border-top: 1px solid @color;

                                    &:hover {
                                        cursor: pointer;
                                    }

                                    .field-article-mi-video {

                                        .mkbh-flowplayer.is-splash.play-button {
                                            min-height: auto;

                                            video {
                                                width: 100%;
                                                height: auto;
                                            }
                                        }
                                    }

                                    .field-article-mi-image {

                                        img {
                                            width: 100%;
                                        }
                                    }

                                    .field-photo-mi-image {

                                        img {
                                            width: 100%;
                                        }
                                    }

                                    .item-text-info {
                                        font-family: 'Montserrat';
                                        padding: 0 10px 15px;

                                        .item-city {
                                            font-size: 10px;
                                            font-weight: 100;
                                            text-transform: uppercase;
                                            padding: 10px 15px 3px;
                                            position: relative;
                                            letter-spacing: 1px;

                                            &:before {
                                                position: absolute;
                                                display: block;
                                                content: '';
                                                width: 8px;
                                                height: 8px;
                                                top: 13px;
                                                left: 2px;
                                                border-radius: 50%;
                                            }

                                            &.item-type-byens-rum {
                                                &:before {
                                                    background-color: #c1041f;
                                                }

                                                & + .item-title {
                                                    .subtitle {
                                                        color: #c1041f;
                                                    }
                                                }
                                            }

                                            &.item-type-opinion {
                                                &:before {
                                                    background-color: #00a99d;
                                                }

                                                & + .item-title {
                                                    .subtitle {
                                                        color: #00a99d;
                                                    }
                                                }
                                            }

                                            &.item-type-photo_series {
                                                &:before {
                                                    background-color: black;
                                                }

                                                & + .item-title {
                                                    .subtitle {
                                                        color: black;
                                                    }
                                                }
                                            }

                                            &.item-type-vision {
                                                &:before {
                                                    background-color: #0071bc;
                                                }

                                                & + .item-title {
                                                    .subtitle {
                                                        color: #0071bc;
                                                    }
                                                }
                                            }

                                            &.item-type-projekt {
                                                &:before {
                                                    background-color: #999;
                                                }

                                                & + .item-title {
                                                    .subtitle {
                                                        color: #999;
                                                    }
                                                }
                                            }
                                        }

                                        .item-title {
                                            color: #4d4d4d;
                                            font-size: 18px;
                                            line-height: 20px;

                                            .title {
                                                color: black;
                                                //word-break: break-all;
                                                //-moz-hyphens: auto;

                                                &:before {
                                                    position: absolute;
                                                    content: '';
                                                    display: block;
                                                    top: 0;
                                                    left: 0;
                                                    right: 0;
                                                    bottom: 0;
                                                    background-color: black;
                                                    z-index: 1;
                                                    opacity: 0;
                                                    .transition(0.3s);
                                                }

                                                &:hover {

                                                    &:before {
                                                        opacity: 0.3;
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }

                        .bx-controls-direction {

                            & > a {
                                left: 50%;
                                margin-left: -15px;
                                background: none;
                                text-indent: 0;
                                font-size: 0;
                                z-index: 1;
                                /*position: relative;*/

                                &:before {
                                    position: absolute;
                                    display: block;
                                    top: 0;
                                    left: 0;
                                    font-size: 30px;
                                    color: #c1041f;
                                    font-family: 'FontAwesome';
                                }
                            }

                            .bx-prev {
                                top: -36px;

                                &:before {
                                    content: '\f077';
                                    top: -5px;
                                }
                            }

                            .bx-next {
                                top: 103%;

                                &:before {
                                    content: '\f078';
                                }
                            }
                        }
                    }
                }
            }

            .region-map {
                padding: 0;
                width: 81.33333333%;
                margin: 0 1%;

                .wrapper-full {
                    position: relative;

                    .map-wrapper {
                        margin: 0 0 3px;

                        .leaflet-marker-pane {

                            img {
                                width: 25px;
                                // this moves marker to incorrect position!
                                //margin-top: 0 !important;
                                //margin-left: 0 !important;
                            }
                        }

                        #map {
                            height: 1067px !important;
                        }
                    }

                    .map-filters {
                        background-color: #4d4d4d;
                        padding: 0px 10px 10px;
                        position: absolute;
                        bottom: 0;
                        right: 0;
                        left: 0;
                        z-index: 800;
                        border-top: 3px solid white;

                        .title {
                            font: 10px 'Montserrat';
                            font-weight: 100;
                            text-transform: uppercase;
                            color: white;
                            padding: 6px 0 0;
                        }

                        input {
                            -webkit-appearance: none;
                            width: 16px;
                            height: 16px;
                            border: 2px solid white;
                            border-radius: 3px;
                            vertical-align: text-bottom;
                            margin: 4px 7px 0 0;
                            position: relative;

                            &:focus {
                                outline: none;
                            }

                            &:checked {

                                &:before {
                                    position: absolute;
                                    content: '\f00c';
                                    display: block;
                                    font-family: 'FontAwesome';
                                    top: -5px;
                                    left: 0;
                                    color: white;
                                    font-size: 20px;
                                }
                            }
                        }

                        label {
                            font: 14px 'Montserrat';
                            color: white;
                            margin: 6px 20px 0 0;
                        }
                    }
                }

                .map-full {
                    margin: 10px 0 25px;
                    width: 64px;
                    float: right;
                    padding: 0;

                    a {
                        font: 14px 'Montserrat';
                        font-weight: 100;
                        position: relative;

                        &:before {
                            font-family: 'FontAwesome';
                            display: block;
                            position: absolute;
                            content: '\f0a9';
                            top: 3px;
                            left: -17px;
                        }
                    }
                }
            }
        }
    }
}

.map-info-container {
    position: absolute;
    right: 0;
    margin: 5px 5px 0 0;
}

.map-info {

    .map-info-popup {
        font: 10px 'Montserrat';
        font-weight: 100;
        color: white;
        padding: 13px 15px;
        background-color: @light-grey;
        width: 300px;
        z-index: 800;

        .popup-wrapper {

            .region-top {

                .breadcrumbs {
                    color: #666;
                    text-transform: uppercase;

                    ul {
                        padding: 0;

                        li {
                            display: inline-block;
                            font-size: 10px;
                            font-weight: 100;
                            padding: 0 0 0 13px;
                            letter-spacing: 1px;
                            position: relative;
                            line-height: initial;
                        }

                        .node-type {
                            margin: 0 15px 0 0;

                            &:before {
                                position: absolute;
                                content: '';
                                display: block;
                                top: 2px;
                                left: 0;
                                width: 8px;
                                height: 8px;
                                border-radius: 50%;
                            }

                            &.item-type-byens-rum {
                                &:before {
                                    background-color: #c1041f;
                                }

                                & + li.node-location {
                                    &:before {
                                        color: #c1041f;
                                    }
                                }
                            }

                            &.item-type-opinion {
                                &:before {
                                    background-color: #00a99d;
                                }

                                & + li.node-location {
                                    &:before {
                                        color: #00a99d;
                                    }
                                }
                            }

                            &.item-type-photo_series {
                                &:before {
                                    background-color: black;
                                }

                                & + li.node-location {
                                    &:before {
                                        color: black;
                                    }
                                }
                            }

                            &.item-type-vision {
                                &:before {
                                    background-color: #0071bc;
                                }

                                & + li.node-location {
                                    &:before {
                                        color: #0071bc;
                                    }
                                }
                            }

                            &.item-type-projekt {
                                &:before {
                                    background-color: #999;
                                }

                                & + li.node-location {
                                    &:before {
                                        color: #999;
                                    }
                                }
                            }

                            &:after {
                                position: absolute;
                                display: block;
                                content: '\f054';
                                font-family: 'FontAwesome';
                                top: 3px;
                                right: -11px;
                                font-size: 7px;
                            }
                        }

                        .node-location {

                            &:before {
                                position: absolute;
                                display: block;
                                content: '\f041';
                                font-family: 'FontAwesome';
                                top: 1px;
                                left: 2px;
                                color: red;
                            }
                        }
                    }
                }

                .title {
                    line-height: 22px;
                    margin: 15px 0 13px;

                    a {
                        font-size: 26px;
                        color: black;

                        &:before {
                            position: absolute;
                            content: '';
                            display: block;
                            top: 0;
                            left: 0;
                            right: 0;
                            bottom: 0;
                            background-color: black;
                            z-index: 1;
                            opacity: 0;
                            .transition(0.3s);
                        }

                        &:hover {
                            text-decoration: none !important;

                            &:before {
                                opacity: 0.3;
                            }
                        }
                    }
                }

                .image {
                    margin: 0 -15px;
                }

                .subtitle {
                    font: 16px 'Caecilia LT Std';
                    color: #808080;
                    margin: 14px 0 16px;
                    line-height: 20px;
                }

                .date {
                    color: #666;
                    font-size: 10px;
                    font-weight: 100;
                    text-transform: uppercase;
                    letter-spacing: 1px;
                }
            }
        }
    }

    .popup-close {
        position: absolute;
        top: 4px;
        right: 3px;
        width: 30px;
        height: 30px;
        padding: 0;
        font: 24px 'Montserrat';
        text-align: center;
        font-weight: bold;
        z-index: 800;
        cursor: pointer;
    }
}
