.filter-wrapper {
    padding:0 200px;
    width: 100%;
}
.filter-modules {
    display: flex;
    flex-direction: row;
    gap: 25px;
    width: 100%;
}
@media screen and (max-width: 1200px) {
    .filter-modules {
        flex-direction: column;
    }
}

.row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
}

.title-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
div[class^=faceted_search_container] {
    top: 10px !important;
}
.filter-title {
    margin-bottom: 30px;
    color: #EB299C !important;
    font-size: 23px !important;
}
.show-map-button {
    display: block;
    margin-bottom: 30px;
}
.show-map-button.map-opened {
    display: block;
    position: fixed;
    top: 60px;
    right: 10px;
    margin-bottom: 30px;
    z-index: 9999 !important;

    background-color: rgb(255, 255, 255) !important;
    border: none;
    color: black;
    font-weight: bold;
}
.show-map-button {
    display: block;
}

.font-valera {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif
}
.font-montserrat {
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
}

/* Search filters */
.search-form {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 20px;
    width: 33%;
    height: fit-content;
    box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.06);
    padding: 30px;
    border-radius: 5px;
}
.search-form p {
    margin: 0;
}
@media screen and (max-width: 1200px) {
    .search-form {
        width: 100%;
        margin-bottom: 20px;
    }
    .filter-wrapper {
        padding: 0 !important;
    }
}

.search-form-title {
    font-size: 20px;
}
.checkbox-title {
    font-size: 16px;
}
.checkbox-label {
    font-size: 15px;
}

.search-bar {
    position: relative;
    width: 100% !important;
    border: none !important;
    background-color: #F9F9F9;
    font-size: 20px;
}
.search-icon {
    padding-right: 1rem !important;
    background-image: url("https://static.thenounproject.com/png/101791-200.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-origin: content-box;
    background-size: 20px;
}
.autocomplete-dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #D9D9D9;
    background: #FFFFFF;
    max-height: 250px;
    overflow-y: auto;
    width: 100%;
    z-index: 10;
}
.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #0D006C;
}
.autocomplete-item:hover {
    background-color: #F0F0F0;
}

.checkbox-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.checkbox-row {
    display: flex;
    flex-direction: row;
}
.checkbox-row input[type="checkbox"] {
    margin-right: 5px;
}

@media screen and (max-width: 1700px) {
    .search-bar {
        font-size: 14px;
    }
    .search-icon {
        background-size: 14px;
    }

    .search-form-title {
        font-size: 16px;
    }
    .checkbox-title {
        font-size: 14px;
    }
    .checkbox-label {
        font-size: 13px;
    }
}
@media screen and (min-width: 1700px) and (max-width: 2020px) {
    .search-form-title {
        font-size: 18px;
    }
    .checkbox-title {
        font-size: 16px;
    }
    .checkbox-label {
        font-size: 15px;
    }
}

/* Search results */
.results-container {
    display: flex;
    flex-direction: column;
    width: 33%;
    gap: 25px;
}
@media screen and (max-width: 1200px) {
    .results-container {
        width: 100%;
    }
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.company-container {
    display: flex;
    flex-direction: row;
    align-items:center;

    background-color: #fff;
    box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.06);
    padding: 10px 20px;
    border-radius: 5px;
}
.company-container:hover {
    box-shadow: inset 0 0 0 2px #0D006C;
}
.focus {
    box-shadow: inset 0 0 0 2px #0D006C;
}
.company-info {
    width: 100%;
    margin-left: 30px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.company-name {
    font-size: 20px;
    color: #0D006C;
}
.company-location {
    font-size: 16px;
}
.company-info p {
    margin-bottom: 0;
}
.company-logo {
    width: 100px;
    max-width: 100px;
    min-width: 100px;
    height: 75px !important;
    object-fit: contain;
}
.company-details {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.company-details .row {
    display: flex;
    align-items: center;
}
.company-details a {
    color: #000000;
}

.company-details p {
    font-size: 14px;
}

@media screen and (max-width: 550px) {
    .company-logo {
        width: 40px;
    }
    .company-name {
        font-size: 15px;
    }
    .company-location {
        font-size: 12px;
    }
    .company-details p {
        font-size: 10px;
    }
}
@media screen and (min-width: 550px) and (max-width: 1600px) {
    .company-logo {
        width: 60px;
    }
    .company-name {
        font-size: 15px;
    }
    .company-location {
        font-size: 12px;
    }
    .company-details p {
        font-size: 10px;
    }
}
@media screen and (min-width: 1600px) and (max-width: 1700px) {
    .company-logo {
        width: 70px;
    }
    .company-name {
        font-size: 16px;
    }
    .company-location {
        font-size: 14px;
    }
    .company-details p {
        font-size: 12px;
    }
}
@media screen and (min-width: 1700px) and (max-width: 2020px) {
    .company-logo {
        width: 90px;
    }
    .company-details p {
        font-size: 12px;
    }
}

/* pagination */
.pagination-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
    gap: 20px;
}
.pagination-button {
    border-radius: 100%;
    background-color: #F9F9F9 !important;
    box-shadow: 0 0 1px 0 #000000;
    color: #000000 !important;
    border: none;
    font-size: 24px;
    font-weight: bold;
    padding: 0 15px 5px 15px;
}
.pagination-button:hover {
    box-shadow: inset 0 0 0 2px #0D006C;
}

@media screen and (max-width: 1700px) {
    .pagination-button {
        font-size: 18px;
        padding: 0 12px 3px 12px;
    }
}

@media screen and (max-width: 1350px) and (min-width: 1201px) {
    .filter-wrapper {
        padding: 0 10px;
    }
}
@media screen and (max-width: 1800px) and (min-width: 1351px) {
    .filter-wrapper {
        padding: 0 50px;
    }
}

/* Single bedrijf map */
.cm-light-map {
    height: 350px;
    width: 100%;
    border-radius: 6px;
    box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.06);
}

/* Leaflet map */
#cm-leaflet-map {
    width: 33%;
    height: 600px;
    min-height: 300px;
    box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.06);
    z-index: 1;
    flex-shrink: 0;
}

#cm-leaflet-map.is-visible {
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999;
}

body:has(#cm-leaflet-map.is-visible) {
    overflow: hidden;
}

@media screen and (max-width: 1200px) {
    #cm-leaflet-map {
        display: none;
        width: 100%;
        height: 400px;
    }
    #cm-leaflet-map.is-visible {
        display: block;
    }
}

@media screen and (min-width: 2020px) {
    #cm-leaflet-map {
        height: 700px;
    }
}

/* Company logo markers */
.cm-marker-icon {
    width: 80px;
    height: 40px;
    background: rgba(255,255,255,0.6);
    border: 1px solid var(--e-global-color-accent);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.cm-marker-icon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ffffff;
    filter: drop-shadow(0 2px 1px rgba(0,0,0,0.12));
}

.leaflet-marker-icon.marker-cluster.marker-cluster-medium, .marker-cluster-medium div,
.leaflet-marker-icon.marker-cluster.marker-cluster-small, .marker-cluster-small div,
.leaflet-marker-icon.marker-cluster.marker-cluster-large, .marker-cluster-large div {
    background-color: color-mix(in srgb, var(--e-global-color-accent) 50%, transparent);
    color: white;
}

.leaflet-container .leaflet-marker-pane .cm-marker-icon img {
    padding: 0 3px;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

.cm-marker-name {
    font-size: 10px;
    font-weight: 600;
    color: #0D006C;
    text-align: center;
    padding: 2px 4px;
    line-height: 1.2;
}

.distance-badge {
    display: inline-block;
    font-size: 11px;
    color: #0D006C;
    background: #f0f0ff;
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 4px;
    vertical-align: middle;
}

.cm-my-location-btn {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #0D006C;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.cm-my-location-btn:hover {
    background: #f5f5f5;
    color: var(--e-global-color-accent);
}