/* Общие рисованные метки /companies/nearby и /companies/nearby_test. */
/* Свободный контур пина; координата привязана к его кончику. */
.company-directory-nearby .directory-map-marker--sketch {
    --pin-ink: #34424b;
    --pin-paper: #fffefa;
    display: block;
    width: 44px;
    height: 80px;
    max-width: none;
    padding: 0;
    transform: translate(-50%, -100%);
    color: var(--pin-ink);
    pointer-events: none;
}
.company-directory-nearby .directory-map-marker--sketch .directory-map-marker__shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 44px;
    min-width: 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    pointer-events: auto;
}
.company-directory-nearby .nearby-test-pin {
    position: absolute;
    bottom: 0;
    left: 5px;
    display: block;
    width: 34px;
    height: 42px;
    overflow: visible;
    fill: var(--pin-paper);
    stroke: var(--pin-ink);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 1px #17374b18);
}
.company-directory-nearby .nearby-test-pin[data-sketch='1'] { stroke-width: 2.3; }
.company-directory-nearby .nearby-test-pin[data-sketch='2'] { stroke-width: 1.8; }
.company-directory-nearby .nearby-test-pin__heart { fill: none; stroke-width: 1.8; }
.company-directory-nearby .nearby-test-pin__strokes { fill: none; stroke-width: 1; opacity: .65; }
.company-directory-nearby .directory-map-marker--sketch .directory-map-marker__label {
    position: absolute;
    bottom: 36px;
    left: 50%;
    display: block;
    width: max-content;
    max-width: 160px;
    min-height: 44px;
    box-sizing: border-box;
    padding: 5px 8px;
    border: 0;
    border-radius: 7px;
    background: #fffffff0;
    box-shadow: 0 1px 4px #17374b14;
    color: #263b49;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    opacity: 1;
    transform: translateX(calc(-50% + var(--label-shift, 0px)));
    pointer-events: auto;
}
.company-directory-nearby .nearby-test-marker-name,
.company-directory-nearby .nearby-test-marker-category {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.company-directory-nearby .nearby-test-marker-category { margin-top: 2px; color: #61717c; font-size: 11px; font-weight: 400; line-height: 14px; }
.company-directory-nearby .directory-map-marker--sketch .directory-map-marker__logo-frame {
    top: 18px;
    left: 22px;
    width: 19px;
    height: 19px;
    box-sizing: border-box;
    border: 0;
    background: #fff;
    box-shadow: 0 0 0 1px var(--pin-paper);
    transform: translate(-50%, -50%);
}
.company-directory-nearby .directory-map-marker--sketch:has(.directory-map-marker__logo-frame) .nearby-test-pin__heart { display: none; }
.company-directory-nearby .directory-map-marker--sketch.directory-map-marker--vip { --pin-ink: #98731e; }
.company-directory-nearby .directory-map-marker--sketch.directory-map-marker--selected { --pin-ink: #007eb9; --pin-paper: #e6f5fc; }
.company-directory-nearby .directory-map-marker--sketch.directory-map-marker--selected .directory-map-marker__label { background: #f2faff; color: #006a9f; }
.company-directory-nearby .directory-map-marker--sketch .directory-map-marker__vip { top: auto; bottom: 24px; left: auto; right: 0; width: 14px; height: 14px; font-size: 9px; }
/* Разрешённый логотип заполняет увеличенную головку без внутренней обводки. */
.company-directory-nearby .directory-map-marker--sketch:not(.directory-map-marker--stem):has(.directory-map-marker__logo-frame) {
    width: 56px;
    height: 96px;
}
.company-directory-nearby .directory-map-marker--sketch:not(.directory-map-marker--stem):has(.directory-map-marker__logo-frame) .directory-map-marker__shape { width: 56px; height: 56px; }
.company-directory-nearby .directory-map-marker--sketch:not(.directory-map-marker--stem):has(.directory-map-marker__logo-frame) .nearby-test-pin { width: 46px; height: 56px; }
.company-directory-nearby .directory-map-marker--sketch:not(.directory-map-marker--stem):has(.directory-map-marker__logo-frame) .directory-map-marker__label { bottom: 52px; }
.company-directory-nearby .directory-map-marker--sketch:not(.directory-map-marker--stem) .directory-map-marker__logo-frame {
    top: 21px;
    left: 28px;
    width: 35px;
    height: 35px;
    padding: 0;
    box-shadow: none;
}
.company-directory-nearby .directory-map-marker--sketch:not(.directory-map-marker--stem):has(.directory-map-marker__logo-frame) .directory-map-marker__vip { bottom: 36px; }
.company-directory-nearby .company-directory-test__map-legend i { background: #34424b; }
.company-directory-nearby .company-directory-test__map-legend i.is-selected { background: #007eb9; }
.company-directory-nearby .directory-nearby-cluster { min-width: 32px; height: 32px; padding: 0 7px; border: 1.5px solid #667e8c; border-radius: 47% 53% 48% 52%; background: #fffefa; color: #344b59; box-shadow: 0 1px 3px #17374b14; font-size: 12px; font-weight: 600; }

/* Отдельный вариант с сердечком на ножке; стили прежних пинов выше сохранены. */
.company-directory-nearby .directory-map-marker--stem { height: 84px; }
.company-directory-nearby .directory-map-marker--stem .directory-map-marker__label { bottom: 40px; }
.company-directory-nearby .nearby-test-pin__stem { fill: none; stroke-width: 1.4; }
.company-directory-nearby .nearby-test-pin--stem .nearby-test-pin__heart { fill: var(--pin-paper); }
.company-directory-nearby .directory-map-marker--stem .directory-map-marker__logo-frame { left: 26px; }
.company-directory-nearby .directory-map-marker--stem .directory-map-marker__vip { right: -4px; }
