.contacts-info__map-box {
  background-color: var(--graphite-soft);
  border: 1px solid var(--graphite-border);
}

.contacts-map-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background-color: var(--graphite);
  border-bottom: 1px solid var(--graphite-border);
}

.contacts-map-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 8px;
  min-height: 38px;
  background-color: transparent;
  border: 0;
  border-right: 1px solid var(--graphite-border);
  border-bottom: 2px solid transparent;
  color: var(--ink-light-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

.contacts-map-tab:last-child {
  border-right: 0;
}

.contacts-map-tab:hover {
  color: var(--paper);
  background-color: rgba(255, 255, 255, 0.04);
}

.contacts-map-tab.is-active {
  color: var(--paper);
  font-weight: 600;
  background-color: var(--graphite-soft);
  border-bottom-color: var(--brand);
}

.contacts-info__map-wrap {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 100%;
  height: clamp(160px, 22vh, 210px);
  overflow: hidden;
  background-color: #0E0F12;
}

.contacts-info__map {
  width: 100%;
  height: 100%;
  background-color: #121316;
  font-family: var(--font-sans);
}

.contacts-info__map .leaflet-tile-pane {
  filter: invert(100%) hue-rotate(180deg) brightness(92%) contrast(94%) saturate(35%);
}

.contacts-info__map-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-light-muted);
  border-top: 1px solid var(--graphite-border);
}

.contacts-info__map-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.contacts-info__map-link:hover {
  color: var(--paper);
}

.apfel-map-pin {
  background: transparent;
  border: 0;
  cursor: pointer;
}

.apfel-map-pin__core {
  width: 14px;
  height: 14px;
  background-color: #94A3B8;
  border: 2.5px solid var(--graphite);
  outline: 1px solid rgba(148, 163, 184, 0.7);
  transition: transform var(--transition), background-color var(--transition), outline-color var(--transition);
}

.apfel-map-pin:hover .apfel-map-pin__core,
.apfel-map-pin.is-active .apfel-map-pin__core {
  width: 18px;
  height: 18px;
  background-color: var(--brand);
  border: 3px solid var(--graphite);
  outline: 1px solid var(--brand);
  transform: translate(-2px, -2px);
}

.contacts-info__map .leaflet-control-zoom a {
  background-color: var(--graphite);
  color: var(--paper);
  border-color: var(--graphite-line);
  border-radius: 0;
}

.contacts-info__map .leaflet-control-zoom a:hover {
  background-color: var(--brand-deep);
  color: var(--paper);
}

.contacts-info__map .leaflet-control-attribution {
  background-color: rgba(20, 21, 24, 0.8);
  color: var(--ink-light-muted);
  font-size: 10px;
}

.contacts-info__map .leaflet-control-attribution a {
  color: var(--ink-light-muted);
}

.contacts-info__map .leaflet-popup-content-wrapper,
.contacts-info__map .leaflet-popup-tip {
  background-color: var(--graphite);
  color: var(--paper);
  border-radius: 0;
  border: 1px solid var(--graphite-line);
}

.contacts-info__map .leaflet-popup-content {
  margin: 10px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .contacts-info__map-wrap {
    height: 230px;
    min-height: 230px;
  }
}

@media (max-width: 560px) {
  .contacts-map-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contacts-map-tab {
    padding: 8px 4px;
    min-height: 36px;
    font-size: 11px;
    line-height: 1.2;
  }

  .contacts-info__map .leaflet-popup-content {
    margin: 7px 10px;
    font-size: 11.5px;
    line-height: 1.3;
  }
}
