/*---------------------*/
/* START Find A Broker */
/*---------------------*/

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Spinner style */
.spinner {
    font-size: 3rem;
    color: white;
}

#wrapper .find-a-broker {
    background-color: #f4f4f4;
    padding: 48px 24px;

    .color-secondary {
        color: #ff6600;
    }

    .broker-info .list-icon {
        display: inline-block;
        width: 25px;
        text-align: center;
    }

    .broker-info h2 {
        margin-top: 0;
        line-height: 24px;
    }

    .broker-info h4 {
        margin-bottom: 4px;
        margin-top: 0;
        line-height: 20px;
        font-weight: bold;
    }

    a,
    a:hover,
    a:active {
        color: #004687;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    .btn.btn-unstyled {
        padding: 8px 16px;
    }

    a.btn.btn-link {
        text-decoration: underline;
        font-size: 1.6rem;
    }

    a.btn {
        text-decoration: none;
    }

    a.btn:focus,
    a.btn:active:focus {
        box-shadow: 0 0 0;
        outline: 0;
        color: #004687;
    }

    a.btn-primary {
        background-color: #004687 !important;
        border-color: #004687 !important;
        color: #ffffff;
    }

    a.btn-secondary {
        border-color: #004687;
        background-color: #fff;
    }

    a.btn-secondary:hover {
        background-color: #f4f4f4;
        border-color: #002a52;
        color: #004687;
    }

    .map-responsive {
        overflow: hidden;
        padding-bottom: 50%;
        position: relative;
        display: none;
    }

    .map-responsive iframe {
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        position: absolute;
    }

    .card {
        border-width: 0;
        max-width: 450px;
        margin: 0 auto;
    }

    .card-body {
        padding: 24px;
        display: grid;
        gap: 16px;
    }

    .toggle-switch {
        width: 100%;
    }

    .toggle-switch label {
        font-weight: normal;
        margin-right: -4px;
        width: 50%;
    }

    .toggle-switch input[type="radio"] {
        display: none;
    }

    .toggle-option {
        padding: 8px 16px 8px 16px;
        border: 1px solid;
        text-align: center;
        line-height: 1.5;
        cursor: pointer;
    }

    .icon-ok:before {
        font-family: "FontAwesome";
        content: "\f00c";
        font-style: normal;
    }

    .icon-search:before {
        font-family: "FontAwesome";
        content: "\f002";
        font-style: normal;
    }

    .icon-star:before {
        font-family: "FontAwesome";
        content: "\f005";
        font-style: normal;
    }

    .icon-star-empty:before {
        font-family: "Font Awesome 6 Free";
        content: "\f005";
        font-style: normal;
    }

    .icon-map-marker:before {
        font-family: "FontAwesome";
        content: "\f041";
        font-style: normal;
    }

    .icon-globe::before {
        font-family: "FontAwesome";
        content: "\f0ac";
        font-style: normal;
    }

    .icon-envelope::before {
        font-family: "Font Awesome 6 Free";
        content: "\f0e0";
        font-style: normal;
    }

    .icon-phone::before {
        font-family: "FontAwesome";
        content: "\f095";
        font-style: normal;
    }

    .search-results-wrapper .partner:before {
        content: " ";
        background: url(https://www.vivium.be/documents/d/vivium/icon-partner) no-repeat center;
        width: 20px;
        display: inline-block;
        height: 20px;
    }

    .search-results-wrapper .brocom:before {
        content: " ";
        background: url(https://www.vivium.be/documents/d/vivium/icon-brocom) no-repeat center;
        width: 20px;
        display: inline-block;
        height: 20px;
    }

    .toggle-option .icon-ok {
        color: #ffffff;
        display: none;
    }

    .toggle-option.address {
        border-radius: 4px 0 0 4px;
    }

    .toggle-option.name {
        border-radius: 0 4px 4px 0;
    }

    .toggle-switch input[type="radio"]:checked+.toggle-option {
        background-color: #004687;
    }

    .toggle-switch input[type="radio"]:checked+.toggle-option .icon-ok {
        display: inline-block;
    }

    .toggle-switch input[type="radio"]:checked+.toggle-option span {
        color: white;
    }

    .toggle-switch:has(.toggle-address input[type="radio"]:checked)+.search-broker-form .input-group.input-name {
        display: none;
    }

    .toggle-switch:has(.toggle-name input[type="radio"]:checked)+.search-broker-form .input-group.input-address {
        display: none;
    }

    input[type="search"],
    .form-control {
        padding: 12px 8px 12px 8px;
        height: 40px;
    }

    .input-group .form-control:first-child {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .input-group-addon {
        background-color: #eee;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    .input-group-addon:has(.btn) {
        padding: 0;
    }

    .input-group-addon:last-child {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-left: 0;
    }


    .search-results-wrapper {
        grid-column: 1;
        grid-row: 2;
    }

    .broker-detail .search-results-wrapper {
        grid-row: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .contact-item {
        display: grid;
        grid-template-columns: max-content auto;
        align-items: baseline;
        gap: 4px;
    }

    .legend {
        background-color: #eaeff3;
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 4px;
    }

    .broker-detail .legend {
        margin-bottom: 0;
    }

    .legend .favourite,
    .legend .partner,
    .legend .brocom {
        display: grid;
        grid-template-columns: max-content auto;
        grid-template-rows: auto auto;
        gap: 8px;
    }

    .favourite .icon-star {
        font-size: 20px;
        color: #ff6600;
    }

    .show-more-wrapper {
        display: grid;
    }

    .broker-info {
        border-bottom: 1px solid #ccc;
        padding: 16px 0 16px 0;
        display: grid;
        grid-template-columns: auto max-content;
        gap: 8px;
    }

    .broker-detail .broker-info {
        padding-top: 0;
    }

    .broker-info:last-child {
        border-bottom-width: 0;
    }

    .broker-other-info {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-end;
    }

    .categories {
        display: flex;
        gap: 8px;
        justify-content: end;
        align-items: center;
        margin-bottom: 12px;
    }

    .categories .favourite,
    .categories .partner,
    .categories .brocom {
        height: 20px;
    }
}

@media only screen and (min-width: 576px) {
    #wrapper .find-a-broker {
        .card-body {
            padding: 32px;
        }
    }
}

@media only screen and (min-width: 768px) {
    #wrapper .find-a-broker {
        .show-desktop {
            display: grid;
        }

        .show-mobile {
            display: none;
        }

        .card {
            max-width: 1200px;
        }

        .card-body {
            grid-template-columns: 3fr 4fr;
            grid-template-rows: auto 1fr;
        }

        .broker-detail .card-body {
            grid-template-rows: 1fr;
        }

        .toggle-switch {
            width: 100%;
        }

        .map-responsive {
            display: block;
            grid-column: 2;
            grid-row: 1 / 3;
            height: 40vh;
            position: sticky !important;
            top: 64px;
        }

        .broker-detail .map-responsive {
            grid-row: 1;
        }
    }
}

@media only screen and (min-width: 992px) {
    #wrapper .find-a-broker {
        .card-body {
            grid-template-columns: 1fr 2fr;
        }
    }
}

/*
     * TO CHECK FROM HERE
     */
/* Google Maps styles
     */
:root {
    --location-color: #004687;
    --building-color: #004687;
    --house-color: #0288D1;
    --shop-color: #7B1FA2;
    --warehouse-color: #558B2F;
}

/*
     * Always set the map height explicitly to define the size of the div element
     * that contains the map.
     */
#brokersMap {
    height: 450;
    width: 100%;
}

/*
     * Property styles in unhighlighted state.
     */
.property {
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 50%;
    color: #263238;
    display: flex;
    font-size: 14px;
    gap: 15px;
    height: 30px;
    justify-content: center;
    padding: 4px;
    position: relative;
    position: relative;
    transition: all 0.3s ease-out;
    width: 30px;
    transform: translateY(-9px);
}

.property::after {
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #FFFFFF;
    content: "";
    height: 0;
    left: 50%;
    position: absolute;
    top: 95%;
    transform: translate(-50%, 0);
    transition: all 0.3s ease-out;
    width: 0;
    z-index: 1;
}

.property .icon {
    align-items: center;
    display: flex;
    justify-content: center;
    color: #FFFFFF;
}

.property .icon svg {
    height: 20px;
    width: auto;
}

.property .details {
    display: none;
    flex-direction: column;
    flex: 1;
}

.property .address {
    color: #9E9E9E;
    font-size: 12px;
    margin-bottom: 12px;
    margin-top: 5px;
}

.property .features {
    align-items: flex-end;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.property .features>div {
    align-items: center;
    background: #F5F5F5;
    border-radius: 5px;
    border: 1px solid #ccc;
    display: flex;
    font-size: 10px;
    gap: 5px;
    padding: 5px;
}

/*
     * Property styles in highlighted state.
     */
.property.highlight {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.2);
    height: 80px;
    padding: 8px 15px;
    width: auto;
}

.property.highlight::after {
    border-top: 9px solid #FFFFFF;
}

.property.highlight .details {
    display: flex;
}

.property.highlight .icon svg {
    width: 50px;
    height: 50px;
}

.property .bed {
    color: #FFA000;
}

.property .bath {
    color: #03A9F4;
}

.property .size {
    color: #388E3C;
}

/*
     * Location icon colors.
     */
.property.highlight:has(.fa-location-dot) .icon {
    color: var(--location-color);
}

.property:not(.highlight):has(.fa-location-dot) {
    background-color: var(--location-color);
}

.property:not(.highlight):has(.fa-location-dot)::after {
    border-top: 9px solid var(--location-color);
}

.svg-inline--fa.fa-w-16 {
    margin-right: 0 !important;
}

.svg-inline--fa.fa-w-14 {
    margin-right: 0 !important;
}

/*---------------------*/
/* STOP Find A Broker */
/*---------------------*/