/* Карта внутри карточки: заполняет ячейку сетки, плашки поверх */
.geo {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 3px;
  background: #1d1d20;
}

.geo:fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
}

.geo-map {
  position: absolute;
  inset: 0;
  background: #1d1d20;
}

.geo-map .maplibregl-canvas {
  outline: none;
  /* стиль OpenFreeMap очень тёмный: подтягиваем яркость под макет */
  filter: brightness(1.8) contrast(0.95);
}

/* Атрибуция OSM обязательна по лицензии: мелко, в углу под плашкой */
.geo-map .maplibregl-ctrl-bottom-right {
  right: 8px;
  bottom: 2px;
}

.geo-map .maplibregl-ctrl-attrib {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.45);
  font-size: 8px;
  line-height: 1.2;
}

.geo-map .maplibregl-ctrl-attrib a {
  color: inherit;
}

.geo-map .maplibregl-ctrl-attrib-button {
  display: none;
}

.geo-time {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  box-sizing: border-box;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f4f4f5;
  font: 500 13px/1 Inter, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

.geo-tz {
  color: #8e8e93;
  font-size: 12px;
  font-weight: 400;
}

.geo-expand {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
}

.geo-expand:hover {
  background: rgba(28, 28, 32, 0.9);
}

.geo-expand svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.geo-bar {
  border: 0;
  cursor: pointer;
  text-align: left;
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px 0 4px;
  box-sizing: border-box;
  border-radius: 999px;
  background: rgba(14, 14, 16, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.geo-pin {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #26262a;
}

.geo-pin svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

.geo-place {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #f4f4f5;
  font: 12px/1.2 Inter, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.geo-dist {
  flex: none;
  color: #8e8e93;
  font: 12px/1.2 Inter, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}


/* Метки на карте: белая точка и расходящийся круг, выбранная крупнее */
.geo-dot {
  position: relative;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.geo-dot i {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fbfbfb;
  box-shadow: 0 0 0 2px rgba(28, 28, 28, 0.9);
  transition: transform 300ms cubic-bezier(0.32, 0.72, 0, 1);
}

.geo-dot b {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(251, 251, 251, 0.7);
  border-radius: 50%;
  opacity: 0;
}

.geo-dot.on i {
  transform: scale(1.35);
}

.geo-dot.on b {
  animation: geo-ping 2s ease-out infinite;
}

@keyframes geo-ping {
  0% { opacity: 0.8; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(3.4); }
}

.geo:fullscreen .maplibregl-ctrl-bottom-right {
  bottom: 56px;
}

.geo .maplibregl-ctrl-group {
  border-radius: 12px;
  background: rgba(28, 28, 28, 0.92);
  box-shadow: none;
}

.geo .maplibregl-ctrl-group button {
  filter: invert(1);
}

@media (prefers-reduced-motion: reduce) {
  .geo-dot.on b {
    animation: none;
  }
}


/* ───── Булавки, управление и подпись (новая версия) ───── */

/* радары и точки убраны: старые стили меток не используются */
.geo-dot {
  display: none;
}

/* Кнопки масштаба */
.geo-tools {
  position: absolute;
  top: 50px;
  right: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(14, 14, 16, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.geo-tools button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: #e9e9eb;
  cursor: pointer;
  transition: background 150ms;
}

.geo-tools button + button {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.geo-tools button:hover {
  background: rgba(255, 255, 255, 0.09);
}

.geo-tools svg,
.geo-nav svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Подпись: стрелки, тип точки мелко и адрес крупно, счётчик */
.geo-cap {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 5px 6px;
  box-sizing: border-box;
  border-radius: 18px;
  background: rgba(14, 14, 16, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: Manrope, Inter, system-ui, sans-serif;
}

.geo-nav {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #26262a;
  color: #f4f4f5;
  cursor: pointer;
  transition: background 150ms, transform 150ms;
}

.geo-nav:hover {
  background: #33333a;
}

.geo-nav:active {
  transform: scale(0.92);
}

.geo-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 0 4px;
}

.geo-label {
  color: #8e8e93;
  font-size: 11px;
  line-height: 1.1;
}

.geo-place {
  overflow: hidden;
  color: #f4f4f5;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.geo-count {
  flex: none;
  color: #8e8e93;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.geo.single .geo-nav {
  display: none;
}

.geo.single .geo-info {
  padding-left: 8px;
}

.geo-bar {
  display: none;
}

.geo:fullscreen .geo-tools {
  top: 56px;
}

.geo .maplibregl-cooperative-gesture-screen {
  font-family: Manrope, Inter, system-ui, sans-serif;
}


/* Булавки: внешний элемент не анимируется (им управляет MapLibre), эффекты — на внутренней кнопке */
.geo-pin-m {
  width: 30px;
  height: 30px;
  opacity: 0;
  transform: none;
  transition: opacity 350ms ease;
  will-change: auto;
}

.geo.ready .geo-pin-m {
  opacity: 1;
}

.geo-pin-m button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: 0.62;
  transform-origin: 50% 90%;
  transition: opacity 200ms, transform 300ms cubic-bezier(0.32, 0.72, 0, 1);
}

.geo-pin-m button:hover {
  opacity: 0.9;
}

.geo-pin-m.on {
  z-index: 2;
  opacity: 1;
  transform: none;
}

.geo-pin-m.on button {
  opacity: 1;
  transform: scale(1.25);
}

.geo-pin-m svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: #cfcfd2;
  stroke: #1c1c1c;
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.geo-pin-m.on svg {
  fill: #fff;
}


/* Ссылка «Яндекс Карты»: плашка под часами */
.geo-ext {
  position: absolute;
  top: 46px;
  left: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px 0 11px;
  box-sizing: border-box;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f4f4f5;
  font: 500 12px/1 Manrope, Inter, system-ui, sans-serif;
  text-decoration: none;
  transition: background 150ms;
}

.geo-ext:hover {
  background: rgba(34, 34, 38, 0.92);
}

.geo-ext svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}



/* Часы и «Яндекс» стоят в один ряд: ссылка сразу после времени */
.geo-top {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
}

.geo-top .geo-time {
  position: static;
}

.geo-top .geo-ext {
  position: static;
  height: 30px;
  padding: 0 10px 0 12px;
}

.geo:fullscreen .geo-top {
  top: 16px;
  left: 16px;
}


/* Компактная ссылка на Яндекс Карты: круглая кнопка той же высоты, что и плашка времени */
.geo-top .geo-ext {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  gap: 0;
}

.geo-top .geo-ext svg {
  width: 15px;
  height: 15px;
}
