.gmap_container {
    height: 500px;
}

#gmap {
    height: 100%;
}

.form_sidebar_container {
    text-align: right;
}

.form_sidebar_button {
    border: 1px solid #000;
    background: #000;
    color: #fff;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    transition: .5s;
    margin-bottom: 5px;
}

.form_sidebar {
    background-color: #f4f4f4;
    position: absolute;
    right: 15px;
    max-height: 500px;
    overflow:auto;
    text-align: left;
    width: 300px;
    z-index: 999;
}

.form_sidebar ul {
    list-style-type: none;
    padding: 16px 0 16px 30px;
    margin: 0;
}

.form_sidebar input[type=checkbox],
.selected_locations_container input[type=checkbox] {
    display: none;
}

.hi_checkbox {
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    padding: 5px 30px;
    position: relative;
    width: auto;
}

.hi_checkbox::before {
    background: #f4f4f4;
    background: #ddd;
    border: 1px solid #ddd;
    border-radius: 9px;
    content: '';
    display: block;
    height: 18px;
    left: 5px;
    margin-top: -10px;
    position: absolute;
    top: 50%;
    width: 18px;
}

.hi_checkbox::after {
    border-right: 4px solid #ddd;
    border-bottom: 3px solid #ddd;
    content: '';
    display: block;
    height: 20px;
    left: 9px;
    margin-top: -16px;
    opacity: 0;
    position: absolute;
    top: 60%;
    transform: rotate(45deg) scale(0.5);
    width: 9px;
}

input[type=checkbox]:checked+.hi_checkbox::before {
    border-color: #bd146e;
    border-color: #bd146e;
    background: #bd146e;
    background: #bd146e;
}

input[type=checkbox]:checked+.hi_checkbox::after {
    opacity: 1;
}

.selected_locations_container {
    border: 1px solid black;
    margin: 5px;
    margin-top: 30px;
    position: relative;
    min-height: 60px;
}

.selected_locations_container .selected_locations_explanation {
    background-color: white;
    display: inline-block;
    position: relative;
    left: 15px;
    top: -15px;
    margin-right: 15px;
}

.selected_locations {
    padding: 15px;
}


/* Google Maps Info Window Popup */

.info_window_flip_root {
    transform: translate(0, 0) rotateX(180deg);
    margin-top: -30px;
}

.info_window_flip_root .map_info_window {
    transform: rotateX(180deg);
}

.map_info_window .select_button.select_button {
    display: block !important;
    border-radius: 5px;
    border-color: transparent;
    background-color: #000;
    cursor:pointer;
    color: white;
    padding: 3px;
    position: absolute;
    outline: none;
    right: 5px;
    top: 5px;
}


.map_info_window .select_button.select_button.selected {
    background-color: red;
}

.gm-style-iw.gm-style-iw-c {
    border-radius: unset;
    padding: 0;
}

.gm-style-iw-d {
    overflow: auto !important;
}

/* .gm-style-iw-d img {
    height: 145px;
} */

.gm-style-iw.gm-style-iw-c button {
    display: none !important;
}

.map_info_window {
    cursor: initial;
    display: inline-block;
    font-family: 'M PLUS 1p', sans-serif;
    max-width: 200px;
}

.wp-dark-mode-active .map_info_window {
    background-color: var(--wp-dark-mode-inline-bgcolor);
    color: white;
}

.map_info_window>img {
    display: block;
    object-fit: cover;
    max-height: 145px;
    width: 100%;
}

.map_info_text {
    padding: 12px 10px;
    display: block;
    text-decoration: none;
    color: black;
}

.wp-dark-mode-active .map_info_text {
    background-color: var(--wp-dark-mode-inline-bgcolor);
    color: white;
}