.homepage-main:has(.nl-sales-map) > header,
.homepage-main:has(.nl-sales-map) > .nl-sales-map {
    margin-left: auto;
    margin-right: auto;
    max-width: 1320px;
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
}

.homepage-main:has(.nl-sales-map) > header {
    margin-bottom: 18px;
}

.nl-sales-map {
    --nl-blue: #0072bc;
    --nl-ink: #102033;
    --nl-muted: #5f6f7f;
    --nl-line: rgba(16, 32, 51, 0.12);
    --nl-surface: #ffffff;
    --nl-soft: #eef4f7;
    --nl-green: #76b82a;
    margin: 0 0 48px;
    max-width: none;
}

.nl-sales-map__intro {
    margin-bottom: 18px;
}

.nl-sales-map h2 {
    color: #6f6f6f;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 8px;
    max-width: 640px;
}

.nl-sales-map__intro p,
.nl-sales-map__map-head p {
    color: var(--nl-muted);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
}

.nl-sales-map__search {
    background: var(--nl-surface);
    border: 1px solid var(--nl-line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16, 32, 51, 0.07);
    margin-bottom: 30px;
    padding: 16px;
}

.nl-sales-map__search label {
    color: var(--nl-muted);
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.nl-sales-map__search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.nl-sales-map__search input {
    border: 1px solid var(--nl-line);
    border-radius: 6px;
    color: var(--nl-ink);
    min-width: 0;
    padding: 12px 14px;
}

.nl-sales-map__search button {
    background: var(--nl-blue);
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-weight: 800;
    padding: 12px 18px;
}

.nl-sales-map__result {
    color: var(--nl-muted);
    font-size: 0.9rem;
    margin: 10px 0 0;
}

.nl-sales-map__map-head {
    margin-bottom: 18px;
}

.nl-sales-map__canvas {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin-left: auto;
    margin-right: auto;
    max-width: 620px;
    overflow: hidden;
    padding: 0 18px 0 0;
    position: relative;
    top: auto;
}

.nl-sales-map__canvas svg {
    display: block;
    height: auto;
    width: 100%;
}

.nl-sales-map #plz2-map use {
    cursor: pointer;
    fill: #80b9de;
    stroke: #fff;
    stroke-width: 1;
    transition: fill 160ms ease, opacity 160ms ease, stroke 160ms ease, stroke-width 160ms ease;
    vector-effect: non-scaling-stroke;
}

.nl-sales-map #plz2-map g:nth-child(2n) use {
    fill: #80b9de;
}

.nl-sales-map #plz2-map g:nth-child(3n) use {
    fill: #80b9de;
}

.nl-sales-map #plz2-labels .label {
    fill: #fff;
    font-weight: 900;
    paint-order: stroke;
    pointer-events: none;
    stroke: rgba(16, 32, 51, 0.26);
    stroke-width: 2px;
}

.nl-sales-map.is-dim #plz2-map use {
    opacity: 0.18;
}

.nl-sales-map #plz2-map g.is-active use,
.nl-sales-map #plz2-map g:hover use {
    fill: #0072bc;
    filter: none;
    opacity: 1;
    stroke: #fff;
    stroke-width: 1;
    transform: none;
}

.nl-sales-map__tooltip {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--nl-line);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(16, 32, 51, 0.22);
    color: var(--nl-ink);
    display: none;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 8px 10px;
    pointer-events: none;
    position: fixed;
    transform: translate(14px, 14px);
    white-space: nowrap;
    z-index: 1000;
}

.nl-sales-map__tooltip.is-visible {
    display: block;
}

.nl-sales-map__panel {
    align-content: start;
    min-height: 0 !important;
    align-self: start;
    align-items: start;
    display: grid;
    gap: 12px;
    max-height: none;
    position: static;
    top: auto;
}

.nl-sales-map__panel-col {
    align-self: start;
}

.nl-sales-map__panel-head {
    align-items: center;
    color: var(--nl-muted);
    display: flex;
    font-size: 0.82rem;
    font-weight: 800;
    justify-content: space-between;
    min-height: 0;
    text-transform: uppercase;
}

.nl-sales-map__panel-head strong {
    background: var(--nl-soft);
    border-radius: 999px;
    color: var(--nl-blue);
    padding: 4px 10px;
}

.nl-sales-map__cards {
    display: grid;
    gap: 10px;
    max-height: none;
    overflow: visible;
    padding: 2px 2px 4px;
    scroll-behavior: smooth;
    scroll-padding-top: 8px;
}

.nl-sales-map__cards::-webkit-scrollbar {
    width: 8px;
}

.nl-sales-map__cards::-webkit-scrollbar-thumb {
    background: rgba(16, 32, 51, 0.18);
    border-radius: 999px;
}

.nl-sales-map__cards::-webkit-scrollbar-track {
    background: transparent;
}

.nl-sales-card {
    background: var(--nl-surface);
    border: 1px solid var(--nl-line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(16, 32, 51, 0.08);
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.nl-sales-card__trigger {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    display: grid;
    gap: 12px;
    grid-template-columns: 14px minmax(0, 1fr);
    padding: 14px;
    text-align: left;
    width: 100%;
}

.nl-sales-card__mark {
    background: var(--nl-green);
    border-radius: 999px;
    height: 14px;
    width: 14px;
}

.nl-sales-card__label {
    color: var(--nl-ink);
    display: block;
    font-weight: 900;
}

.nl-sales-card__region {
    color: var(--nl-muted);
    display: block;
    font-size: 0.86rem;
    line-height: 1.3;
}

.nl-sales-card.is-active {
    border-color: rgba(0, 114, 188, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.16), 0 16px 36px rgba(16, 32, 51, 0.12);
}

.nl-sales-map.is-selected .nl-sales-card:not(.is-active) {
    opacity: 0.46;
}

.nl-sales-card.is-active .nl-sales-card__mark {
    background: var(--nl-blue);
}

.nl-sales-card__contacts {
    border-top: 1px solid var(--nl-line);
    display: grid;
    gap: 14px;
    padding: 14px;
}

.nl-sales-person {
    display: grid;
    gap: 12px;
    grid-template-columns: 90px minmax(0, 1fr);
}

.nl-sales-person__image {
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    display: block;
    height: auto;
    object-fit: cover;
    object-position: center top;
    width: 90px;
}

.nl-sales-person__body {
    min-width: 0;
}

.nl-sales-person__body:first-child {
    grid-column: 1 / -1;
}

.nl-sales-person strong,
.nl-sales-person span {
    display: block;
}

.nl-sales-person strong {
    color: var(--nl-ink);
}

.nl-sales-person span {
    color: var(--nl-muted);
    font-size: 0.9rem;
}

.nl-sales-person__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 6px;
}

.nl-sales-person__links a {
    color: var(--nl-blue);
    font-size: 0.9rem;
    font-weight: 800;
    overflow-wrap: anywhere;
    text-decoration: none;
}


.nl-sales-person__links a:nth-child(3) {
    flex-basis: 100%;
}

.nl-sales-map__specialists {
    background: var(--nl-soft);
    border-radius: 8px;
    padding: 14px;
}

.nl-sales-map__specialists h3 {
    color: var(--nl-ink);
    font-size: 1rem;
    font-weight: 900;
    margin: 0 0 12px;
}

@media (max-width: 1020px) {
    .nl-sales-map__canvas {
        position: relative;
        top: auto;
        padding-right: 0;
    }

    .nl-sales-map__panel {
        max-height: none;
        position: static;
    }

    .nl-sales-map__cards {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 560px) {
    .nl-sales-map {
        padding-left: 12px;
        padding-right: 12px;
    }

    .nl-sales-map__search-row {
        grid-template-columns: 1fr;
    }

    .nl-sales-map__canvas {
        padding: 8px;
    }

    .nl-sales-person {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .nl-sales-person__image {
        width: 72px;
    }
}
