/* 
 * Always set the map height explicitly to define the size of the div element
 * that contains the map. 
 */
#map {
    height: 80vh;
    max-height: 50vw;
    border-radius: 1em;
  }
  
#map .property {
    align-items: center;
    background-color: #006648;
    border-radius: 50%;
    color: #263238;
    display: flex;
    font-size: 14px;
    gap: 15px;
    height: 30px;
    justify-content: center;
    padding: 4px;
    position: relative;
    width: 30px
}

#map .property,.property:after {
    transition: all .3s ease-out
}

#map .property:after {
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #006648;
    content: "";
    height: 0;
    left: 50%;
    position: absolute;
    top: 95%;
    transform: translate(-50%);
    width: 0;
    z-index: 1
}

#map .property .icon {
    width: 75%;
    top: -1px;
    position: relative;
}

#map .property .details {
    display: none;
    flex: 1;
    flex-direction: column
}

#map .property .price {
    font-size: 16px;
    font-weight: 600;
    padding: 0 8px;
}

#map .property .address {
    color: #7e7e7e;
    font-size: 14px;
    margin-bottom: 10px;
    margin-top: 5px;
    padding: 0 8px;
    max-width: 284px;
}

#map .property .features {
    align-items: flex-end;
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 0 8px 8px;
}

#map .property .features>div {
    align-items: center;
    background: #006648;
    color: #fff;
    border-radius: 5px;
    display: flex;
    font-size: 11px;
    gap: 5px;
    padding: 3px 6px;
    line-height: 1.5em;
    height: 1.5em;
}

#map .property.highlight {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 10px 10px 5px #0003;
    height: auto;
    padding: 0px;
    width: auto;
}

#map .property.highlight:after {
    border-top: 9px solid #ffffff;
    top: unset;
    bottom: -8px;
}

#map .property.highlight .icon {
    display: none;
}

#map .property.highlight .details {
    display: flex
}

#map .property.highlight img.photo {
    max-width: 300px;
    margin: 0 0 10px 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#map .property.highlight .otp {
    text-align: center;
}

#map .property.highlight .otp .sc_button {
    margin: 0.5em 0 1em !important;
    padding: 0.714em 2.571em;
}

#map .property .close-button {
    display: none;
}

#map .property.highlight .close-button {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    text-align: center;
    position: absolute;
    top: 5px;
    right: 5px;
    font-weight: 100;
    opacity: 0.6;
}

#map .property.highlight .close-button:hover {
    opacity: 1;
}