.pickup-map-open {
    display: inline-block;
    margin: 12px 0 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #27847f;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.pickup-map-open:hover,
.pickup-map-open:focus {
    color: #206f6b;
    text-decoration-style: solid;
}

html.pickup-map-lock,
html.pickup-map-lock body {
    overflow: hidden !important;
}

.pickup-map-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.pickup-map-modal.is-open {
    display: block;
}

.pickup-map-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.pickup-map-modal__dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(1000px, calc(100vw - 40px));
    height: min(720px, calc(100vh - 40px));
    transform: translate(-50%, -50%);
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}

.pickup-map-modal__header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px 0 20px;
    border-bottom: 1px solid #e8e8e8;
    box-sizing: border-box;
}

.pickup-map-modal__title {
    min-width: 0;
    padding-right: 12px;
    overflow: hidden;
    color: #333;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pickup-map-modal__close {
    flex: 0 0 auto;
    padding: 2px 8px;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.pickup-map-canvas {
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    bottom: 0;
}

.pickup-map-status {
    position: absolute;
    z-index: 10;
    left: 50%;
    top: 50%;
    max-width: calc(100% - 40px);
    transform: translate(-50%, -50%);
    padding: 11px 16px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 16px rgba(0, 0, 0, .14);
    color: #555;
    font-size: 14px;
    text-align: center;
}

.pickup-map-status.is-error {
    color: #a33;
}

.autolapti-map-balloon {
    position: relative;
    width: 270px;
    max-width: 70vw;
    padding: 3px 26px 3px 1px;
    color: #333;
}

.autolapti-map-balloon__close {
    position: absolute;
    top: -4px;
    right: -3px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 23px;
    line-height: 24px;
    cursor: pointer;
}

.autolapti-map-balloon__close:hover {
    color: #333;
}

.autolapti-map-balloon__name {
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 700;
}

.autolapti-map-balloon__address {
    margin-bottom: 7px;
    font-size: 13px;
    line-height: 1.4;
}

.autolapti-map-balloon__stock {
    margin-bottom: 6px;
    color: #348c3e;
    font-size: 14px;
    font-weight: 700;
}

.autolapti-map-balloon__schedule {
    margin-top: 6px;
    color: #666;
    font-size: 12px;
    line-height: 1.35;
    white-space: pre-line;
}

.autolapti-map-balloon__link {
    display: inline-block;
    margin-top: 9px;
    color: #27847f;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .pickup-map-modal__dialog {
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }

    .pickup-map-modal__header {
        height: 58px;
        padding: 0 10px 0 15px;
    }

    .pickup-map-modal__title {
        font-size: 17px;
    }

    .pickup-map-canvas {
        top: 58px;
    }
}


.autolapti-map-balloon__schedule {
    white-space: pre-line;
}


.autolapti-map-balloon .autolapti-map-balloon__schedule {
    white-space: pre-line !important;
}


/* Auto-Lapti custom pickup markers.
   Intentionally independent from YMapDefaultMarker state. */

.autolapti-map-point {
    position: absolute;
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    margin: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #ffcc00;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .28);
    cursor: pointer;
    transform: translate(-50%, -50%);
    appearance: none;
}

.autolapti-map-point:hover,
.autolapti-map-point:focus {
    transform: translate(-50%, -50%) scale(1.12);
    outline: none;
}

.autolapti-map-point__core {
    display: block;
    width: 10px;
    height: 10px;
    margin: 9px auto 0;
    border-radius: 50%;
    background: #222;
}

.autolapti-map-popup-anchor {
    position: absolute;
    transform: translate(20px, -50%);
    pointer-events: auto;
    z-index: 3000;
}



/* ==========================================================
   AUTO-LAPTI MAP — FINAL WHITE PVZ MARKERS
   Keeps plain YMapMarker architecture; visual only.
   ========================================================== */

.autolapti-map-point {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;

    width: auto;
    min-width: 135px;
    max-width: 245px;
    height: auto;
    min-height: 42px;

    margin: 0;
    padding: 7px 10px;

    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 10px;

    background: #fff;
    color: #222;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, .14),
        0 5px 16px rgba(0, 0, 0, .08);

    cursor: pointer;
    appearance: none;

    text-align: left;
    font-family: inherit;

    transform: translate(-50%, calc(-100% - 9px));

    z-index: 10;
}

.autolapti-map-point::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -7px;

    width: 12px;
    height: 12px;

    background: #fff;

    border-right: 1px solid rgba(0, 0, 0, .12);
    border-bottom: 1px solid rgba(0, 0, 0, .12);

    transform: translateX(-50%) rotate(45deg);
}

.autolapti-map-point:hover,
.autolapti-map-point:focus {
    transform: translate(-50%, calc(-100% - 9px)) scale(1.04);
    outline: none;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, .18),
        0 7px 20px rgba(0, 0, 0, .12);
}

.autolapti-map-point__core {
    position: relative;
    flex: 0 0 18px;

    display: block;

    width: 18px;
    height: 18px;

    margin: 0;

    border: 4px solid #222;
    border-radius: 50%;

    background: #fff;
    box-sizing: border-box;
}

.autolapti-map-point__core::after {
    content: '';
    position: absolute;

    left: 50%;
    top: 50%;

    width: 4px;
    height: 4px;

    border-radius: 50%;
    background: #222;

    transform: translate(-50%, -50%);
}

.autolapti-map-point__content {
    display: flex;
    flex-direction: column;

    min-width: 0;
    line-height: 1.2;
}

.autolapti-map-point__name {
    display: block;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 12px;
    font-weight: 600;
    color: #222;
}

.autolapti-map-point__stock {
    display: block;

    margin-top: 3px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 11px;
    font-weight: 500;
    color: #378a43;
}


/* ==========================================================
   POPUP — REAL WHITE CARD
   ========================================================== */

.autolapti-map-popup-anchor {
    position: absolute;

    width: 330px;
    max-width: calc(100vw - 50px);

    transform: translate(24px, -50%);

    pointer-events: auto;
    z-index: 3000;
}

.autolapti-map-popup-anchor .autolapti-map-balloon {
    position: relative;

    display: block;

    width: 100%;
    box-sizing: border-box;

    padding: 16px 18px;

    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 12px;

    background: #fff;
    color: #222;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, .18),
        0 12px 36px rgba(0, 0, 0, .10);

    font-family: inherit;
    line-height: 1.4;
}

.autolapti-map-popup-anchor .autolapti-map-balloon__close {
    position: absolute;

    top: 7px;
    right: 8px;

    width: 28px;
    height: 28px;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #555;

    font-size: 22px;
    line-height: 28px;
    text-align: center;

    cursor: pointer;
}

.autolapti-map-popup-anchor .autolapti-map-balloon__close:hover {
    background: rgba(0, 0, 0, .06);
}

.autolapti-map-popup-anchor .autolapti-map-balloon__name {
    padding-right: 28px;

    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.autolapti-map-popup-anchor .autolapti-map-balloon__address {
    margin-top: 8px;

    font-size: 13px;
    color: #555;
}

.autolapti-map-popup-anchor .autolapti-map-balloon__stock {
    margin-top: 8px;

    font-size: 13px;
    font-weight: 600;
    color: #378a43;
}

.autolapti-map-popup-anchor .autolapti-map-balloon__schedule {
    margin-top: 10px;
    padding-top: 10px;

    border-top: 1px solid rgba(0, 0, 0, .08);

    white-space: pre-line !important;

    font-size: 12px;
    color: #444;
}

.autolapti-map-popup-anchor .autolapti-map-balloon__link {
    display: inline-block;

    margin-top: 12px;

    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 767px) {
    .autolapti-map-point {
        min-width: 44px;
        max-width: 180px;
    }

    .autolapti-map-point__name {
        max-width: 125px;
    }

    .autolapti-map-popup-anchor {
        width: min(310px, calc(100vw - 42px));
        transform: translate(-50%, calc(-100% - 18px));
    }
}
