.distributors-section {
    position: relative;
    background: #fff;
}

.distributors-section .sec-title p {
    max-width: 680px;
    margin: 12px auto 0;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.7;
}

.distributors-map-panel,
.dealers-panel {
    position: relative;
    display: block;
    background: #fff;
    box-shadow: 0px 10px 50px 0px rgba(0, 0, 0, 0.07);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    overflow: hidden;
}

.panel-title,
.dealers-heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.panel-title span,
.dealers-heading span {
    position: relative;
    display: block;
    color: var(--text-color);
    font-size: 13px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}



.panel-title-with-filters {
    align-items: center;
    flex-wrap: wrap;
}

.panel-title-copy {
    position: relative;
    flex: 1 1 220px;
    min-width: 220px;
}

.distributors-map-filters {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1 1 410px;
    min-width: 0;
}

.distributors-filter-field {
    position: relative;
    flex: 1 1 195px;
    min-width: 180px;
    max-width: 230px;
}

.distributors-filter-select {
    position: relative;
    display: block;
    width: 100%;
    height: 50px;
    min-height: 50px;
    padding: 10px 42px 10px 20px;
    border: 1px solid rgba(229, 229, 229, 1);
    border-radius: 50px;
    background-color: #fff;
    color: var(--text-color);
    font-size: 14px;
    line-height: 28px;
    font-weight: 700;
    text-transform: uppercase;
    outline: none;
    cursor: pointer;
    appearance: none;
    transition: all 300ms ease;
}

.distributors-filter-select:focus {
    border-color: var(--theme-color);
    box-shadow: 0px 8px 22px rgba(255, 107, 0, 0.12);
}

.distributors-filter-select:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.distributors-map-filters .nice-select.distributors-filter-select {
    position: relative;
    display: block;
    width: 100%;
    height: 50px;
    min-height: 50px;
    line-height: 28px;
    padding: 10px 42px 10px 20px;
    border: 1px solid rgba(229, 229, 229, 1);
    border-radius: 50px;
    background: #fff;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    float: none;
    clear: none;
    margin: 0;
    transition: all 300ms ease;
}

.distributors-map-filters .nice-select.distributors-filter-select:before {
    top: 17px;
    right: 20px;
    color: var(--text-color);
}

.distributors-map-filters .nice-select.distributors-filter-select:after {
    display: none;
}

.panel-title .distributors-map-filters .nice-select.distributors-filter-select .current {
    display: block;
    overflow: hidden;
    color: var(--text-color);
    font-size: 13px;
    line-height: 28px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.distributors-map-filters .nice-select.distributors-filter-select.open,
.distributors-map-filters .nice-select.distributors-filter-select:focus {
    border-color: var(--theme-color);
    box-shadow: 0px 8px 22px rgba(255, 107, 0, 0.12);
}

.distributors-map-filters .nice-select.distributors-filter-select.disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.distributors-map-filters .nice-select.distributors-filter-select .list {
    width: 100%;
    min-width: 100%;
    max-height: 280px;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 14px;
    margin-top: 6px;
    z-index: 9999;
}

.distributors-map-filters .nice-select.distributors-filter-select .option {
    min-height: 38px;
    padding: 0 18px;
    color: var(--text-color);
    font-size: 14px;
    line-height: 38px;
    font-weight: 600;
    text-transform: none;
}

.distributors-map-filters .nice-select.distributors-filter-select .option:hover,
.distributors-map-filters .nice-select.distributors-filter-select .option.focus,
.distributors-map-filters .nice-select.distributors-filter-select .option.selected.focus {
    background: rgba(245, 130, 32, 0.10);
}

.panel-title strong {
    position: relative;
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    color: #fff;
    background: var(--theme-color);
    font-size: 13px;
    line-height: 22px;
    font-weight: 700;
    white-space: nowrap;
}

.brazil-map-wrap {
    position: relative;
    display: block;
    width: 100%;
    min-height: 610px;
    border-radius: 10px;
    background: rgba(247, 247, 247, 1);
    padding: 15px;
    overflow: hidden;
}

.lintec-brazil-map {
    position: relative;
    display: block;
    width: 100%;
    height: 580px;
    min-height: 580px;
}

.lintec-brazil-map svg path,
.lintec-brazil-map path {
    cursor: pointer;
}

.map-loading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 30px;
    background: #fff;
    color: var(--title-color);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.map-loading[hidden] {
    display: none;
}

.map-loading.is-error {
    color: #c0392b;
}

.map-legend {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    color: var(--text-color);
    font-size: 14px;
    line-height: 24px;
    font-weight: 600;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: -1px;
}

.legend-dot.has-items {
    background: #f58220;
    border: 2px solid #f58220;
}

.legend-dot.no-items {
    background: #e1e5e9;
    border: 2px solid #cfd5dc;
}

.dealers-panel {
    min-height: 100%;
}

.dealers-heading {
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(229, 229, 229, 1);
}

.dealers-heading h3 {
    position: relative;
    display: block;
    color: var(--title-color);
    font-size: 28px;
    line-height: 34px;
    font-weight: 700;
    margin: 5px 0 0;
}

.dealers-heading strong {
    position: relative;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--theme-color);
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
}

.dealers-list {
    position: relative;
    max-height: 610px;
    overflow-y: auto;
    padding-right: 8px;
}

.dealers-list::-webkit-scrollbar {
    width: 6px;
}

.dealers-list::-webkit-scrollbar-track {
    background: rgba(247, 247, 247, 1);
    border-radius: 20px;
}

.dealers-list::-webkit-scrollbar-thumb {
    background: #d5d5d5;
    border-radius: 20px;
}

.dealer-card {
    position: relative;
    display: flex;
    gap: 18px;
    background: rgba(247, 247, 247, 1);
    border: 1px solid rgba(229, 229, 229, 1);
    border-radius: 10px;
    padding: 22px;
    margin-top: 18px;
    transition: all 500ms ease;
}

.dealer-card:hover {
    background: #fff;
    box-shadow: 0px 10px 50px 0px rgba(255, 107, 0, 0.12);
    border-color: rgba(255, 172, 0, 0.35);
}

.dealer-card.is-selected {
    background: #fff;
    box-shadow: 0px 12px 55px 0px rgba(255, 107, 0, 0.18);
    border-color: var(--theme-color);
}

.dealer-card[hidden] {
    display: none;
}

.dealer-icon {
    position: relative;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--theme-color);
    background: rgba(255, 172, 0, 0.1);
    font-size: 28px;
    overflow: hidden;
    transition: all 500ms ease;
}

.dealer-card:hover .dealer-icon {
    color: #fff;
    background: var(--theme-color);
}

.dealer-content {
    position: relative;
    flex: 1;
}

.dealer-content h4 {
    position: relative;
    display: block;
    color: var(--title-color);
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    margin: 6px 0 10px;
}

.dealer-badge {
    position: relative;
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 20px;
    background: #fff;
    color: var(--theme-color);
    font-size: 11px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dealer-address {
    position: relative;
    margin-bottom: 11px;
    color: var(--text-color);
    font-size: 15px;
    line-height: 25px;
}

.dealer-address i {
    color: var(--theme-color);
    margin-right: 7px;
}

.dealer-actions {
    position: relative;
    margin: 0;
    padding: 0;
}

.dealer-actions li {
    position: relative;
    display: block;
    list-style: none;
    margin-bottom: 6px;
}

.dealer-actions li:last-child {
    margin-bottom: 0;
}

.dealer-actions a {
    position: relative;
    display: inline-block;
    color: var(--text-color);
    font-size: 15px;
    line-height: 24px;
    font-weight: 600;
    word-break: break-word;
}

.dealer-actions a:hover {
    color: var(--theme-color);
}

.dealer-actions i {
    width: 18px;
    margin-right: 7px;
    color: var(--theme-color);
}

.dealers-empty {
    position: relative;
    padding: 64px 20px 42px;
    text-align: center;
}

.dealers-empty[hidden] {
    display: none;
}

.dealers-empty .icon-box {
    position: relative;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--theme-color);
    background: rgba(255, 172, 0, 0.1);
    font-size: 36px;
    margin-bottom: 22px;
}

.dealers-empty h4 {
    position: relative;
    display: block;
    color: var(--title-color);
    font-size: 22px;
    line-height: 30px;
    font-weight: 700;
    margin-bottom: 8px;
}

.dealers-empty p {
    color: var(--text-color);
    font-size: 15px;
    line-height: 26px;
    margin: 0;
}

@media only screen and (max-width: 991px) {
    .brazil-map-wrap {
        min-height: 430px;
    }

    .lintec-brazil-map {
        height: 410px;
        min-height: 410px;
    }

    .dealers-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media only screen and (max-width: 767px) {
    .distributors-map-panel,
    .dealers-panel {
        padding: 22px;
    }

    .panel-title,
    .dealers-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .distributors-map-filters {
        width: 100%;
        flex: 1 1 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .distributors-filter-field,
    .distributors-filter-select,
    .distributors-map-filters .nice-select.distributors-filter-select {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .panel-title strong {
        width: 100%;
        text-align: center;
    }

    .brazil-map-wrap {
        min-height: 360px;
        padding: 8px;
    }

    .lintec-brazil-map {
        height: 340px;
        min-height: 340px;
    }

    .dealer-card {
        flex-direction: column;
    }
}

@media only screen and (max-width: 499px) {
    .dealers-heading h3 {
        font-size: 24px;
        line-height: 30px;
    }

    .brazil-map-wrap {
        min-height: 310px;
    }

    .lintec-brazil-map {
        height: 300px;
        min-height: 300px;
    }
}

/* Mapa Google Maps */
.lintec-brazil-map {
    display: block;
    width: 100%;
    height: 580px;
    min-height: 580px;
    border-radius: 10px;
    overflow: hidden;
    background: #e5e3df;
}

.lintec-brazil-map.is-google-map {
    cursor: grab;
}

.lintec-brazil-map.is-google-map:active {
    cursor: grabbing;
}

.lintec-brazil-map .gm-style,
.lintec-brazil-map .gm-style > div:first-child {
    border-radius: 10px;
}

@media only screen and (max-width: 991px) {
    .lintec-brazil-map {
        height: 410px;
        min-height: 410px;
    }
}

@media only screen and (max-width: 767px) {
    .lintec-brazil-map {
        height: 340px;
        min-height: 340px;
    }
}

@media only screen and (max-width: 499px) {
    .lintec-brazil-map {
        height: 300px;
        min-height: 300px;
    }
}

/* Ajuste Lintec - permite que a lista dos filtros abra completa sobre o mapa */
.distributors-map-panel {
    overflow: visible;
}

.distributors-map-filters .nice-select.distributors-filter-select.open {
    z-index: 10000;
}
