@red: #c1272d;
@blue: #0071bc;
@light-blue: #c3d0e3;

.page-visioner {
    word-break: break-word;

    .rate-chart {

        .highcharts-title {
            font-family: 'Montserrat', sans-serif;
        }
    }

    .pusher {
        margin-top: -60px;
    }

    .highcharts-series.highcharts-tracker {

        path {
            stroke: transparent;

            &:nth-child(2) {
                fill: #cfd5e4;
            }
        }
    }

    .main-container {

        .content-system {
            display: none;

            h1 {
                border: none;
                font-size: 0;
            }
        }

        .page-content {
            margin: 0 -10px;

            .panels-flexible-row-first {

                .node-chart {
                    @media (min-width: 600px) and (max-width: 991px) {
                        margin: -31px 0 0;
                    }
                }
            }

            .panel-separator {
                display: none;
            }

            .panels-flexible-row {
                .panels-flexible-region {
                    width: 100%;
                }
            }

            .panel-flexible .panels-flexible-row {
                padding: 0;
            }

            article {
                position: relative;

                .node-content {
                    z-index: 1;
                }
            }

            article.mkbh-node-vision-display {

                &.view-mode-medium {

                    .node-content {

                        .node-body {
                            font-size: 16px;
                            background-color: yelow;
                        }
                    }
                }

                .node-content {

                    .node-sub-headline {
                        position: relative;
                        font-size: 12px;
                        letter-spacing: 1px;

                        &:before {
                            position: absolute;
                            top: 0;
                            left: 0;
                        }

                        .district {
                            padding: 0 0 0 15px;
                        }
                    }
                }
            }

            .views-row {
                margin: 0 10px 13px;
                overflow: hidden;
            }

            .flex-sidebar {
                padding: 0 0 0 10px;
            }

            .panels-flexible-row {
                overflow: hidden;

                .flex-content {

                    .pane-content {
                        margin: 0;
                    }

                    .node-inner {
                        position: relative;

                        .node-title {

                            a {

                                span {
                                    word-break: break-word;

                                    &.subtitle {
                                        color: #0071bc;
                                    }

                                    &.separator {
                                        color: black;
                                    }
                                }
                            }

                            .title {

                                span {
                                    word-break: break-word;
                                }
                            }
                        }
                    }
                }
            }

            .panels-flexible-row-first {
                padding: 20px 0 0;

                .flex-content {

                    .node-inner {
                        display: flex;
                        display: -webkit-flex;

                        .node-image {
                            flex: 71%;
                            -webkit-flex: 71%;
                        }

                        .node-content {
                            flex: 20%;
                            -webkit-flex: 20%;

                            .node-body {
                                height: 45px;
                                overflow: hidden;
                            }

                            .node-sub-headline {

                                &:before {
                                    position: absolute;
                                }

                                .district {
                                    padding: 0 0 0 16px;
                                }
                            }
                        }
                    }
                }
            }

            .visioner-medium-row {
                margin: 0 0 13px;
            }

            div[class*=visioner_medium_region-inside] {
                display: flex;
                display: -webkit-flex;

                .visioner-medium-block-pane {
                    flex: 78.5%;
                    -webkit-flex: 78.5%;

                    .views-row-2 {
                        margin: 0 10px;
                    }

                    .views-row {
                        overflow: hidden;

                        .node-content {
                            display: flex;
                            display: -webkit-flex;
                            padding: 10px 0 0 15px;

                            .node-content-inner {
                                flex: 54%;
                                -webkit-flex: 54%;
                            }

                            .node-chart {
                                flex: 30%;
                                -webkit-flex: 30%;

                                .rate-chart {
                                    height: 150px;
                                    width: 150px;
                                    margin: 5px auto 0;
                                    @media (min-width: 993px) and (max-width: 1200px) {
                                        margin: 10px auto 0;
                                    }

                                    .highcharts-title {
                                        font-size: 18px !important;
                                        text-shadow: 0 0 0 #000;
                                    }
                                }
                            }

                            .node-image {
                                flex: 40%;
                                -webkit-flex: 40%;
                                margin: -10px 0 0;
                            }

                            .node-body {

                                .field-body {
                                    overflow: hidden;
                                    height: 20px;
                                }
                            }
                        }
                    }
                }

                .redaktionens-udvalgte-block-pane {
                    flex: 20.1%;
                    -webkit-flex: 20.1%;

                    .flex-sidebar {
                        display: none;
                    }

                    .flex-content {
                        margin: 0 10px;
                        position: relative;

                        .pane-content {
                            position: relative;

                            &:hover {
                                .redaktionens-udvalgte-block .redaktionens-udvalgte-content > a:first-child:before {
                                    opacity: 0.3;
                                }
                            }
                        }

                        .redaktionens-udvalgte-block {
                            margin: 0 0 -500px;
                            background-color: #dcdfe9;
                            padding: 0 15px 500px;

                            .redaktionens-udvalgte-header {
                                margin: 0 -15px;
                                background-color: @blue;
                                padding: 6px 15px 8px 15px;
                                font: 10px 'Montserrat';
                                font-weight: 100;
                                color: white;
                                text-transform: uppercase;
                                letter-spacing: 1px;
                            }

                            .redaktionens-udvalgte-content {

                                & > a:first-child {
                                    font: 26px 'Montserrat';
                                    display: inline-block;
                                    margin: 12px 0 4px;
                                    z-index: 1;

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

                                    .title {
                                        color: black;
                                        display: inline-block;
                                        line-height: 28px;
                                    }
                                }

                                .district {
                                    font: 12px 'Montserrat';
                                    font-weight: 100;
                                    text-transform: uppercase;
                                    color: @blue;
                                    padding: 0 0 0 15px;
                                    letter-spacing: 1.3px;
                                    margin: 0px 0 27px;
                                    position: relative;

                                    &:before {
                                        content: '\f041';
                                        position: absolute;
                                        display: block;
                                        top: -1px;
                                        left: 0;
                                        font-size: 14px;
                                        font-family: 'FontAwesome';
                                    }
                                }

                                .body {
                                    font: 16px 'Caecilia LT Std';
                                    max-height: 38px;
                                    color: #666;
                                    line-height: 22px;

                                    p {
                                        margin: 10px 0;
                                    }
                                }

                                .chart {
                                    @media (min-width: 1201px) {
                                        margin: 28px 0 0;
                                    }

                                    .rate-chart {
                                        margin: 0 auto;
                                        height: 150px;
                                        width: 150px;

                                        .highcharts-title {
                                            font-size: 18px !important;
                                            text-shadow: 0 0 0 #000;
                                            font-weight: 100;
                                        }
                                    }
                                }

                                @media (min-width: 767px) and (max-width: 992px) {
                                    & > a:first-child, .district, .body {
                                        padding-right: 125px;
                                    }

                                    .chart {
                                        right: 0 !important;
                                    }
                                }
                            }
                        }
                    }
                }
            }

            .visioner-small-row {

                .view-content {

                    .views-row {
                        width: 48%;
                        float: left;
                        margin: 0 1% 13px;

                        .node-content {
                            display: flex;
                            display: -webkit-flex;
                            padding: 10px 0 0 15px;

                            @media (min-width: 767px) {
                                position: relative;
                                height: 150px;

                                .node-content-inner {
                                    padding-right: 135px;
                                }

                                .node-chart {
                                    flex: initial;
                                    position: absolute;
                                    right: 0;
                                    top: 8px;
                                }
                            }
                        }

                        .node-image {
                            margin: -10px 0 0px -15px;
                            flex: 0 0 140px;
                            -webkit-flex: 0 0 140px;
                        }

                        .node-content-inner {
                            flex: 17%;
                            -webkit-flex: 17%;
                            padding: 0 0 0 13px;

                            .node-sub-type {
                                margin: 0 0 10px
                            }

                            .node-title {
                                font-size: 24px;
                                line-height: 24px;
                            }

                            .node-sub-headline {
                                position: relative;

                                &:before {
                                    position: absolute;
                                    top: 0;
                                    left: 0;
                                }
                            }
                        }

                        .node-chart {
                            flex: 7%;
                            -webkit-flex: 7%;
                            height: 150px;
                            margin: -8px 0 0;
                        }
                    }
                }

                .pager.pager-load-more {
                    text-align: left;
                    padding: 0 10px;
                    margin: -2px 0 11px;

                    li {

                        a {
                            padding: 0 14px 7px 17px;

                            &:before {
                                top: 0px;
                            }
                        }
                    }

                    .ajax-progress {
                        display: none;
                    }
                }
            }

            .see-more-link-pane {
                display: none;
                margin: 0 10px 15px 10px;;

                .visioner-more {
                    font-family: 'Montserrat', sans-serif;
                    font-size: 14px;
                    padding: 5px 0 5px 20px;
                    position: relative;
                    letter-spacing: 1px;
                    border: none;
                    background-color: transparent;

                    &:before {
                        position: absolute;
                        display: block;
                        content: '\f0a9';
                        font-family: 'FontAwesome';
                        font-size: 16px;
                        top: 3px;
                        left: 0;
                        color: @red;
                    }

                    &:focus, &:hover, &:active {
                        text-decoration: none;
                    }
                }
            }

            .popular-visioner-row {
                .pager.pager-load-more {
                    display: none;
                    text-align: left;
                    padding: 0 10px;
                }

                .see-more-link-pane {
                    display: flex;
                }

                .seneste-tre-maneder-pane + .panel-separator {
                    display: block;
                    margin: 0 10px 10px;
                }

                .see-more-link-pane {
                    clear: both;
                    margin: 10px 10px 15px;
                }

                .seneste-tre-maneder-pane {
                    float: left;
                    width: 58.2%;

                    .flex-content {
                        margin: 17px 0 0;
                        @media (min-width: 992px) and (max-width: 1200px) {
                            margin: 9px 0 0;
                        }
                    }
                }

                .nogensdine-pane {

                    .flex-sidebar {
                        display: none;
                    }

                    .flex-content {
                        margin: 7px 0 0;
                    }
                }

                .seneste-tre-maneder-pane {

                    .flex-sidebar {

                        .pane-title {
                            border-top: none;
                        }
                    }
                }

                section {

                    .flex-content {

                        .view-header {
                            margin: 0 10px 14px;

                            .seneste-tre-maneder-title {
                                font: 14px 'Montserrat';
                                color: black;
                                font-weight: bolder;

                                span {
                                    color: @blue;
                                }
                            }
                        }

                        .views-row.views-row-first {
                            margin: 0 10px 15px;
                            padding: 0;

                            .vp-image {

                                img {
                                    width: 100%;
                                }
                            }

                            .vp-content {
                                padding: 10px;
                                display: flex;
                                display: -webkit-flex;

                                .vp-content-left {
                                    font-family: 'Montserrat';
                                    flex: 50%;
                                    -webkit-flex: 50%;

                                    .vp-category {
                                        font-size: 10px;
                                        color: #666;
                                        font-weight: 100;
                                        text-transform: uppercase;
                                    }

                                    .vp-title {
                                        font-size: 26px;
                                        overflow: hidden;

                                        a {
                                            color: black;
                                        }

                                        .title {
                                            color: black;
                                        }

                                        .subtitle {
                                            color: @blue;
                                        }

                                        @media screen and(max-width: @screen-md-max) {
                                            min-height: 74px;
                                        }
                                    }

                                    .district {

                                        .field-article-city-district {
                                            font-size: 12px;
                                            font-weight: 100;
                                            padding: 0 0 0 15px;
                                            color: @blue;
                                            text-transform: uppercase;
                                            position: relative;
                                            letter-spacing: 1px;

                                            &:before {
                                                content: '\f041';
                                                position: absolute;
                                                display: block;
                                                top: -1px;
                                                left: 0;
                                                font-size: 14px;
                                                font-family: 'FontAwesome';
                                            }
                                        }
                                    }
                                }

                                .vp-content-right {
                                    flex: 10%;
                                    -webkit-flex: 10%;
                                    height: 140px;

                                    .node-chart {
                                        margin: -3px 0 0;

                                        .highcharts-title {
                                            font-size: 18px !important;
                                            font-weight: 100;
                                            text-shadow: 0 0 0 #000;
                                        }
                                    }
                                }
                            }
                        }

                        .views-row.views-row-2 {
                            padding: 13px 30px 0 0;
                        }

                        .views-row.views-row-last {
                            //padding: 5px 30px 10px 0;

                            .visioner-popular-list-item {

                                .vp-list-item-title {
                                    border: none;
                                }
                            }
                        }

                        .views-row {
                            background-color: @light-grey;
                            margin: 0 10px;
                            padding: 5px 30px 0 0;

                            &:last-child {
                                padding: 5px 30px 13px 0;
                            }

                            .visioner-popular-list-item {
                                display: flex;
                                display: -webkit-flex;

                                .vp-list-item-chart {
                                    height: 40px;
                                    flex: 5%;
                                    -webkit-flex: 5%;

                                    .rate-chart {
                                        width: 55px;
                                        height: 55px;
                                        position: relative;
                                        top: -5px;

                                        .highcharts-container {

                                            svg {

                                                .highcharts-tracker {
                                                    -webkit-transform: translate(-10px, -10px) scale(1.8);
                                                    transform: translate(-10px, -10px) scale(1.8);
                                                }
                                            }
                                        }

                                        text {
                                            display: none;
                                        }
                                    }
                                }

                                .vp-list-item-title {
                                    padding: 5px 0 0;
                                    flex: 85%;
                                    -webkit-flex: 85%;
                                    border-bottom: 1px solid #c3d0e3;

                                    a {
                                        color: @grey;
                                        font-family: 'Montserrat';
                                        font-size: 14px;

                                        .title {
                                            color: black;
                                        }

                                        .subtitle {
                                            color: @blue;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }

          .view-cover-visioner.view-display-id-seneste_visioner_small .views-row {
            @media (min-width: 767px) {
              .node-content {
                height: initial;
              }
            }

            article, .node-inner {
              height: 100%;
            }

            .node-inner {
              padding-bottom: initial;
              margin-bottom: initial;
            }
          }

        }
    }
}
