/*
 * Content auf Kartenseite
 *
 *************************************************************************/

.gda-map {
    height: 80vh;
}

.gda-map__info h3 {
    text-decoration: none;
}

.gda-toolbar {
    display: flex;
    gap: 2rem 4rem;
}

.filter {
    position: relative;
}

.filter_wrapper {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .25rem;
    cursor:pointer;
    transition: background-color 0.3s ease-in-out;
}

.ic_filter {
    height: 21px;
    width: 18px;
}

.ic_arrow_down {
    height: 7px;
    width: 12px;
}

.filter_wrapper.active .filter_text {
    text-decoration: underline;
}

.filter_wrapper.active .ic_arrow_down {
    transform: rotate(-180deg);
}

.ic_bildung {
    height: 27px;
    width: 27px;
}

.ic_dienstleister {
    height: 21px;
    width: 26px;
}

.ic_energie {
    height: 29px;
    width: 26px;
}

.ic_planer {
    height: 27px;
    width: 27px;
}

.ic_rz_betreiber {
    height: 27px;
    width: 24px;
}

.ic_tech_ausstatter {
    height: 27px;
    width: 28px;
}

.filter_wrapper:hover {
    background-color: var(--color__beige);
}

.filter_text {
    text-underline-offset: 2px;
    font-weight: var(--font__weight--semi);
}

.filter_box {
    position: absolute;
    margin-top: 2.5rem;
    top: 0;
    left: 0;
    z-index: 999;
    width: 320px;
    background-color: var(--color__dark);
    color: var(--color__light);
}

.filter_box__wrapper {
    display: flex;
    flex-flow: column;
    gap: 1rem;
    padding: 1.5rem;
}

.filter_box__row{
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.filter_box__row .radio_label {
    display: flex;
    gap: .5rem;
}

.filter_box__row .radio_label svg {
    flex: 0 0 auto;
}

/* better solution for styling the checkboxes */
[type="radio"]:not(:checked),
[type="radio"]:checked {
    /* hide the checkbox without making it hidden for
    the screen readers */
    position: absolute;
    left: 0;
    opacity: 0.01;
}

/* styling the label and making room for the boxes */
[type="radio"]:not(:checked) + .radio_label,
[type="radio"]:checked + .radio_label {
    position: relative; /* make label the reference to position the custom boxes */
    cursor: pointer;
    width: 100%;
    padding-right: calc(30px + 1rem);
}

/* styling the new boxes*/
[type="radio"]:not(:checked) + .radio_label::before,
[type="radio"]:checked + .radio_label::before {
    content: '';
    position: absolute;
    right: 0;
    top: 1px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--color__light);
    transition: all .275s;
    border-radius: 30px;
}

/* the checked box */
[type="radio"]:not(:checked) + .radio_label::after,
[type="radio"]:checked + .radio_label::after {
    content: '';
    background: url('../img/icon_check_partner.svg') center center no-repeat;
    background-size: 30px auto;
    height: 30px;
    width: 30px;
    position: absolute;
    top: 0;
    right: 0;
    transition: all .2s;
}

[type="radio"]:not(:checked) + .radio_label::after,
[type="radio"]:checked + .radio_label::after {
    top: -5px;
    right: -7px;
}

/* how a no check state should look like  */
[type="radio"]:not(:checked) + .radio_label::after {
    opacity: 0;
    transform: scale(0) rotate(45deg);
}

/* how a check should look like */
[type="radio"]:checked + .radio_label::after {
    opacity: 1;
    transform: scale(1) rotate(0);
}

[type="radio"]:checked + .radio_label {
    font-weight: var(--font__weight--semi);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.show_all {
    text-transform: uppercase;
}

@media screen and (max-width: 388px) {
    .filter_box {
        width: 252px;
    }
    .radio_label {
        hyphens: auto;
    }
}

.gm-ui-hover-effect {
    width: 24px!important;
    height: 32px!important;
}

.gm-ui-hover-effect span {
    height: 24px!important;
    margin: 8px 0 0 0!important;
}

.gda-map__link_wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tour_icon_wrapper {
    display: flex;
    align-items: center;
    gap: .05rem;
}

.btn_tour_full,
.btn_tour_full:hover {
    text-decoration: none;
    background-color: transparent;
    border: 1px solid var(--color__text);
    font-weight: normal;
    padding: .5em .5em;
}

.icon_barrierefrei {
    width: 23px;
    height:23px;
}

.icon_de {
    margin: 5px 0;
    height: 15px;
    width: 30px;
}

.icon_en {
    margin: 5px 0;
    height: 15px;
    width: 35px;
}
