.map-list {
    position: relative;
}

.map-list li {
    position: relative;
    padding: 1.375em;
    list-style-type: none;
}

.map-list .details h2 {
    margin-bottom: 0;
    color: #303030;
    font-size: 18px;
    font-family: 'Manrope';
    text-align: center;
    margin: 10px auto;
}

.map-list .details p {
    color: #303030;
    font-size: 16px;
    font-family: 'Manrope';
    text-align: center;
}

/* .map-list .button {
    position: absolute;
    top: 50%;
    right: 1.375em;
    transform: translateY(-50%);
} */

.map-list .logo-map {
    position: absolute;
    background-image: url('map-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 154px;
    height: 89px;
    top: 30px;
    left: 70px;
    z-index: 1;
}

.map-list .details > a > span {
    background: #172c55;
    color: #fff;
    font-size: 12px;
    font-family: 'Manrope';
    padding: 2px 8px 4px;
    border-radius: 10px;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (min-width: 600px) {
    .map-list {
        height: 100vh;
        background-image: url(map.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        margin: 0;
    }

    .map-list li {
        position: absolute;
        padding: 0;
        transform: translateZ(0);
        height: 0px;
    }

    .map-list li:nth-child(even) {
        background: none;
    }

    .map-list li.video:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 95px;
        height: 99px;
        transform-origin: 100% 100%;
        background: url('video-icon-pin.png');
        background-size: contain;
        background-repeat: no-repeat;
        cursor: pointer;
    }

    .map-list li.photo:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 95px;
        height: 99px;
        transform-origin: 100% 100%;
        background: url('photo-icon-pin.png');
        background-size: contain;
        background-repeat: no-repeat;
        cursor: pointer;
    }

    .map-list li:hover {
        z-index: 1;
        height: auto;
    }

    .map-list .details {
        max-width: 274px;
        width: 100%;
        padding: 10px;
        margin-bottom: 4rem;
        transform: scale(0);
        transform-origin: 0 100%;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0px 0px 24px rgb(0 0 0 / 20%);
        opacity: 0;
        /* transition: opacity 500ms, transform 400ms cubic-bezier(0.6,-0.3,0.3,1.3); */
        z-index: 1;
        position: relative;
    }

    .map-list .details:after {
        content: '';
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 15px solid #fff;
        position: absolute;
        bottom: -15px;
        left: 0;
        right: 0;
        margin: 0 auto;
    }

    .map-list li:hover .details {
        transform: scale(1);
        opacity: 1;
    }

    .map-list .details > a {
        display: block;
        height: 100%;
        position: relative;
    }

    .map-list .details > a img {
        width: 100%;
        height: 174px;
        object-fit: cover;
    }

    .map-list li.photo .details > a img {
        cursor: zoom-in;
    }

    .map-list li.video .details > a:after {
        content: '';
        background: url('map-play-icon.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        width: 146px;
        height: 146px;
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        margin: 0 auto;
    }

    .map-list p {
        margin-bottom: 0.25rem;
    }

    /* .map-list .button {
        position: static;
        transform: none;
        width: 100%;
    } */
}

@media (max-width: 480px) {
    .map-list li {
        background: #f6f6f6;
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .map-list li .details img {
        width: 100%;
    }

    .map-list .details > a > span {
        top: 20%;
        right: -10px;
    }
    
    .map-list .logo-map {
        display: none;
    }
    
    .map-list {
        margin: 0 auto;
        padding: 0 20px;
    }

    .map-list p {
        margin-bottom: 0.5rem;
    }

    /* .map-list .button {
        position: static;
        transform: none;
        width: 100%;
    } */
}
