/* remove white border around the circle marker */
circle.imapsCircle {
    stroke-width: 0;
}

.map_loading:after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-image: url("../../../assets/img/loading.svg");
    background-position-x: 50%;
    background-position-y: 50%;
    background-repeat: no-repeat;
    background-size: 50px;
    animation: rotation 2s infinite linear;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}

/* tooltip wrapper */
.imapsTooltip foreignObject > div {
    font-family: var(--font-family-main);
    background-color: var(--color-white);
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 5px 10px rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    padding: 25px;
}

.imapsTooltip br {
    display: none;
}

.imapsTooltip__title {
    font-weight: 700;
    font-size: 17px;
    line-height: 100%;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-grey-100);
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.imapsTooltip__icon {
    position: initial;
    height: 20px;
    margin-right: 10px;
    border: 1px solid var(--color-grey-25);
    border-radius: 50%;
}

.imapsTooltip__link {
    display: inline-block;
    font-weight: 700;
    font-size: 11px;
    line-height: 110%;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-turquoise);
    margin-bottom: 10px;
    text-decoration: none !important; /* intentional */
}

.imapsTooltip__link:hover {
    opacity: unset;
}

.imapsTooltip__tag {
    font-weight: 700;
    font-size: 11px;
    line-height: 110%;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background-color: var(--color-pink);
    color: var(--color-white);
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 15px;
    border-radius: 60px;
}

.imapsTooltip__list {
    font-weight: 400;
    font-size: 15px;
    line-height: 130%;
    color: var(--color-grey-100);
}

/* customize map's select control */
.igm_select_container {
    margin: 0 auto 25px auto;
    width: 200px;
    font-size: 11px;
    line-height: 110%;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--color-grey-100);
    text-transform: uppercase;
    font-family: var(--font-family-main);
}

.igm_select_container .choices__inner,
.igm_select_container .is-focused .choices__inner,
.igm_select_container .is-open .choices__inner {
    display: flex;
    align-items: center;
    background: var(--color-white);
    border: 2px solid var(--color-grey-100);
}

.igm_select_container .choices__placeholder {
    opacity: 1;
}

/* map control buttons customization */
@media only screen and (max-width: 768px) {
    .map_wrapper .map_controls {
        width: 100%;
        justify-content: center;
        gap: 24px;
    }

    /* the buttons */
    .map_wrapper .map_controls > div {
        width: 40px;
        background: var(--color-white);
        border: 2px solid var(--color-grey-100);
        font-weight: 700;
    }

    /* hide "home" control for map view on mobile, as this setting does not work from the WP-admin side */
    .map_wrapper .map_controls .map_home_button {
        display: none;
    }
}
