.companies-map-section {
    padding: 60px 0 0;
}

.companies-map-section .sec-title {
    margin-bottom: 30px;
}

.companies-map-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.companies-map-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.companies-map-toolbar {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    max-width: calc(100% - 40px);
}

.companies-map-count {
    background: rgba(25, 33, 46, 0.92);
    color: #fff;
    border-radius: 8px;
    padding: 10px 16px;
    text-align: center;
    min-width: 110px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.companies-map-count .count-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.companies-map-count .count-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.companies-map-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.companies-map-filters .filter-field {
    min-width: 220px;
}

.companies-map-location-field {
    position: relative;
}

.companies-map-location-field.smart-search:after {
    display: none;
}

.companies-map-filters .form-control,
.companies-map-filters .companies-map-location-input {
    background: #fff;
    color: #000;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    height: 44px;
}

.companies-map-filters .form-control::placeholder,
.companies-map-filters .companies-map-location-input::placeholder {
    color: #696969;
    opacity: 1;
}

.companies-map-location-input {
    padding-right: 42px;
}

.companies-map-location-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #2f2d51;
    cursor: pointer;
    z-index: 2;
}

.companies-map-location-toggle:after {
    content: "\f17c";
    font-family: "Flaticon";
    font-size: 10px;
    font-weight: 900;
    line-height: 28px;
    display: block;
}

.companies-map-location-toggle.is-open:after {
    transform: rotate(180deg);
}

.companies-map-location-field .bravo-autocomplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1100;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 240px;
    overflow-y: auto;
    display: none;
}

.companies-map-location-field .bravo-autocomplete.show {
    display: block;
}

.companies-map-location-field .bravo-autocomplete .item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    color: #000;
    background: #fff;
}

.companies-map-location-field .bravo-autocomplete .item:hover {
    background: #f5f7fa;
}

.companies-map-location-field .bravo-autocomplete .item .h-line {
    font-weight: 600;
    color: #000;
}

.companies-map-location-field .bravo-autocomplete .message {
    padding: 10px 14px;
    color: #666;
    font-size: 13px;
    background: #fff;
}

.companies-map-marker-icon {
    background: transparent;
    border: 0;
}

.companies-map-popup .leaflet-popup-content {
    margin: 0;
}

.companies-map-popup .map-box {
    margin: 0;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(25, 103, 210, 0.25);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: #1967d2;
    color: #fff;
    font-weight: 600;
}

@media (max-width: 767px) {
    .companies-map-section {
        padding-top: 40px;
    }

    .companies-map-toolbar {
        top: 12px;
        right: 12px;
        left: 12px;
        align-items: stretch;
    }

    .companies-map-filters {
        flex-direction: column;
    }

    .companies-map-filters .filter-field {
        min-width: 100%;
    }
}
