/* Morphing capsule broker office map markers */
.bp-broker-office-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 850;
  font-family: "Open Sans", Arial, sans-serif;
  user-select: none;
}

.bp-broker-office-marker.is-expanded {
  z-index: 900;
}

.bp-broker-office-pill {
  width: 40px;
  height: 40px;
  max-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid #2563eb;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
  overflow: hidden;
  transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1), padding 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.bp-broker-office-marker.is-expanded .bp-broker-office-pill {
  width: 180px;
  padding: 0 12px;
}

.bp-broker-office-icon-wrapper {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 200ms ease-in-out, transform 250ms ease-in-out;
}

.bp-broker-office-marker.is-expanded .bp-broker-office-icon-wrapper {
  opacity: 0;
  transform: translateX(-8px);
}

.bp-broker-office-icon {
  width: 24px;
  height: 24px;
  fill: #2563eb;
}

.bp-broker-office-logo-safezone {
  width: 0;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  overflow: hidden;
  transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1), opacity 220ms ease-in-out;
}

.bp-broker-office-marker.is-expanded .bp-broker-office-logo-safezone {
  width: 136px;
  opacity: 1;
}

.bp-broker-office-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bp-broker-office-logo-fallback {
  color: #2563eb;
  font-size: 14px;
  font-weight: 700;
}

.bp-broker-office-label {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  color: #2563eb;
}