.nwlm-wrap {
    --nwlm-border: #d7ded9;
    --nwlm-surface: #ffffff;
    --nwlm-text: #17231f;
    color: var(--nwlm-text);
    font-family: inherit;
    position: relative;
    width: 100%;
}

.nwlm-toolbar {
    align-items: center;
    background: #f6f8f5;
    border: 1px solid var(--nwlm-border);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
}

.nwlm-filter-actions {
    display: inline-flex;
    gap: 6px;
}

.nwlm-filter-button {
    background: #17231f;
    border: 1px solid #17231f;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    min-height: 36px;
    padding: 8px 12px;
}

.nwlm-filter-button:hover,
.nwlm-filter-button:focus {
    background: #2c3d37;
}

.nwlm-toggle {
    align-items: center;
    background: var(--nwlm-surface);
    border: 1px solid var(--nwlm-border);
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 650;
    gap: 7px;
    line-height: 1;
    min-height: 36px;
    padding: 8px 12px;
}

.nwlm-toggle input {
    accent-color: var(--nwlm-color);
    margin: 0;
}

.nwlm-toggle-icon {
    display: inline-grid;
    font-size: 17px;
    line-height: 1;
    place-items: center;
}

.nwlm-map {
    border: 1px solid var(--nwlm-border);
    border-radius: 0 0 8px 8px;
    min-height: 380px;
    overflow: hidden;
    width: 100%;
}

.nwlm-marker {
    background: transparent;
    border: 0;
}

.nwlm-marker span {
    align-items: center;
    background: var(--nwlm-marker-color);
    border: 3px solid #ffffff;
    border-radius: 50% 50% 50% 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    color: #ffffff;
    display: flex;
    font-size: 19px;
    height: 32px;
    justify-content: center;
    transform: rotate(-45deg);
    width: 32px;
}

.nwlm-marker b {
    display: block;
    font-weight: 400;
    transform: rotate(45deg);
}

.nwlm-popup {
    color: #17231f;
    max-width: 240px;
}

.nwlm-popup strong {
    display: block;
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 3px;
}

.nwlm-popup span {
    color: #52635c;
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.nwlm-popup em {
    background: #f3f6f4;
    border-radius: 999px;
    color: #33413b;
    display: inline-block;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    margin: 0 0 9px;
    padding: 5px 8px;
}

.nwlm-popup p {
    margin: 0 0 10px;
}

.nwlm-popup a {
    color: #1c5f54;
    font-weight: 700;
}

.nwlm-direction-toggle {
    background: #17231f;
    border: 1px solid #17231f;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    display: block;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    margin-top: 10px;
    padding: 8px 10px;
    width: 100%;
}

.nwlm-direction-toggle:hover,
.nwlm-direction-toggle:focus {
    background: #2c3d37;
}

.nwlm-direction-toggle.is-active {
    background: #ffffff;
    color: #17231f;
}

.nwlm-edge-indicator {
    background: transparent;
    border: 0;
    cursor: pointer;
    pointer-events: auto;
}

.nwlm-edge-indicator span {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow:
        0 0 0 3px var(--nwlm-edge-color),
        0 0 0 7px rgba(255, 255, 255, 0.74),
        0 0 18px var(--nwlm-edge-color),
        0 10px 24px rgba(0, 0, 0, 0.16);
    display: flex;
    height: 34px;
    justify-content: center;
    transform: rotate(var(--nwlm-edge-angle));
    width: 34px;
}

.nwlm-edge-indicator b {
    border-bottom: 7px solid transparent;
    border-left: 12px solid var(--nwlm-edge-color);
    border-top: 7px solid transparent;
    display: block;
    height: 0;
    margin-left: 3px;
    width: 0;
}

@media (max-width: 640px) {
    .nwlm-toolbar {
        align-items: stretch;
    }

    .nwlm-toggle {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    .nwlm-filter-actions {
        flex: 1 1 100%;
    }

    .nwlm-filter-button {
        flex: 1 1 50%;
    }
}

@media (max-width: 760px) {
    .nwlm-map {
        height: 78vh !important;
        min-height: 520px;
    }

    .nwlm-map .leaflet-control-attribution {
        font-size: 9px;
        line-height: 1.1;
        opacity: 0.72;
        padding: 1px 4px;
    }
}
