/* Сетка филиалов + тайлы 2ГИС. Цвета — currentColor / свои переменные сайта.
   img { max-width:100% } ломает плитки — поэтому max-width:none у тайлов. */
.gmap {
  --gmap-bg: #d7e0e8;
  position: relative;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  background: var(--gmap-bg);
  min-height: 240px;
}
.gmap-view,
.gmap-tiles,
.gmap-marks { position: absolute; inset: 0; }
.gmap-tiles img {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  pointer-events: none;
  user-select: none;
}
.gmap-marks { z-index: 2; }
.gmap-zoom {
  position: absolute; right: 12px; top: 12px; z-index: 3;
  display: flex; flex-direction: column; gap: 6px;
}
.gmap-zoom button {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15); background: #fff; color: inherit;
  font: inherit; cursor: pointer;
}
.gmap-attr {
  position: absolute; right: 8px; bottom: 8px; z-index: 3;
  font-size: 11px; pointer-events: none;
  background: rgba(255,255,255,.82); padding: 3px 8px; border-radius: 8px;
}
.gmap-pin {
  position: absolute; width: 18px; height: 18px; padding: 0; border: 0;
  background: none; transform: translate(-50%, -50%); cursor: pointer; z-index: 2;
  color: #1a1a1a;
}
.gmap-pin span {
  display: block; width: 14px; height: 14px; margin: 2px;
  background: currentColor; transform: rotate(45deg); border-radius: 2px;
}
.gmap-pin.is-hot { color: #c43c3c; }
.gmap-pin.is-on { color: #0b57d0; z-index: 4; }
.gmap-pin.is-on span { box-shadow: 0 0 0 3px rgba(11,87,208,.35); }

.gmap-wrap { display: grid; gap: 16px; }
.gmap-stage { height: min(70vh, 640px); min-height: 360px; }
.gmap-vis { aspect-ratio: 16/11; }
.gmap-mini { max-width: 640px; aspect-ratio: 16/10; }
.gmap-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.gmap-spot { border: 1px solid rgba(0,0,0,.12); border-radius: 12px; padding: 16px; }
.gmap-spot[hidden] { display: none !important; }
@media (min-width: 900px) {
  .gmap-wrap { grid-template-columns: 1.4fr .9fr; align-items: start; }
}
.leaflet-container img { max-width: none; }
