﻿/* searchresult map */
.map {
    position: relative;
}

#map-info {
    display: none;
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    margin: auto;
    max-width: 40%;
    text-align: center;
    font-size: 14px;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    box-shadow: -2px -2px 6px rgba(154, 168, 192, 0.2), 2px 5px 11px rgba(154, 168, 192, 0.2);
    color: #222;
    opacity: 0.95;
    z-index: 2;
}

@media (max-width: 640px) {
    #map-info {
        max-width: 75%;
    }
}

.searchresult .map {
    width: 100%;
    display: none;
}

.marker {
    background-color: #9e142e;
    background-size: cover;
    width: 50px;
    height: 20px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

    .marker:after {
        color: #9e142e;
        content: "";
        position: absolute;
        width: 0;
        height: 0;
        bottom: -0.5rem;
        left: 27px;
        margin-left: -0.5rem;
        box-sizing: border-box;
        border-style: solid;
        border-width: 4px;
        transform-origin: 0 0;
        transform: rotate(-45deg);
    }

.mapboxgl-popup-content {
    width: 220px;
    height: auto;
    max-height: 400px;
    border-radius: 10px !important;
    overflow: hidden;
    padding: 0 !important;
    box-shadow: 0px 1px 14px 0px rgba(0,0,0,0.8) !important;
}

.mapPopup img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    color: transparent;
}

    .mapPopup img::after {
        display: block;
        position: relative;
        background-image: linear-gradient(white, green);
        margin-top: -150px;
        height: 150px;
        width: 100%;
        content: '';
    }

.mapPopup a {
    text-decoration: none;
}

.photoWrap {
    height: 110px;
}

.mapPopup {
    background-color: black;
}

    .mapPopup .info {
        position: relative;
        color: white;
        padding: 0 8px 2px 8px;
        font-size: 14px;
        background: linear-gradient( to top, black, rgba(255, 0, 0, 0) )
    }
