﻿#map-embed {
    width: 100%;
    min-height: 530px;
    opacity: 1;
    z-index: 100;
    transition: opacity 1s;
}
#map-embed.loading {
    opacity: 0;
}
.cover {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #000;
    color: #fff;
    opacity: 1;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s;
}
/* Loading animation  */
.lds-ripple {
    display: inline-block;
    position: relative;
    width: 150px;
    height: 150px;
}
.lds-ripple div {
    position: absolute;
    border: 4px solid #86c79f;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
    animation-delay: -0.5s;
}
@keyframes lds-ripple {
    0% {
        top: 60px;
        left: 60px;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 0px;
        left: 0px;
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

.mapboxgl-popup {
    max-width: none;
    z-index: 300;
}
.mapboxgl-popup.has-video,
.mapboxgl-popup.has-image {
    padding: 20px;
    max-width: 95vw;
    overflow:hidden;
}
.mapboxgl-popup-content {
    text-align: center;
    padding:20px;
    font-family: 'Noto Sans', sans-serif;
    background-color: #1e4036;
    border-radius: 0;
    color:#fff;
    -webkit-box-shadow: 0px 0px 15px 5px rgba(255,255,255,.4);
    -moz-box-shadow: 0px 0px 15px 5px rgba(255,255,255,.4);
    box-shadow: 0px 0px 15px 5px rgba(255,255,255,.4);
}
.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    -webkit-align-self: center;
    align-self: center;
    border-bottom: none;
    border-top-color: #1e4036;
}
.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {
    -webkit-align-self: center;
    align-self: center;
    border-top: none;
    border-bottom-color: #1e4036;
}
/*.mapboxgl-popup-content iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}*/
.mapboxgl-popup-content p {
    font-size: 1.5rem;
    line-height:  1.8rem;
    padding:8px 0;
    text-align: left;
}
.videoWrapper {
    position: relative;
    width:100%;
    padding-bottom: 56.25%;
    height: 0;
    z-index: 9;
    border: 1px solid #000000;
}
.mapboxgl-popup-close-button {
    color:#fff;
    font-size: 2rem;
    font-weight: 300;
    top: 1px;
    right: -1px;
    z-index:500;
}
.mpc-cont {
    display: block;
    text-align: left;
}
.mpc-cont p:empty {
    display: none;
}
.mpc-cont img.popImg {
    width: 100%;
    max-height:300px;
    margin-bottom: 10px;
    height:auto;
}
.mpc-cont .data-cont {
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}
.mpc-cont .yield-data {
    display:block;
    width:100%;
    margin-bottom:15px;
    background:#162922;
    padding:15px 0;
    justify-content:space-between;
    align-items:center;
    flex-direction:column;
}
.mpc-cont .yield-data span {
    display:block;
    font-size:2.3rem;
    position:relative;
}
.mpc-cont .yield-data span:first-child {
    font-size:1.6rem;
    font-weight:800;
    margin-bottom:5px;
    margin-top:0;
}
.mpc-cont .yield-data span.yield:before {
    display:inline-block;
    content:"";
    width:13px;
    height:11px;
    background-image:url(/assets/map/img/yield-arrows.svg);
    background-size:13px 26px;
    background-position:0 -13px;
    background-repeat:no-repeat;
    margin-right:10px;
    margin-bottom:5px;
}
.mpc-cont .yield-data span.yield.outperformed:before {
    background-position:0 0;
}
.mpc-cont .yield-data.isTie span.yield:before,
.mpc-cont .yield-data.isTie span.yield.outperformed:before {
    display: none;
}
.mpc-cont .copy img {
    margin-bottom: 10px;
}
.mpc-cont .copy img.type {
    height: 40px;
    width: 40px;
    display:none;
} 
.mpc-cont .copy img.gh {
    width:128px;
}
.mpc-cont .copy img.nk {
    width:220px;
}
.mpc-cont .copy img.circle-yield-data {
    width:40px;
}
.mpc-cont .copy h2  {
    font-weight: 700;
    font-size:1.7rem;
    margin-bottom: 0;
}
.mpc-cont .copy h5  {
    font-weight: 600;
    font-size:1.3rem;
    margin-bottom: 0;
}
.mpc-cont .copy p {
    font-size: 1.5rem;
    line-height: 2rem;
    padding: 8px 0;
    margin: 0;
}
.mpc-cont .copy a {
    position: absolute;
    bottom:0;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: 700;
    background: #fff;
    color:#000;
    padding: 8px 20px;
    border: 2px solid #fff;
    transition: all .4s;
}
.mpc-cont .copy a:hover {
    background: transparent;
    text-decoration: none;
    color: #fff;
}
.mpc-cont.testi {
    padding: 10px;
    max-width: 600px;
}
.mpc-cont.testi h3 {
    margin-bottom: 0;
    font-size: 2rem;
}
.mpc-cont.testi p.quoted {
    font-size: 1.5rem;
    line-height: 1.8rem;
    font-weight: 400;
    padding: 0;
}
.mpc-cont.testi p.quoted::before {
    content:"\201C";
    font-size:3rem;
    line-height: .85;
    position: absolute;
    left: 10px;
    opacity: .5;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.mpc-cont.testi p.quoted::after {
    content:"\201D";
    font-size:3rem;
    line-height: .85;
    position: relative;
    right: -1px;
    top:4px;
    opacity: .5;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.mpc-cont .legal-copy {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.6rem;
}
.mpc-cont.video {
    display: flex;
    gap: 25px;
}
.mpc-cont.video b {
    color: #FFF;
}
.mpc-cont.video > div {
    flex-basis: calc(100% / 2);
}
.mpc-cont.video .video-cont iframe {
    aspect-ratio: 16/9;
    width: 100%;
}
@media (min-width: 576px) {
    .mapboxgl-ctrl-top-left {
        top: 90px;
        left: 20px;
    }
}
@media only screen and (min-width: 768px) {
    #map-embed {
        min-height: 645px;
    }
    .mapboxgl-popup.has-video,
    .mapboxgl-popup.has-image {
        padding: 20px;
        max-width: 1000px;
    }
    .mpc-cont {
        display: block;
    }
    .mpc-cont .yield-data span {
        font-size: 2.8rem;
        line-height: 1;
    }
    .mpc-cont .copy p,
    .mpc-cont.testi p.quoted {
        font-size: 1.6rem;
    }
    .mpc-cont.testi h3 {
        margin-bottom: 0;
        font-size: 2.5rem;
    }
    .mpc-cont .data-cont{
        width:31%;
        margin:0 1%;
        display: inline-block;
    }
    .mpc-cont .copy img {
        margin-bottom: 10px;
    }
    .mpc-cont img.popImg {
        width:auto;
        max-height: 400px;
        max-width:690px;
        margin-bottom: 15px;
        padding-right: 20px;
        align-self: center;
    }
    .mpc-cont .yield-data {
        width:550px;
        margin:0 20px 10px 0;
        padding:30px 10px;
        align-self:stretch;
        flex-direction:row;
        flex-shrink:0;
    }
    .mpc-cont .copy {
        min-width: 250px;
    }
    .mpc-cont .copy img.type {
        height: 40px;
        width: 40px;
        margin-bottom: 15px;
        display:block;
    } 
    .mapboxgl-popup-close-button {
        font-size: 3.5rem;
        top: 10px;
        right: 5px;
    }
    .mpc-cont.testi {
        padding: 20px;
        max-width: 600px;
    }
    .mpc-cont.testi p.quoted {
        font-size: 2.2rem;
        line-height: 2.6rem;
        font-weight: 400;
    }
    .mpc-cont.testi p.quoted::before {
        left: 21px;
    }
}
@media only screen and (min-width: 992px) {
    .mpc-cont {
        display: flex;
        text-align: left;
    }
}
@media only screen and (max-width: 991px) {
    .mpc-cont.video {
        flex-direction: column-reverse;
        gap: 5px;
    }
}