/* MapLibre / OSM–like preview chrome (dark) */
.maplibre {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #2a3a42;
  background: #0e1418;
  user-select: none;
  touch-action: none;
}
.maplibre-stage {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  transition: transform .2s ease;
}
.maplibre-stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.maplibre-pin {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  pointer-events: none;
  z-index: 3;
  transition: left .12s linear, top .12s linear;
}
.maplibre-pin .dot {
  width: 14px;
  height: 14px;
  margin: 4px;
  border-radius: 50%;
  background: #3fe0cb;
  border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.45), 0 0 0 6px rgba(63,224,203,.22);
}
.maplibre-pin .arrow {
  position: absolute;
  left: 50%;
  top: -2px;
  width: 0;
  height: 0;
  margin-left: -5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid #3fe0cb;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.35));
  transform-origin: 50% 18px;
}
.maplibre-controls {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.maplibre-controls button {
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(18,28,34,.94);
  color: #eaf6f4;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}
.maplibre-controls button:hover { background: rgba(30,50,58,.96); }
.maplibre-controls button:active { background: #3fe0cb; color: #062018; }
.maplibre-attr {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 4;
  max-width: calc(100% - 80px);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(10,16,20,.78);
  backdrop-filter: blur(6px);
  font-size: .62rem;
  color: #9aafb6;
  line-height: 1.35;
  pointer-events: none;
}
.maplibre-attr b {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  color: #3fe0cb;
  font-size: .72rem;
  letter-spacing: -0.02em;
  margin-right: 4px;
}
.maplibre-chip {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 4;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(10,16,20,.82);
  border: 1px solid rgba(63,224,203,.18);
  font-size: .68rem;
  color: #9aafb6;
  pointer-events: none;
}
.maplibre-chip em {
  font-style: normal;
  color: #3fe0cb;
  font-weight: 700;
}
.maplibre-scale {
  position: absolute;
  right: 10px;
  bottom: 12px;
  z-index: 4;
  width: 56px;
  height: 4px;
  border: 1px solid #8aa3ab;
  border-top: 0;
  pointer-events: none;
}
.maplibre-scale::after {
  content: "500 м";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: .62rem;
  color: #8aa3ab;
}
.phone .maplibre { height: 300px; border-radius: 18px; }
.hu .maplibre { height: 380px; border-radius: 16px; }
