/* Карта студий на главной (блок #branches). Leaflet подключается отдельно из assets/vendor/leaflet. */
.hb-stmap { position: relative; flex: 1 1 480px; min-height: 560px; align-self: flex-start; height: 640px; max-height: calc(100vh - 120px); border-radius: 26px; overflow: hidden; background: #E9E6E1; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px -18px rgba(33,33,33,.28); isolation: isolate; }
.hb-stmap #hb-studios-map { position: absolute; inset: 0; font-family: inherit; background: #E9E6E1; z-index: 0; }
.hb-stmap .leaflet-tile-pane { filter: saturate(.7) contrast(1.03) brightness(1.02); }

/* Переключатель городов */
.hb-stmap-bar { position: absolute; z-index: 600; top: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.hb-stmap-chip { pointer-events: auto; appearance: none; border: 0; cursor: pointer; font: 600 13px/1 inherit; font-family: inherit; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.96); color: #212121; box-shadow: 0 4px 14px rgba(0,0,0,.14); transition: background .15s, color .15s, transform .15s; }
.hb-stmap-chip:hover { transform: translateY(-1px); }
.hb-stmap-chip.is-on { background: #212121; color: #fff; }
.hb-stmap-chip b { font-weight: 700; color: #F87400; margin-left: 4px; }
.hb-stmap-chip.is-on b { color: #FFB37A; }
.hb-stmap-hint { position: absolute; z-index: 600; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: rgba(33,33,33,.82); color: #fff; font-size: 12px; font-weight: 500; pointer-events: none; white-space: nowrap; }
.hb-stmap-hint[hidden] { display: none; }

/* Метка студии */
.hb-pin-wrap { background: transparent; border: 0; }
.hb-pin { position: relative; display: block; width: 38px; height: 38px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(135deg, #FF8F2B, #F87400); border: 3px solid #fff; box-shadow: 0 8px 18px rgba(248,116,0,.5); transition: transform .18s, box-shadow .18s; }
.hb-pin i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform: rotate(45deg); color: #fff; font: 800 15px/1 'Manrope', system-ui, sans-serif; font-style: normal; }
.hb-pin-wrap:hover .hb-pin, .hb-pin-wrap.is-hot .hb-pin { transform: rotate(-45deg) scale(1.18); box-shadow: 0 12px 26px rgba(248,116,0,.65); background: linear-gradient(135deg, #212121, #3a3a3a); }
.hb-pin-wrap:focus-visible { outline: none; }
.hb-pin-wrap:focus-visible .hb-pin { box-shadow: 0 0 0 4px rgba(248,116,0,.4); }

/* Окно с описанием студии */
.hb-stmap .leaflet-popup-content-wrapper { padding: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 40px -10px rgba(0,0,0,.35); }
.hb-stmap .leaflet-popup-content { margin: 0; width: 260px !important; font-family: inherit; color: #212121; }
.hb-stmap .leaflet-popup-tip { box-shadow: none; }
.hb-stmap a.leaflet-popup-close-button { top: 8px; right: 8px; width: 28px; height: 28px; line-height: 26px; font-size: 20px; border-radius: 50%; background: rgba(255,255,255,.92); color: #212121; text-align: center; padding: 0; }
.hb-pop-img { display: block; width: 100%; height: 118px; object-fit: cover; background: #EEE; }
.hb-pop-body { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 3px; }
.hb-pop-city { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #F87400; }
.hb-pop-name { font-size: 17px; font-weight: 800; line-height: 1.2; }
.hb-pop-addr { font-size: 13.5px; color: #4A4A4A; line-height: 1.35; }
.hb-pop-hours { font-size: 12.5px; color: #8A8A8A; }
.hb-pop-actions { display: flex; gap: 8px; margin-top: 10px; }
.hb-pop-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 999px; border: 1.5px solid #212121; color: #212121 !important; font-weight: 700; font-size: 13.5px; text-decoration: none; transition: background .15s; }
.hb-pop-btn:hover { background: #F4F4F4; }
.hb-pop-btn-main { background: #F87400; border-color: #F87400; color: #fff !important; }
.hb-pop-btn-main:hover { background: #E26A00; }
.hb-pop-more { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; font-weight: 600; }
.hb-pop-more a { color: #6B6B6B !important; text-decoration: underline; text-underline-offset: 2px; }
.hb-pop-more a:hover { color: #F87400 !important; }

/* Кнопки масштаба и подпись */
.hb-stmap .leaflet-bar { border: 0; box-shadow: 0 4px 14px rgba(0,0,0,.18); border-radius: 14px; overflow: hidden; }
.hb-stmap .leaflet-bar a { width: 38px; height: 38px; line-height: 38px; font-size: 20px; color: #212121; }
.hb-stmap .leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.8); border-radius: 8px 0 0 0; }

/* Карточки рядом с картой */
#branches .hb-card-link { cursor: pointer; transition: box-shadow .18s, transform .18s; }
#branches .hb-card-link:hover { box-shadow: 0 12px 28px -14px rgba(33,33,33,.35); transform: translateY(-2px); }

@media (min-width: 981px) { .hb-stmap { position: sticky; top: 96px; } }
@media (max-width: 980px) { .hb-stmap { flex-basis: 100%; height: 480px; max-height: none; min-height: 0; } }
@media (max-width: 760px) {
  .hb-stmap { height: 420px; border-radius: 22px; }
  .hb-stmap-chip { padding: 9px 12px; font-size: 12.5px; }
  .hb-stmap .leaflet-popup-content { width: 236px !important; }
  .hb-pop-img { height: 100px; }
}
