/* Карта на странице «Контакты» с плашкой организации (theme/js/contacts-map.js) */
.lp-map.contacts-map {
    position: relative;
    line-height: 1.4;
    background: #eef1f4;
}
.contacts-map .contacts-map__canvas {
    position: absolute;
    inset: 0;
}
.contacts-map.is-failed .contacts-map__canvas::before {
    content: "Карта не загрузилась";
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    color: #86898c;
    font-size: 14px;
    text-align: center;
}

/* Плашка: точка (left, top) — над меткой, сама плашка выше и по центру */
.contacts-map .contacts-map__card {
    position: absolute;
    left: 50%;
    top: 72%;
    z-index: 5;
    width: min(370px, calc(100% - 24px));
    padding: 20px 24px 18px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
    transform: translate(-50%, -100%);
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    text-align: left;
}
.contacts-map__card[hidden] { display: none; }
.contacts-map__card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, .08);
}
.contacts-map__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: none;
    color: #b3b3b3;
    font-size: 24px;
    line-height: 28px;
    cursor: pointer;
}
.contacts-map__close:hover { color: #555; }
.contacts-map__name {
    display: inline-block;
    padding-right: 24px;
    color: #1a5ffa;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
}
.contacts-map__name:hover { color: #f33; }
.contacts-map__category {
    margin: 6px 0 12px;
    color: #707070;
    font-size: 14px;
    line-height: 1.35;
}
.contacts-map__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.contacts-map__rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000;
    text-decoration: none;
}
.contacts-map__stars {
    color: #fc0;
    font-size: 20px;
    letter-spacing: 1px;
    line-height: 1;
}
.contacts-map__rating strong { font-size: 16px; font-weight: 700; }
.contacts-map__rating:hover strong { color: #f33; }
.contacts-map__hours-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: #000;
    font: inherit;
    cursor: pointer;
}
.contacts-map__card.is-closed .js-contacts-map-status { color: #f33; }
.contacts-map__caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #999;
    transition: transform .15s;
}
.contacts-map__card.is-hours-open .contacts-map__caret { transform: rotate(180deg); }
.contacts-map__hours {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}
.contacts-map__hours li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
}
.contacts-map__hours li.is-today { font-weight: 700; }
.contacts-map__dayoff { color: #f33; }
.contacts-map__info {
    margin: 14px 0 0;
    padding: 14px 0 0;
    border-top: 0;
    list-style: none;
}
.contacts-map__info-item {
    position: relative;
    padding: 4px 0 4px 32px;
}
.contacts-map__info-item::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    background: #999 no-repeat center / contain;
    -webkit-mask: var(--icon) no-repeat center / contain;
    mask: var(--icon) no-repeat center / contain;
}
.contacts-map__info-item--address {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a6 6 0 0 0-6 6c0 4.2 6 10 6 10s6-5.8 6-10a6 6 0 0 0-6-6zm0 8.5A2.5 2.5 0 1 1 8 3.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}
.contacts-map__info-item--phone {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.6 1.1 5.8 3.3c.4.4.4 1 0 1.4L4.7 5.8a9.6 9.6 0 0 0 5.5 5.5l1.1-1.1c.4-.4 1-.4 1.4 0l2.2 2.2c.4.4.4 1 0 1.4l-1.3 1.3c-.6.6-1.5.8-2.3.5A15.5 15.5 0 0 1 .4 4.6c-.3-.8-.1-1.7.5-2.3L2.2 1c.4-.3 1-.3 1.4.1z'/%3E%3C/svg%3E");
}
.contacts-map__info-item--site {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4'%3E%3Ccircle cx='8' cy='8' r='7'/%3E%3Cpath d='M1 8h14M8 1c2 2 2.8 4.3 2.8 7S10 13 8 15M8 1C6 3 5.2 5.3 5.2 8S6 13 8 15'/%3E%3C/svg%3E");
}
.contacts-map__info a {
    color: #000;
    text-decoration: none;
}
.contacts-map__info-item--site a { color: #1a5ffa; }
.contacts-map__info a:hover { color: #f33; }
.contacts-map__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}
.contacts-map__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 10px;
    background: #eef3ff;
    color: #1a5ffa;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background .15s;
}
.contacts-map__btn:hover { background: #dfe8ff; color: #1a5ffa; }
.contacts-map__btn--primary { background: #1a5ffa; color: #fff; }
.contacts-map__btn--primary:hover { background: #0f4fe0; color: #fff; }

@media (max-width: 420px) {
    .contacts-map__card { padding: 16px 16px 14px; font-size: 14px; }
    .contacts-map__name { font-size: 18px; }
    .contacts-map__btn { font-size: 14px; }
}
