/* Карта: подключается только на страницах с картой («О компании», оформление заказа) */

.map-pin { color: var(--blue); background: 0; border: 0; filter: drop-shadow(0 2px 3px rgba(6, 6, 6, .3)); }
.map-pin svg { display: block; }
.map-pin.is-active { color: var(--orange); z-index: 1000 !important; }
.leaflet-container { font-family: inherit; background: var(--bg-grey); }
.leaflet-container a { color: var(--blue); }
.leaflet-popup-content-wrapper { border-radius: var(--r-8); box-shadow: 0 4px 16px rgba(6, 6, 6, .16); }
.leaflet-popup-content { margin: 12px 16px; font-size: 14px; line-height: 18px; color: var(--ink); }
.leaflet-popup-content b { display: block; font-size: 16px; line-height: 20px; margin-bottom: 4px; }
.leaflet-popup-content span { display: block; }

/* О компании: карта во всю ширину контейнера */
.about-map { height: 480px; margin-bottom: 24px; border-radius: var(--r-16); overflow: hidden; background: var(--bg-grey); isolation: isolate; }

/* Оформление: список пунктов и кнопка карты в одну строку */
.co-pick { display: flex; gap: 8px; align-items: flex-start; }
.co-pick > .ffield { flex: 1 0 0; min-width: 0; }
.co-map-btn {
    flex: none; width: 54px; height: 54px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: var(--r-8); background: var(--bg-grey); color: var(--ink);
}
.co-map-btn:hover { background: var(--blue); color: var(--white); }
.co-map-btn[hidden] { display: none; }

/* Модалка с картой пунктов выдачи */
.modal-map-box { max-width: 960px; padding: 24px; display: flex; flex-direction: column; overflow: hidden; }
.modal-map-box .modal-head { margin-bottom: 16px; align-items: center; }
.modal-map-canvas { height: min(520px, 55vh); border-radius: var(--r-8); overflow: hidden; background: var(--bg-grey); isolation: isolate; }
.modal-map-info { margin-top: 16px; min-height: 54px; display: flex; align-items: center; }
.modal-map-hint { margin: 0; font-size: 16px; line-height: 20px; opacity: .6; }
.modal-map-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.modal-map-card[hidden] { display: none; }
.modal-map-text { min-width: 0; }
.modal-map-text b { display: block; font-size: 16px; font-weight: 600; line-height: 20px; }
.modal-map-text span { display: block; margin-top: 4px; font-size: 14px; line-height: 17px; opacity: .6; }
.modal-map-card .btn { flex: none; }

@media (max-width: 767px) {
    .about-map { height: 320px; }

    /* На телефоне карта занимает весь экран */
    .modal-map { padding: 0; }
    .modal-map-box { max-width: none; height: 100%; max-height: none; border-radius: 0; padding: 16px; }
    .modal-map-canvas { flex: 1 0 0; height: auto; min-height: 0; }
    .modal-map-card { flex-direction: column; align-items: stretch; gap: 12px; }
}
