/* ==========================================================================

  people-map.css
  
  This stylesheet styles the custom module `People Map`

/* ========================================================================== */






.map-people {
    position: relative;
    margin: 0 4%;
}

.map-pin {
    position: absolute;
    width: 5%;
    height: 7%; /* This height is important as to provides a hover area that connects the image with the tooltip*/
}

.map-pin-image {
    display: block;
    width: 100%;
    margin: -40% auto 20px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.24); 
    cursor: pointer;  
    transition: border-color 0.2s ease;
}

.map-pin:hover .map-pin-image,
.map-pin-image:hover {
    border-color: #CB3036;
    z-index: 200;
}
.map-pin-image:hover + .map-pin-info,
.map-pin:hover,
.map-pin:hover .map-pin-info {
    display: block;
    z-index: 100;
}

.map-pin-info {
    background-color: white;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.24);
    line-height: 1.5;
    position: absolute;
    display: none;
    width: 210px;
    left: calc(-105px - (-50%));
}


.map-pin-info:before {
    position: absolute;
    right: calc(50% - 15px);
    top: -15px;
    content: "";
    border-style: solid;
    display: block;
    height: 0;
    width: 0;
    border-width: 0 15px 15px 15px;
    border-color: white transparent;
}

.map-pin-description {
    font-size: 14px;
    color: #606B70;
}
.map-pin-social {
    margin-top: 10px;
}
.map-pin-social a {
    text-decoration: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    
    to {
        opacity: 1;
    }
}

.animate-fade {
    animation-duration: 0.5s;
    animation-name: fadeIn;
}

/*---------------------- Map changes to a list for mobile  -----------------------*/


@media (max-width: 992px) {
    
    .map-people {
        background-image: url("https://www.bitovi.com/hubfs/people-process-tools/ppt-map.jpg");
        background-repeat: no-repeat;
        background-size: contain;
        min-height: 550px;
        margin: 40px 7% 0;
    }
    
    .map-people .map-image {
        display: none;
    }
    
    .map-people .widget-type-widget_container {
        margin: 0;
    }
    
    .map-people .hs_cos_wrapper_type_widget_container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .map-pin {
        position: relative;
        top: 0 !important;
        left: 0 !important;
        width: 90px;
        height: 90px;
        margin: 3px;
    }
    .map-pin-image {
        box-shadow: none;
        margin: 0;
    }
    .map-pin-info {
        margin-top: 25px;
    }
  
}

@media (max-width: 780px) {
    .map-people {
        margin-bottom: 40px;
    }
}

@media (max-width: 606px) {
    .map-pin-info {
        
    }
    .map-people .hs_cos_wrapper_type_custom_widget .map-pin-info:nth-child(5n+5) {
        color: red;
        left: auto;
        right: 0;
        margin-top: 0
    }
}

@media (max-width: 447px) {
    
}

@media (max-width: 334px) {
    
}




/* Pin Location */

.map-pin--adri {
    top: 68%;
    left: 47%;
}

.map-pin--mike {
    top: 71%;
    left: 44%;
}
.map-pin--justin {
    right: 40%;
    top: 26%;
}